the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
1#pragma once
2#ifdef _DEBUG_MENUS_ENABLED
3#include "UIScene.h"
4
5class UIScene_DebugSetCamera : public UIScene
6{
7private:
8 enum eControls
9 {
10 eControl_CamX,
11 eControl_CamY,
12 eControl_CamZ,
13 eControl_YRot,
14 eControl_Elevation,
15 eControl_LockPlayer,
16 eControl_Teleport,
17 };
18
19 typedef struct _FreezePlayerParam
20 {
21 int player;
22 bool freeze;
23 } FreezePlayerParam;
24
25 DebugSetCameraPosition *currentPosition;
26 FreezePlayerParam *fpp;
27
28 eControls m_keyboardCallbackControl;
29
30public:
31 UIScene_DebugSetCamera(int iPad, void *initData, UILayer *parentLayer);
32
33 virtual EUIScene getSceneType() { return eUIScene_DebugSetCamera;}
34
35protected:
36 UIControl_TextInput m_textInputX, m_textInputY, m_textInputZ, m_textInputYRot, m_textInputElevation;
37 UIControl_CheckBox m_checkboxLockPlayer;
38 UIControl_Button m_buttonTeleport;
39 UIControl_Label m_labelTitle, m_labelCamX, m_labelCamY, m_labelCamZ, m_labelYRotElev;
40 UI_BEGIN_MAP_ELEMENTS_AND_NAMES(UIScene)
41 UI_MAP_ELEMENT( m_textInputX, "CamX")
42 UI_MAP_ELEMENT( m_textInputY, "CamY")
43 UI_MAP_ELEMENT( m_textInputZ, "CamZ")
44 UI_MAP_ELEMENT( m_textInputYRot, "YRot")
45 UI_MAP_ELEMENT( m_textInputElevation, "Elevation")
46 UI_MAP_ELEMENT( m_checkboxLockPlayer, "LockPlayer")
47 UI_MAP_ELEMENT( m_buttonTeleport, "Teleport")
48
49 UI_MAP_ELEMENT( m_labelTitle, "LabelTitle")
50 UI_MAP_ELEMENT( m_labelCamX, "LabelCamX")
51 UI_MAP_ELEMENT( m_labelCamY, "LabelCamY")
52 UI_MAP_ELEMENT( m_labelCamZ, "LabelCamZ")
53 UI_MAP_ELEMENT( m_labelYRotElev, "LabelYRotElev")
54 UI_END_MAP_ELEMENTS_AND_NAMES()
55
56 virtual wstring getMoviePath();
57
58public:
59 // INPUT
60 virtual void handleInput(int iPad, int key, bool repeat, bool pressed, bool released, bool &handled);
61
62protected:
63 void handlePress(F64 controlId, F64 childId);
64 virtual void handleCheckboxToggled(F64 controlId, bool selected);
65
66private:
67 static int KeyboardCompleteCallback(LPVOID lpParam,const bool bRes);
68};
69#endif