#pragma once #include "UIScene.h" class UIScene_SettingsMenu : public UIScene { private: enum EControls { eControl_Music, eControl_Sound, eControl_Gamma, eControl_Sensitivity, eControl_Splitscreen, eControl_ViewBob, eControl_VisibleOnMaps, eControl_Difficulty }; protected: static int m_iDifficultySettingA[4]; static int m_iDifficultyTitleSettingA[4]; private: UIControl_CheckBox m_checkboxViewBob, m_checkboxSplitscreen, m_checkboxVisbileOnMaps; // Checkboxes UIControl_Slider m_sliderMusic, m_sliderSound, m_sliderGamma, m_sliderSensitivity, m_sliderDifficulty; // Sliders UIControl_Label m_labelDifficultyText; //Text UI_BEGIN_MAP_ELEMENTS_AND_NAMES(UIScene) UI_MAP_ELEMENT( m_sliderMusic, "Music") UI_MAP_ELEMENT( m_sliderSound, "Sound") UI_MAP_ELEMENT( m_sliderGamma, "Gamma") UI_MAP_ELEMENT( m_sliderSensitivity, "Sensitivity") UI_MAP_ELEMENT( m_checkboxViewBob, "ViewBob") UI_MAP_ELEMENT( m_checkboxSplitscreen, "Splitscreen") UI_MAP_ELEMENT( m_checkboxVisbileOnMaps, "VisibleOnMaps") UI_MAP_ELEMENT( m_sliderDifficulty, "Difficulty") UI_MAP_ELEMENT( m_labelDifficultyText, "DifficultyText") UI_END_MAP_ELEMENTS_AND_NAMES() bool m_bNotInGame; public: UIScene_SettingsMenu(int iPad, void *initData, UILayer *parentLayer); ~UIScene_SettingsMenu(); virtual EUIScene getSceneType() { return eUIScene_SettingsMenu;} virtual void updateTooltips(); virtual void updateComponents(); virtual void handleReload(); protected: // TODO: This should be pure virtual in this class virtual wstring getMoviePath(); public: // INPUT virtual void handleInput(int iPad, int key, bool repeat, bool pressed, bool released, bool &handled); virtual void handleSliderMove(F64 sliderId, F64 currentValue); };