mirror of
https://github.com/GabsPuNs/Project-Zenith-Main.git
synced 2026-05-22 02:35:26 +00:00
75 lines
2.0 KiB
C++
75 lines
2.0 KiB
C++
#pragma once
|
|
|
|
#include "UIScene.h"
|
|
#include "UIControl_Label.h"
|
|
#include "UIControl_HTMLLabel.h"
|
|
#include "UIControl_MultiList.h"
|
|
|
|
class UIScene_SettingsGraphicsMenu : public UIScene
|
|
{
|
|
private:
|
|
static const int TAB_GENERAL_OPTIONS = 0;
|
|
static const int TAB_QUALITY_OPTIONS = 1;
|
|
|
|
enum EControls
|
|
{
|
|
eControl_Clouds,
|
|
eControl_BedrockFog,
|
|
eControl_CustomSkinAnim,
|
|
eControl_Gamma,
|
|
eControl_FOV,
|
|
eControl_InterfaceOpacity,
|
|
eControl_RenderDistance,
|
|
eControl_GraphicsMode,
|
|
eControl_Count
|
|
};
|
|
|
|
static int m_iGraphicsModeTitleSettingA[4];
|
|
|
|
UIControl m_qualityOptions, m_generalOptions;
|
|
UIControl_MultiList m_qualityOptionsList, m_generalOptionsList;
|
|
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_MAP_ELEMENT(m_qualityOptionsList, "QualityOptionsList")
|
|
UI_END_MAP_CHILD_ELEMENTS()
|
|
|
|
UI_MAP_ELEMENT( m_generalOptions, "GeneralOptions")
|
|
UI_BEGIN_MAP_CHILD_ELEMENTS(m_generalOptions)
|
|
UI_MAP_ELEMENT(m_generalOptionsList, "GeneralOptionsList")
|
|
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();
|
|
}; |