aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.Client/Common/UI/UIScene_MessageBox.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_MessageBox.h
parentdef8cb415354ac390b7e89052a50605285f1aca9 (diff)
Initial commit
Diffstat (limited to 'Minecraft.Client/Common/UI/UIScene_MessageBox.h')
-rw-r--r--Minecraft.Client/Common/UI/UIScene_MessageBox.h59
1 files changed, 59 insertions, 0 deletions
diff --git a/Minecraft.Client/Common/UI/UIScene_MessageBox.h b/Minecraft.Client/Common/UI/UIScene_MessageBox.h
new file mode 100644
index 00000000..3c349dea
--- /dev/null
+++ b/Minecraft.Client/Common/UI/UIScene_MessageBox.h
@@ -0,0 +1,59 @@
+#pragma once
+
+#include "UIScene.h"
+
+class UIScene_MessageBox : public UIScene
+{
+private:
+ enum EControls
+ {
+ eControl_Button0,
+ eControl_Button1,
+ eControl_Button2,
+ eControl_Button3,
+
+ eControl_COUNT
+ };
+
+ int( *m_Func)(LPVOID,int,const C4JStorage::EMessageResult);
+ LPVOID m_lpParam;
+ int m_buttonCount;
+
+ UIControl_Button m_buttonButtons[eControl_COUNT];
+ UIControl_Label m_labelTitle, m_labelContent;
+ IggyName m_funcInit, m_funcAutoResize;
+ UI_BEGIN_MAP_ELEMENTS_AND_NAMES(UIScene)
+ UI_MAP_ELEMENT( m_buttonButtons[eControl_Button0], "Button0")
+ UI_MAP_ELEMENT( m_buttonButtons[eControl_Button1], "Button1")
+ UI_MAP_ELEMENT( m_buttonButtons[eControl_Button2], "Button2")
+ UI_MAP_ELEMENT( m_buttonButtons[eControl_Button3], "Button3")
+
+ UI_MAP_ELEMENT( m_labelTitle, "Title")
+ UI_MAP_ELEMENT( m_labelContent, "Content")
+
+ UI_MAP_NAME( m_funcInit, L"Init")
+ UI_MAP_NAME( m_funcAutoResize, L"AutoResize")
+ UI_END_MAP_ELEMENTS_AND_NAMES()
+public:
+ UIScene_MessageBox(int iPad, void *initData, UILayer *parentLayer);
+ ~UIScene_MessageBox();
+
+ virtual EUIScene getSceneType() { return eUIScene_MessageBox;}
+
+ // Returns true if lower scenes in this scenes layer, or in any layer below this scenes layers should be hidden
+ virtual bool hidesLowerScenes() { return false; }
+
+protected:
+ // TODO: This should be pure virtual in this class
+ virtual wstring getMoviePath();
+
+ virtual void updateTooltips();
+
+public:
+ virtual void handleReload();
+ virtual void handleInput(int iPad, int key, bool repeat, bool pressed, bool released, bool &handled);
+ virtual bool hasFocus(int iPad);
+
+protected:
+ void handlePress(F64 controlId, F64 childId);
+}; \ No newline at end of file