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

◆ CloseAll()

bool UIManager::CloseAll ( )
inlineprivate

Close all opened menus.

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

79 {
80 UIMenuPanel menu = GetMenu();
81 while (menu)
82 {
83 if (menu.GetParentMenu())
84 {
85 menu = menu.GetParentMenu();
86 }
87 else
88 {
89 menu.Close();
90 return true;
91 }
92 }
93
94 return false;
95 }
proto native UIScriptedMenu GetMenu()
Returns most-top open menu.
proto native UIMenuPanel GetParentMenu()
proto native void Close()
Safe way to close window, using this function can even window safely close itself.

Перекрестные ссылки UIMenuPanel::Close(), GetMenu() и UIMenuPanel::GetParentMenu().

Используется в ManBase::CloseInventoryMenu(), MissionBase::HandleMapToggleByKeyboardShortcut(), MissionBase::InputBufferCheck(), MissionBase::OnInputBufferEvent(), CGame::OnLoginTimeEvent(), MissionBase::OnMissionFinish(), ManBase::OnPlayerLoaded(), CGame::OnRespawnEvent(), ActionUnfoldMapCB::PerformMapChange() и CGame::UpdateLoginQueue().