aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.Client/Common/UI/UIScene_InventoryMenu.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_InventoryMenu.h
parentdef8cb415354ac390b7e89052a50605285f1aca9 (diff)
Initial commit
Diffstat (limited to 'Minecraft.Client/Common/UI/UIScene_InventoryMenu.h')
-rw-r--r--Minecraft.Client/Common/UI/UIScene_InventoryMenu.h51
1 files changed, 51 insertions, 0 deletions
diff --git a/Minecraft.Client/Common/UI/UIScene_InventoryMenu.h b/Minecraft.Client/Common/UI/UIScene_InventoryMenu.h
new file mode 100644
index 00000000..fb8d57a2
--- /dev/null
+++ b/Minecraft.Client/Common/UI/UIScene_InventoryMenu.h
@@ -0,0 +1,51 @@
+#pragma once
+
+#include "UIScene_AbstractContainerMenu.h"
+#include "IUIScene_InventoryMenu.h"
+
+#include "..\..\..\Minecraft.World\MobEffect.h"
+
+class InventoryMenu;
+
+class UIScene_InventoryMenu : public UIScene_AbstractContainerMenu, public IUIScene_InventoryMenu
+{
+ friend class UIControl_MinecraftPlayer;
+private:
+ int m_bEffectTime[MobEffect::NUM_EFFECTS];
+public:
+ UIScene_InventoryMenu(int iPad, void *initData, UILayer *parentLayer);
+
+ virtual EUIScene getSceneType() { return eUIScene_InventoryMenu;}
+
+protected:
+ UIControl_SlotList m_slotListArmor;
+ UIControl_MinecraftPlayer m_playerPreview;
+ IggyName m_funcUpdateEffects, m_funcAddEffect;
+ UI_BEGIN_MAP_ELEMENTS_AND_NAMES(UIScene_AbstractContainerMenu)
+ UI_BEGIN_MAP_CHILD_ELEMENTS( m_controlMainPanel )
+ UI_MAP_ELEMENT( m_slotListArmor, "armorList")
+ UI_MAP_ELEMENT( m_playerPreview, "iggy_player")
+
+ UI_MAP_NAME( m_funcUpdateEffects, L"UpdateEffects")
+ UI_MAP_NAME( m_funcAddEffect, L"AddEffect")
+ 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);
+ virtual void handleTimerComplete(int id);
+
+private:
+ void updateEffectsDisplay();
+}; \ No newline at end of file