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

◆ OnModalResult() [6/6]

override bool UIScriptedMenu::OnModalResult ( Widget w,
int x,
int y,
int code,
int result )
inlineprotected

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

520 {
521 bool ret = false;
522
523 if (code == 1337)
524 {
525 if (result == 2)
526 {
527 m_Options.Revert();
530 }
531 ret = true;
532 }
533 else if (code == 117)
534 {
535 g_Game.RequestRestart(IDC_MAIN_QUIT);
536 }
537 else if (code == MODAL_ID_DEFAULT)
538 {
539 if (result == 2)
540 {
542 }
543 }
544 else if (code >= DIALOG_TAB_OFFSET)
545 {
546 if (result == 2)
547 {
548 int id = code - DIALOG_TAB_OFFSET;
549 //m_Options.Revert();
551 m_Tabber.PerformSwitchTab(id);
552 }
553 ret = true;
554 }
555
556 m_ModalLock = ret; //prevents dialog being shown on the next update
557 return ret;
558 }
DayZGame g_Game
Определения DayZGame.c:3868
proto native UIManager GetUIManager()
proto native void EndOptionsVideo()
bool Back()
Close top window on windows stack, returns true when any window is closed.
Определения UIManager.c:62
TabberUI m_Tabber
Определения KeybindingsMenu.c:3
const int MODAL_ID_DEFAULT
Определения KeybindingsMenu.c:23
void ResetCurrentTab()
Определения OptionsMenu.c:358
Widget m_Options
Определения MainMenuConsoles.c:17
const int DIALOG_TAB_OFFSET
Определения OptionsMenu.c:4
bool m_ModalLock
Определения OptionsMenu.c:23
void PerformSetToDefaults()
deprecated, resets all (as before ~1.20)
Определения KeybindingsMenu.c:528
proto native CGame GetGame()
const int IDC_MAIN_QUIT
Определения constants.c:144

Перекрестные ссылки UIManager::Back(), DIALOG_TAB_OFFSET, CGame::EndOptionsVideo(), g_Game, GetGame(), CGame::GetUIManager(), IDC_MAIN_QUIT, m_ModalLock, m_Options, m_Tabber, MODAL_ID_DEFAULT, PerformSetToDefaults(), ResetCurrentTab(), x и y.