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);
138 #ifdef PLATFORM_CONSOLE
139 return "gui/layouts/new_ui/options/xbox/sound_tab.layout";
141 #ifdef PLATFORM_WINDOWS
142 return "gui/layouts/new_ui/options/pc/sound_tab.layout";
149 #ifdef PLATFORM_CONSOLE
156 if ( w && w.IsInherited(ScrollWidget))
168 if ( w && w.IsInherited(ScrollWidget))
179 OptionsMenu menu = OptionsMenu.Cast(
GetGame().GetUIManager().GetMenu());
182 menu.OnFocus(w,
x,
y);
191 if (w.IsInherited(SliderWidget))
202 bool connectivityInfoShown = key ==
OptionIDsScript.OPTION_CONNECTIVITY_INFO;
229 if (!
GetGame().IsInPartyChat())
241 if (!game.IsInPartyChat())
243 game.EnableMicCapture(
true);
proto native bool IsMicCapturing()
Returns whether mic is currently capturing audio from user.
proto native bool IsInPartyChat()
Returns whether user is currently in a voice party (currently only supported on xbox)
proto native WorkspaceWidget GetWorkspace()
proto native void EnableMicCapture(bool enable)
Enable microphone to locally capture audio from user. Audio heard does NOT automatically get transmit...
Super root of all classes in Enforce script.
Base Param Class with no parameters. Used as general purpose parameter overloaded with Param1 to Para...
static VONManagerBase GetInstance()
Main way to access VONManager functionality from script.
Manager class which handles Voice-over-network functionality while player is connected to a server.
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.
proto native float GetAudioLevel()