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 "UIScene_AbstractContainerMenu.h"
4#include "IUIScene_FurnaceMenu.h"
5
6class InventoryMenu;
7
8class UIScene_FurnaceMenu : public UIScene_AbstractContainerMenu, public IUIScene_FurnaceMenu
9{
10private:
11 shared_ptr<FurnaceTileEntity> m_furnace;
12
13public:
14 UIScene_FurnaceMenu(int iPad, void *initData, UILayer *parentLayer);
15
16 virtual EUIScene getSceneType() { return eUIScene_FurnaceMenu;}
17
18protected:
19 UIControl_SlotList m_slotListFuel, m_slotListIngredient, m_slotListResult;
20 UIControl_Label m_labelFurnace, m_labelIngredient, m_labelFuel;
21 UIControl_Progress m_progressFurnaceFire, m_progressFurnaceArrow;
22
23 UI_BEGIN_MAP_ELEMENTS_AND_NAMES(UIScene_AbstractContainerMenu)
24 UI_BEGIN_MAP_CHILD_ELEMENTS( m_controlMainPanel )
25 UI_MAP_ELEMENT( m_slotListIngredient, "Ingredient")
26 UI_MAP_ELEMENT( m_slotListFuel, "Fuel")
27 UI_MAP_ELEMENT( m_slotListResult, "Result")
28 UI_MAP_ELEMENT( m_labelFurnace, "Furnace_text")
29 UI_MAP_ELEMENT( m_labelIngredient, "Ingredient_Label")
30 UI_MAP_ELEMENT( m_labelFuel, "Fuel_Label")
31
32 UI_MAP_ELEMENT( m_progressFurnaceFire, "FurnaceFire")
33 UI_MAP_ELEMENT( m_progressFurnaceArrow, "FurnaceArrow")
34 UI_END_MAP_CHILD_ELEMENTS()
35 UI_END_MAP_ELEMENTS_AND_NAMES()
36
37 virtual wstring getMoviePath();
38 virtual void handleReload();
39
40 virtual void tick();
41
42 virtual int getSectionColumns(ESceneSection eSection);
43 virtual int getSectionRows(ESceneSection eSection);
44 virtual void GetPositionOfSection( ESceneSection eSection, UIVec2D* pPosition );
45 virtual void GetItemScreenData( ESceneSection eSection, int iItemIndex, UIVec2D* pPosition, UIVec2D* pSize );
46 virtual void handleSectionClick(ESceneSection eSection) {}
47 virtual void setSectionSelectedSlot(ESceneSection eSection, int x, int y);
48
49 virtual UIControl *getSection(ESceneSection eSection);
50};