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_container.h"
3#include "XUI_Scene_AbstractContainer.h"
4#include "XUI_CustomMessages.h"
5#include "..\UI\IUIScene_ContainerMenu.h"
6
7//--------------------------------------------------------------------------------------
8// Scene implementation class.
9//--------------------------------------------------------------------------------------
10class CXuiSceneContainer : public CXuiSceneAbstractContainer, public IUIScene_ContainerMenu
11{
12public:
13
14 // Define the class. The class name must match the ClassOverride property
15 // set for the scene in the UI Authoring tool.
16 XUI_IMPLEMENT_CLASS( CXuiSceneContainer, L"CXuiSceneContainer", XUI_CLASS_SCENE )
17
18protected:
19 XUI_BEGIN_MSG_MAP()
20 XUI_ON_XM_INIT( OnInit )
21 XUI_ON_XM_KEYDOWN( OnKeyDown )
22 XUI_ON_XM_DESTROY( OnDestroy )
23 XUI_ON_XM_TIMER( OnTimer ) // Poll stick input on a timer.
24 XUI_ON_XM_SPLITSCREENPLAYER_MESSAGE(OnCustomMessage_Splitscreenplayer)
25 XUI_ON_XM_TRANSITION_START(OnTransitionStart)
26
27 XUI_END_MSG_MAP()
28
29 // Control mapping to objects
30 BEGIN_CONTROL_MAP()
31 // Common to all abstract container scenes
32 MAP_CONTROL(IDC_Group, m_sceneGroup)
33 BEGIN_MAP_CHILD_CONTROLS( m_sceneGroup )
34 MAP_OVERRIDE(IDC_Inventory, m_inventoryControl)
35 MAP_OVERRIDE(IDC_UseRow, m_useRowControl)
36 MAP_OVERRIDE(IDC_Pointer, m_pointerControl)
37 MAP_CONTROL(IDC_InventoryText,m_InventoryText)
38
39 MAP_OVERRIDE(IDC_Container, m_containerControl)
40 MAP_CONTROL(IDC_ChestText,m_ChestText)
41 END_MAP_CHILD_CONTROLS()
42 END_CONTROL_MAP()
43
44 HRESULT OnInit( XUIMessageInit* pInitData, BOOL& bHandled );
45 HRESULT OnDestroy();
46 //HRESULT OnCustomMessage_Splitscreenplayer(bool bJoining, BOOL& bHandled) { return S_OK;}
47
48 virtual void InitDataAssociations(int iPad, AbstractContainerMenu *menu, int startIndex = 0);
49
50private:
51 CXuiCtrlSlotList* m_containerControl;
52 CXuiControl m_sceneGroup;
53 CXuiControl m_ChestText;
54
55 virtual CXuiControl* GetSectionControl( ESceneSection eSection );
56 virtual CXuiCtrlSlotList* GetSectionSlotList( ESceneSection eSection );
57};