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);
73 #ifdef PLATFORM_CONSOLE
82 array<string> opt = {
"#options_controls_disabled",
"#options_controls_enabled" };
83 array<string> opt2 = {
"#options_controls_enabled",
"#options_controls_disabled" };
116 #ifdef PLATFORM_CONSOLE
122 #ifdef PLATFORM_MSSTORE
127 #ifdef PLATFORM_WINDOWS
136 m_Root.FindAnyWidget(
"game_settings_scroll").GetScreenSize(
x,
y);
137 m_Root.FindAnyWidget(
"game_settings_root").GetScreenSize(
x, y2);
139 m_Root.FindAnyWidget(
"game_settings_scroll").SetAlpha(f);
151 array<string> opt4 = {
"#options_pc_nopause_0",
"#options_pc_nopause_1",
"#options_pc_nopause_2"};
160 array<string> opt = {
"#options_controls_disabled",
"#options_controls_enabled"};
178 string layoutFile =
"gui/layouts/new_ui/options/pc/game_tab.layout";
180 #ifdef PLATFORM_MSSTORE
181 layoutFile =
"gui/layouts/new_ui/options/msstore/game_tab.layout";
184 layoutFile =
"gui/layouts/new_ui/options/xbox/game_tab.layout";
187 layoutFile =
"gui/layouts/new_ui/options/xbox/game_tab.layout";
195 #ifdef PLATFORM_CONSOLE
219 #ifdef PLATFORM_MSSTORE
231 MissionGameplay
mission = MissionGameplay.Cast(
g_Game.GetMission());
241 #ifdef PLATFORM_WINDOWS
246 #ifdef PLATFORM_MSSTORE
252 #ifdef PLATFORM_WINDOWS
256 #ifdef PLATFORM_MSSTORE
260 #ifndef PLATFORM_MSSTORE
261 #ifdef PLATFORM_CONSOLE
262 hud.ShowQuickBar(
g_Game.GetInput().IsEnabledMouseAndKeyboardEvenOnServer());
281 if (bleedingIndicationOld != bleedingIndicationNew)
287 if (connectivityOld != connectivityNew)
289 mission.GetConnectivityInvoker().Invoke(connectivityNew);
293 #ifndef PLATFORM_CONSOLE
344 #ifdef PLATFORM_CONSOLE
349 #ifdef PLATFORM_MSSTORE
356 #ifdef PLATFORM_WINDOWS
368 g_Game.ResetProfileOptions();
402 #ifdef PLATFORM_CONSOLE
410 #ifdef PLATFORM_MSSTORE
420 #ifdef PLATFORM_WINDOWS
461 #ifdef PLATFORM_CONSOLE
470 #ifndef PLATFORM_MSSTORE
471 #ifdef PLATFORM_CONSOLE
494 g_Game.SetUserFOV(new_value);
500 g_Game.SetHudBrightness(newValue);
559 IngameHud hud = IngameHud.Cast(
mission.GetHud());
565#ifdef PLATFORM_CONSOLE
566 void UpdateBrightnessOption(
float value)
568 m_BrightnessOption.WriteValue(value);
575 if (w && w.IsInherited(ScrollWidget))
580 if (w && w.IsInherited(SliderWidget))
592 if (w && w.IsInherited(ScrollWidget))
615 if (w.IsInherited(SliderWidget))
626 MissionGameplay
mission = MissionGameplay.Cast(
g_Game.GetMission());
629 Param1<bool> par =
new Param1<bool>(state);
630 mission.GetEffectWidgets().UpdateWidgets(EffectWidgetsTypes.BLEEDING_LAYER,0,par);
636 bool connectivityInfoShown = key ==
OptionIDsScript.OPTION_CONNECTIVITY_INFO;
672 #ifdef PLATFORM_WINDOWS
680 #ifdef PLATFORM_MSSTORE
ServerBrowserMenuNew m_Menu
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 ...
OptionAccessType
C++ OptionAccessType.
static proto bool CastTo(out Class to, Class from)
Try to safely down-cast base class to child class.
void Obsolete(string msg="")