DayZ 1.27
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ UpdateVoiceLevelWidgets()

override void MissionBase::UpdateVoiceLevelWidgets ( int level)
inlineprotected

См. определение в файле missionGameplay.c строка 1498

1499 {
1500 for ( int n = 0; n < m_VoiceLevelsWidgets.Count(); n++ )
1501 {
1502 int voiceKey = m_VoiceLevelsWidgets.GetKey(n);
1503 ImageWidget voiceWidget = m_VoiceLevelsWidgets.Get(n);
1504
1505 // stop fade timer since it will be refreshed
1506 WidgetFadeTimer timer = m_VoiceLevelTimers.Get(n);
1507 timer.Stop();
1508
1509 // show widgets according to the level
1510 if ( voiceKey <= level )
1511 {
1512 voiceWidget.SetAlpha(1.0); // reset from possible previous fade out
1513 voiceWidget.Show(true);
1514
1515 if ( !m_VoNActive && !GetUIManager().FindMenu(MENU_CHAT_INPUT) )
1516 timer.FadeOut(voiceWidget, 3.0);
1517 }
1518 else
1519 voiceWidget.Show(false);
1520 }
1521
1522 // fade out microphone icon when switching levels without von on
1523 if ( !m_VoNActive )
1524 {
1525 if ( !GetUIManager().FindMenu(MENU_CHAT_INPUT) )
1526 {
1527 m_MicrophoneIcon.SetAlpha(1.0);
1528 m_MicrophoneIcon.Show(true);
1529
1530 m_MicFadeTimer.FadeOut(m_MicrophoneIcon, 3.0);
1531 }
1532 }
1533 else
1534 {
1535 // stop mic icon fade timer when von is activated
1536 m_MicFadeTimer.Stop();
1537 }
1538 }
UIManager GetUIManager()
Определения missionGameplay.c:179
ref map< int, ImageWidget > m_VoiceLevelsWidgets
Определения missionGameplay.c:50
bool m_VoNActive
Определения missionGameplay.c:48
ImageWidget m_MicrophoneIcon
Определения missionGameplay.c:9
ref WidgetFadeTimer m_MicFadeTimer
Определения missionGameplay.c:26
ref map< int, ref WidgetFadeTimer > m_VoiceLevelTimers
Определения missionGameplay.c:51
const int MENU_CHAT_INPUT
Определения constants.c:186

Перекрестные ссылки GetUIManager(), m_MicFadeTimer, m_MicrophoneIcon, m_VoiceLevelsWidgets, m_VoiceLevelTimers, m_VoNActive и MENU_CHAT_INPUT.

Используется в ShowChat().