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(
GetGame().GetMission());
205 #ifndef PLATFORM_CONSOLE
212 #ifndef PLATFORM_CONSOLE
215 hud.ShowQuickBar(
GetGame().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
383 #ifdef PLATFORM_CONSOLE
396 #ifdef PLATFORM_CONSOLE
418 g_Game.SetUserFOV(new_value);
424 g_Game.SetHudBrightness(newValue);
483 IngameHud hud = IngameHud.Cast(
mission.GetHud());
489#ifdef PLATFORM_CONSOLE
490 void UpdateBrightnessOption(
float value)
492 m_BrightnessOption.WriteValue(value);
499 if (w && w.IsInherited(ScrollWidget))
504 if (w && w.IsInherited(SliderWidget))
516 if (w && w.IsInherited(ScrollWidget))
539 if (w.IsInherited(SliderWidget))
550 MissionGameplay
mission = MissionGameplay.Cast(
GetGame().GetMission());
553 Param1<bool> par =
new Param1<bool>(state);
554 mission.GetEffectWidgets().UpdateWidgets(EffectWidgetsTypes.BLEEDING_LAYER,0,par);
560 bool connectivityInfoShown = key ==
OptionIDsScript.OPTION_CONNECTIVITY_INFO;
597 #ifdef PLATFORM_WINDOWS
ServerBrowserMenuNew m_Menu
proto native WorkspaceWidget GetWorkspace()
proto native Mission GetMission()
Super root of all classes in Enforce script.
Base Param Class with no parameters. Used as general purpose parameter overloaded with Param1 to Para...
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 ...
proto native CGame GetGame()
OptionAccessType
C++ OptionAccessType.
static proto bool CastTo(out Class to, Class from)
Try to safely down-cast base class to child class.