5 protected Widget m_SettingsRoot;
7 protected Widget m_DetailsBodyDefault;
8 protected Widget m_DetailsBodyConnectivity;
9 protected TextWidget m_DetailsLabel;
10 protected RichTextWidget m_DetailsText;
29 protected OptionsMenu
m_Menu;
64 m_Root.FindAnyWidget(
"voip_threshold_setting_option" ).SetUserID(
OptionAccessType.AT_OPTIONS_VON_THRESHOLD_SLIDER);
65 m_Root.FindAnyWidget(
"voip_selection_setting_option" ).SetUserID(
OptionAccessType.AT_OPTIONS_VON_INPUT_MODE);
66 m_Root.FindAnyWidget(
"ambient_music_mode_option" ).SetUserID(
OptionIDsScript.OPTION_AMBIENT_MUSIC_MODE);
71 "#STR_Controls_PushToTalk",
72 "#STR_USRACT_UAVOICEOVERNETTOGGLE",
75 "#STR_Ambient_Music_Enabled",
76 "#STR_Ambient_Music_Menu_Only",
105 m_Root.FindAnyWidget(
"sound_settings_scroll").GetScreenSize(
x,
y);
106 m_Root.FindAnyWidget(
"sound_settings_root").GetScreenSize(
x, y2);
108 m_Root.FindAnyWidget(
"sound_settings_scroll").SetAlpha(f);
115 if (!
g_Game.IsInPartyChat())
117 g_Game.EnableMicCapture(
true);
137 #ifdef PLATFORM_CONSOLE
138 return "gui/layouts/new_ui/options/xbox/sound_tab.layout";
140 #ifdef PLATFORM_WINDOWS
141 return "gui/layouts/new_ui/options/pc/sound_tab.layout";
148 #ifdef PLATFORM_CONSOLE
155 if ( w && w.IsInherited(ScrollWidget))
167 if ( w && w.IsInherited(ScrollWidget))
178 OptionsMenu menu = OptionsMenu.Cast(
g_Game.GetUIManager().GetMenu());
181 menu.OnFocus(w,
x,
y);
190 if (w.IsInherited(SliderWidget))
201 bool connectivityInfoShown = key ==
OptionIDsScript.OPTION_CONNECTIVITY_INFO;
228 if (!
g_Game.IsInPartyChat())
231 g_Game.EnableMicCapture(
true);
239 if (!
g_Game.IsInPartyChat())
241 g_Game.EnableMicCapture(
true);
251 if (
g_Game.IsInPartyChat())
Super root of all classes in Enforce script.
Base Param Class with no parameters.
Manager class which handles Voice-over-network functionality while player is connected to a server.
static VONManagerBase GetInstance()
Main way to access VONManager functionality from script.
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.