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

◆ OnChange()

override bool ScriptConsoleGeneralTab::OnChange ( Widget w,
int x,
int y,
bool finished )
inlineprotected

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

589 {
590 super.OnChange(w, x, y, finished);
591
592 if (w == m_ShowOthers && g_Game.GetPlayer())
593 {
594 if (g_Game.IsDedicatedServer())
595 {
597 SHOW_OTHERS = true;
598 return true;
599 }
600
601 PluginRemotePlayerDebugClient plugin_remote_client = PluginRemotePlayerDebugClient.Cast(GetPluginSafe(PluginRemotePlayerDebugClient));
602 if (m_ShowOthers.IsChecked())
603 {
604 plugin_remote_client.RequestPlayerInfo(PlayerBase.Cast(g_Game.GetPlayer()), 1);
606 SHOW_OTHERS = true;
607 }
608 else
609 {
610 plugin_remote_client.RequestPlayerInfo(PlayerBase.Cast(g_Game.GetPlayer()), 0);
612 SHOW_OTHERS = false;
613 }
614 return true;
615 }
616 else if (w == m_TimeSlider || w == m_DateDay || w == m_DateYear || w == m_DateMonth || w == m_DateHour || w == m_DateMinute)
617 {
619 return true;
620 }
621
622 return false;
623 }
DayZGame g_Game
Определения DayZGame.c:3942
Icon x
Icon y
PluginBase GetPluginSafe(typename plugin_type)
Определения PluginManager.c:349
EditBoxWidget m_DateMinute
Определения ScriptConsoleGeneralTab.c:32
static bool SHOW_OTHERS
Определения ScriptConsoleGeneralTab.c:8
EditBoxWidget m_DateDay
Определения ScriptConsoleGeneralTab.c:30
bool m_UpdatePlayerPositions
Определения ScriptConsoleGeneralTab.c:22
CheckBoxWidget m_ShowOthers
Определения ScriptConsoleGeneralTab.c:53
EditBoxWidget m_DateHour
Определения ScriptConsoleGeneralTab.c:31
SliderWidget m_TimeSlider
Определения ScriptConsoleGeneralTab.c:19
EditBoxWidget m_DateMonth
Определения ScriptConsoleGeneralTab.c:29
void UpdateTime(bool slider_used)
Определения ScriptConsoleGeneralTab.c:457
EditBoxWidget m_DateYear
Определения ScriptConsoleGeneralTab.c:28

Перекрестные ссылки g_Game, GetPluginSafe(), m_DateDay, m_DateHour, m_DateMinute, m_DateMonth, m_DateYear, m_ShowOthers, m_TimeSlider, m_UpdatePlayerPositions, SHOW_OTHERS, UpdateTime(), x и y.