19 #ifdef PLATFORM_CONSOLE
40 protected OptionsMenu
m_Menu;
64 m_Root.FindAnyWidget(
"hud_brightness_setting_option").SetUserID(
OptionIDsScript.OPTION_HUD_BRIGHTNESS);
70 m_Root.FindAnyWidget(
"bleeding_indication_setting_option").SetUserID(
OptionIDsScript.OPTION_BLEEDINGINDICATION);
71 m_Root.FindAnyWidget(
"connectivity_setting_option").SetUserID(
OptionIDsScript.OPTION_CONNECTIVITY_INFO);
74 #ifdef PLATFORM_CONSOLE
84 array<string> opt = {
"#options_controls_disabled",
"#options_controls_enabled" };
85 array<string> opt2 = {
"#options_controls_enabled",
"#options_controls_disabled" };
94 array<string> opt4 = {
"#options_pc_nopause_0",
"#options_pc_nopause_1",
"#options_pc_nopause_2" };
122 #ifdef PLATFORM_CONSOLE
135 m_Root.FindAnyWidget(
"game_settings_scroll").GetScreenSize(
x,
y);
136 m_Root.FindAnyWidget(
"game_settings_root").GetScreenSize(
x, y2);
138 m_Root.FindAnyWidget(
"game_settings_scroll").SetAlpha(f);
159 #ifdef PLATFORM_CONSOLE
160 return "gui/layouts/new_ui/options/xbox/game_tab.layout";
162 return "gui/layouts/new_ui/options/pc/game_tab.layout";
168 #ifdef PLATFORM_CONSOLE
184 #ifdef PLATFORM_CONSOLE
195 MissionGameplay
mission = MissionGameplay.Cast(
g_Game.GetMission());
205 #ifndef PLATFORM_CONSOLE
212 #ifndef PLATFORM_CONSOLE
215 hud.ShowQuickBar(
g_Game.GetInput().IsEnabledMouseAndKeyboardEvenOnServer());
232 if (bleedingIndicationOld != bleedingIndicationNew)
238 if (connectivityOld != connectivityNew)
240 mission.GetConnectivityInvoker().Invoke(connectivityNew);
244 #ifndef PLATFORM_CONSOLE
295 #ifdef PLATFORM_CONSOLE
312 g_Game.ResetProfileOptions();
346 #ifdef PLATFORM_CONSOLE
389 #ifdef PLATFORM_CONSOLE
402 #ifdef PLATFORM_CONSOLE
424 g_Game.SetUserFOV(new_value);
430 g_Game.SetHudBrightness(newValue);
489 IngameHud hud = IngameHud.Cast(
mission.GetHud());
495#ifdef PLATFORM_CONSOLE
496 void UpdateBrightnessOption(
float value)
498 m_BrightnessOption.WriteValue(value);
505 if (w && w.IsInherited(ScrollWidget))
510 if (w && w.IsInherited(SliderWidget))
522 if (w && w.IsInherited(ScrollWidget))
545 if (w.IsInherited(SliderWidget))
556 MissionGameplay
mission = MissionGameplay.Cast(
g_Game.GetMission());
559 Param1<bool> par =
new Param1<bool>(state);
560 mission.GetEffectWidgets().UpdateWidgets(EffectWidgetsTypes.BLEEDING_LAYER,0,par);
566 bool connectivityInfoShown = key ==
OptionIDsScript.OPTION_CONNECTIVITY_INFO;
603 #ifdef PLATFORM_WINDOWS
Super root of all classes in Enforce script.
Base Param Class with no parameters.
Result for an object found in CGame.IsBoxCollidingGeometryProxy.
OptionIDsScript
Used for script-based game options. For anything C++ based, you would most likely use "Option Access ...
OptionAccessType
C++ OptionAccessType.
static proto bool CastTo(out Class to, Class from)
Try to safely down-cast base class to child class.
ServerBrowserMenuNew m_Menu