#pragma once #include "UIScene.h" #include "UIControl_Label.h" #include "UIControl_HTMLLabel.h" class UIScene_SettingsGraphicsMenu : public UIScene { private: static const int TAB_GENERAL_OPTIONS = 0; static const int TAB_QUALITY_OPTIONS = 1; enum EControls { eLaunchCheckboxes_Count, eControl_Count }; static int m_iGraphicsModeTitleSettingA[4]; UIControl m_qualityOptions, m_generalOptions; UIControl_Label m_labelQualityOptions, m_labelGeneralOptions; IggyName m_funcSetMenuType, m_funcChangeTab; UI_BEGIN_MAP_ELEMENTS_AND_NAMES(UIScene) UI_MAP_ELEMENT( m_labelQualityOptions, "LabelQuality") UI_MAP_ELEMENT( m_labelGeneralOptions, "LabelGeneral") UI_MAP_ELEMENT(m_qualityOptions, "QualityOptions") UI_BEGIN_MAP_CHILD_ELEMENTS(m_qualityOptions) UI_END_MAP_CHILD_ELEMENTS() UI_MAP_ELEMENT( m_generalOptions, "GeneralOptions") UI_BEGIN_MAP_CHILD_ELEMENTS(m_generalOptions) UI_END_MAP_CHILD_ELEMENTS() UI_MAP_NAME( m_funcChangeTab, L"ChangeTab") UI_MAP_NAME( m_funcSetMenuType, L"SetMenuType") UI_END_MAP_ELEMENTS_AND_NAMES() bool m_bNotInGame; int m_tabIndex; public: UIScene_SettingsGraphicsMenu(int iPad, void *initData, UILayer *parentLayer); virtual void updateTooltips(); virtual void updateComponents(); virtual EUIScene getSceneType() { return eUIScene_SettingsGraphicsMenu;} protected: 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); static int LevelToDistance(int dist); static int DistanceToLevel(int dist); private: virtual UIControl* GetMainPanel(); };