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

◆ CreateLogoutMenu()

override void MissionBase::CreateLogoutMenu ( UIMenuPanel parent)
inlineprotected

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

1321 {
1322 // prevent creating logout dialog if input buffer has reached server config maximumClientInputs limit.
1323 if (GetGame() && m_InputBufferFull)
1324 return;
1325
1326 // prevent creating the logout dialog if the in-game menu was closed before (DZ-23150)
1327 UIScriptedMenu menu = GetUIManager().GetMenu();
1328 if (menu && menu.GetID() != MENU_LOGOUT && menu.IsClosing())
1329 return;
1330
1331 PlayerBase player = PlayerBase.Cast( GetGame().GetPlayer() );
1332 // do not show logout screen if player's dead
1333 if (!player || player.IsDamageDestroyed())
1334 {
1335 // exit the game immediately
1336 AbortMission();
1337 return;
1338 }
1339
1340 if (parent)
1341 {
1342 m_Logout = LogoutMenu.Cast(parent.EnterScriptedMenu(MENU_LOGOUT));
1343
1344 if (m_Logout)
1345 {
1346 m_Logout.SetLogoutTime();
1347 }
1348 }
1349 }
PlayerBase GetPlayer()
Определения ModifierBase.c:51
UIManager GetUIManager()
Определения missionGameplay.c:179
override void AbortMission()
Определения missionGameplay.c:1311
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.
proto native CGame GetGame()
const int MENU_LOGOUT
Определения 3_Game/constants.c:195

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