Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Loading...
Searching...
No Matches
UIMenuPanel Class Reference

Part of main menu hierarchy to create custom menus from script. More...

Inheritance diagram for UIMenuPanel:
Managed

Private Member Functions

void ~UIScriptedMenu ()
proto native bool CanClose ()
proto native bool CanCloseOnEscape ()
void Cleanup ()
proto native void Close ()
 Safe way to close window, using this function can even window safely close itself.
proto native void DestroySubmenu ()
proto native UIScriptedMenu EnterScriptedMenu (int id)
 Create & open menu with specific id (see MenuID) and set this menu as its parent.
ScriptedWidgetEventHandler GetContextMenu ()
override int GetID ()
 Returns MenuID.
int GetID ()
 Returns MenuID.
Widget GetLayoutRoot ()
proto native UIMenuPanel GetParentMenu ()
proto native UIMenuPanel GetSubMenu ()
proto native UIMenuPanel GetVisibleMenu ()
Widget Init ()
void InitMapItem (EntityAI item)
void InitNoteRead (string text="")
void InitNoteWrite (EntityAI paper, EntityAI pen, string text="")
proto native bool IsAnyMenuVisible ()
proto native bool IsClosing ()
bool IsHandlingPlayerDeathEvent ()
proto native bool IsVisible ()
void LoadMapMarkers ()
void LockControls ()
bool OnChange (Widget w, int x, int y, bool finished)
bool OnClick (Widget w, int x, int y, int button)
bool OnController (Widget w, int control, int value)
bool OnDoubleClick (Widget w, int x, int y, int button)
bool OnDrag (Widget w, int x, int y)
bool OnDragging (Widget w, int x, int y, Widget reciever)
bool OnDraggingOver (Widget w, int x, int y, Widget reciever)
bool OnDrop (Widget w, int x, int y, Widget reciever)
bool OnDropReceived (Widget w, int x, int y, Widget reciever)
bool OnEvent (EventType eventType, Widget target, int parameter0, int parameter1)
bool OnFocus (Widget w, int x, int y)
bool OnFocusLost (Widget w, int x, int y)
void OnHide ()
bool OnItemSelected (Widget w, int x, int y, int row, int column, int oldRow, int oldColumn)
bool OnKeyDown (Widget w, int x, int y, int key)
bool OnKeyPress (Widget w, int x, int y, int key)
bool OnKeyUp (Widget w, int x, int y, int key)
bool OnModalResult (Widget w, int x, int y, int code, int result)
bool OnMouseButtonDown (Widget w, int x, int y, int button)
bool OnMouseButtonUp (Widget w, int x, int y, int button)
bool OnMouseEnter (Widget w, int x, int y)
bool OnMouseLeave (Widget w, Widget enterW, int x, int y)
bool OnMouseWheel (Widget w, int x, int y, int wheel)
void OnPlayerDeath ()
void OnRPC (ParamsReadContext ctx)
void OnRPCEx (int rpc_type, ParamsReadContext ctx)
bool OnSelect (Widget w, int x, int y)
void OnShow ()
void OnVisibilityChanged (bool isVisible)
 If visibility of application is changed. On console it is called when application is suspended or constrained.
bool OnXboxEvent (int xboxEvent)
void Refresh ()
 Refresh request, called from anywhere.
proto native void SetFadingPanels (Widget panel0, Widget panel1, Widget panel2, Widget panel3, Widget panel4)
 Refresh request, called from anywhere.
void SetID (int id)
 Sets MenuID.
proto native void SetParentMenu (UIMenuPanel parent)
proto native void SetSubMenu (UIMenuPanel submenu)
void SetWidgetAnimAlpha (Widget widget)
void UIScriptedMenu ()
void UnlockControls ()
void Update (float timeslice)
 Per frame update, called from engine.
bool UseGamepad ()
bool UseKeyboard ()
bool UseMouse ()
Private Member Functions inherited from Managed
void ~IntroSceneCharacter ()
void BleedingIndicator (int source_ID, int severity, GameplayEffectsDataBleeding parent)
void CharacterLoad (int character_id, vector char_pos, vector char_rot)
void CharacterUnload ()
void CheckBlood ()
void CheckHealth ()
void CheckValues ()
void CreateDefaultCharacter ()
void CreateNewCharacter ()
void CreateNewCharacterById (int character_id)
void CreateNewCharacterByName (string character_name, bool randomize_equip=true)
void CreateNewCharacterRandom ()
bool DataInitialized ()
void ForceStop ()
void GameplayEffectsData (array< ref Widget > input, int type, int user_override=-1)
float GetBlood ()
ECharGender GetCharacterGender ()
int GetCharacterID ()
string GetCharacterName ()
string GetCharacterNameById (int char_id)
PlayerBase GetCharacterObj ()
TStringArray GetCharGenderList ()
TStringArray GetCharList (ECharGender gender)
TStringArray GetCharPantsList ()
TStringArray GetCharShirtsList ()
TStringArray GetCharShoesList ()
bool GetEndNow ()
float GetHealth ()
void GetLastPlayedServer (int characterID, out string address, out string name, out int port)
void GetLastPlayedServerEx (int characterID, out string address, out string name, out int port, out int steamQueryPort)
int GetNextCharacterID ()
vector GetPosition ()
int GetPrevCharacterID ()
int GetSeverity ()
array< ref WidgetGetWidgetSet ()
int GetWidgetSetID ()
int GetWidgetSetType ()
bool HasDefinedHandle ()
 Returns 'true' if this class contains update info.
void Init ()
void Init (array< ref Widget > input, int type, Widget layout_root, int user_override=-1)
void InitIndicator (vector position)
void IntroSceneCharacter ()
bool IsCharacterFemale ()
bool IsDefaultCharacter ()
bool IsRunningDrops ()
 Are any drops currently being animated?
void LoadCharacterData (vector char_pos, vector char_rot, bool default_char=false)
 Generates random equip for the new IntroSceneCharacter, whatever is defined in 'cfgCharacterCreation'.
void OnRPC (ParamsReadContext ctx)
void OnScheduledTick (float deltatime)
void ReceiveValue (int value_type, float value)
void RegisterData (Param p)
void ResetIndicator ()
void ResetSequence ()
void SaveCharName (string name)
void SaveDefaultCharacter ()
void SendInitValues ()
 Sends values on object creation.
void SendValue (int value_type, float value)
void SetAttachment (string type, int slot)
void SetCharacterGender (ECharGender gender)
void SetCharacterID (int char_id)
void SetToDefaultCharacter ()
void SetupPlayerName (bool new_name)
void ShowDebugValues (bool show)
void StartRunningDrops ()
void StopIndicator (bool instant=false)
void TransferValues (PlayerBase player)
void TrySpawnNextDrop ()
void Update (float timeSlice)
void Update (float timeSlice=0, Param p=null, int handle=-1)
void UpdateVisibility (bool state)

Private Attributes

Widget layoutRoot
bool m_AnimAlphaIsIncreasing
float m_AnimAlphaValue
Widget m_AnimAlphaWidget
int m_id
ScriptInvoker m_PlayerDeathInvoker
Private Attributes inherited from Managed
ref set< ref BleedingIndicatorDropDatam_ActiveDrops
int m_ActiveDropsCount
float m_AverageFrequency
vector m_BasePosition
MenuData m_CharacterDta
int m_CharacterId
PlayerBase m_CharacterObj
vector m_CharacterPos
vector m_CharacterRot
ref map< ECharGender, ref array< string > > m_Characters = new map<ECharGender, ref array<string>>
string m_CharacterType
ECharGender m_CharGender
ref TStringArray m_CharGenderList = new TStringArray
ref TStringArray m_CharPantsList = new TStringArray
ref TStringArray m_CharShirtList = new TStringArray
ref TStringArray m_CharShoesList = new TStringArray
ref set< intm_CleanupQueue
int m_CurrentDropProbabilityStep
array< floatm_DropProbabilityArray
int m_DropProbabilityRollsCount
float m_DropSpawnMaxDelay
float m_DropSpawnMinDelay
int m_DropSpawnsQueued
bool m_EndNow = false
bool m_Initialized
bool m_InitialSyncSent
bool m_IsRunning = false
float m_LastDropSpawnTime
Widget m_LayoutRoot
GameplayEffectsDataBleeding m_ParentMetaData
float m_SequenceDuration
float m_SequenceTick
int m_Severity
int m_SourceID
bool m_Terminating = false
float m_TimeElapsedSequence
float m_TimeElapsedTotal
int m_Type
ref array< ref Widgetm_WidgetArray
int m_WidgetSetIdentifier

Detailed Description

Part of main menu hierarchy to create custom menus from script.

Definition at line 2 of file uiscriptedmenu.c.

Constructor & Destructor Documentation

◆ ~UIScriptedMenu()

void ~UIScriptedMenu ( )
inlineprivate

Definition at line 141 of file uiscriptedmenu.c.

Member Function Documentation

◆ CanClose()

proto native bool CanClose ( )
private

◆ CanCloseOnEscape()

proto native bool CanCloseOnEscape ( )
private

◆ Cleanup()

void Cleanup ( )
inlineprivate

Definition at line 168 of file uiscriptedmenu.c.

◆ Close()

proto native void Close ( )
private

Safe way to close window, using this function can even window safely close itself.

Referenced by UIManager::Back(), UIManager::CloseAll(), UIManager::CloseAllSubmenus(), and UIManager::CloseMenu().

◆ DestroySubmenu()

proto native void DestroySubmenu ( )
private

◆ EnterScriptedMenu()

proto native UIScriptedMenu EnterScriptedMenu ( int id)
private

Create & open menu with specific id (see MenuID) and set this menu as its parent.

References UIScriptedMenu().

Referenced by MissionBase::CreateLogoutMenu().

◆ GetContextMenu()

ScriptedWidgetEventHandler GetContextMenu ( )
inlineprivate

Definition at line 585 of file uiscriptedmenu.c.

◆ GetID() [1/2]

override int GetID ( )
inlineprivate

Returns MenuID.

Definition at line 151 of file uiscriptedmenu.c.

References m_id.

◆ GetID() [2/2]

int GetID ( )
inlineprivate

Returns MenuID.

Definition at line 54 of file uiscriptedmenu.c.

References MENU_UNKNOWN.

Referenced by UIManager::CloseMenu().

◆ GetLayoutRoot()

Widget GetLayoutRoot ( )
inlineprivate

Definition at line 75 of file uiscriptedmenu.c.

References layoutRoot.

◆ GetParentMenu()

proto native UIMenuPanel GetParentMenu ( )
private

◆ GetSubMenu()

proto native UIMenuPanel GetSubMenu ( )
private

◆ GetVisibleMenu()

proto native UIMenuPanel GetVisibleMenu ( )
private

◆ Init()

Widget Init ( )
inlineprivate

Definition at line 163 of file uiscriptedmenu.c.

◆ InitMapItem()

void InitMapItem ( EntityAI item)
inlineprivate

Definition at line 600 of file uiscriptedmenu.c.

◆ InitNoteRead()

void InitNoteRead ( string text = "")
inlineprivate

Definition at line 599 of file uiscriptedmenu.c.

◆ InitNoteWrite()

void InitNoteWrite ( EntityAI paper,
EntityAI pen,
string text = "" )
inlineprivate

Definition at line 598 of file uiscriptedmenu.c.

◆ IsAnyMenuVisible()

proto native bool IsAnyMenuVisible ( )
private

◆ IsClosing()

proto native bool IsClosing ( )
private

◆ IsHandlingPlayerDeathEvent()

bool IsHandlingPlayerDeathEvent ( )
inlineprivate

Definition at line 603 of file uiscriptedmenu.c.

◆ IsVisible()

proto native bool IsVisible ( )
private

◆ LoadMapMarkers()

void LoadMapMarkers ( )
inlineprivate

Definition at line 601 of file uiscriptedmenu.c.

◆ LockControls()

◆ OnChange()

bool OnChange ( Widget w,
int x,
int y,
bool finished )
inlineprivate

Definition at line 478 of file uiscriptedmenu.c.

References Count, UIScriptedWindow::GetActiveWindows(), x, and y.

◆ OnClick()

bool OnClick ( Widget w,
int x,
int y,
int button )
inlineprivate

Definition at line 238 of file uiscriptedmenu.c.

References Count, UIScriptedWindow::GetActiveWindows(), x, and y.

◆ OnController()

bool OnController ( Widget w,
int control,
int value )
inlineprivate

Definition at line 418 of file uiscriptedmenu.c.

References Count, and UIScriptedWindow::GetActiveWindows().

◆ OnDoubleClick()

bool OnDoubleClick ( Widget w,
int x,
int y,
int button )
inlineprivate

Definition at line 268 of file uiscriptedmenu.c.

References Count, UIScriptedWindow::GetActiveWindows(), x, and y.

◆ OnDrag()

bool OnDrag ( Widget w,
int x,
int y )
inlineprivate

Definition at line 493 of file uiscriptedmenu.c.

References Count, UIScriptedWindow::GetActiveWindows(), x, and y.

◆ OnDragging()

bool OnDragging ( Widget w,
int x,
int y,
Widget reciever )
inlineprivate

Definition at line 508 of file uiscriptedmenu.c.

References Count, UIScriptedWindow::GetActiveWindows(), x, and y.

◆ OnDraggingOver()

bool OnDraggingOver ( Widget w,
int x,
int y,
Widget reciever )
inlineprivate

Definition at line 523 of file uiscriptedmenu.c.

References Count, UIScriptedWindow::GetActiveWindows(), x, and y.

◆ OnDrop()

bool OnDrop ( Widget w,
int x,
int y,
Widget reciever )
inlineprivate

Definition at line 538 of file uiscriptedmenu.c.

References Count, UIScriptedWindow::GetActiveWindows(), x, and y.

◆ OnDropReceived()

bool OnDropReceived ( Widget w,
int x,
int y,
Widget reciever )
inlineprivate

Definition at line 553 of file uiscriptedmenu.c.

References Count, UIScriptedWindow::GetActiveWindows(), x, and y.

◆ OnEvent()

bool OnEvent ( EventType eventType,
Widget target,
int parameter0,
int parameter1 )
inlineprivate

Definition at line 569 of file uiscriptedmenu.c.

References Count, and UIScriptedWindow::GetActiveWindows().

◆ OnFocus()

bool OnFocus ( Widget w,
int x,
int y )
inlineprivate

Definition at line 313 of file uiscriptedmenu.c.

References Count, UIScriptedWindow::GetActiveWindows(), x, and y.

◆ OnFocusLost()

bool OnFocusLost ( Widget w,
int x,
int y )
inlineprivate

Definition at line 328 of file uiscriptedmenu.c.

References Count, UIScriptedWindow::GetActiveWindows(), x, and y.

◆ OnHide()

void OnHide ( )
inlineprivate

Definition at line 184 of file uiscriptedmenu.c.

References m_PlayerDeathInvoker, OnPlayerDeath(), and UnlockControls().

◆ OnItemSelected()

bool OnItemSelected ( Widget w,
int x,
int y,
int row,
int column,
int oldRow,
int oldColumn )
inlineprivate

Definition at line 298 of file uiscriptedmenu.c.

References Count, UIScriptedWindow::GetActiveWindows(), x, and y.

◆ OnKeyDown()

bool OnKeyDown ( Widget w,
int x,
int y,
int key )
inlineprivate

Definition at line 433 of file uiscriptedmenu.c.

References Count, UIScriptedWindow::GetActiveWindows(), x, and y.

◆ OnKeyPress()

bool OnKeyPress ( Widget w,
int x,
int y,
int key )
inlineprivate

Definition at line 463 of file uiscriptedmenu.c.

References Count, UIScriptedWindow::GetActiveWindows(), x, and y.

◆ OnKeyUp()

bool OnKeyUp ( Widget w,
int x,
int y,
int key )
inlineprivate

Definition at line 448 of file uiscriptedmenu.c.

References Count, UIScriptedWindow::GetActiveWindows(), x, and y.

◆ OnModalResult()

bool OnModalResult ( Widget w,
int x,
int y,
int code,
int result )
inlineprivate

Definition at line 253 of file uiscriptedmenu.c.

References Count, UIScriptedWindow::GetActiveWindows(), x, and y.

◆ OnMouseButtonDown()

bool OnMouseButtonDown ( Widget w,
int x,
int y,
int button )
inlineprivate

Definition at line 373 of file uiscriptedmenu.c.

References Count, UIScriptedWindow::GetActiveWindows(), x, and y.

◆ OnMouseButtonUp()

bool OnMouseButtonUp ( Widget w,
int x,
int y,
int button )
inlineprivate

Definition at line 388 of file uiscriptedmenu.c.

References Count, UIScriptedWindow::GetActiveWindows(), x, and y.

◆ OnMouseEnter()

bool OnMouseEnter ( Widget w,
int x,
int y )
inlineprivate

Definition at line 343 of file uiscriptedmenu.c.

References Count, UIScriptedWindow::GetActiveWindows(), x, and y.

◆ OnMouseLeave()

bool OnMouseLeave ( Widget w,
Widget enterW,
int x,
int y )
inlineprivate

Definition at line 358 of file uiscriptedmenu.c.

References Count, UIScriptedWindow::GetActiveWindows(), x, and y.

◆ OnMouseWheel()

bool OnMouseWheel ( Widget w,
int x,
int y,
int wheel )
inlineprivate

Definition at line 403 of file uiscriptedmenu.c.

References Count, UIScriptedWindow::GetActiveWindows(), x, and y.

◆ OnPlayerDeath()

void OnPlayerDeath ( )
inlineprivate

Definition at line 608 of file uiscriptedmenu.c.

References Close().

Referenced by OnHide(), and OnShow().

◆ OnRPC()

void OnRPC ( ParamsReadContext ctx)
inlineprivate

Definition at line 595 of file uiscriptedmenu.c.

◆ OnRPCEx()

void OnRPCEx ( int rpc_type,
ParamsReadContext ctx )
inlineprivate

Definition at line 596 of file uiscriptedmenu.c.

◆ OnSelect()

bool OnSelect ( Widget w,
int x,
int y )
inlineprivate

Definition at line 283 of file uiscriptedmenu.c.

References Count, UIScriptedWindow::GetActiveWindows(), x, and y.

◆ OnShow()

void OnShow ( )
inlineprivate

◆ OnVisibilityChanged()

void OnVisibilityChanged ( bool isVisible)
inlineprivate

If visibility of application is changed. On console it is called when application is suspended or constrained.

Parameters
isVisibleindicate if application is visible in foreground

Definition at line 26 of file uiscriptedmenu.c.

◆ OnXboxEvent()

bool OnXboxEvent ( int xboxEvent)
inlineprivate

Definition at line 590 of file uiscriptedmenu.c.

◆ Refresh()

void Refresh ( )
inlineprivate

Refresh request, called from anywhere.

Definition at line 59 of file uiscriptedmenu.c.

◆ SetFadingPanels()

proto native void SetFadingPanels ( Widget panel0,
Widget panel1,
Widget panel2,
Widget panel3,
Widget panel4 )
private

Refresh request, called from anywhere.

◆ SetID()

void SetID ( int id)
inlineprivate

Sets MenuID.

Definition at line 146 of file uiscriptedmenu.c.

References m_id.

◆ SetParentMenu()

proto native void SetParentMenu ( UIMenuPanel parent)
private

◆ SetSubMenu()

proto native void SetSubMenu ( UIMenuPanel submenu)
private

◆ SetWidgetAnimAlpha()

void SetWidgetAnimAlpha ( Widget widget)
inlineprivate

Definition at line 155 of file uiscriptedmenu.c.

References m_AnimAlphaValue, and m_AnimAlphaWidget.

◆ UIScriptedMenu()

void UIScriptedMenu ( )
inlineprivate

Definition at line 136 of file uiscriptedmenu.c.

References m_id, and MENU_UNKNOWN.

Referenced by EnterScriptedMenu().

◆ UnlockControls()

◆ Update()

void Update ( float timeslice)
inlineprivate

Per frame update, called from engine.

Definition at line 195 of file uiscriptedmenu.c.

References m_AnimAlphaIsIncreasing, m_AnimAlphaValue, and m_AnimAlphaWidget.

◆ UseGamepad()

bool UseGamepad ( )
inlineprivate

Definition at line 49 of file uiscriptedmenu.c.

◆ UseKeyboard()

bool UseKeyboard ( )
inlineprivate

Definition at line 41 of file uiscriptedmenu.c.

References g_Game.

◆ UseMouse()

bool UseMouse ( )
inlineprivate

Definition at line 33 of file uiscriptedmenu.c.

References g_Game.

Field Documentation

◆ layoutRoot

Widget layoutRoot
private

Definition at line 69 of file uiscriptedmenu.c.

Referenced by GetLayoutRoot().

◆ m_AnimAlphaIsIncreasing

bool m_AnimAlphaIsIncreasing
private

Definition at line 71 of file uiscriptedmenu.c.

Referenced by Update().

◆ m_AnimAlphaValue

float m_AnimAlphaValue
private

Definition at line 72 of file uiscriptedmenu.c.

Referenced by SetWidgetAnimAlpha(), and Update().

◆ m_AnimAlphaWidget

Widget m_AnimAlphaWidget
private

Definition at line 70 of file uiscriptedmenu.c.

Referenced by SetWidgetAnimAlpha(), and Update().

◆ m_id

int m_id
private

Definition at line 68 of file uiscriptedmenu.c.

Referenced by GetID(), SetID(), and UIScriptedMenu().

◆ m_PlayerDeathInvoker

ScriptInvoker m_PlayerDeathInvoker
private

Definition at line 73 of file uiscriptedmenu.c.

Referenced by OnHide(), and OnShow().


The documentation for this class was generated from the following file: