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#include "..\..\Common\GameRules\ConsoleSchematicFile.h"
5
6class UIScene_DebugCreateSchematic : public UIScene
7{
8private:
9 enum eControls
10 {
11 eControl_Name,
12 eControl_StartX,
13 eControl_StartY,
14 eControl_StartZ,
15 eControl_EndX,
16 eControl_EndY,
17 eControl_EndZ,
18 eControl_SaveMobs,
19 eControl_UseCompression,
20 eControl_Create,
21 };
22
23 eControls m_keyboardCallbackControl;
24
25 ConsoleSchematicFile::XboxSchematicInitParam *m_data;
26
27public:
28 UIScene_DebugCreateSchematic(int iPad, void *initData, UILayer *parentLayer);
29
30 virtual EUIScene getSceneType() { return eUIScene_DebugCreateSchematic;}
31
32protected:
33 UIControl_TextInput m_textInputStartX, m_textInputStartY, m_textInputStartZ, m_textInputEndX, m_textInputEndY, m_textInputEndZ, m_textInputName;
34 UIControl_CheckBox m_checkboxSaveMobs, m_checkboxUseCompression;
35 UIControl_Button m_buttonCreate;
36 UIControl_Label m_labelStartX, m_labelStartY, m_labelStartZ, m_labelEndX, m_labelEndY, m_labelEndZ, m_labelTitle;
37 UI_BEGIN_MAP_ELEMENTS_AND_NAMES(UIScene)
38 UI_MAP_ELEMENT( m_textInputStartX, "StartX")
39 UI_MAP_ELEMENT( m_textInputStartY, "StartY")
40 UI_MAP_ELEMENT( m_textInputStartZ, "StartZ")
41 UI_MAP_ELEMENT( m_textInputEndX, "EndX")
42 UI_MAP_ELEMENT( m_textInputEndY, "EndY")
43 UI_MAP_ELEMENT( m_textInputEndZ, "EndZ")
44 UI_MAP_ELEMENT( m_textInputName, "Name")
45
46 UI_MAP_ELEMENT( m_checkboxSaveMobs, "SaveMobs")
47 UI_MAP_ELEMENT( m_checkboxUseCompression, "UseCompression")
48
49 UI_MAP_ELEMENT( m_buttonCreate, "Create")
50
51 UI_MAP_ELEMENT( m_labelStartX, "LabelStartX")
52 UI_MAP_ELEMENT( m_labelStartY, "LabelStartY")
53 UI_MAP_ELEMENT( m_labelStartZ, "LabelStartZ")
54 UI_MAP_ELEMENT( m_labelEndX, "LabelEndX")
55 UI_MAP_ELEMENT( m_labelEndY, "LabelEndY")
56 UI_MAP_ELEMENT( m_labelEndZ, "LabelEndZ")
57 UI_MAP_ELEMENT( m_labelTitle, "LabelTitle")
58 UI_END_MAP_ELEMENTS_AND_NAMES()
59
60 virtual wstring getMoviePath();
61
62public:
63 // INPUT
64 virtual void handleInput(int iPad, int key, bool repeat, bool pressed, bool released, bool &handled);
65
66protected:
67 void handlePress(F64 controlId, F64 childId);
68 virtual void handleCheckboxToggled(F64 controlId, bool selected);
69
70private:
71 static int KeyboardCompleteCallback(LPVOID lpParam,const bool bRes);
72};
73#endif