the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
1#pragma once
2
3#include "../media/xuiscene_debug.h"
4
5class CScene_Debug : public CXuiSceneImpl
6{
7 protected:
8
9
10 // Message map. Here we tie messages to message handlers.
11 XUI_BEGIN_MSG_MAP()
12 XUI_ON_XM_INIT( OnInit )
13 XUI_ON_XM_KEYDOWN(OnKeyDown)
14 XUI_ON_XM_NOTIFY_SELCHANGED( OnNotifySelChanged )
15 XUI_ON_XM_NOTIFY_VALUE_CHANGED( OnNotifyValueChanged )
16 XUI_ON_XM_NOTIFY_PRESS_EX(OnNotifyPressEx)
17 XUI_ON_XM_CONTROL_NAVIGATE(OnControlNavigate)
18 XUI_END_MSG_MAP()
19
20 HRESULT OnInit( XUIMessageInit* pInitData, BOOL& bHandled );
21 HRESULT OnKeyDown(XUIMessageInput* pInputData, BOOL& rfHandled);
22 HRESULT OnNotifySelChanged( HXUIOBJ hObjSource, XUINotifySelChanged* pNotifySelChangedData, BOOL& bHandled );
23 HRESULT OnNotifyValueChanged( HXUIOBJ hObjSource, XUINotifyValueChanged* pNotifyValueChanged, BOOL& bHandled );
24 HRESULT OnNotifyPressEx(HXUIOBJ hObjPressed, XUINotifyPress* pNotifyPressData,BOOL& rfHandled);
25 HRESULT OnControlNavigate(XUIMessageControlNavigate *pControlNavigateData, BOOL& bHandled);
26public:
27
28
29 // Define the class. The class name must match the ClassOverride property
30 // set for the scene in the UI Authoring tool.
31 XUI_IMPLEMENT_CLASS( CScene_Debug, L"CScene_Debug", XUI_CLASS_SCENE )
32
33private:
34
35 typedef struct
36 {
37 HXUIOBJ hXuiObj;
38 VOID *pvData;
39 }
40 DEBUGDATA;
41
42
43 static LPCWSTR m_DebugCheckboxTextA[eDebugSetting_Max+1];
44 static LPCWSTR m_DebugButtonTextA[eDebugButton_Max+1];
45 int m_iTotalCheckboxElements;
46 int m_iTotalButtonElements;
47 DEBUGDATA *m_DebugCheckboxDataA;
48 DEBUGDATA *m_DebugButtonDataA;
49 int m_iCurrentCheckboxElement;
50 int m_iCurrentButtonElement;
51 int m_iPad;
52 bool m_bOnCheckboxes; // for navigations
53};