aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.Client/Common/UI/UIScene_DebugCreateSchematic.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_DebugCreateSchematic.h
parentdef8cb415354ac390b7e89052a50605285f1aca9 (diff)
Initial commit
Diffstat (limited to 'Minecraft.Client/Common/UI/UIScene_DebugCreateSchematic.h')
-rw-r--r--Minecraft.Client/Common/UI/UIScene_DebugCreateSchematic.h73
1 files changed, 73 insertions, 0 deletions
diff --git a/Minecraft.Client/Common/UI/UIScene_DebugCreateSchematic.h b/Minecraft.Client/Common/UI/UIScene_DebugCreateSchematic.h
new file mode 100644
index 00000000..cbfe785d
--- /dev/null
+++ b/Minecraft.Client/Common/UI/UIScene_DebugCreateSchematic.h
@@ -0,0 +1,73 @@
+#pragma once
+#ifdef _DEBUG_MENUS_ENABLED
+#include "UIScene.h"
+#include "..\..\Common\GameRules\ConsoleSchematicFile.h"
+
+class UIScene_DebugCreateSchematic : public UIScene
+{
+private:
+ enum eControls
+ {
+ eControl_Name,
+ eControl_StartX,
+ eControl_StartY,
+ eControl_StartZ,
+ eControl_EndX,
+ eControl_EndY,
+ eControl_EndZ,
+ eControl_SaveMobs,
+ eControl_UseCompression,
+ eControl_Create,
+ };
+
+ eControls m_keyboardCallbackControl;
+
+ ConsoleSchematicFile::XboxSchematicInitParam *m_data;
+
+public:
+ UIScene_DebugCreateSchematic(int iPad, void *initData, UILayer *parentLayer);
+
+ virtual EUIScene getSceneType() { return eUIScene_DebugCreateSchematic;}
+
+protected:
+ UIControl_TextInput m_textInputStartX, m_textInputStartY, m_textInputStartZ, m_textInputEndX, m_textInputEndY, m_textInputEndZ, m_textInputName;
+ UIControl_CheckBox m_checkboxSaveMobs, m_checkboxUseCompression;
+ UIControl_Button m_buttonCreate;
+ UIControl_Label m_labelStartX, m_labelStartY, m_labelStartZ, m_labelEndX, m_labelEndY, m_labelEndZ, m_labelTitle;
+ UI_BEGIN_MAP_ELEMENTS_AND_NAMES(UIScene)
+ UI_MAP_ELEMENT( m_textInputStartX, "StartX")
+ UI_MAP_ELEMENT( m_textInputStartY, "StartY")
+ UI_MAP_ELEMENT( m_textInputStartZ, "StartZ")
+ UI_MAP_ELEMENT( m_textInputEndX, "EndX")
+ UI_MAP_ELEMENT( m_textInputEndY, "EndY")
+ UI_MAP_ELEMENT( m_textInputEndZ, "EndZ")
+ UI_MAP_ELEMENT( m_textInputName, "Name")
+
+ UI_MAP_ELEMENT( m_checkboxSaveMobs, "SaveMobs")
+ UI_MAP_ELEMENT( m_checkboxUseCompression, "UseCompression")
+
+ UI_MAP_ELEMENT( m_buttonCreate, "Create")
+
+ UI_MAP_ELEMENT( m_labelStartX, "LabelStartX")
+ UI_MAP_ELEMENT( m_labelStartY, "LabelStartY")
+ UI_MAP_ELEMENT( m_labelStartZ, "LabelStartZ")
+ UI_MAP_ELEMENT( m_labelEndX, "LabelEndX")
+ UI_MAP_ELEMENT( m_labelEndY, "LabelEndY")
+ UI_MAP_ELEMENT( m_labelEndZ, "LabelEndZ")
+ UI_MAP_ELEMENT( m_labelTitle, "LabelTitle")
+ UI_END_MAP_ELEMENTS_AND_NAMES()
+
+ virtual wstring getMoviePath();
+
+public:
+ // INPUT
+ virtual void handleInput(int iPad, int key, bool repeat, bool pressed, bool released, bool &handled);
+
+protected:
+ void handlePress(F64 controlId, F64 childId);
+ virtual void handleCheckboxToggled(F64 controlId, bool selected);
+
+private:
+ static int KeyboardCompleteCallback(LPVOID lpParam,const bool bRes);
+};
+#endif \ No newline at end of file