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_Reinstall.h"
4
5#define BUTTON_REINSTALL_THEME 0
6#define BUTTON_REINSTALL_GAMERPIC1 1
7#define BUTTON_REINSTALL_GAMERPIC2 2
8#define BUTTON_REINSTALL_AVATAR1 3
9#define BUTTON_REINSTALL_AVATAR2 4
10#define BUTTON_REINSTALL_AVATAR3 5
11#define BUTTONS_REINSTALL_MAX BUTTON_REINSTALL_AVATAR3 + 1
12
13
14
15class CScene_Reinstall : public CXuiSceneImpl
16{
17 protected:
18 // Control and Element wrapper objects.
19 CXuiControl m_Buttons[BUTTONS_REINSTALL_MAX];
20 // Message map. Here we tie messages to message handlers.
21 XUI_BEGIN_MSG_MAP()
22 XUI_ON_XM_INIT( OnInit )
23 XUI_ON_XM_NOTIFY_PRESS_EX(OnNotifyPressEx)
24 XUI_ON_XM_KEYDOWN(OnKeyDown)
25 XUI_ON_XM_TRANSITION_START(OnTransitionStart)
26 XUI_ON_XM_NAV_RETURN(OnNavReturn)
27 XUI_ON_XM_CONTROL_NAVIGATE( OnControlNavigate )
28 XUI_END_MSG_MAP()
29
30 // Control mapping to objects
31 BEGIN_CONTROL_MAP()
32 MAP_CONTROL(IDC_XuiButton1, m_Buttons[BUTTON_REINSTALL_THEME ])
33 MAP_CONTROL(IDC_XuiButton2, m_Buttons[BUTTON_REINSTALL_GAMERPIC1 ])
34 MAP_CONTROL(IDC_XuiButton3, m_Buttons[BUTTON_REINSTALL_GAMERPIC2 ])
35 MAP_CONTROL(IDC_XuiButton4, m_Buttons[BUTTON_REINSTALL_AVATAR1 ])
36 MAP_CONTROL(IDC_XuiButton5, m_Buttons[BUTTON_REINSTALL_AVATAR2 ])
37 MAP_CONTROL(IDC_XuiButton6, m_Buttons[BUTTON_REINSTALL_AVATAR3 ])
38 END_CONTROL_MAP()
39
40 HRESULT OnInit( XUIMessageInit* pInitData, BOOL& bHandled );
41 HRESULT OnNotifyPressEx(HXUIOBJ hObjPressed, XUINotifyPress* pNotifyPressData,BOOL& rfHandled);
42 HRESULT OnKeyDown(XUIMessageInput* pInputData, BOOL& rfHandled);
43 HRESULT OnNavReturn(HXUIOBJ hObj,BOOL& rfHandled);
44 HRESULT OnControlNavigate(XUIMessageControlNavigate *pControlNavigateData, BOOL& bHandled);
45 HRESULT OnTransitionStart( XUIMessageTransition *pTransition, BOOL& bHandled );
46
47 static int DeviceSelectReturned(void *pParam,bool bContinue);
48 static int DeviceSelectReturned_AndReinstall(void *pParam,bool bContinue);
49public:
50
51 // Define the class. The class name must match the ClassOverride property
52 // set for the scene in the UI Authoring tool.
53 XUI_IMPLEMENT_CLASS( CScene_Reinstall, L"CScene_Reinstall", XUI_CLASS_SCENE )
54
55 //static int InstallReturned(void *pParam,bool bContinue);
56
57private:
58 int m_iPad;
59 int m_iLastButtonPressed;
60 bool m_bIgnoreInput;
61
62
63};