class UIManagerSource
Methods 36
proto native UIScriptedMenu EnterScriptedMenu(int id, UIMenuPanel parent)Create & open menu with specific id (see \ref MenuID) and set its parent
Referenced by ActionUnfoldMapCB.PerformMapChange(), BiosSessionService.OnGetGameplaySession(), BiosUserManager.OnPartyHost()
Show 22 more
, DayZGame.EarlyAccessDialog(), DayZGame.EnterLoginQueue(), DayZGame.EnterLoginTime(), DayZGame.SelectGamepad(), GesturesMenu.OpenMenu(), MissionGameplay.HandleMapToggleByKeyboardShortcut(), MissionGameplay.InputBufferCheck(), MissionGameplay.OnInputBufferEvent(), MissionGameplay.OnItemUsed(), MissionGameplay.Pause(), MissionGameplay.ShowChat(), MissionMainMenu.OnInit(), PluginCameraTools.ToggleCameraTools(), PluginDeveloper.ToggleHelpScreen(), PluginDeveloper.ToggleMissionLoader(), PluginDeveloper.ToggleScriptConsole(), PluginSceneManager.EditorToggle(), RadialQuickbarMenu.OpenMenu(), ScriptConsoleGeneralTab.OnClick(), ScriptConsoleItemsTab.ListItemRelatedActions(), ScriptConsoleItemsTab.OnClick(), and WrittenNoteData.OnRPC()proto native UIScriptedMenu CreateScriptedMenu(int id, UIMenuPanel parent)Referenced by MissionGameplay.InitInventory()
proto native void EnterServerBrowser(UIMenuPanel parentMenu)proto native UIScriptedMenu ShowScriptedMenu(UIScriptedMenu menu, UIMenuPanel parent)Referenced by DayZGame.OnLoginTimeEvent(), DayZGame.UpdateLoginQueue(), and MissionGameplay.ShowInventory()
proto native void HideScriptedMenu(UIScriptedMenu menu)proto native Widget GetWidgetUnderCursor()proto native bool IsDialogVisible()Referenced by ConnectionLost.Show(), DayZGame.DisconnectSessionEx(), DayZPlayerImplement.LockControls()
Show 13 more
, InputDeviceDisconnectWarningMenu.Init(), LoadingScreen.Show(), MainMenuConsole.Update(), MissionGameplay.OnUpdate(), OptionsMenu.Back(), OptionsMenu.OnAttemptTabSwitch(), OptionsMenu.SetToDefaults(), OptionsMenu.Update(), OptionsMenu.UpdateControlsElements(), PlayerBase.OnUnconsciousStop(), PluginItemDiagnostic.ReleaseFocus(), ServerBrowserMenuNew.Update(), and Back()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()Referenced by ConnectionLost.Show(), LoadingScreen.Show(), MissionGameplay.DestroyAllMenus()
Show 1 more
, MissionGameplay.OnMissionFinish()proto native void ShowDialog(string caption, string text, int id, int butts, int def, int type, UIScriptedMenu handler)Shows message dialog
captiontextid- custom user id
butts- \ref DialogBoxType
def- \ref DialogBoxButton
type- \ref DialogMessageType
handler
usage :
const int QUIT_DIALOG_ID = 76;
g_Game.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
ScriptedWidgetEventHandler::OnModalResult( Widget w, int x, int y, int code, int result )
{
if (code == QUIT_DIALOG_ID && result == DBB_YES) // yes this is callback for dialog we show earlier and user press YES button
{
Quit();
}
}Referenced by DialogueErrorProperties.HandleError(), InGameMenu.OnClick_Respawn(), InGameMenuXbox.OnClick()
Show 15 more
, KeybindingsMenu.Back(), KeybindingsMenu.HardReset(), KeybindingsMenu.OnAttemptSelectPreset(), KeybindingsMenu.SetToDefaults(), MainMenu.Exit(), MainMenuConsole.Exit(), MainMenuConsole.Init(), OnlineServices.OnAutoConnectToEmptyServer(), OptionsMenu.Apply(), OptionsMenu.Back(), OptionsMenu.OnAttemptTabSwitch(), OptionsMenu.SetToDefaults(), ServerBrowserEntry.OnClick(), ServerBrowserMenuNew.Play(), and ServerBrowserMenuNew.SetFavoriteConsoles()natively checks game focus on cursor hiding
Referenced by DayZGame.RefreshMouseCursorVisibility()
proto native bool IsCursorVisible()proto native bool IsDialogQueued()proto native bool ShowQueuedDialog()Referenced by DayZGame.CheckDialogs()
proto native int GetLoginQueuePosition()Referenced by DayZGame.UpdateLoginQueue()
proto native bool ScreenFadeVisible()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
Referenced by BiosUserManager.OnGameNameChanged(), BiosUserManager.OnPartyHost(), ContextMenu.OnMouseButtonDown(), and 73 more
bool Back()Close top window on windows stack, returns true when any window is closed
Referenced by CharacterCreationMenu.Apply(), CharacterCreationMenu.Back(), CharacterCreationMenu.OnClick()
Show 18 more
, ControlsXbox.Back(), ControlsXboxNew.Back(), GesturesMenu.CloseMenu(), KeybindingsMenu.Back(), KeybindingsMenu.OnModalResult(), MainMenuConsole.ChangeAccount(), MainMenuVideo.StopVideo(), OptionsMenu.Back(), OptionsMenu.OnModalResult(), PluginCameraTools.ToggleCameraTools(), PluginDeveloper.ToggleHelpScreen(), PluginDeveloper.ToggleMissionLoader(), PluginDeveloper.ToggleScriptConsole(), PluginSceneManager.EditorToggle(), RadialQuickbarMenu.CloseMenu(), ScriptConsole.Update(), ServerBrowserMenuNew.Back(), and TutorialsMenu.Back()bool CloseAll()Close all opened menus
Referenced by ActionUnfoldMapCB.PerformMapChange(), BiosSessionService.OnGetGameplaySession(), DayZGame.OnLoginTimeEvent()
Show 10 more
, DayZGame.OnRespawnEvent(), DayZGame.UpdateLoginQueue(), MissionGameplay.CloseAllMenus(), MissionGameplay.DestroyAllMenus(), MissionGameplay.HandleMapToggleByKeyboardShortcut(), MissionGameplay.InputBufferCheck(), MissionGameplay.OnInputBufferEvent(), MissionMainMenu.OnMissionFinish(), PlayerBase.CloseInventoryMenu(), and PlayerBase.OnPlayerLoaded()Close menu with specific ID (see \ref MenuID)
References UIMenuPanel.Close(), UIMenuPanel.GetID(), GetMenu()
Show 1 more
, UIMenuPanel.GetParentMenu()Referenced by BiosUserManager.OnJoin(), BiosUserManager.OnPartyHost(), ConnectionDialogue.CloseDialog()
Show 1 more
, MissionGameplay.Continue()References Class.Cast(), UIScriptedMenu.GetID(), GetMenu()
Show 2 more
, UIMenuPanel.GetParentMenu(), and HideScriptedMenu()Returns true if menu with specific ID is opened (see \ref MenuID)
References FindMenu()
Referenced by ActionManagerClient.Update(), ActionReadPaper.OnUpdate(), ActionReadPaperCB.OnStateChange()
Show 21 more
, ActionUnfoldMapCB.OnFinish(), ActionWritePaper.OnUpdate(), ActionWritePaperCB.OnStateChange(), BurlapSackCover.HandleAttachedToHead(), Container.AddItemToQuickbarRadial(), DayZGame.UpdateInputDeviceDisconnectWarning(), EmoteManager.Update(), MissionGameplay.HandleMapToggleByKeyboardShortcut(), MissionGameplay.IsPaused(), MissionGameplay.OnUpdate(), PlayerBase.CloseMapEx(), PlayerBase.CommandHandler(), PlayerBase.OnRestrainChangeClient(), PlayerBase.OnRestrainStartedChangeClient(), PlayerBase.OnUnconsciousStop(), PluginDeveloper.PrintLogClient(), PluginDeveloper.ScriptHistoryBack(), PluginDeveloper.ScriptHistoryNext(), PluginDeveloper.ToggleHelpScreen(), PluginDeveloper.ToggleMissionLoader(), and PluginDeveloper.ToggleScriptConsole()UIScriptedMenu FindMenu(int id)Returns menu with specific ID if it is open (see \ref MenuID)
Referenced by ActionReadPaperCB.OnStateChange(), ActionUnfoldMapCB.OnFinish(), ActionWritePaperCB.OnStateChange()
Show 39 more
, CharacterCreationMenu.Apply(), Container.AddItemToQuickbarRadial(), DayZGame.IsInventoryOpen(), EmoteManager.CanPlayEmoteClientCheck(), EmoteManager.SetEmoteLockState(), EmoteManager.Update(), Icon.DestroyWhiteBackground(), Icon.RefreshQuickbar(), IngameHud.RefreshQuickbar(), Inventory.AddQuickbarItem(), InventoryQuickbar.OnItemDrop(), InventoryQuickbar.OnItemDropReceived(), ItemBase.OnVariablesSynchronized(), LayoutHolder.InspectItem(), MapHandler.OnDoubleClick(), MissionGameplay.OnEvent(), MissionGameplay.OnUpdate(), MissionGameplay.ShowInventory(), MissionGameplay.UpdateVoiceLevelWidgets(), OptionsMenuGame.Apply(), PlayerBase.CloseMapEx(), PlayerBase.OnRestrainChangeClient(), PlayerBase.OnRestrainStartedChangeClient(), PlayerBase.OnRPC(), PlayerBase.OnUnconsciousStop(), PlayerContainer.DoubleClick(), PlayerContainer.OnDropReceivedFromGhostArea(), PluginItemDiagnostic.OnRPC(), RespawnDialogue.RequestRespawn(), ScriptConsoleAddLocation.OnClick(), ScriptConsoleNewPresetDialog.OnClick(), ScriptConsoleRenamePresetDialog.Init(), ScriptConsoleRenamePresetDialog.OnClick(), ScriptConsoleUniversalInfoDialog.OnClick(), IsMenuOpen(), VicinityContainer.OnDropReceivedFromHeader(), VicinityContainer.OnDropReceivedFromIcon(), VicinitySlotsContainer.DoubleClick(), and ZombieContainer.DoubleClick()void OpenWindow(int id)void CloseWindow(int id)void DeleteWindow(UIScriptedWindow window)References UIScriptedWindow.GetWindow()
void ShowUICursor(bool visible)References DayZGame.SetMouseCursorDesiredVisibility()
Referenced by CameraToolsMenu.~CameraToolsMenu(), CameraToolsMenu.OnHide(), CameraToolsMenu.OnMouseButtonDown()