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

◆ CreateLogoutMenu()

override void MissionBase::CreateLogoutMenu ( UIMenuPanel parent)
inlineprotected

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

1366 {
1367 // prevent creating logout dialog if input buffer has reached server config maximumClientInputs limit.
1369 return;
1370
1371 // prevent creating the logout dialog if the in-game menu was closed before (DZ-23150)
1372 UIScriptedMenu menu = GetUIManager().GetMenu();
1373 if (menu && menu.GetID() != MENU_LOGOUT && menu.IsClosing())
1374 return;
1375
1376 PlayerBase player = PlayerBase.Cast( g_Game.GetPlayer() );
1377 // do not show logout screen if player's dead
1378 if (!player || player.IsDamageDestroyed())
1379 {
1380 // exit the game immediately
1381 AbortMission();
1382 return;
1383 }
1384
1385 if (parent)
1386 {
1387 m_Logout = LogoutMenu.Cast(parent.EnterScriptedMenu(MENU_LOGOUT));
1388
1389 if (m_Logout)
1390 {
1391 g_Game.LogoutRequestTime();
1392 m_Logout.SetLogoutTime();
1393 }
1394 }
1395 }
DayZGame g_Game
Определения DayZGame.c:4074
UIManager GetUIManager()
Определения missionGameplay.c:188
override void AbortMission()
Определения missionGameplay.c:1356
ref LogoutMenu m_Logout
Определения missionGameplay.c:16
bool m_InputBufferFull
Определения missionGameplay.c:53
proto native UIScriptedMenu GetMenu()
Returns most-top open menu.
proto native UIScriptedMenu EnterScriptedMenu(int id)
Create & open menu with specific id (see MenuID) and set this menu as its parent.
const int MENU_LOGOUT
Определения 3_Game/DayZ/constants.c:201

Перекрестные ссылки AbortMission(), UIMenuPanel::EnterScriptedMenu(), g_Game, UIManager::GetMenu(), GetUIManager(), m_InputBufferFull, m_Logout и MENU_LOGOUT.