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

◆ ToggleMute() [1/2]

void ScriptedWidgetEventHandler::ToggleMute ( )
inlineprotected

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

88 {
89 if( !IsLocalPlayer() && !GetGame().GetWorld().IsDisabledReceivingVoN() )
90 {
91 m_Mute = !m_Mute;
92 if ( ScriptInputUserData.CanStoreInputUserData() && !m_GlobalMute )
93 {
94 OnlineServices.MutePlayer( m_UID, m_Mute );
95 m_MuteIcon.Show( m_Mute );
96 }
97 else
98 {
99 m_MuteIcon.Show( true );
100 }
101 }
102 else
103 {
104 m_MicrophoneIcon.Show( false );
105 m_MuteIcon.Show( false );
106 }
107 }
proto native CGame GetGame()

Перекрестные ссылки ScriptInputUserData::CanStoreInputUserData(), GetGame(), IsLocalPlayer(), m_GlobalMute, m_MicrophoneIcon, m_Mute, m_MuteIcon, m_UID и OnlineServices::MutePlayer().

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