aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.Client/Common/UI/UIScene_DebugSetCamera.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_DebugSetCamera.h
parentdef8cb415354ac390b7e89052a50605285f1aca9 (diff)
Initial commit
Diffstat (limited to 'Minecraft.Client/Common/UI/UIScene_DebugSetCamera.h')
-rw-r--r--Minecraft.Client/Common/UI/UIScene_DebugSetCamera.h69
1 files changed, 69 insertions, 0 deletions
diff --git a/Minecraft.Client/Common/UI/UIScene_DebugSetCamera.h b/Minecraft.Client/Common/UI/UIScene_DebugSetCamera.h
new file mode 100644
index 00000000..38db1258
--- /dev/null
+++ b/Minecraft.Client/Common/UI/UIScene_DebugSetCamera.h
@@ -0,0 +1,69 @@
+#pragma once
+#ifdef _DEBUG_MENUS_ENABLED
+#include "UIScene.h"
+
+class UIScene_DebugSetCamera : public UIScene
+{
+private:
+ enum eControls
+ {
+ eControl_CamX,
+ eControl_CamY,
+ eControl_CamZ,
+ eControl_YRot,
+ eControl_Elevation,
+ eControl_LockPlayer,
+ eControl_Teleport,
+ };
+
+ typedef struct _FreezePlayerParam
+ {
+ int player;
+ bool freeze;
+ } FreezePlayerParam;
+
+ DebugSetCameraPosition *currentPosition;
+ FreezePlayerParam *fpp;
+
+ eControls m_keyboardCallbackControl;
+
+public:
+ UIScene_DebugSetCamera(int iPad, void *initData, UILayer *parentLayer);
+
+ virtual EUIScene getSceneType() { return eUIScene_DebugSetCamera;}
+
+protected:
+ UIControl_TextInput m_textInputX, m_textInputY, m_textInputZ, m_textInputYRot, m_textInputElevation;
+ UIControl_CheckBox m_checkboxLockPlayer;
+ UIControl_Button m_buttonTeleport;
+ UIControl_Label m_labelTitle, m_labelCamX, m_labelCamY, m_labelCamZ, m_labelYRotElev;
+ UI_BEGIN_MAP_ELEMENTS_AND_NAMES(UIScene)
+ UI_MAP_ELEMENT( m_textInputX, "CamX")
+ UI_MAP_ELEMENT( m_textInputY, "CamY")
+ UI_MAP_ELEMENT( m_textInputZ, "CamZ")
+ UI_MAP_ELEMENT( m_textInputYRot, "YRot")
+ UI_MAP_ELEMENT( m_textInputElevation, "Elevation")
+ UI_MAP_ELEMENT( m_checkboxLockPlayer, "LockPlayer")
+ UI_MAP_ELEMENT( m_buttonTeleport, "Teleport")
+
+ UI_MAP_ELEMENT( m_labelTitle, "LabelTitle")
+ UI_MAP_ELEMENT( m_labelCamX, "LabelCamX")
+ UI_MAP_ELEMENT( m_labelCamY, "LabelCamY")
+ UI_MAP_ELEMENT( m_labelCamZ, "LabelCamZ")
+ UI_MAP_ELEMENT( m_labelYRotElev, "LabelYRotElev")
+ 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