3 protected bool m_VoNToggled;
12 void HideVoiceNotification();
13 void ShowVoiceNotification(
int level,
bool fading);
14 void HandleInput(
Input inp);
15 void OnVOIPThresholdChanged();
43 if (
GetGame().IsMissionMainMenu())
49 mission.GetMicrophoneIcon().Show(
false);
50 mission.HideVoiceLevelWidgets();
60 if (
GetGame().IsMissionMainMenu())
66 ImageWidget micIcon =
mission.GetMicrophoneIcon();
67 WidgetFadeTimer micTimer =
mission.GetMicWidgetFadeTimer();
73 micIcon.SetAlpha(1.0);
78 micTimer.FadeOut(micIcon, 3.0);
82 for(
int n = 0; n < voiceLeveWidgets.Count(); n++ )
84 int voiceKey = voiceLeveWidgets.GetKey(n);
85 ImageWidget voiceWidget = voiceLeveWidgets.Get(n);
88 WidgetFadeTimer timer = voiceLevelTimers.Get(n);
92 if ( voiceKey <= level )
94 voiceWidget.SetAlpha(1.0);
95 voiceWidget.Show(
true);
99 timer.FadeOut(voiceWidget, 3.0);
104 voiceWidget.Show(
false);
122 int oldLevel =
GetGame().GetVoiceLevel();
128 if (inp.LocalPress_ID(UAVoiceDistanceUp,
false))
130 newLevel = ( oldLevel + 1 ) % ( VoiceLevelShout + 1 );
133 if (inp.LocalPress_ID(UAVoiceDistanceDown,
false))
135 newLevel = oldLevel - 1;
136 if (newLevel < VoiceLevelWhisper)
138 newLevel = VoiceLevelShout;
144 GetGame().SetVoiceLevel(newLevel);
152 int rangeLevel =
GetGame().GetVoiceLevel();
230 mission.SetVoNActive(vonStateParams.param1);
248 if (
Class.CastTo(vonStartParams, params))
250 GetDayZGame().AddVoiceNotification(vonStartParams);
258 if (
Class.CastTo(vonStopParams, params))
260 GetDayZGame().RemoveVoiceNotification(vonStopParams);
300 static void CleanupInstance()
310 static bool IsVONToggled()
312 return m_VONManager.IsVonToggled();
319 static bool IsVoiceThresholdMinimum()
322 NumericOptionsAccess noa;
325 return noa.ReadValue() <=
GetGame().GetSoundScene().GetSilenceThreshold();