aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.Client/Common/UI/UIScene_BrewingStandMenu.h
blob: 5441a1acb412ae14b6710821f718f820f4ee973a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#pragma once

#include "UIScene_AbstractContainerMenu.h"
#include "IUIScene_BrewingMenu.h"

class InventoryMenu;

class UIScene_BrewingStandMenu : public UIScene_AbstractContainerMenu, public IUIScene_BrewingMenu
{
private:
	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;
	UIControl_Label m_labelBrewingStand;
	UIControl_Progress m_progressBrewingArrow, m_progressBrewingBubbles;

	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_slotListIngredient, "Ingredient")
			UI_MAP_ELEMENT( m_labelBrewingStand, "BrewingStandText")

			UI_MAP_ELEMENT( m_progressBrewingArrow, "BrewingArrow")
			UI_MAP_ELEMENT( m_progressBrewingBubbles, "BrewingBubbles")
		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);
};