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

◆ UpdateVoiceLevelWidgets()

override void MissionBase::UpdateVoiceLevelWidgets ( int level)
inlineprotected

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

1514 {
1515 for ( int n = 0; n < m_VoiceLevelsWidgets.Count(); n++ )
1516 {
1517 int voiceKey = m_VoiceLevelsWidgets.GetKey(n);
1518 ImageWidget voiceWidget = m_VoiceLevelsWidgets.Get(n);
1519
1520 // stop fade timer since it will be refreshed
1521 WidgetFadeTimer timer = m_VoiceLevelTimers.Get(n);
1522 timer.Stop();
1523
1524 // show widgets according to the level
1525 if ( voiceKey <= level )
1526 {
1527 voiceWidget.SetAlpha(1.0); // reset from possible previous fade out
1528 voiceWidget.Show(true);
1529
1530 if ( !m_VoNActive && !GetUIManager().FindMenu(MENU_CHAT_INPUT) )
1531 timer.FadeOut(voiceWidget, 3.0);
1532 }
1533 else
1534 voiceWidget.Show(false);
1535 }
1536
1537 // fade out microphone icon when switching levels without von on
1538 if ( !m_VoNActive )
1539 {
1540 if ( !GetUIManager().FindMenu(MENU_CHAT_INPUT) )
1541 {
1542 m_MicrophoneIcon.SetAlpha(1.0);
1543 m_MicrophoneIcon.Show(true);
1544
1545 m_MicFadeTimer.FadeOut(m_MicrophoneIcon, 3.0);
1546 }
1547 }
1548 else
1549 {
1550 // stop mic icon fade timer when von is activated
1551 m_MicFadeTimer.Stop();
1552 }
1553 }
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
Определения 3_Game/constants.c:186

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

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