Shows the voice notification.
59 {
60 if (
GetGame().IsMissionMainMenu())
61 {
62 return;
63 }
64
66 ImageWidget micIcon =
mission.GetMicrophoneIcon();
67 WidgetFadeTimer micTimer =
mission.GetMicWidgetFadeTimer();
70
71
72 micTimer.Stop();
73 micIcon.SetAlpha(1.0);
74 micIcon.Show(true);
75
76 if (fading)
77 {
78 micTimer.FadeOut(micIcon, 3.0);
79 }
80
81
82 for( int n = 0; n < voiceLeveWidgets.Count(); n++ )
83 {
84 int voiceKey = voiceLeveWidgets.GetKey(n);
85 ImageWidget voiceWidget = voiceLeveWidgets.Get(n);
86
87
88 WidgetFadeTimer timer = voiceLevelTimers.Get(n);
89 timer.Stop();
90
91
92 if ( voiceKey <= level )
93 {
94 voiceWidget.SetAlpha(1.0);
95 voiceWidget.Show(true);
96
97 if (fading)
98 {
99 timer.FadeOut(voiceWidget, 3.0);
100 }
101 }
102 else
103 {
104 voiceWidget.Show(false);
105 }
106 }
107 }
proto native Mission GetMission()
proto native CGame GetGame()