the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
at main 54 lines 2.0 kB view raw
1#pragma once 2 3#include "UIScene.h" 4 5class UIScene_InGameHostOptionsMenu : public UIScene 6{ 7private: 8 enum EControls 9 { 10 eControl_FireSpreads, 11 eControl_TNT, 12 eControl_MobGriefing, 13 eControl_KeepInventory, 14 eControl_DoMobSpawning, 15 eControl_DoMobLoot, 16 eControl_DoTileDrops, 17 eControl_NaturalRegeneration, 18 eControl_DoDaylightCycle, 19 eControl_TeleportToPlayer, 20 eControl_TeleportToMe, 21 }; 22 23 UIControl_CheckBox m_checkboxFireSpreads, m_checkboxTNT, m_checkboxMobGriefing, m_checkboxKeepInventory, m_checkboxDoMobSpawning, m_checkboxDoMobLoot, m_checkboxDoTileDrops, m_checkboxNaturalRegeneration, m_checkboxDoDaylightCycle; 24 UIControl_Button m_buttonTeleportToPlayer, m_buttonTeleportToMe; 25 UI_BEGIN_MAP_ELEMENTS_AND_NAMES(UIScene) 26 UI_MAP_ELEMENT( m_checkboxFireSpreads, "CheckboxFireSpreads") 27 UI_MAP_ELEMENT( m_checkboxTNT, "CheckboxTNT") 28 UI_MAP_ELEMENT( m_checkboxMobGriefing, "CheckboxMobGriefing") 29 UI_MAP_ELEMENT( m_checkboxKeepInventory, "CheckboxKeepInventory") 30 UI_MAP_ELEMENT( m_checkboxDoMobSpawning, "CheckboxMobSpawning") 31 UI_MAP_ELEMENT( m_checkboxDoMobLoot, "CheckboxMobLoot") 32 UI_MAP_ELEMENT( m_checkboxDoTileDrops, "CheckboxTileDrops") 33 UI_MAP_ELEMENT( m_checkboxNaturalRegeneration, "CheckboxNaturalRegeneration") 34 UI_MAP_ELEMENT( m_checkboxDoDaylightCycle, "CheckboxDayLightCycle") 35 UI_MAP_ELEMENT( m_buttonTeleportToPlayer, "TeleportToPlayer") 36 UI_MAP_ELEMENT( m_buttonTeleportToMe, "TeleportPlayerToMe") 37 UI_END_MAP_ELEMENTS_AND_NAMES() 38public: 39 UIScene_InGameHostOptionsMenu(int iPad, void *initData, UILayer *parentLayer); 40 41 virtual EUIScene getSceneType() { return eUIScene_InGameHostOptionsMenu;} 42 virtual void updateTooltips(); 43 44 virtual void handleReload(); 45 46protected: 47 // TODO: This should be pure virtual in this class 48 virtual wstring getMoviePath(); 49 50public: 51 // INPUT 52 virtual void handleInput(int iPad, int key, bool repeat, bool pressed, bool released, bool &handled); 53 virtual void handlePress(F64 controlId, F64 childId); 54};