the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
1#pragma once
2#include "..\Media\xuiscene_ingame_host_options.h"
3
4class CScene_InGameHostOptions : public CXuiSceneImpl
5{
6protected:
7 CXuiScene m_GameOptionsGroup;
8 CXuiCheckbox m_CheckboxFireSpreads;
9 CXuiCheckbox m_CheckboxTNTExplodes;
10 CXuiControl m_buttonTeleportToPlayer, m_buttonTeleportToMe;
11
12 XUI_BEGIN_MSG_MAP()
13 XUI_ON_XM_INIT( OnInit )
14 XUI_ON_XM_KEYDOWN(OnKeyDown)
15 XUI_ON_XM_NOTIFY_PRESS_EX(OnNotifyPressEx)
16 XUI_END_MSG_MAP()
17
18 BEGIN_CONTROL_MAP()
19 MAP_CONTROL(IDC_GameOptions, m_GameOptionsGroup)
20 BEGIN_MAP_CHILD_CONTROLS(m_GameOptionsGroup)
21 MAP_CONTROL(IDC_CheckboxFireSpreads, m_CheckboxFireSpreads)
22 MAP_CONTROL(IDC_CheckboxTNT, m_CheckboxTNTExplodes)
23 MAP_CONTROL(IDC_ButtonTeleportToPlayer, m_buttonTeleportToPlayer)
24 MAP_CONTROL(IDC_ButtonTeleportPlayerToMe, m_buttonTeleportToMe)
25 END_MAP_CHILD_CONTROLS()
26 END_CONTROL_MAP()
27
28
29 HRESULT OnInit( XUIMessageInit* pInitData, BOOL& bHandled );
30 HRESULT OnKeyDown(XUIMessageInput* pInputData, BOOL& rfHandled);
31 HRESULT OnNotifyPressEx(HXUIOBJ hObjPressed, XUINotifyPress* pNotifyPressData, BOOL& rfHandled);
32
33public:
34
35 // Define the class. The class name must match the ClassOverride property
36 // set for the scene in the UI Authoring tool.
37 XUI_IMPLEMENT_CLASS( CScene_InGameHostOptions, L"CScene_InGameHostOptions", XUI_CLASS_SCENE )
38
39private:
40 int m_iPad;
41 D3DXVECTOR3 m_OriginalPosition;
42 HXUIOBJ m_focusElement; // Only used for the remove control process
43
44 void removeControl(HXUIOBJ hObjToRemove, bool center);
45};