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

◆ UpdateVoiceLevelWidgets()

override void MissionBase::UpdateVoiceLevelWidgets ( int level)
inlineprotected

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

1587 {
1588 for ( int n = 0; n < m_VoiceLevelsWidgets.Count(); n++ )
1589 {
1590 int voiceKey = m_VoiceLevelsWidgets.GetKey(n);
1591 ImageWidget voiceWidget = m_VoiceLevelsWidgets.Get(n);
1592
1593 // stop fade timer since it will be refreshed
1594 WidgetFadeTimer timer = m_VoiceLevelTimers.Get(n);
1595 timer.Stop();
1596
1597 // show widgets according to the level
1598 if ( voiceKey <= level )
1599 {
1600 voiceWidget.SetAlpha(1.0); // reset from possible previous fade out
1601 voiceWidget.Show(true);
1602
1603 if ( !m_VoNActive && !GetUIManager().FindMenu(MENU_CHAT_INPUT) )
1604 timer.FadeOut(voiceWidget, 3.0);
1605 }
1606 else
1607 voiceWidget.Show(false);
1608 }
1609
1610 // fade out microphone icon when switching levels without von on
1611 if ( !m_VoNActive )
1612 {
1613 if ( !GetUIManager().FindMenu(MENU_CHAT_INPUT) )
1614 {
1615 m_MicrophoneIcon.SetAlpha(1.0);
1616 m_MicrophoneIcon.Show(true);
1617
1618 m_MicFadeTimer.FadeOut(m_MicrophoneIcon, 3.0);
1619 }
1620 }
1621 else
1622 {
1623 // stop mic icon fade timer when von is activated
1624 m_MicFadeTimer.Stop();
1625 }
1626 }
UIManager GetUIManager()
Определения missionGameplay.c:188
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:192

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

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