mirror of
https://git.neolegacy.dev/neoStudiosLCE/neoLegacy.git
synced 2026-11-21 17:23:56 +01:00
52 lines
1.9 KiB
C++
52 lines
1.9 KiB
C++
#pragma once
|
|
|
|
#include "UIScene_AbstractContainerMenu.h"
|
|
#include "IUIScene_BrewingMenu.h"
|
|
|
|
class InventoryMenu;
|
|
|
|
class UIScene_BrewingStandMenu : public UIScene_AbstractContainerMenu, public IUIScene_BrewingMenu
|
|
{
|
|
private:
|
|
static const int BREWING_STAND_MAX_FUEL = 20;
|
|
shared_ptr<BrewingStandTileEntity> m_brewingStand;
|
|
|
|
public:
|
|
UIScene_BrewingStandMenu(int iPad, void *initData, UILayer *parentLayer);
|
|
|
|
virtual EUIScene getSceneType() { return eUIScene_BrewingStandMenu;}
|
|
|
|
protected:
|
|
UIControl_SlotList m_slotListBottles[3], m_slotListIngredient, m_slotBrewingPlate;
|
|
UIControl_Label m_labelBrewingStand;
|
|
UIControl_Progress m_progressBrewingArrow, m_progressBrewingBubbles, m_progressBrewingPlateBar;
|
|
|
|
UI_BEGIN_MAP_ELEMENTS_AND_NAMES(UIScene_AbstractContainerMenu)
|
|
UI_BEGIN_MAP_CHILD_ELEMENTS( m_controlMainPanel )
|
|
UI_MAP_ELEMENT( m_slotListBottles[0], "Bottle1")
|
|
UI_MAP_ELEMENT( m_slotListBottles[1], "Bottle2")
|
|
UI_MAP_ELEMENT( m_slotListBottles[2], "Bottle3")
|
|
UI_MAP_ELEMENT( m_slotBrewingPlate, "BrewingPlate")
|
|
UI_MAP_ELEMENT( m_slotListIngredient, "Ingredient")
|
|
UI_MAP_ELEMENT( m_labelBrewingStand, "BrewingStandText")
|
|
|
|
UI_MAP_ELEMENT( m_progressBrewingArrow, "BrewingArrow")
|
|
UI_MAP_ELEMENT( m_progressBrewingBubbles, "BrewingBubbles")
|
|
UI_MAP_ELEMENT( m_progressBrewingPlateBar, "BrewingPlateBar")
|
|
UI_END_MAP_CHILD_ELEMENTS()
|
|
UI_END_MAP_ELEMENTS_AND_NAMES()
|
|
|
|
virtual wstring getMoviePath();
|
|
virtual void handleReload();
|
|
|
|
virtual void tick();
|
|
|
|
virtual int getSectionColumns(ESceneSection eSection);
|
|
virtual int getSectionRows(ESceneSection eSection);
|
|
virtual void GetPositionOfSection( ESceneSection eSection, UIVec2D* pPosition );
|
|
virtual void GetItemScreenData( ESceneSection eSection, int iItemIndex, UIVec2D* pPosition, UIVec2D* pSize );
|
|
virtual void handleSectionClick(ESceneSection eSection) {}
|
|
virtual void setSectionSelectedSlot(ESceneSection eSection, int x, int y);
|
|
|
|
virtual UIControl *getSection(ESceneSection eSection);
|
|
}; |