DayZ Enforce
Script API
Private Member Functions | List of all members
UIManager Class Reference

#include <UIScriptedMenu.h>

Private Member Functions

proto UIScriptedMenu  EnterScriptedMenu (int id, UIMenuPanel parent)
  Create & open menu with specific id (see MenuID) and set its parent. More...
 
proto void  EnterServerBrowser (UIMenuPanel parentMenu)
 
proto UIScriptedMenu  ShowScriptedMenu (UIScriptedMenu menu, UIMenuPanel parent)
 
proto void  HideScriptedMenu (UIScriptedMenu menu)
 
proto Widget  GetWidgetUnderCursor ()
 
proto bool  IsDialogVisible ()
 
proto bool  IsModalVisible ()
 
proto void  CloseDialog ()
 
proto void  HideDialog ()
 
proto void  ShowDialog (string caption, string text, int id, int butts, int def, int type, ScriptedWidgetEventHandler handler)
  Shows message dialog. More...
 
proto bool  ShowCursor (bool visible)
 
proto bool  IsCursorVisible ()
 
proto bool  IsDialogQueued ()
 
proto bool  ShowQueuedDialog ()
 
proto UIScriptedMenu  GetMenu ()
  Returns most-top open menu. More...
 
bool  Back ()
  Close top window on windows stack, returns true when any window is closed. More...
 
bool  CloseAll ()
  Close all opened menus. More...
 
bool  CloseMenu (int id)
  Close menu with specific ID (see MenuID) More...
 
bool  HideMenu (int id)
 
bool  IsMenuOpen (int id)
  Returns true if menu with specific ID is opened (see MenuID) More...
 
UIScriptedMenu  FindMenu (int id)
  Returns menu with specific ID if it is open (see MenuID) More...
 

Member Function Documentation

proto UIScriptedMenu UIManager::EnterScriptedMenu ( int  id,
UIMenuPanel  parent 
)
private
proto void UIManager::EnterServerBrowser ( UIMenuPanel  parentMenu )
private
proto UIScriptedMenu UIManager::ShowScriptedMenu ( UIScriptedMenu  menu,
UIMenuPanel  parent 
)
private
proto void UIManager::HideScriptedMenu ( UIScriptedMenu  menu )
private
proto Widget UIManager::GetWidgetUnderCursor ( )
private
proto bool UIManager::IsDialogVisible ( )
private

Referenced by Back().

proto bool UIManager::IsModalVisible ( )
private
proto void UIManager::CloseDialog ( )
private
proto void UIManager::HideDialog ( )
private
proto void UIManager::ShowDialog ( string  caption,
string  text,
int  id,
int  butts,
int  def,
int  type,
ScriptedWidgetEventHandler  handler 
)
private

Shows message dialog.

Parameters
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
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 InGameMenu::OnClick().

proto bool UIManager::ShowCursor ( bool  visible )
private
proto bool UIManager::IsCursorVisible ( )
private
proto bool UIManager::IsDialogQueued ( )
private

Referenced by DayZGame::CheckDialogs().

proto bool UIManager::ShowQueuedDialog ( )
private

Referenced by DayZGame::CheckDialogs().

proto UIScriptedMenu UIManager::GetMenu ( )
private
bool UIManager::Back ( )
private

Close top window on windows stack, returns true when any window is closed.

References UIMenuPanel::Close(), GetMenu(), and IsDialogVisible().

Referenced by ModuleSceneEditor::EditorToggle(), MissionMainMenu::OnUpdate(), and MissionGameplay::OnUpdate().

bool UIManager::CloseAll ( )
private
bool UIManager::CloseMenu ( int  id )
private

Close menu with specific ID (see MenuID)

References UIMenuPanel::Close(), UIMenuPanel::GetID(), GetMenu(), and UIMenuPanel::GetParentMenu().

Referenced by MissionGameplay::Continue().

bool UIManager::HideMenu ( int  id )
private
bool UIManager::IsMenuOpen ( int  id )
private

Returns true if menu with specific ID is opened (see MenuID)

References FindMenu().

Referenced by MissionGameplay::IsPaused(), and UpdateSqfDebugWatchers().

UIScriptedMenu UIManager::FindMenu ( int  id )
private

The documentation for this class was generated from the following files:
Converted from CHM to HTML with chm2web Pro 2.85 (unicode)