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

◆ UpdateVoiceLevelWidgets()

override void MissionBase::UpdateVoiceLevelWidgets ( int level)
inlineprotected

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

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

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

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