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

◆ CreateLogoutMenu()

override void MissionBase::CreateLogoutMenu ( UIMenuPanel parent)
inlineprotected

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

1329 {
1330 // prevent creating logout dialog if input buffer has reached server config maximumClientInputs limit.
1332 return;
1333
1334 // prevent creating the logout dialog if the in-game menu was closed before (DZ-23150)
1335 UIScriptedMenu menu = GetUIManager().GetMenu();
1336 if (menu && menu.GetID() != MENU_LOGOUT && menu.IsClosing())
1337 return;
1338
1339 PlayerBase player = PlayerBase.Cast( g_Game.GetPlayer() );
1340 // do not show logout screen if player's dead
1341 if (!player || player.IsDamageDestroyed())
1342 {
1343 // exit the game immediately
1344 AbortMission();
1345 return;
1346 }
1347
1348 if (parent)
1349 {
1350 m_Logout = LogoutMenu.Cast(parent.EnterScriptedMenu(MENU_LOGOUT));
1351
1352 if (m_Logout)
1353 {
1354 m_Logout.SetLogoutTime();
1355 }
1356 }
1357 }
DayZGame g_Game
Определения DayZGame.c:3942
UIManager GetUIManager()
Определения missionGameplay.c:181
override void AbortMission()
Определения missionGameplay.c:1319
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:195

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