Private Member Functions | |
proto native UIScriptedMenu | EnterScriptedMenu (int id, UIMenuPanel parent) |
Create & open menu with specific id (see MenuID) and set its parent. | |
proto native UIScriptedMenu | CreateScriptedMenu (int id, UIMenuPanel parent) |
proto native void | EnterServerBrowser (UIMenuPanel parentMenu) |
proto native UIScriptedMenu | ShowScriptedMenu (UIScriptedMenu menu, UIMenuPanel parent) |
proto native void | HideScriptedMenu (UIScriptedMenu menu) |
proto native Widget | GetWidgetUnderCursor () |
proto native bool | IsDialogVisible () |
proto native bool | IsDialogHiding () |
Returns true for a single frame whenever a dialog is hidden. | |
proto native bool | IsModalVisible () |
proto native void | CloseSpecificDialog (int id) |
proto native void | CloseDialog () |
proto native void | HideDialog () |
proto native void | ShowDialog (string caption, string text, int id, int butts, int def, int type, UIScriptedMenu handler) |
Shows message dialog. | |
proto native bool | ShowCursor (bool visible) |
natively checks game focus on cursor hiding | |
proto native bool | IsCursorVisible () |
proto native bool | IsDialogQueued () |
proto native bool | ShowQueuedDialog () |
proto native int | GetLoginQueuePosition () |
proto native bool | ScreenFadeVisible () |
proto native void | ScreenFadeIn (float duration, string text, int backgroundColor, int textColor) |
proto native void | ScreenFadeOut (float duration) |
proto native bool | IsScaledMode () |
proto native void | SetScaledMode (bool enabled) |
proto native UIScriptedMenu | GetMenu () |
Returns most-top open menu. | |
bool | Back () |
Close top window on windows stack, returns true when any window is closed. | |
bool | CloseAll () |
Close all opened menus. | |
bool | CloseAllSubmenus () |
Close all opened menus except first menu. | |
bool | CloseMenu (int id) |
Close menu with specific ID (see MenuID) | |
bool | HideMenu (int id) |
bool | IsMenuOpen (int id) |
Returns true if menu with specific ID is opened (see MenuID) | |
UIScriptedMenu | FindMenu (int id) |
Returns menu with specific ID if it is open (see MenuID) | |
void | OpenWindow (int id) |
void | CloseWindow (int id) |
void | DeleteWindow (UIScriptedWindow window) |
bool | IsWindowOpened (int id) |
void | ShowUICursor (bool visible) |
|
inlineprivate |
Close top window on windows stack, returns true when any window is closed.
References UIMenuPanel::Close(), GetMenu(), and IsDialogVisible().
Referenced by UIScriptedMenu::Apply(), Back(), UIScriptedMenu::Back(), UIScriptedMenu::ChangeAccount(), UIScriptedMenu::CloseMenu(), PluginBase::EditorToggle(), UIScriptedMenu::OnClick(), UIScriptedMenu::OnModalResult(), UIScriptedMenu::StopVideo(), PluginBase::ToggleCameraTools(), and UIScriptedMenu::Update().
|
inlineprivate |
Close all opened menus.
References UIMenuPanel::Close(), GetMenu(), and UIMenuPanel::GetParentMenu().
Referenced by MissionBase::CloseAllMenus(), ManBase::CloseInventoryMenu(), MissionBase::DestroyAllMenus(), MissionBase::HandleMapToggleByKeyboardShortcut(), MissionBase::InputBufferCheck(), MissionBase::OnInputBufferEvent(), CGame::OnLoginTimeEvent(), MissionBase::OnMissionFinish(), ManBase::OnPlayerLoaded(), CGame::OnRespawnEvent(), ActionUnfoldMapCB::PerformMapChange(), and CGame::UpdateLoginQueue().
|
inlineprivate |
Close all opened menus except first menu.
References UIMenuPanel::Close(), GetMenu(), and UIMenuPanel::GetParentMenu().
Referenced by CGame::DisconnectSessionEx().
|
private |
Referenced by CGame::DisconnectSessionEx(), DayZPlayer::LockControls(), ManBase::OnUnconsciousStop(), and ReleaseFocus().
Close menu with specific ID (see MenuID)
References UIMenuPanel::Close(), UIMenuPanel::GetID(), GetMenu(), and UIMenuPanel::GetParentMenu().
Referenced by UIScriptedMenu::CloseDialog(), MissionBase::Continue(), BiosUserManager::OnJoin(), and BiosUserManager::OnPartyHost().
|
private |
|
inlineprivate |
|
private |
|
inlineprivate |
Referenced by CloseWindow().
|
private |
Create & open menu with specific id (see MenuID) and set its parent.
Referenced by PluginBase::EditorToggle(), MissionBase::HandleMapToggleByKeyboardShortcut(), MissionBase::InputBufferCheck(), MissionBase::OnInputBufferEvent(), BiosUserManager::OnPartyHost(), UIScriptedMenu::OpenMenu(), UIScriptedMenu::OpenMenu(), MissionBase::Pause(), ActionUnfoldMapCB::PerformMapChange(), CGame::SelectGamepad(), MissionBase::ShowChat(), and PluginBase::ToggleCameraTools().
|
private |
|
inlineprivate |
Returns menu with specific ID if it is open (see MenuID)
References GetMenu().
Referenced by ManBase::CloseMapEx(), UIScriptedMenu::Init(), IsMenuOpen(), UIScriptedMenu::OnClick(), ActionUnfoldMapCB::OnFinish(), ManBase::OnRestrainChangeClient(), ManBase::OnRestrainStartedChangeClient(), ActionReadPaperCB::OnStateChange(), ActionWritePaperCB::OnStateChange(), ManBase::OnUnconsciousStop(), MissionBase::OnUpdate(), InventoryItem::OnVariablesSynchronized(), and Hud::RefreshQuickbar().
|
private |
Referenced by CGame::UpdateLoginQueue().
|
private |
Returns most-top open menu.
Referenced by PluginBase::AddKeyframe(), Back(), CloseAll(), CloseAllSubmenus(), ManBase::CloseInventoryMenu(), CloseMenu(), MissionBase::Continue(), MissionBase::CreateLogoutMenu(), PluginBase::CursorHide(), PluginBase::CursorShow(), PluginBase::DeleteKeyframe(), MissionBaseWorld::DumpCurrentUILayout(), FindMenu(), PluginBase::FreeCameraControlDisable(), PluginBase::FreeCameraControlEnable(), HideMenu(), PluginBase::IsCurrentUIPageValid(), PluginBase::IsInConsole(), PluginBase::IsIngame(), BiosUserManager::OnGameNameChanged(), CGame::OnLoginTimeEvent(), ScriptedWidgetEventHandler::OnMouseButtonDown(), ScriptedWidgetEventHandler::OnMouseEnter(), OptionSelectorBase::OnMouseEnter(), ScriptedWidgetEventHandler::OnMouseLeave(), OptionSelectorBase::OnMouseLeave(), CGame::OnRespawnEvent(), MissionBase::OnUpdate(), PluginBase::PlayPause(), PluginBase::Save(), Dispatcher::SceneEditorCommand(), Dispatcher::ScriptConsoleAddPrint(), Dispatcher::ScriptConsoleHistoryBack(), Dispatcher::ScriptConsoleHistoryForward(), CGame::SelectGamepad(), ScriptedWidgetEventHandler::SelectPlayer(), CGame::SetDatabaseID(), MissionBase::ShowInventory(), PluginBase::SpawnFromClipboard(), and CGame::UpdateLoginQueue().
|
private |
|
private |
Referenced by MissionBase::DestroyAllMenus(), and MissionBase::OnMissionFinish().
References GetMenu(), and HideScriptedMenu().
|
private |
Referenced by MissionBase::HideInventory(), and HideMenu().
|
private |
|
private |
Returns true for a single frame whenever a dialog is hidden.
|
private |
|
private |
Referenced by Back(), and MissionBase::OnUpdate().
Returns true if menu with specific ID is opened (see MenuID)
References FindMenu().
Referenced by MissionBase::HandleMapToggleByKeyboardShortcut(), MissionBase::IsPaused(), Update(), and ActionManagerClient::Update().
|
private |
|
private |
References UIScriptedWindow::GetWindow().
|
inlineprivate |
|
private |
Referenced by DayZPlayer::ShowDeadScreen(), and ManBase::ShowUnconsciousScreen().
|
private |
|
private |
|
private |
natively checks game focus on cursor hiding
Referenced by CGame::RefreshMouseCursorVisibility().
|
private |
Shows message dialog.
caption | |
text | |
id | custom user id |
butts | DialogBoxType |
def | DialogBoxButton |
type | DialogMessageType |
handler | usage : const int QUIT_DIALOG_ID = 76;
GetGame().GetUIManager().ShowDialog("Quit", "Do You really want to quit?", QUIT_DIALOG_ID, DBT_YESNO, DBB_YES, DMT_QUESTION, this);
...
// after user pass dialog, callback on menu/event handler is called
{
if (code == QUIT_DIALOG_ID && result == DBB_YES) // yes this is callback for dialog we show earlier and user press YES button
{
Quit();
}
}
Icon x Icon y proto native UIManager GetUIManager() proto native void ShowDialog(string caption, string text, int id, int butts, int def, int type, UIScriptedMenu handler) Shows message dialog. Definition EnWidgets.c:190 proto native CGame GetGame() |
Referenced by UIScriptedMenu::Exit(), HandleError(), UIScriptedMenu::Init(), OnlineServices::OnAutoConnectToEmptyServer(), UIScriptedMenu::OnClick(), ScriptedWidgetEventHandler::OnClick(), UIScriptedMenu::OnClick_Respawn(), and UIScriptedMenu::Play().
|
private |
Referenced by CGame::CheckDialogs().
|
private |
Referenced by CGame::OnLoginTimeEvent(), MissionBase::ShowInventory(), and CGame::UpdateLoginQueue().
|
inlineprivate |
References g_Game.
Referenced by ScriptedWidgetEventHandler::Apply(), PluginBase::CaptureFocus(), CaptureFocus(), PluginBase::FreeCameraControlDisable(), PluginBase::FreeCameraControlEnable(), Inventory(), UIMenuPanel::LockControls(), DayZPlayer::LockControls(), UIScriptedMenu::OnHide(), UIScriptedMenu::OnInputDeviceChanged(), MissionBase::OnMissionStart(), UIScriptedMenu::OnMouseButtonDown(), UIScriptedMenu::OnShow(), MissionBase::OnUpdate(), UIScriptedMenu::Play(), PluginBase::ReleaseFocus(), ReleaseFocus(), PluginBase::SetDeveloperItemClientEx(), UIScriptedMenu::Stop(), PluginBase::ToggleFocus(), UIMenuPanel::UnlockControls(), ScriptConsoleCameraTab::Update(), Update(), and UIScriptedMenu::~CameraToolsMenu().