aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.Client/Common/UI/UIScene_EnchantingMenu.h
diff options
context:
space:
mode:
authordaoge_cmd <3523206925@qq.com>2026-03-01 12:16:08 +0800
committerdaoge_cmd <3523206925@qq.com>2026-03-01 12:16:08 +0800
commitb691c43c44ff180d10e7d4a9afc83b98551ff586 (patch)
tree3e9849222cbc6ba49f2f1fc6e5fe7179632c7390 /Minecraft.Client/Common/UI/UIScene_EnchantingMenu.h
parentdef8cb415354ac390b7e89052a50605285f1aca9 (diff)
Initial commit
Diffstat (limited to 'Minecraft.Client/Common/UI/UIScene_EnchantingMenu.h')
-rw-r--r--Minecraft.Client/Common/UI/UIScene_EnchantingMenu.h54
1 files changed, 54 insertions, 0 deletions
diff --git a/Minecraft.Client/Common/UI/UIScene_EnchantingMenu.h b/Minecraft.Client/Common/UI/UIScene_EnchantingMenu.h
new file mode 100644
index 00000000..89ccd120
--- /dev/null
+++ b/Minecraft.Client/Common/UI/UIScene_EnchantingMenu.h
@@ -0,0 +1,54 @@
+#pragma once
+
+#include "UIScene_AbstractContainerMenu.h"
+#include "IUIScene_EnchantingMenu.h"
+
+class InventoryMenu;
+
+class UIScene_EnchantingMenu : public UIScene_AbstractContainerMenu, public IUIScene_EnchantingMenu
+{
+private:
+ enum EControls
+ {
+ eControl_UNKNOWN,
+ eControl_Button1,
+ eControl_Button2,
+ eControl_Button3,
+ };
+public:
+ UIScene_EnchantingMenu(int iPad, void *initData, UILayer *parentLayer);
+
+ virtual EUIScene getSceneType() { return eUIScene_EnchantingMenu;}
+
+protected:
+ UIControl_SlotList m_slotListIngredient;
+ UIControl_Label m_labelEnchant;
+ UIControl_EnchantmentButton m_enchantButton[3];
+ UIControl_EnchantmentBook m_enchantBook;
+
+ UI_BEGIN_MAP_ELEMENTS_AND_NAMES(UIScene_AbstractContainerMenu)
+ UI_BEGIN_MAP_CHILD_ELEMENTS( m_controlMainPanel )
+ UI_MAP_ELEMENT( m_slotListIngredient, "ingredient")
+ UI_MAP_ELEMENT( m_enchantButton[0], "Button1")
+ UI_MAP_ELEMENT( m_enchantButton[1], "Button2")
+ UI_MAP_ELEMENT( m_enchantButton[2], "Button3")
+ UI_MAP_ELEMENT( m_labelEnchant, "enchantLabel")
+
+ UI_MAP_ELEMENT( m_enchantBook, "iggy_EnchantmentBook")
+ UI_END_MAP_CHILD_ELEMENTS()
+ UI_END_MAP_ELEMENTS_AND_NAMES()
+
+ virtual wstring getMoviePath();
+ virtual void handleReload();
+
+ 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);
+
+ virtual void customDraw(IggyCustomDrawCallbackRegion *region);
+}; \ No newline at end of file