the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
1#pragma once
2using namespace std;
3#include "..\Media\xuiscene_brewingstand.h"
4#include "XUI_Scene_AbstractContainer.h"
5#include "..\UI\IUIScene_BrewingMenu.h"
6
7class CXuiCtrlSlotList;
8class CXuiCtrlBrewProgress;
9class CXuiCtrlBubblesProgress;
10
11//--------------------------------------------------------------------------------------
12// Scene implementation class.
13//--------------------------------------------------------------------------------------
14class CXuiSceneBrewingStand : public CXuiSceneAbstractContainer, public IUIScene_BrewingMenu
15{
16public:
17
18 // Define the class. The class name must match the ClassOverride property
19 // set for the scene in the UI Authoring tool.
20 XUI_IMPLEMENT_CLASS( CXuiSceneBrewingStand, L"CXuiSceneBrewingStand", XUI_CLASS_SCENE )
21
22protected:
23 XUI_BEGIN_MSG_MAP()
24 XUI_ON_XM_INIT( OnInit )
25 XUI_ON_XM_KEYDOWN( OnKeyDown )
26 XUI_ON_XM_DESTROY( OnDestroy )
27 XUI_ON_XM_TIMER( OnTimer ) // Poll stick input on a timer.
28 XUI_ON_XM_TRANSITION_START(OnTransitionStart)
29
30 XUI_ON_XM_SPLITSCREENPLAYER_MESSAGE(OnCustomMessage_Splitscreenplayer)
31
32 XUI_END_MSG_MAP()
33
34 // Control mapping to objects
35 BEGIN_CONTROL_MAP()
36 MAP_CONTROL(IDC_Group, m_sceneGroup)
37 BEGIN_MAP_CHILD_CONTROLS( m_sceneGroup )
38 // Common to all abstract container scenes
39 MAP_OVERRIDE(IDC_Inventory, m_inventoryControl)
40 MAP_OVERRIDE(IDC_UseRow, m_useRowControl)
41 MAP_OVERRIDE(IDC_Pointer, m_pointerControl)
42 MAP_CONTROL(IDC_InventoryText,m_InventoryText)
43
44 MAP_OVERRIDE(IDC_Ingredient, m_ingredientControl)
45 MAP_OVERRIDE(IDC_Bottle1, m_bottle1Control)
46 MAP_OVERRIDE(IDC_Bottle2, m_bottle2Control)
47 MAP_OVERRIDE(IDC_Bottle3, m_bottle3Control)
48
49 MAP_OVERRIDE(IDC_Progress, m_progressControl)
50 MAP_OVERRIDE(IDC_Bubbles, m_bubbleProgress)
51 MAP_CONTROL(IDC_BrewingStandText,m_BrewingStandText)
52 END_MAP_CHILD_CONTROLS()
53 END_CONTROL_MAP()
54
55 HRESULT OnInit( XUIMessageInit* pInitData, BOOL& bHandled );
56 HRESULT OnDestroy();
57// HRESULT OnCustomMessage_Splitscreenplayer(bool bJoining, BOOL& bHandled);
58
59 virtual void InitDataAssociations(int iPad, AbstractContainerMenu *menu, int startIndex = 0);
60
61private:
62 CXuiCtrlSlotList *m_ingredientControl;
63 CXuiCtrlSlotList *m_bottle1Control;
64 CXuiCtrlSlotList *m_bottle2Control;
65 CXuiCtrlSlotList *m_bottle3Control;
66
67 CXuiCtrlBrewProgress *m_progressControl;
68 CXuiCtrlBubblesProgress *m_bubbleProgress;
69 CXuiControl m_BrewingStandText;
70
71 CXuiControl m_sceneGroup;
72
73 virtual CXuiControl* GetSectionControl( ESceneSection eSection );
74 virtual CXuiCtrlSlotList* GetSectionSlotList( ESceneSection eSection );
75};