Skip to content

OptionsPanel

Graydon edited this page Mar 21, 2017 · 8 revisions

public class OptionsPanel

Base Class: MenuPanel

Fields

public AudioClip m_VolumeChangedSound
public GameObject m_KeyMappingTemplate
public GameObject m_SeparatorTemplate
private List<float> m_SupportedAspectRatios
private List<Resolution> m_SupportedResolutions
private List<string> m_SupportedResolutionNames
private UIDropDown m_ResolutionDropdown
private UIDropDown m_AspectRatioDropdown
private UIDropDown m_FullscreenDropdown
private UIDropDown m_LanguagesDropdown
private UIDropDown m_ColorCorrectionDropdown
private bool m_EnableAudio
private SavedInt m_ScreenWidth
private SavedInt m_ScreenHeight
private SavedBool m_Fullscreen
private SavedBool m_EdgeScrolling
private SavedBool m_TutorialMessages
private SavedBool m_AutoExpandChirper
private SavedFloat m_EdgeScrollSensitivity
private SavedFloat m_MouseSensitivity
private SavedFloat m_MainAudioVolume
private SavedFloat m_MusicAudioVolume
private SavedFloat m_AmbientAudioVolume
private SavedFloat m_EffectAudioVolume
private SavedFloat m_UiAudioVolume
private SavedFloat m_ChirperAudioVolume
private SavedFloat m_TiltShiftAmount
private SavedFloat m_FilmGrainAmount
private int m_CachedScreenWidth
private int m_CachedScreenHeight
private bool m_CachedFullscreen
private UIScrollablePanel m_SharedInputContainer
private UIScrollablePanel m_GameInputContainer
private UIScrollablePanel m_MapEditorInputContainer
private UIScrollablePanel m_DecorationInputContainer
private SavedString m_LocaleID
private SavedInt m_ShadowsQuality
private SavedInt m_ShadowsDistance
private SavedInt m_TexturesQuality
private SavedInt m_Antialiasing
private SavedInt m_AnisotropicFiltering
private SavedInt m_LevelOfDetail
private UIDropDown m_ShadowsQualityDropdown
private UIDropDown m_TexturesQualityDropdown
private UIDropDown m_TexturesAnisotropicDropdown
private UIDropDown m_AntialiasingDropdown
private UIDropDown m_ShadowsDistanceDropdown
private UIDropDown m_LevelOfDetailDropdown
private SavedInputKey m_EditingBinding
private string m_EditingBindingCategory
private static string kResolutionWidth
private static string kResolutionHeight
private static string kIsFullScreen
private static float[] kAvailableAspectRatios
private static string[] kAvailableAspectRatioNames
private static bool[] kAvailableDisplayModes
private static string[] kAvailableDisplayModeNames
private static float RESOLUTION_TRESHOLD

Properties

public bool edgeScrolling { get; set; }
public bool tutorialMessages { get; set; }
public bool autoExpandChirper { get; set; }
public float mouseSensitivity { get; set; }
public float edgeScrollSensitivity { get; set; }
public float mainAudioVolume { get; set; }
public float effectAudioVolume { get; set; }
public float uiAudioVolume { get; set; }
public float chirperAudioVolume { get; set; }
public float ambientAudioVolume { get; set; }
public float tiltShiftAmount { get; set; }
public float filmGrainAmount { get; set; }
public float musicAudioVolume { get; set; }

Constructors

static OptionsPanel()

Methods

protected void Awake()
private void OnPdxAccountChange()
private void OnLocaleChanged()
private void OnEnable()
private void OnDisable()
private void OnLevelLoaded(UpdateMode mode)
private void OnLevelUnloaded()
private void UpdateTextureQuality()
private void UpdateShadowsQuality()
private void UpdateTextureAniso()
private void UpdateLevelOfDetail()
private void InitializeQualityOptions()
private void RefreshQualityOptions()
private InputKey GetDefaultEntry(string entryName)
private bool IsModifierKey(KeyCode code)
private bool IsAlreadyBound(SavedInputKey target, InputKey inputKey, string category, out List<SavedInputKey> currentAssigned)
private void OnBindingKeyDown(UIComponent comp, UIKeyEventParameter p)
private KeyCode ButtonToKeycode(UIMouseButton button)
private void OnBindingMouseDown(UIComponent comp, UIMouseEventParameter p)
private void CreateBindableInputs(UIScrollablePanel panel, string category)
private void RefreshBindableInputs(UIScrollablePanel panel)
private void CacheScreenResolution()
private void OnVisibilityChanged(UIComponent comp, bool visible)
private void Update()
private void RefreshKeyMapping(UIScrollablePanel panel)
private void OnScreenResolutionChanged()
private int FindCurrentAspectRatio()
private int FindCurrentResolution()
private bool MatchAspectRatio(int width, int height, float aspect)
private void InitAspectRatios()
private void InitResolutions()
private void InitDisplayModes()
private void OnChangedLanguage(UIComponent comp, int sel)
private void OnChangedColorCorrection(UIComponent comp, int sel)
private void OnChangeAspectRatio(UIComponent comp, int sel)
public void OnClearMonumentUnlock()
public void OnClearConfiguration()
public void OnLogout()
public void OnApplyGraphics()
private void SetSavedResolutionSettings(int width, int height, bool fullscreen)
public void OnKeyDown(UIComponent comp, UIKeyEventParameter p)
protected void Initialize()
private void RefreshColorCorrectionLUTs()

Clone this wiki locally