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 "UIControl_ButtonList.h"
5
6class UIScene_DebugOverlay : public UIScene
7{
8private:
9 enum eControls
10 {
11 eControl_SetCamera,
12 eControl_ResetTutorial,
13 eControl_Schematic,
14 eControl_Thunder,
15 eControl_Rain,
16 eControl_FOV,
17 eControl_SetDay,
18 eControl_SetNight,
19 eControl_Time,
20 eControl_Mobs,
21 eControl_Enchantments,
22 eControl_Items,
23 };
24
25 vector<int> m_itemIds;
26 vector<eINSTANCEOF> m_mobFactories;
27 vector< pair<int,int> > m_enchantmentIdAndLevels;
28public:
29 UIScene_DebugOverlay(int iPad, void *initData, UILayer *parentLayer);
30
31 virtual EUIScene getSceneType() { return eUIScene_DebugOverlay;}
32
33protected:
34 UIControl_ButtonList m_buttonListItems, m_buttonListMobs, m_buttonListEnchantments;
35 UIControl_Slider m_sliderFov, m_sliderTime;
36 UIControl_Button m_buttonRain, m_buttonThunder, m_buttonSchematic, m_buttonResetTutorial, m_buttonSetCamera, m_buttonSetDay, m_buttonSetNight;
37 UI_BEGIN_MAP_ELEMENTS_AND_NAMES(UIScene)
38 UI_MAP_ELEMENT( m_buttonListItems, "itemsList")
39 UI_MAP_ELEMENT( m_buttonListEnchantments, "enchantmentsList")
40 UI_MAP_ELEMENT( m_buttonListMobs, "mobList")
41 UI_MAP_ELEMENT( m_sliderFov, "fov")
42 UI_MAP_ELEMENT( m_sliderTime, "time")
43 UI_MAP_ELEMENT( m_buttonSetDay, "setDay")
44 UI_MAP_ELEMENT( m_buttonSetNight, "setNight")
45 UI_MAP_ELEMENT( m_buttonRain, "rain")
46 UI_MAP_ELEMENT( m_buttonThunder, "thunder")
47 UI_MAP_ELEMENT( m_buttonSchematic, "schematic")
48 UI_MAP_ELEMENT( m_buttonResetTutorial, "resetTutorial")
49 UI_MAP_ELEMENT( m_buttonSetCamera, "setCamera")
50 UI_END_MAP_ELEMENTS_AND_NAMES()
51
52 virtual wstring getMoviePath();
53
54public:
55 virtual void customDraw(IggyCustomDrawCallbackRegion *region);
56
57public:
58 // INPUT
59 virtual void handleInput(int iPad, int key, bool repeat, bool pressed, bool released, bool &handled);
60
61protected:
62 void handlePress(F64 controlId, F64 childId);
63 virtual void handleSliderMove(F64 sliderId, F64 currentValue);
64};
65#endif