the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
at main 49 lines 1.8 kB view raw
1#pragma once 2 3#include "UIScene_AbstractContainerMenu.h" 4#include "IUIScene_BrewingMenu.h" 5 6class InventoryMenu; 7 8class UIScene_BrewingStandMenu : public UIScene_AbstractContainerMenu, public IUIScene_BrewingMenu 9{ 10private: 11 shared_ptr<BrewingStandTileEntity> m_brewingStand; 12 13public: 14 UIScene_BrewingStandMenu(int iPad, void *initData, UILayer *parentLayer); 15 16 virtual EUIScene getSceneType() { return eUIScene_BrewingStandMenu;} 17 18protected: 19 UIControl_SlotList m_slotListBottles[3], m_slotListIngredient; 20 UIControl_Label m_labelBrewingStand; 21 UIControl_Progress m_progressBrewingArrow, m_progressBrewingBubbles; 22 23 UI_BEGIN_MAP_ELEMENTS_AND_NAMES(UIScene_AbstractContainerMenu) 24 UI_BEGIN_MAP_CHILD_ELEMENTS( m_controlMainPanel ) 25 UI_MAP_ELEMENT( m_slotListBottles[0], "Bottle1") 26 UI_MAP_ELEMENT( m_slotListBottles[1], "Bottle2") 27 UI_MAP_ELEMENT( m_slotListBottles[2], "Bottle3") 28 UI_MAP_ELEMENT( m_slotListIngredient, "Ingredient") 29 UI_MAP_ELEMENT( m_labelBrewingStand, "BrewingStandText") 30 31 UI_MAP_ELEMENT( m_progressBrewingArrow, "BrewingArrow") 32 UI_MAP_ELEMENT( m_progressBrewingBubbles, "BrewingBubbles") 33 UI_END_MAP_CHILD_ELEMENTS() 34 UI_END_MAP_ELEMENTS_AND_NAMES() 35 36 virtual wstring getMoviePath(); 37 virtual void handleReload(); 38 39 virtual void tick(); 40 41 virtual int getSectionColumns(ESceneSection eSection); 42 virtual int getSectionRows(ESceneSection eSection); 43 virtual void GetPositionOfSection( ESceneSection eSection, UIVec2D* pPosition ); 44 virtual void GetItemScreenData( ESceneSection eSection, int iItemIndex, UIVec2D* pPosition, UIVec2D* pSize ); 45 virtual void handleSectionClick(ESceneSection eSection) {} 46 virtual void setSectionSelectedSlot(ESceneSection eSection, int x, int y); 47 48 virtual UIControl *getSection(ESceneSection eSection); 49};