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_helpandoptions.h"
4#include "XUI_CustomMessages.h"
5
6#define BUTTON_HAO_CHANGESKIN 0
7#define BUTTON_HAO_HOWTOPLAY 1
8#define BUTTON_HAO_CONTROLS 2
9#define BUTTON_HAO_SETTINGS 3
10#define BUTTON_HAO_CREDITS 4
11#define BUTTON_HAO_REINSTALL 5
12#define BUTTON_HAO_DEBUG 6
13#define BUTTONS_HAO_MAX BUTTON_HAO_DEBUG + 1
14
15
16
17class CScene_HelpAndOptions : public CXuiSceneImpl
18{
19protected:
20 // Control and Element wrapper objects.
21 CXuiScene m_Scene;
22 CXuiControl m_Buttons[BUTTONS_HAO_MAX];
23 CXuiElement m_Background;
24 CXuiControl m_Timer;
25
26 // Message map. Here we tie messages to message handlers.
27 XUI_BEGIN_MSG_MAP()
28 XUI_ON_XM_INIT( OnInit )
29 XUI_ON_XM_NOTIFY_PRESS_EX(OnNotifyPressEx)
30 XUI_ON_XM_KEYDOWN(OnKeyDown)
31 XUI_ON_XM_CONTROL_NAVIGATE( OnControlNavigate )
32 XUI_ON_XM_NAV_RETURN(OnNavReturn)
33 XUI_ON_XM_TRANSITION_START(OnTransitionStart)
34 XUI_ON_XM_SPLITSCREENPLAYER_MESSAGE(OnCustomMessage_Splitscreenplayer)
35 //XUI_ON_XM_TMS_DLCFILE_RETRIEVED_MESSAGE(OnTMSDLCFileRetrieved)
36 XUI_END_MSG_MAP()
37
38 // Control mapping to objects
39 BEGIN_CONTROL_MAP()
40 MAP_CONTROL(IDC_XuiButton1, m_Buttons[BUTTON_HAO_CHANGESKIN])
41 MAP_CONTROL(IDC_XuiButton2, m_Buttons[BUTTON_HAO_HOWTOPLAY ])
42 MAP_CONTROL(IDC_XuiButton3, m_Buttons[BUTTON_HAO_CONTROLS ])
43 MAP_CONTROL(IDC_XuiButton4, m_Buttons[BUTTON_HAO_SETTINGS ])
44 MAP_CONTROL(IDC_XuiButton5, m_Buttons[BUTTON_HAO_CREDITS])
45 MAP_CONTROL(IDC_XuiButton6, m_Buttons[BUTTON_HAO_REINSTALL])
46 MAP_CONTROL(IDC_XuiButton7, m_Buttons[BUTTON_HAO_DEBUG])
47 MAP_CONTROL(IDC_Timer, m_Timer)
48
49 END_CONTROL_MAP()
50
51 HRESULT OnInit( XUIMessageInit* pInitData, BOOL& bHandled );
52 HRESULT OnNotifyPressEx(HXUIOBJ hObjPressed, XUINotifyPress* pNotifyPressData,BOOL& rfHandled);
53 HRESULT OnKeyDown(XUIMessageInput* pInputData, BOOL& rfHandled);
54 HRESULT OnNavReturn(HXUIOBJ hObj,BOOL& rfHandled);
55 HRESULT OnCustomMessage_Splitscreenplayer(bool bJoining, BOOL& bHandled);
56 HRESULT OnTransitionStart( XUIMessageTransition *pTransition, BOOL& bHandled );
57 HRESULT OnControlNavigate(XUIMessageControlNavigate *pControlNavigateData, BOOL& bHandled);
58 //HRESULT OnTMSDLCFileRetrieved( );
59public:
60
61 // Define the class. The class name must match the ClassOverride property
62 // set for the scene in the UI Authoring tool.
63 XUI_IMPLEMENT_CLASS( CScene_HelpAndOptions, L"CScene_HelpAndOptions", XUI_CLASS_SCENE )
64
65private:
66
67 int m_iPad;
68 bool m_bIgnoreInput;
69 D3DXVECTOR3 m_OriginalPosition;
70};