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

◆ CreateLogoutMenu()

override void MissionBase::CreateLogoutMenu ( UIMenuPanel parent)
inlineprotected

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

1311 {
1312 // prevent creating logout dialog if input buffer has reached server config maximumClientInputs limit.
1313 if (GetGame() && m_InputBufferFull)
1314 return;
1315
1316 PlayerBase player = PlayerBase.Cast( GetGame().GetPlayer() );
1317 // do not show logout screen if player's dead
1318 if (!player || player.IsDamageDestroyed())
1319 {
1320 // exit the game immediately
1321 AbortMission();
1322 return;
1323 }
1324
1325 if (parent)
1326 {
1327 m_Logout = LogoutMenu.Cast(parent.EnterScriptedMenu(MENU_LOGOUT));
1328
1329 if (m_Logout)
1330 {
1331 m_Logout.SetLogoutTime();
1332 }
1333 }
1334 }
PlayerBase GetPlayer()
Определения ModifierBase.c:51
override void AbortMission()
Определения missionGameplay.c:1301
ref LogoutMenu m_Logout
Определения missionGameplay.c:16
bool m_InputBufferFull
Определения missionGameplay.c:53
proto native UIScriptedMenu EnterScriptedMenu(int id)
Create & open menu with specific id (see MenuID) and set this menu as its parent.
proto native CGame GetGame()
const int MENU_LOGOUT
Определения constants.c:195

Перекрестные ссылки AbortMission(), UIMenuPanel::EnterScriptedMenu(), GetGame(), GetPlayer(), m_InputBufferFull, m_Logout и MENU_LOGOUT.