the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
at main 72 lines 2.1 kB view raw
1#pragma once 2 3#include "UIScene.h" 4 5class UIScene_SettingsOptionsMenu : public UIScene 6{ 7private: 8 enum EControls 9 { 10 eControl_ViewBob, 11 eControl_ShowHints, 12 eControl_ShowTooltips, 13 eControl_InGameGamertags, 14 eControl_ShowMashUpWorlds, 15 eControl_Autosave, 16 eControl_Languages, 17 eControl_Difficulty 18 }; 19protected: 20 static int m_iDifficultySettingA[4]; 21 static int m_iDifficultyTitleSettingA[4]; 22 23private: 24 UIControl_CheckBox m_checkboxViewBob, m_checkboxShowHints, m_checkboxShowTooltips, m_checkboxInGameGamertags, m_checkboxMashupWorlds; // Checkboxes 25 UIControl_Slider m_sliderAutosave, m_sliderDifficulty; // Sliders 26 UIControl_Label m_labelDifficultyText; //Text 27 UIControl_Button m_buttonLanguageSelect; 28 29 UI_BEGIN_MAP_ELEMENTS_AND_NAMES(UIScene) 30 UI_MAP_ELEMENT( m_checkboxViewBob, "ViewBob") 31 UI_MAP_ELEMENT( m_checkboxShowHints, "ShowHints") 32 UI_MAP_ELEMENT( m_checkboxShowTooltips, "ShowTooltips") 33 UI_MAP_ELEMENT( m_checkboxInGameGamertags, "InGameGamertags") 34 UI_MAP_ELEMENT( m_checkboxMashupWorlds, "ShowMashUpWorlds") 35 UI_MAP_ELEMENT( m_sliderAutosave, "Autosave") 36 UI_MAP_ELEMENT( m_sliderDifficulty, "Difficulty") 37 UI_MAP_ELEMENT( m_labelDifficultyText, "DifficultyText") 38 UI_MAP_ELEMENT( m_buttonLanguageSelect, "Languages") 39 UI_END_MAP_ELEMENTS_AND_NAMES() 40 41 bool m_bNotInGame; 42 bool m_bMashUpWorldsUnhideOption; 43 bool m_bNavigateToLanguageSelector; 44 45public: 46 UIScene_SettingsOptionsMenu(int iPad, void *initData, UILayer *parentLayer); 47 virtual ~UIScene_SettingsOptionsMenu(); 48 49 virtual EUIScene getSceneType() { return eUIScene_SettingsOptionsMenu;} 50 51 virtual void tick(); 52 53 virtual void updateTooltips(); 54 virtual void updateComponents(); 55 56protected: 57 // TODO: This should be pure virtual in this class 58 virtual wstring getMoviePath(); 59 60public: 61 // INPUT 62 virtual void handleInput(int iPad, int key, bool repeat, bool pressed, bool released, bool &handled); 63 virtual void handlePress(F64 controlId, F64 childId); 64 65 virtual void handleReload(); 66 67 virtual void handleSliderMove(F64 sliderId, F64 currentValue); 68 69protected: 70 void setGameSettings(); 71 72};