40 m_DetailsBodyDefault = m_DetailsRoot.FindAnyWidget(
"settings_details_body");
41 m_DetailsBodyConnectivity = m_DetailsRoot.FindAnyWidget(
"settings_details_body_connectivity");
42 m_DetailsLabel =
TextWidget.Cast(m_DetailsRoot.FindAnyWidget(
"details_label"));
43 m_DetailsText =
RichTextWidget.Cast(m_DetailsRoot.FindAnyWidget(
"details_content"));
54 m_MissionGameplay = MissionGameplay.Cast(
GetGame().GetMission());
56 m_AudioLevelTimer =
new Timer();
57 m_AudioLevelTimer.Run(0.1,
this,
"UpdateAudioLevel",
NULL,
true);
63 m_Root.FindAnyWidget(
"voip_threshold_setting_option").SetUserID(
OptionAccessType.AT_OPTIONS_VON_THRESHOLD_SLIDER);
64 m_Root.FindAnyWidget(
"voip_selection_setting_option").SetUserID(
OptionAccessType.AT_OPTIONS_VON_INPUT_MODE);
70 m_MasterSelector =
new OptionSelectorSlider(
m_Root.FindAnyWidget(
"master_setting_option"), m_MasterOption.ReadValue(),
this,
false, m_MasterOption.GetMin(), m_MasterOption.GetMax());
71 m_EffectsSelector =
new OptionSelectorSlider(
m_Root.FindAnyWidget(
"effects_setting_option"), m_EffectsOption.ReadValue(),
this,
false, m_EffectsOption.GetMin(), m_EffectsOption.GetMax());
72 m_VOIPSelector =
new OptionSelectorSlider(
m_Root.FindAnyWidget(
"voip_output_setting_option"), m_VOIPOption.ReadValue(),
this,
false, m_VOIPOption.GetMin(), m_VOIPOption.GetMax());
73 m_VOIPThresholdSelector =
new OptionSelectorLevelMarker(
m_Root.FindAnyWidget(
"voip_threshold_setting_option"), m_VOIPThresholdOption.ReadValue(),
this,
false, m_VOIPThresholdOption.GetMin(), m_VOIPThresholdOption.GetMax());
74 m_MusicSelector =
new OptionSelectorSlider(
m_Root.FindAnyWidget(
"music_setting_option"), m_MusicOption.ReadValue(),
this,
false, m_MusicOption.GetMin(), m_MusicOption.GetMax());
75 m_InputModeSelector =
new OptionSelectorMultistate(
m_Root.FindAnyWidget(
"voip_selection_setting_option"), m_InputModeOption.GetIndex(),
this,
false,
inputModeValues);
77 m_MasterSelector.m_OptionChanged.Insert(UpdateMaster);
78 m_EffectsSelector.m_OptionChanged.Insert(UpdateEffects);
79 m_VOIPSelector.m_OptionChanged.Insert(UpdateVOIP);
80 m_VOIPThresholdSelector.m_OptionChanged.Insert(UpdateVOIPThreshold);
81 m_MusicSelector.m_OptionChanged.Insert(
UpdateMusic);
82 m_InputModeSelector.m_OptionChanged.Insert(UpdateInputMode);
84 if (m_MissionGameplay)
94 m_Root.FindAnyWidget(
"sound_settings_scroll").GetScreenSize(
x,
y);
95 m_Root.FindAnyWidget(
"sound_settings_root").GetScreenSize(
x,
y2);
97 m_Root.FindAnyWidget(
"sound_settings_scroll").SetAlpha(
f);
102 m_WasMicCapturing =
game.IsMicCapturing();
105 if (!
game.IsInPartyChat())
106 game.EnableMicCapture(
true);
249 m_MasterSelector.SetValue(m_MasterOption.ReadValue(),
true);
251 m_EffectsSelector.SetValue(m_EffectsOption.ReadValue(),
true);
253 m_VOIPSelector.SetValue(m_VOIPOption.ReadValue(),
true);
254 if (m_VOIPThresholdOption)
255 m_VOIPThresholdSelector.SetValue(m_VOIPThresholdOption.ReadValue(),
true);
257 m_MusicSelector.SetValue(m_MusicOption.ReadValue(),
true);
258 if (m_InputModeOption)
259 m_InputModeSelector.SetValue(m_InputModeOption.GetIndex(),
false);
265 m_MasterSelector.SetValue(m_MasterOption.GetDefault(),
true);
267 m_EffectsSelector.SetValue(m_EffectsOption.GetDefault(),
true);
269 m_VOIPSelector.SetValue(m_VOIPOption.GetDefault(),
true);
270 if (m_VOIPThresholdOption)
271 m_VOIPThresholdSelector.SetValue(m_VOIPThresholdOption.GetDefault(),
true);
273 m_MusicSelector.SetValue(m_MusicOption.GetDefault(),
true);
274 if (m_InputModeOption)
276 m_InputModeOption.SetIndex(m_InputModeOption.GetDefaultIndex());
277 m_InputModeSelector.SetValue(m_InputModeOption.GetIndex(),
false);