the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
1#include "stdafx.h"
2
3#include <assert.h>
4#include "XUI_DebugTips.h"
5#include "..\..\..\Minecraft.World\StringHelpers.h"
6
7//----------------------------------------------------------------------------------
8// Performs initialization tasks - retrieves controls.
9//----------------------------------------------------------------------------------
10HRESULT CScene_DebugTips::OnInit( XUIMessageInit* pInitData, BOOL& bHandled )
11{
12 m_iPad = *(int *)pInitData->pvInitData;
13
14 m_bIgnoreInput = false;
15
16 MapChildControls();
17
18 // Display the tooltips
19 //ui.SetTooltips( m_iPad, IDS_TOOLTIPS_SELECT);
20 // display the next tip
21 wstring wsText=app.FormatHTMLString(m_iPad,app.GetString(app.GetNextTip()));
22 wchar_t startTags[64];
23 swprintf(startTags,64,L"<font color=\"#%08x\" size=14><DIV ALIGN=CENTER>",app.GetHTMLColour(eHTMLColor_White));
24 wsText= startTags + wsText + L"</DIV>";
25 XuiControlSetText(m_tip,wsText.c_str());
26
27 return S_OK;
28}
29
30
31HRESULT CScene_DebugTips::OnKeyDown(XUIMessageInput* pInputData, BOOL& rfHandled)
32{
33 //ui.AnimateKeyPress(pInputData->UserIndex, pInputData->dwKeyCode);
34
35
36 switch(pInputData->dwKeyCode)
37 {
38 case VK_PAD_A:
39 {
40
41
42 // next tip
43 // display the next tip
44 wstring wsText=app.FormatHTMLString(m_iPad,app.GetString(app.GetNextTip()));
45 wchar_t startTags[64];
46 swprintf(startTags,64,L"<font color=\"#%08x\" size=14><DIV ALIGN=CENTER>",app.GetHTMLColour(eHTMLColor_White));
47 wsText= startTags + wsText + L"</DIV>";
48 XuiControlSetText(m_tip,wsText.c_str());
49
50 rfHandled = TRUE;
51 }
52 break;
53
54 case VK_PAD_B:
55 case VK_PAD_START:
56 case VK_ESCAPE:
57
58 app.NavigateBack(m_iPad);
59
60 rfHandled = TRUE;
61
62 break;
63#ifndef _CONTENT_PACKAGE
64 case VK_PAD_LTHUMB_PRESS:
65#ifdef _XBOX
66 app.OverrideFontRenderer(true);
67#endif
68 break;
69#endif
70 }
71
72 return S_OK;
73}