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

◆ CloseMenu()

bool UIManager::CloseMenu ( int id)
inlineprivate

Close menu with specific ID (see MenuID)

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

118 {
119 UIMenuPanel menu = GetMenu();
120
121 while (menu)
122 {
123 if (menu.GetID() == id)
124 {
125 menu.Close();
126 return true;
127 }
128
129 menu = menu.GetParentMenu();
130 }
131
132 return false;
133 }
proto native UIScriptedMenu GetMenu()
Returns most-top open menu.
int GetID()
Returns MenuID.
Определения UIScriptedMenu.c:53
proto native UIMenuPanel GetParentMenu()
proto native void Close()
Safe way to close window, using this function can even window safely close itself.

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

Используется в UIScriptedMenu::CloseDialog(), BiosUserManager::OnJoin() и BiosUserManager::OnPartyHost().