aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.Client/Common/UI/UIComponent_DebugUIConsole.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/UIComponent_DebugUIConsole.h
parentdef8cb415354ac390b7e89052a50605285f1aca9 (diff)
Initial commit
Diffstat (limited to 'Minecraft.Client/Common/UI/UIComponent_DebugUIConsole.h')
-rw-r--r--Minecraft.Client/Common/UI/UIComponent_DebugUIConsole.h49
1 files changed, 49 insertions, 0 deletions
diff --git a/Minecraft.Client/Common/UI/UIComponent_DebugUIConsole.h b/Minecraft.Client/Common/UI/UIComponent_DebugUIConsole.h
new file mode 100644
index 00000000..177754f5
--- /dev/null
+++ b/Minecraft.Client/Common/UI/UIComponent_DebugUIConsole.h
@@ -0,0 +1,49 @@
+#pragma once
+
+#include "UIScene.h"
+#include "UIControl_Label.h"
+
+class UIComponent_DebugUIConsole : public UIScene
+{
+private:
+ UIControl_Label m_labels[10];
+ UI_BEGIN_MAP_ELEMENTS_AND_NAMES(UIScene)
+ UI_MAP_ELEMENT( m_labels[0], "consoleLine1")
+ UI_MAP_ELEMENT( m_labels[1], "consoleLine2")
+ UI_MAP_ELEMENT( m_labels[2], "consoleLine3")
+ UI_MAP_ELEMENT( m_labels[3], "consoleLine4")
+ UI_MAP_ELEMENT( m_labels[4], "consoleLine5")
+ UI_MAP_ELEMENT( m_labels[5], "consoleLine6")
+ UI_MAP_ELEMENT( m_labels[6], "consoleLine7")
+ UI_MAP_ELEMENT( m_labels[7], "consoleLine8")
+ UI_MAP_ELEMENT( m_labels[8], "consoleLine9")
+ UI_MAP_ELEMENT( m_labels[9], "consoleLine10")
+ UI_END_MAP_ELEMENTS_AND_NAMES()
+
+ deque<string> m_textList;
+
+ bool m_bTextChanged;
+
+public:
+ UIComponent_DebugUIConsole(int iPad, void *initData, UILayer *parentLayer);
+
+ virtual void tick();
+
+protected:
+ // TODO: This should be pure virtual in this class
+ virtual wstring getMoviePath();
+
+public:
+ virtual EUIScene getSceneType() { return eUIComponent_DebugUIConsole;}
+
+ // Returns true if this scene handles input
+ virtual bool stealsFocus() { return false; }
+
+ // Returns true if this scene has focus for the pad passed in
+ virtual bool hasFocus(int iPad) { return false; }
+
+ // 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; }
+
+ void addText(const string &text);
+}; \ No newline at end of file