144#ifdef PLATFORM_CONSOLE
150 array<string> opt1 = {
"#options_controls_disabled",
"#options_controls_enabled" };
152 array<string> opt3 = {
"#options_video_low",
"#options_video_medium",
"#options_video_high" };
153 array<string> opt4 = {
"#options_video_poor",
"#options_video_low",
"#options_video_medium",
"#options_video_high",
"#options_video_extreme" };
154 array<string> opt41 = {
"#options_video_low",
"#options_video_medium",
"#options_video_high",
"#options_video_extreme" };
155 array<string> opt5 = {
"#options_video_poor",
"#options_video_low",
"#options_video_medium",
"#options_video_high",
"#options_video_extreme",
"#options_video_custom" };
156 array<string> opt6 = {
"#options_controls_disabled",
"#options_video_low",
"#options_video_medium",
"#options_video_high",
"#options_video_extreme" };
157 array<string> opt7 = {
"#options_controls_disabled",
"#options_video_low",
"#options_video_medium",
"#options_video_high" };
159 array<string> opt9 = {
"#options_controls_disabled",
"#options_video_low",
"#options_video_high" };
161 for (
int i = 0;
i < m_ResolutionOption.GetItemsCount();
i++)
164 m_ResolutionOption.GetItemText(
i,
opt_text);
169 m_OverallQualitySelector =
new OptionSelectorMultistate(
m_Root.FindAnyWidget(
"overall_quality_setting_option"), m_OverallQualityOption.GetIndex(),
this,
false,
opt5);
172 m_DisplayModeSelector =
new OptionSelectorMultistate(
m_Root.FindAnyWidget(
"display_mode_setting_option"), m_DisplayModeOption.GetIndex(),
this,
false,
opt2);
173 m_ResolutionSelector =
new OptionSelectorMultistate(
m_Root.FindAnyWidget(
"resolution_setting_option"), m_ResolutionOption.GetIndex(),
this,
false,
opt8);
174 m_BrightnessSelector =
new OptionSelectorSlider(
m_Root.FindAnyWidget(
"brightness_setting_option"), m_BrightnessOption.ReadValue(),
this,
false, m_BrightnessOption.GetMin(), m_BrightnessOption.GetMax());
175 m_VSyncSelector =
new OptionSelectorMultistate(
m_Root.FindAnyWidget(
"vsync_setting_option"), m_VSyncOption.GetIndex(),
this,
false,
opt1);
179 m_ObjectDetailSelector =
new OptionSelectorMultistate(
m_Root.FindAnyWidget(
"object_detail_setting_option"), m_ObjectDetailOption.GetIndex(),
this,
false,
opt4);
180 m_TerrainDetailSelector =
new OptionSelectorMultistate(
m_Root.FindAnyWidget(
"terrain_detail_setting_option"), m_TerrainDetailOption.GetIndex(),
this,
false,
opt4);
181 m_TextureDetailSelector =
new OptionSelectorMultistate(
m_Root.FindAnyWidget(
"texture_detail_setting_option"), m_TextureDetailOption.GetIndex(),
this,
false,
opt4);
182 m_ShadowDetailSelector =
new OptionSelectorMultistate(
m_Root.FindAnyWidget(
"shadow_detail_setting_option"), m_ShadowDetailOption.GetIndex(),
this,
false,
opt4);
185 m_TextureFilteringSelector =
new OptionSelectorMultistate(
m_Root.FindAnyWidget(
"texture_filtering_setting_option"), m_TextureFilteringOption.GetIndex(),
this,
false,
opt3);
186 m_TerrainSurfaceDetailSelector =
new OptionSelectorMultistate(
m_Root.FindAnyWidget(
"terrain_surface_detail_setting_option"), m_TerrainSurfaceDetailOption.GetIndex(),
this,
false,
opt41);
188 m_PPAASelector =
new OptionSelectorMultistate(
m_Root.FindAnyWidget(
"ppaa_setting_option"), m_PPAAOption.GetIndex(),
this,
false,
opt6);
189 m_HWAASelector =
new OptionSelectorMultistate(
m_Root.FindAnyWidget(
"hwaa_setting_option"), m_HWAAOption.GetIndex(),
this,
false,
opt7);
190 m_ATOCSelector =
new OptionSelectorMultistate(
m_Root.FindAnyWidget(
"atoc_setting_option"), m_ATOCOption.GetIndex(),
this,
false,
opt1);
191 m_AOSelector =
new OptionSelectorMultistate(
m_Root.FindAnyWidget(
"ao_setting_option"), m_AOOption.GetIndex(),
this,
false,
opt6);
192 m_PPQualitySelector =
new OptionSelectorMultistate(
m_Root.FindAnyWidget(
"pp_setting_option"), m_PPQualityOption.GetIndex(),
this,
false,
opt3);
193 m_SSRQualitySelector =
new OptionSelectorMultistate(
m_Root.FindAnyWidget(
"ssr_setting_option"), m_SSRQualityOption.GetIndex(),
this,
false,
opt9);
196#ifdef PLATFORM_CONSOLE
202 m_OverallQualitySelector.m_OptionChanged.Insert(OnOverallQualityChanged);
205 m_DisplayModeSelector.m_OptionChanged.Insert(OnDisplayModeChanged);
206 m_ResolutionSelector.m_OptionChanged.Insert(OnResolutionChanged);
207 m_BrightnessSelector.m_OptionChanged.Insert(OnBrightnessChanged);
208 m_VSyncSelector.m_OptionChanged.Insert(OnVSyncChanged);
212 m_ObjectDetailSelector.m_OptionChanged.Insert(OnObjectDetailChanged);
213 m_TerrainDetailSelector.m_OptionChanged.Insert(OnTerrainDetailChanged);
214 m_TextureDetailSelector.m_OptionChanged.Insert(OnTextureDetailChanged);
215 m_ShadowDetailSelector.m_OptionChanged.Insert(OnShadowDetailChanged);
218 m_TextureFilteringSelector.m_OptionChanged.Insert(OnTextureFilteringChanged);
219 m_TerrainSurfaceDetailSelector.m_OptionChanged.Insert(OnTerrainSurfaceDetailChanged);
220 m_PPAASelector.m_OptionChanged.Insert(OnPPAAChanged);
221 m_HWAASelector.m_OptionChanged.Insert(OnHWAAChanged);
222 m_ATOCSelector.m_OptionChanged.Insert(OnATOCChanged);
223 m_AOSelector.m_OptionChanged.Insert(OnAOChanged);
224 m_PPQualitySelector.m_OptionChanged.Insert(OnPPQualityChanged);
225 m_SSRQualitySelector.m_OptionChanged.Insert(OnSSRQualityChanged);
347#ifdef PLATFORM_CONSOLE
353 m_ObjectDetailSelector.SetValue(m_ObjectDetailOption.GetIndex(),
false);
354 m_TerrainDetailSelector.SetValue(m_TerrainDetailOption.GetIndex(),
false);
355 m_TextureDetailSelector.SetValue(m_TextureDetailOption.GetIndex(),
false);
356 m_ShadowDetailSelector.SetValue(m_ShadowDetailOption.GetIndex(),
false);
359 m_TextureFilteringSelector.SetValue(m_TextureFilteringOption.GetIndex(),
false);
360 m_TerrainSurfaceDetailSelector.SetValue(m_TerrainSurfaceDetailOption.GetIndex(),
false);
361 m_PPAASelector.SetValue(m_PPAAOption.GetIndex(),
false);
362 m_HWAASelector.SetValue(m_HWAAOption.GetIndex(),
false);
363 if (m_HWAAOption.GetIndex() == 0)
364 m_ATOCSelector.Disable();
366 m_ATOCSelector.Enable();
367 m_ATOCSelector.SetValue(m_ATOCOption.GetIndex(),
false);
368 m_AOSelector.SetValue(m_AOOption.GetIndex(),
false);
369 m_PPQualitySelector.SetValue(m_PPQualityOption.GetIndex(),
false);
370 m_SSRQualitySelector.SetValue(m_SSRQualityOption.GetIndex(),
false);