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_AnvilMenu.h"
5#include "..\Minecraft.World\MerchantMenu.h"
6
7class InventoryMenu;
8
9class UIScene_AnvilMenu : public UIScene_AbstractContainerMenu, public IUIScene_AnvilMenu
10{
11private:
12 bool m_showingCross;
13
14 enum EControls
15 {
16 eControl_TextInput,
17 };
18
19public:
20 UIScene_AnvilMenu(int iPad, void *initData, UILayer *parentLayer);
21
22 virtual EUIScene getSceneType() { return eUIScene_AnvilMenu;}
23
24protected:
25 UIControl_SlotList m_slotListItem1, m_slotListItem2, m_slotListResult;
26 UIControl_Label m_labelAnvil;
27 UIControl_TextInput m_textInputAnvil;
28
29 IggyName m_funcShowRedCross, m_funcSetCostLabel;
30
31 UI_BEGIN_MAP_ELEMENTS_AND_NAMES(UIScene_AbstractContainerMenu)
32 UI_BEGIN_MAP_CHILD_ELEMENTS( m_controlMainPanel )
33 UI_MAP_ELEMENT( m_slotListItem1, "Ingredient")
34 UI_MAP_ELEMENT( m_slotListItem2, "Ingredient2")
35 UI_MAP_ELEMENT( m_slotListResult, "Result")
36 UI_MAP_ELEMENT( m_labelAnvil, "AnvilText")
37 UI_MAP_ELEMENT( m_textInputAnvil, "AnvilTextInput")
38 UI_END_MAP_CHILD_ELEMENTS()
39
40 UI_MAP_NAME(m_funcShowRedCross, L"ShowRedCross")
41 UI_MAP_NAME(m_funcSetCostLabel, L"SetCostLabel")
42 UI_END_MAP_ELEMENTS_AND_NAMES()
43
44 virtual wstring getMoviePath();
45 virtual void handleReload();
46
47 virtual void tick();
48
49 virtual int getSectionColumns(ESceneSection eSection);
50 virtual int getSectionRows(ESceneSection eSection);
51 virtual void GetPositionOfSection( ESceneSection eSection, UIVec2D* pPosition );
52 virtual void GetItemScreenData( ESceneSection eSection, int iItemIndex, UIVec2D* pPosition, UIVec2D* pSize );
53 virtual void handleSectionClick(ESceneSection eSection) {}
54 virtual void setSectionSelectedSlot(ESceneSection eSection, int x, int y);
55
56 virtual UIControl *getSection(ESceneSection eSection);
57
58 static int KeyboardCompleteCallback(LPVOID lpParam,bool bRes);
59 virtual void handleEditNamePressed();
60 virtual void setEditNameValue(const wstring &name);
61 virtual void setEditNameEditable(bool enabled);
62 virtual void handleDestroy();
63
64 void setCostLabel(const wstring &label, bool canAfford);
65 void showCross(bool show);
66};