DayZ 1.24
Loading...
Searching...
No Matches
UIScriptedMenu Class Reference
Inheritance diagram for UIScriptedMenu:
[legend]
Collaboration diagram for UIScriptedMenu:
[legend]

Protected Member Functions

override void Update (float timeslice)
 
void Leave ()
 
bool CanChangeHintPage (float timeAccu)
 
bool IsStatic ()
 
override Widget Init ()
 
void ReadBook (InventoryItem book)
 
override bool OnClick (Widget w, int x, int y, int button)
 
void NextPrevPage (bool next)
 
void CameraToolsMenu ()
 
void ~CameraToolsMenu ()
 
override void OnShow ()
 
override void OnHide ()
 
void SelectKeyframe (CTKeyframe kf)
 
void SelectEvent (CTEvent ev)
 
void SelectActor (CTActor ac)
 
override Widget Init ()
 
PlayerBase GetActor (int index)
 
void LoadData ()
 
void SaveData ()
 
float GetTotalTime (int index)
 
void AddKeyframe ()
 
void SaveKeyframe ()
 
void DeleteKeyframe ()
 
void ViewKeyframe ()
 
void AddActor (string actor_type)
 
void AddEvent (int actor_index)
 
void AddItem (string id, string type)
 
void AddHandsItem (string id, string type)
 
void SaveEvent ()
 
void DeleteEvent ()
 
void ViewEvent ()
 
Param6< vector, vector, float, float, float, intGetCameraLine (int index)
 
void Play ()
 
void Stop ()
 
vector GetCameraLookDir ()
 
vector GetMouseLookDir ()
 
override void Update (float timeslice)
 
float SetCameraData (Param6< vector, vector, float, float, float, int > transform1, Param6< vector, vector, float, float, float, int > transform2)
 
void SetBlurValue (float blur)
 
float GetBlurValue ()
 
override bool OnMouseButtonDown (Widget w, int x, int y, int button)
 
override bool OnMouseButtonUp (Widget w, int x, int y, int button)
 
override bool OnClick (Widget w, int x, int y, int button)
 
override bool OnMouseEnter (Widget w, int x, int y)
 
override bool OnMouseLeave (Widget w, Widget enterW, int x, int y)
 
override bool OnFocus (Widget w, int x, int y)
 
override bool OnFocusLost (Widget w, int x, int y)
 
bool IsFocusable (Widget w)
 
override bool OnKeyPress (Widget w, int x, int y, int key)
 
void ColorRed (Widget w)
 
void ColorWhite (Widget w, Widget enterW)
 
void ~ControlsXboxNew ()
 
void OnInputPresetChanged ()
 
void OnInputDeviceChanged (EInputDeviceType pInputDeviceType)
 
void Back ()
 
void UpdateTabContent (int tab_index)
 
void DrawConnectingLines (int index)
 
override Widget Init ()
 
override void OnShow ()
 
override bool OnClick (Widget w, int x, int y, int button)
 
override bool OnMouseEnter (Widget w, int x, int y)
 
override bool OnMouseLeave (Widget w, Widget enterW, int x, int y)
 
override bool OnFocus (Widget w, int x, int y)
 
override bool OnFocusLost (Widget w, int x, int y)
 
bool IsFocusable (Widget w)
 
override void Update (float timeslice)
 
void ComposeData ()
 Inits data structure.
 
void PerformSwitchPreset ()
 
void UpdateToolbarText ()
 
Widget FindChildByID (Widget wid, int user_id)
 Finds immediate child widget with a corresponding userID.
 
bool FindAllChildrenByID (Widget wid, int user_id, out array< Widget > results)
 Finds all immediate children widgets with corresponding userIDs.
 
int FilterByVisible (array< Widget > input, array< Widget > filtered)
 returns count
 
void ColorHighlight (Widget w)
 
void ColorNormal (Widget w)
 
void ButtonSetText (Widget w, string text)
 
void ButtonSetColor (Widget w, int color)
 
void ButtonSetTextColor (Widget w, int color)
 
void UpdateControlsElements ()
 
void UpdateControlsElementVisibility ()
 
void GesturesMenu ()
 
void ~GesturesMenu ()
 
void OnInputPresetChanged ()
 
override Widget Init ()
 
override void OnShow ()
 
override void OnHide ()
 
override bool OnController (Widget w, int control, int value)
 
override bool OnMouseEnter (Widget w, int x, int y)
 
override bool UseMouse ()
 
override bool UseGamepad ()
 
override void Update (float timeslice)
 
void ProcessEmoteConditionRequest (GestureMenuItem gesture_item)
 
void RefreshGestures (GestureCategories category_id=-1)
 
void GetGestureItems (out ref array< ref GestureMenuItem > gesture_items, GestureCategories category)
 
void CreateGestureContent ()
 
void UpdateQuickbarItemCard (GestureMenuItem gesture_item)
 
void DeleteGestureItems ()
 
void UpdateToolbar ()
 DEPRECATED.
 
void UpdateCategoryName (string name)
 
void OnControlsChanged (RadialMenuControlType type)
 
void OnMouseSelect (Widget w)
 
void OnMouseDeselect (Widget w)
 
void OnMouseExecute (Widget w)
 
void OnMousePressLeft (Widget w)
 LMB.
 
void OnMousePressRight (Widget w)
 RMB.
 
void OnControllerSelect (Widget w)
 
void OnControllerDeselect (Widget w)
 
void OnControllerExecute (Widget w)
 
void OnControllerPressSelect (Widget w)
 
void OnControllerPressBack (Widget w)
 
void MarkSelected (Widget w)
 
void UnmarkSelected (Widget w)
 
void ExecuteSelectedCategory (Widget w)
 
void ExecuteSelectedItem ()
 
void BackOneLevel ()
 
bool IsMenuClosing ()
 
void SetMenuClosing (bool state)
 
void UpdateControlsElements ()
 
void OnMenuRelease ()
 DEPRECATED.
 
void ~InGameMenu ()
 
override Widget Init ()
 
void SetGameVersion ()
 
bool SetServerInfo ()
 
void HudShow (bool show)
 
override bool OnMouseEnter (Widget w, int x, int y)
 
override bool OnMouseLeave (Widget w, Widget enterW, int x, int y)
 
override bool OnClick (Widget w, int x, int y, int button)
 
void OnClick_Continue ()
 
void OnClick_Restart ()
 
void OnClick_Respawn ()
 
void OnClick_Options ()
 
void OnClick_Exit ()
 
override bool OnModalResult (Widget w, int x, int y, int code, int result)
 
override void Update (float timeslice)
 
void UpdateGUI ()
 
void MenuRequestRespawn (UIScriptedMenu menu, bool random)
 
void GameRespawn (bool random)
 
void ColorHighlight (Widget w)
 
void ColorNormal (Widget w)
 
void ColorDisable (Widget w)
 
void ButtonSetText (Widget w, string text)
 
void ButtonSetColor (Widget w, int color)
 
void ButtonSetTextColor (Widget w, int color)
 
void SetServerInfoVisibility (bool show)
 
void ToggleFavoriteServer ()
 DEPRECATED.
 
void InGameMenuXbox ()
 
void ~InGameMenuXbox ()
 
void OnInputPresetChanged ()
 
void OnInputDeviceChanged (EInputDeviceType pInputDeviceType)
 
override Widget Init ()
 
override bool OnClick (Widget w, int x, int y, int button)
 
override bool OnModalResult (Widget w, int x, int y, int code, int result)
 
void GameRetry (bool random)
 
void MenuRequestRespawn (UIScriptedMenu menu, bool random)
 
bool IsLocalPlayer (string uid)
 
SyncPlayerList CreateFakePlayerList (int player_count)
 
override void Update (float timeslice)
 
bool ShouldRestartBeVisible (Man player)
 
void UpdateGUI ()
 
bool IsOnlineOpen ()
 
void CloseOnline ()
 
void SelectServer ()
 
override bool OnItemSelected (Widget w, int x, int y, int row, int column, int oldRow, int oldColumn)
 
void SyncEvent_OnRecievedPlayerList (SyncPlayerList player_list)
 
void OnPermissionsUpdate (BiosPrivacyUidResultArray result_list)
 
override void OnShow ()
 
override bool OnMouseEnter (Widget w, int x, int y)
 
override bool OnMouseLeave (Widget w, Widget enterW, int x, int y)
 
override bool OnFocus (Widget w, int x, int y)
 
override bool OnFocusLost (Widget w, int x, int y)
 
bool IsFocusable (Widget w)
 
override void Refresh ()
 
void ColorDisable (Widget w)
 
void ColorHighlight (Widget w)
 
void ColorNormal (Widget w)
 
void ButtonSetText (Widget w, string text)
 
void ButtonSetColor (Widget w, int color)
 
void ButtonSetTextColor (Widget w, int color)
 
void SetMuteButtonText (bool isMuted)
 Set mute text button text (mute / unmute)
 
void LoadTextStrings ()
 Set correct bottom button texts based on platform (ps4 vs xbox texts)
 
void LoadFooterButtonTexts ()
 Initial texts load for the footer buttons.
 
void UpdateMenuFocus ()
 
void UpdateControlsElements ()
 
void OnInputPresetChanged ()
 
void OnInputDeviceChanged (EInputDeviceType pInputDeviceType)
 
void UpdateControlsElements ()
 
void UpdateControlsElementVisibility ()
 
void ~MapMenu ()
 
override Widget Init ()
 
override void InitMapItem (EntityAI item)
 
override void OnShow ()
 
override bool OnClick (Widget w, int x, int y, int button)
 
override bool OnKeyPress (Widget w, int x, int y, int key)
 
void OnInputPresetChanged ()
 
void OnInputDeviceChanged (EInputDeviceType pInputDeviceType)
 
override void Update (float timeslice)
 
void AddMarker (vector pos, int color, int icon=0)
 
void RemoveMarker ()
 
override void LoadMapMarkers ()
 
void CloseMapMenu ()
 
void SetCompassUIVisibility (bool pState)
 
void SetGPSMarkerVisibility (bool pState)
 
void SetGPSDirectionVisibility (bool pState)
 
void SetUpperLegendVisibility (bool pState)
 
void RenderScaleRuler ()
 
void ProcessDistanceAndUnits (float num, out float dist, out string units)
 
void UpdateControlsElements ()
 
void UpdateControlsElementVisibility ()
 
void ShiftMapToolsContainer ()
 
void CharacterCreationMenu ()
 
PlayerBase GetPlayerObj ()
 
void OnInputDeviceChanged (EInputDeviceType pInputDeviceType)
 
override Widget Init ()
 
void ~CharacterCreationMenu ()
 
void Apply ()
 renames character
 
void Save ()
 saves default character
 
void Back ()
 
void SetCharacter ()
 
void RandomizeCharacter ()
 
void GenderChanged ()
 
void SkinChanged ()
 
void TopChanged ()
 
void BottomChanged ()
 
void ShoesChanged ()
 
override bool OnKeyPress (Widget w, int x, int y, int key)
 
override bool OnClick (Widget w, int x, int y, int button)
 
override bool OnMouseButtonDown (Widget w, int x, int y, int button)
 
override bool OnMouseButtonUp (Widget w, int x, int y, int button)
 
override bool OnMouseEnter (Widget w, int x, int y)
 
override bool OnMouseLeave (Widget w, Widget enterW, int x, int y)
 
override bool OnFocus (Widget w, int x, int y)
 
override bool OnFocusLost (Widget w, int x, int y)
 
bool IsFocusable (Widget w)
 
void SetTooltipTexts (Widget w, string header="", string desc="")
 
void CheckNewOptions ()
 
override void OnShow ()
 
override void Refresh ()
 
override void Update (float timeslice)
 
override void OnHide ()
 
void ColorHighlight (Widget w)
 
void ColorNormal (Widget w)
 
void ColorDisable (Widget w)
 
void SetCharacterSaved (bool state)
 
void UpdateControlsElements ()
 
void UpdateControlsElementVisibility ()
 
override Widget Init ()
 
void LoadDataAsync ()
 
override void Update (float timeslice)
 
void UpdateInfoPanelText (int input_device_type)
 
override Widget Init ()
 
void CreateTabs ()
 
void CreateGroupContainer ()
 
void UpdateTabContent (int tab_index)
 
void ClearKeybind (int key_index)
 
void ClearAlternativeKeybind (int key_index)
 
void StartEnteringKeybind (int key_index)
 
void CancelEnteringKeybind ()
 
void StartEnteringAlternateKeybind (int key_index)
 
void CancelEnteringAlternateKeybind ()
 
void ConfirmKeybindEntry (TIntArray new_keys)
 
void ConfirmAlternateKeybindEntry (TIntArray new_keys)
 
override void Update (float timeslice)
 
override bool OnClick (Widget w, int x, int y, int button)
 
void Apply ()
 
void Back ()
 
void Reset ()
 Undoes the unsaved changes and reverts to previous state. Does not reset to defaults!
 
void SetToDefaults ()
 
void HardReset ()
 
void PerformSetToDefaultsExt (int mode)
 
override bool OnModalResult (Widget w, int x, int y, int code, int result)
 
override void Refresh ()
 
override bool OnMouseEnter (Widget w, int x, int y)
 
override bool OnMouseLeave (Widget w, Widget enterW, int x, int y)
 
override bool OnMouseWheel (Widget w, int x, int y, int wheel)
 
override bool OnFocus (Widget w, int x, int y)
 
override bool OnFocusLost (Widget w, int x, int y)
 
bool IsFocusable (Widget w)
 
void ColorRed (Widget w)
 
void ColorWhite (Widget w, Widget enterW)
 
void ColorDisabled (Widget w)
 
void InitInputSortingMap ()
 
void InitPresets (int index, Widget parent, Input input)
 
void OnAttemptSelectPreset (int index)
 
void OnSelectKBPreset (int index)
 
KeybindingsContainer GetCurrentTab ()
 
void AddGroup (int index, Input input)
 
void PerformSetToDefaults ()
 deprecated, resets all (as before ~1.20)
 
void DeferredDefaultsInit ()
 deprecated
 
override Widget Init ()
 
void ~MainMenu ()
 
void LoadMods ()
 
void FilterDlcs (inout array< ref ModInfo > modArray)
 
void ShowDlcFrame (bool show)
 
void PopulateDlcFrame ()
 
override bool OnMouseButtonDown (Widget w, int x, int y, int button)
 
override bool OnMouseButtonUp (Widget w, int x, int y, int button)
 
override bool OnClick (Widget w, int x, int y, int button)
 
override bool OnMouseEnter (Widget w, int x, int y)
 
override bool OnMouseLeave (Widget w, Widget enterW, int x, int y)
 
override bool OnFocus (Widget w, int x, int y)
 
override bool OnFocusLost (Widget w, int x, int y)
 
bool IsFocusable (Widget w)
 
override void Refresh ()
 
override void OnShow ()
 
override void OnHide ()
 
override void Update (float timeslice)
 
void Play ()
 
bool CanSaveDefaultCharacter ()
 
void OpenMenuServerBrowser ()
 
void OpenMenuCustomizeCharacter ()
 
void NextCharacter ()
 
void PreviousCharacter ()
 
void OnChangeCharacter (bool create_character=true)
 
void OpenStats ()
 
void OpenMessages ()
 
void OpenSettings ()
 
void PlayVideo ()
 
void OpenTutorials ()
 
void OpenCredits ()
 
void Exit ()
 
bool TryConnectLastSession (out string ip, out int port)
 
void AutoConnect ()
 
void ConnectLastSession ()
 
void ConnectBestServer ()
 
override bool OnModalResult (Widget w, int x, int y, int code, int result)
 
void ColorHighlight (Widget w)
 
void ColorNormal (Widget w)
 
void ButtonSetText (Widget w, string text)
 
void ButtonSetColor (Widget w, int color)
 
void ImagenSetColor (Widget w, int color)
 
void ButtonSetTextColor (Widget w, int color)
 
override Widget Init ()
 
void ~MainMenuConsole ()
 
void OnDLCChange (EDLCId dlcId)
 
void LoadMods ()
 
void FilterDLCs (inout array< ref ModInfo > modArray)
 leaves ONLY DLCs
 
void PopulateDlcFrame ()
 
void OnInputPresetChanged ()
 
void OnInputDeviceChanged (EInputDeviceType pInputDeviceType)
 
override bool OnClick (Widget w, int x, int y, int button)
 
override bool OnFocus (Widget w, int x, int y)
 
override bool OnFocusLost (Widget w, int x, int y)
 
override void Refresh ()
 
override void OnShow ()
 
override void OnHide ()
 
override void Update (float timeslice)
 
bool CanStoreBeOpened ()
 
void OpenMenuServerBrowser ()
 
void OpenMenuControls ()
 
void OpenMenuOptions ()
 
void OpenMenuPlayVideo ()
 
void OpenMenuTutorials ()
 
void OpenMenuCustomizeCharacter ()
 
void OpenCredits ()
 
void ChangeAccount ()
 
void Exit ()
 
void ColorHighlight (Widget w)
 
void ColorNormal (Widget w)
 
override bool OnModalResult (Widget w, int x, int y, int code, int result)
 
void ButtonSetText (Widget w, string text)
 
void ButtonSetColor (Widget w, int color)
 
void ButtonSetAlphaAnim (Widget w)
 
void ButtonSetTextColor (Widget w, int color)
 
void UpdateControlsElements ()
 
void UpdateControlsElementVisibility ()
 
override Widget Init ()
 
void ~MainMenuVideo ()
 
override void OnShow ()
 
override void OnHide ()
 
void OnInputDeviceChanged (EInputDeviceType pInputDeviceType)
 
void StopVideo ()
 
void PlayPauseVideo ()
 
override void Update (float timeslice)
 
override void OnVisibilityChanged (bool isVisible)
 
void LoadFooterButtonTexts ()
 
void LoadTextStrings ()
 
void UpdateControlsElements ()
 
override Widget Init ()
 
void ~TutorialsMenu ()
 
void OnInputPresetChanged ()
 
void OnInputDeviceChanged (EInputDeviceType pInputDeviceType)
 
override void OnShow ()
 
void Back ()
 
void DrawConnectingLines (int index)
 
array< ref JsonControlMappingInfoGetControlMappingInfo ()
 
override void Update (float timeslice)
 
void LoadFooterButtonTexts ()
 Initial texts load for the footer buttons.
 
void LoadTextStrings ()
 Set correct bottom button texts based on platform (ps4 vs xbox texts)
 
override bool OnClick (Widget w, int x, int y, int button)
 
override bool OnMouseEnter (Widget w, int x, int y)
 
override bool OnMouseLeave (Widget w, Widget enterW, int x, int y)
 
override bool OnFocus (Widget w, int x, int y)
 
override bool OnFocusLost (Widget w, int x, int y)
 
bool IsFocusable (Widget w)
 
void ColorHighlight (Widget w)
 
void ColorNormal (Widget w)
 
void ButtonSetText (Widget w, string text)
 
void ButtonSetColor (Widget w, int color)
 
void ImagenSetColor (Widget w, int color)
 
void ButtonSetTextColor (Widget w, int color)
 
void UpdateControlsElements ()
 
void UpdateControlsElementVisibility ()
 
void OptionsMenu ()
 
override Widget Init ()
 
void ~OptionsMenu ()
 
void OnInputPresetChanged ()
 
void OnInputDeviceChanged (EInputDeviceType pInputDeviceType)
 
override bool OnClick (Widget w, int x, int y, int button)
 
void OnTabSwitch (int tab)
 
void Apply ()
 
void Back ()
 
void OnAttemptTabSwitch (int source, int target)
 
bool IsAnyTabChanged ()
 
void OnChanged ()
 
void Reset ()
 
void ResetCurrentTab ()
 
void SetToDefaults ()
 
void PerformSetToDefaults ()
 
void SliderFocus ()
 
void ToggleFocus ()
 
void ToggleDependentOptions (int mode, bool state)
 Controls visibility and sometimes even state of specific, dependent options across sub-menus.
 
void ReloadOptions ()
 
void ReloadVideoOptions ()
 
override bool OnModalResult (Widget w, int x, int y, int code, int result)
 
override bool OnMouseEnter (Widget w, int x, int y)
 
override bool OnMouseLeave (Widget w, Widget enterW, int x, int y)
 
override bool OnFocus (Widget w, int x, int y)
 
override bool OnFocusLost (Widget w, int x, int y)
 
bool IsFocusable (Widget w)
 
override void Refresh ()
 
override void OnShow ()
 
override void Update (float timeslice)
 
void ColorHighlight (Widget w)
 
void ColorNormal (Widget w)
 
void ColorDisable (Widget w)
 
void UpdateControlsElements ()
 
void UpdateControlsElementVisibility ()
 
override Widget Init ()
 
void ~ServerBrowserMenuNew ()
 
TStringArray GetFavoritedServerIds ()
 
void OnInputPresetChanged ()
 
void OnInputDeviceChanged (EInputDeviceType pInputDeviceType)
 
override bool OnClick (Widget w, int x, int y, int button)
 
override bool OnMouseEnter (Widget w, int x, int y)
 
override bool OnMouseLeave (Widget w, Widget enterW, int x, int y)
 
void SetServersLoadingTab (TabType refreshing)
 
TabType GetServersLoadingTab ()
 
void AddFavoritesToFilter (GetServersInput input)
 
bool IsFavorited (string server_id)
 
bool SetFavoriteConsoles (string ipAddress, int port, bool favorite)
 
void AddFavorite (string ipAddress, int port, bool favorite)
 
void Back ()
 
void ShowYButton (bool show)
 
void ShowAButton (bool show)
 
void FilterFocus (bool focus)
 
void BackButtonFocus ()
 
void ServerListFocus (bool focus, bool favorite)
 
override bool OnFocus (Widget w, int x, int y)
 
override bool OnFocusLost (Widget w, int x, int y)
 
override void Refresh ()
 
override void Update (float timeslice)
 
bool IsFocusable (Widget w)
 
void LoadFavoriteServers ()
 
void SaveFavoriteServersConsoles ()
 
void SelectServer (ServerBrowserEntry server)
 
void Connect (ServerBrowserEntry server)
 
void Play ()
 
void CustomizeCharacter ()
 
void NextCharacter ()
 
void PreviousCharacter ()
 
ServerBrowserTab GetSelectedTab ()
 
void OnTabSwitch ()
 
void OnLoadServerModsAsync (GetServerModListResult result_list)
 
void OnLoadServersAsync (GetServersResult result_list, EBiosError error, string response)
 
void ColorHighlight (Widget w)
 
void ColorNormal (Widget w)
 
void ButtonSetText (Widget w, string text)
 
void ButtonSetColor (Widget w, int color)
 
void ButtonSetTextColor (Widget w, int color)
 
void UpdateControlsElements ()
 
void NoteMenu ()
 
void ~NoteMenu ()
 
override void InitNoteRead (string text="")
 
override void InitNoteWrite (EntityAI paper, EntityAI pen, string text="")
 
override Widget Init ()
 
override bool OnClick (Widget w, int x, int y, int button)
 
override void Update (float timeslice)
 
void RadialQuickbarMenu ()
 
void ~RadialQuickbarMenu ()
 
void OnInputPresetChanged ()
 
override Widget Init ()
 
override void OnShow ()
 
override void OnHide ()
 
override bool OnController (Widget w, int control, int value)
 
override bool OnMouseEnter (Widget w, int x, int y)
 
override bool UseMouse ()
 
override bool UseGamepad ()
 
void RefreshQuickbar (bool reset_selection=true)
 
void GetItems (out ref array< ref RadialQuickbarItem > items)
 
void CheckForLightsAndNVG (out ref array< ref RadialQuickbarItem > items, int last_idx)
 
void CreateContent (int selected_item_id=-1)
 
void UpdateQuickbarItemCard (RadialQuickbarItem quickbar_item)
 
void DeleteItems ()
 
void ChangeCurrentCategory (int category)
 
void OnControlsChanged (RadialMenuControlType type)
 
void OnMouseSelect (Widget w)
 
void OnMouseDeselect (Widget w)
 
void OnMouseExecute (Widget w)
 
void OnMousePressLeft (Widget w)
 LMB.
 
void OnMousePressRight (Widget w)
 RMB.
 
void OnControllerSelect (Widget w)
 
void OnControllerDeselect (Widget w)
 
void OnControllerPressSelect (Widget w)
 
void OnControllerPressBack (Widget w)
 
void MarkSelected (Widget w)
 
void UnmarkSelected (Widget w)
 
void PrimaryAction (Widget w)
 
void SecondaryAction (Widget w)
 
void BackOneLevel ()
 
void HandleLights (RadialQuickbarItem quickbar_item)
 
void HandleNVG (RadialQuickbarItem quickbar_item)
 
bool IsMenuClosing ()
 
void SetMenuClosing (bool state)
 
void UpdateControlsElements ()
 
void RespawnDialogue ()
 
void ~RespawnDialogue ()
 
override Widget Init ()
 
override void Update (float timeslice)
 
override bool OnClick (Widget w, int x, int y, int button)
 
override bool OnMouseEnter (Widget w, int x, int y)
 
override bool OnMouseLeave (Widget w, Widget enterW, int x, int y)
 
override void OnShow ()
 
override bool OnFocus (Widget w, int x, int y)
 
override bool OnFocusLost (Widget w, int x, int y)
 
bool IsFocusable (Widget w)
 
void ColorHighlight (Widget w)
 
void ColorNormal (Widget w)
 
void ButtonSetColor (Widget w, int color)
 
void ButtonSetTextColor (Widget w, int color)
 
void SetTooltipTexts (Widget w, string header="", string desc="")
 
bool RequestRespawn (bool random)
 
void RefreshByLocalProfile ()
 
void UpdateListClasses ()
 
map< int, SceneObjectGetFiltredSceneObjects (string search_string, map< int, SceneObject > array_ret)
 
TStringArray GetFiltredConfigClasses (string search_string, TStringArray array_ret)
 
void ScriptConsole ()
 
void ~ScriptConsole ()
 
ScriptConsoleTabBase GetSelectedHandler ()
 
void SetHintText (string text, Widget w)
 
void RegisterTab (ScriptConsoleTabBase handler)
 
override Widget Init ()
 
void HideHint ()
 
int GetWidgetCombinedHash (Widget w)
 
string GetMessage ()
 
void HoverSuccess ()
 
void HoverInterrupt ()
 
override bool OnKeyPress (Widget w, int x, int y, int key)
 
override bool OnKeyDown (Widget w, int x, int y, int key)
 
override void Update (float timeslice)
 
override bool OnMouseButtonDown (Widget w, int x, int y, int button)
 
override bool OnClick (Widget w, int x, int y, int button)
 
override bool OnDoubleClick (Widget w, int x, int y, int button)
 
override bool OnMouseLeave (Widget w, Widget enterW, int x, int y)
 
override bool OnMouseEnter (Widget w, int x, int y)
 
override bool OnChange (Widget w, int x, int y, bool finished)
 
override bool OnItemSelected (Widget w, int x, int y, int row, int column, int oldRow, int oldColumn)
 
ScriptConsoleTabBase GetTabHandler (typename tabType)
 
void SelectTabByID (int id)
 
void SelectTabByButton (Widget button)
 
void SelectTab (ScriptConsoleTabBase selectedHandler)
 
void DisplayHint (string message)
 
override void OnRPCEx (int rpc_type, ParamsReadContext ctx)
 

Static Protected Member Functions

static void PlayAnimOnActor (int actor, int anim)
 
static void OpenMenu ()
 
static void CloseMenu ()
 
static void SetItemToAssign (EntityAI item)
 
static EntityAI GetItemToAssign ()
 
static RadialQuickbarMenu GetMenuInstance ()
 
static void OpenMenu (UIScriptedMenu parent=NULL)
 
static void CloseMenu ()
 
static void SaveData ()
 
static JsonHintsData GetData ()
 

Protected Attributes

ref UiHintPanelLoading m_HintPanel
 
bool m_IsStatic
 
float m_HintTimeAccu
 
TextWidget m_author
 
TextWidget m_title
 
TextWidget m_page
 
HtmlWidget m_content
 
float m_page_height
 
float m_content_total_height
 
float m_content_pos
 
vector m_FreeflightCamTransform [4]
 
vector m_NextCamPosition
 
float m_Time
 
Camera m_Camera1
 
Camera m_Camera2
 
ref array< ref Param6< vector, vector, float, float, float, int > > m_CameraLines
 
bool m_IsPlaying
 
int m_NextCameraIndex = 1
 
float m_FollowingTimeFinished
 
ref Param2< int, intm_FollowingBone
 
CTKeyframe m_SelectedKeyframe
 
CTEvent m_SelectedEvent
 
CTActor m_SelectedActor
 
ref array< ref CTActor > m_Actors
 
ref array< ref CTKeyframe > m_Cameras
 
ref array< ref CTEvent > m_Events
 
Widget m_KeyframeContent
 
Widget m_EventContent
 
XComboBoxWidget m_InterpTypeSpeedCombo
 
XComboBoxWidget m_InterpTypeCombo
 
EditBoxWidget m_BlurEditWidget
 
EditBoxWidget m_ActorTypeWidget
 
EditBoxWidget m_ActorIdWidget
 
EditBoxWidget m_ActorItemTypeWidget
 
ButtonWidget m_AddItem
 
ButtonWidget m_AddHandsItem
 
ButtonWidget m_AddActor
 
ButtonWidget m_Play
 
ButtonWidget m_Stop
 
ButtonWidget m_Save
 
ButtonWidget m_Load
 
ButtonWidget m_AddKeyframe
 
ButtonWidget m_SaveKeyframe
 
ButtonWidget m_DeleteKeyframe
 
ButtonWidget m_ViewKeyframe
 
ButtonWidget m_AddEvent
 
ButtonWidget m_SaveEvent
 
ButtonWidget m_DeleteEvent
 
ButtonWidget m_ViewEvent
 
ButtonWidget m_CopyButton
 
ButtonWidget m_ApplyButton
 
EditBoxWidget m_CameraEditbox
 
TextWidget m_CameraValues
 
string m_BackButtonTextID
 
string m_NextPresetText
 
int m_CurrentTabIdx = -1
 
int m_CurrentPresetVariant = -1
 
ButtonWidget m_Back
 
ImageWidget m_ControlsLayoutImage
 
CanvasWidget m_CanvasWidget
 
TabberUI m_TabScript
 
Widget m_TabberWidget
 
Widget m_ControlsImage
 
Widget m_PlatformHolder
 
Widget m_VariantWidget
 
ref map< int, Widgetm_ImageMarkerStructure
 
ref map< int, Widgetm_CategoryStructure
 
ref map< int, ref TButtonPairingInfom_AreasLR
 
const int AREA_LEFT = 1
 
const int AREA_RIGHT = 2
 
const int PLATFORM_ADJUST_X1 = 1000
 
const int PLATFORM_ADJUST_PS = 2000
 
Widget m_GestureItemCardPanel
 
ref array< ref GestureMenuItemm_GestureItems
 
Widget m_ToolbarPanel
 
TextWidget m_CategoryNameText
 
const string RADIAL_TEXT = "RadialText"
 
const string GESTURE_TEXT = "GestureNameText"
 
const string INPUT_TEXT = "InputActionText"
 
const string CATEGORY_NAME = "CategoryName"
 
Widget m_SelectedItem
 
bool m_IsCategorySelected
 
bool m_IsMenuClosing
 
int m_CurrentCategory
 
Widget m_ContinueButton
 
Widget m_SeparatorPanel
 
Widget m_ExitButton
 
Widget m_RestartButton
 
Widget m_RespawnButton
 
Widget m_RestartDeadRandomButton
 
Widget m_RestartDeadCustomButton
 
Widget m_OptionsButton
 
Widget m_ServerInfoPanel
 
Widget m_FavoriteButton
 
Widget m_FavoriteImage
 
Widget m_UnfavoriteImage
 
Widget m_CopyInfoButton
 
ref TextWidget m_ModdedWarning
 
ref TextWidget m_ServerIP
 
ref TextWidget m_ServerPort
 
ref TextWidget m_ServerName
 
ref UiHintPanel m_HintPanel
 
string m_MuteButtonTextID
 
string m_UnmuteButtonTextID
 
string m_SelectButtonTextID
 
string m_OpenGameCardButtonTextID
 
string m_CurrentMuteButtonText
 
bool m_SelectAvailable
 
bool m_MuteAvailable
 
bool m_BackAvailable
 
bool m_GamercardAvailable
 
bool m_PlayerAlive
 
ref PlayerListScriptedWidget m_ServerInfoPanel
 
Widget m_OnlineMenu
 
ButtonWidget m_ContinueButton
 
ButtonWidget m_ExitButton
 
ButtonWidget m_RestartDeadButton
 
ButtonWidget m_RestartButton
 
ButtonWidget m_OptionsButton
 
ButtonWidget m_ControlsButton
 
ButtonWidget m_OnlineButton
 
ButtonWidget m_TutorialsButton
 
TextWidget m_Version
 
const int BUTTON_XBOX_CONTROLS = 201
 
const string COORD_FORMAT = "%1.%2%3"
 
const int SCALE_RULER_LINE_WIDTH = 8
 
const int SCALE_RULER_NUM_SEGMENTS = 10
 
bool m_WasChanged
 
bool m_IsOpenning
 
float m_ToolScaleCellSizeCanvasWidth
 
float m_ToolsContainerPos0 [2]
 
ref IngameHud m_Hud
 
ref MapHandler m_MapMenuHandler
 
ref MapWidget m_MapWidgetInstance
 
ref SizeToChild m_LegendResizer
 
Widget m_MapToolsContainer
 
ImageWidget m_Images
 
Widget m_GPSMarker
 
ImageWidget m_GPSMarkerArrow
 
Widget m_UpperLegendContainer
 
Widget m_ToolsCompassBase
 
ImageWidget m_ToolsCompassArrow
 
TextWidget m_ToolsCompassAzimuth
 
TextWidget m_ToolsScaleContourText
 
TextWidget m_ToolsGPSElevationText
 
TextWidget m_ToolsGPSXText
 
TextWidget m_ToolsGPSYText
 
TextWidget m_ToolsScaleCellSizeText
 
CanvasWidget m_ToolsScaleCellSizeCanvas
 
ItemMap m_Map
 
ref MapNavigationBehaviour m_MapNavigationBehaviour
 
Widget m_CharacterRotationFrame
 
Widget m_Apply
 
Widget m_Save
 
Widget m_RandomizeCharacter
 
Widget m_BackButton
 
Widget m_PlayedCharacterInfo
 
Widget m_DetailsRoot
 
TextWidget m_DetailsLabel
 
RichTextWidget m_DetailsText
 
TextWidget m_CharacterHeaderText
 
ref OptionSelectorEditbox m_NameSelector
 
ref OptionSelectorMultistateCharacterMenu m_GenderSelector
 
ref OptionSelectorMultistateCharacterMenu m_SkinSelector
 
ref OptionSelectorMultistateCharacterMenu m_TopSelector
 
ref OptionSelectorMultistateCharacterMenu m_BottomSelector
 
ref OptionSelectorMultistateCharacterMenu m_ShoesSelector
 
int m_OriginalCharacterID
 
float m_MenuFadeInIncrement
 
float m_MenuFadeInLevel
 
float m_MenuFadeInLevel2 = 1
 
float m_LogoFadeInIncrement
 
float m_LogoFadeInLevel
 
float m_ScrollIncrement
 
float m_ScrollLevel
 
float m_ScrollMax
 
float m_ScrollSize
 
ref JsonDataCredits m_CreditsData
 
float m_CurrentTime = 0.0
 
ref array< ref CreditsElementm_CreditsEntries = new array<ref CreditsElement>
 
ImageWidget m_Logo
 
ScrollWidget m_Scroller
 
WrapSpacerWidget m_Content
 
RichTextWidget m_InfoPanelText
 
Widget m_InfoPanel
 
TabberUI m_Tabber
 
ref DropdownPrefab m_KBDropdown
 
ref OptionSelectorMultistate m_PresetSelector
 
ref KeybindingsContainer m_GroupsContainer
 
ref array< ref KeybindingsGroup > m_Tabs
 
ButtonWidget m_Apply
 
ButtonWidget m_Undo
 
ButtonWidget m_Defaults
 
ButtonWidget m_HardReset
 
int m_CurrentSettingKeyIndex = -1
 
int m_CurrentSettingAlternateKeyIndex = -1
 
int m_OriginalPresetIndex
 
int m_TargetPresetIndex
 
ref array< intm_SetKeybinds
 
const int MODAL_ID_BACK = 1337
 
const int MODAL_ID_DEFAULT = 100
 
const int MODAL_ID_DEFAULT_ALL = 101
 
const int MODAL_ID_PRESET_CHANGE = 200
 
const int MODAL_RESULT_DEFAULT_CURRENT = 0
 
const int MODAL_RESULT_DEFAULT_ALL = 1
 
ref MainMenuStats m_Stats
 
ref MainMenuVideo m_Video
 
MissionMainMenu m_Mission
 
DayZIntroScenePC m_ScenePC
 
TextWidget m_PlayerName
 
Widget m_Play
 
Widget m_ChooseServer
 
Widget m_CustomizeCharacter
 
Widget m_PlayVideo
 
Widget m_Tutorials
 
Widget m_TutorialButton
 
Widget m_MessageButton
 
Widget m_SettingsButton
 
Widget m_Exit
 
Widget m_NewsMain
 
Widget m_NewsSec1
 
Widget m_NewsSec2
 
Widget m_PrevCharacter
 
Widget m_NextCharacter
 
Widget m_LastPlayedTooltip
 
Widget m_LastPlayedTooltipLabel
 
TextWidget m_LastPlayedTooltipName
 
TextWidget m_LastPlayedTooltipIP
 
TextWidget m_LastPlayedTooltipPort
 
ref WidgetFadeTimer m_LastPlayedTooltipTimer
 
ref Widget m_LastFocusedButton
 
ref ModsMenuSimple m_ModsSimple
 
ref ModsMenuDetailed m_ModsDetailed
 
ref ModsMenuTooltip m_ModsTooltip
 
Widget m_DlcFrame
 
ref map< string, ref ModInfom_AllDlcsMap
 
ref JsonDataDLCList m_DlcData
 
ref array< ref MainMenuDlcHandlerBase > m_DlcHandlers
 
ref MainMenuDlcHandlerBase m_DisplayedDlcHandler
 
Widget m_ChangeAccount
 
Widget m_Options
 
Widget m_Controls
 
ref array< ref ModInfom_AllDLCs
 
VideoWidget m_Video
 
const string PATH_MOUSEKEY = "scripts/data/pagedatatutorials.json"
 
const string PATH_X1_OLD = "xbox/pagedatatutorials.json"
 
const string PATH_X1_NEW = "xbox/pagedatatutorialsalternate.json"
 
const string PATH_PS_OLD = "ps4/pagedatatutorials.json"
 
const string PATH_PS_NEW = "ps4/pagedatatutorialsalternate.json"
 
Widget m_InfoTextLeft
 
Widget m_InfoTextRight
 
const int TABS_COUNT = 4
 
ImageWidget m_tab_images [TABS_COUNT]
 
ref TutorialKeybinds m_KeybindsTab
 
ref OptionsMenuGame m_GameTab
 
ref OptionsMenuSounds m_SoundsTab
 
ref OptionsMenuVideo m_VideoTab
 
ref OptionsMenuControls m_ControlsTab
 
ref GameOptions m_Options
 
ButtonWidget m_Reset
 
Widget m_Details
 
int m_ActiveTabIdx = 0
 
bool m_ModalLock
 
bool m_CanApplyOrReset
 
bool m_CanToggle
 
Widget m_Back
 
ref ServerBrowserTab m_OfficialTab
 
ref ServerBrowserTab m_CommunityTab
 
ref ServerBrowserTab m_FavoritesTab
 
ref ServerBrowserTab m_LANTab
 
TabType m_IsRefreshing = TabType.NONE
 
ref TStringArray m_Favorites
 
ServerBrowserEntry m_SelectedServer
 
MultilineEditBoxWidget m_edit
 
HtmlWidget m_html
 
ButtonWidget m_confirm_button
 
ItemBase m_Paper
 
EntityAI m_Pen
 
bool m_IsWriting
 
int m_SymbolCount
 
string m_PenColor
 
Widget m_ItemCardPanel
 
ref array< ref RadialQuickbarItemm_Items
 
const string TEXT_ITEM_NAME = "ItemName"
 
const string TEXT_ITEM_TITLE = "ItemTitle"
 
Widget m_CustomRespawn
 
Widget m_CurrentlyHighlighted
 
Widget m_WgtRoot
 
PluginSceneManager m_ModuleSceneManager
 
ButtonWidget m_WgtBtnSceneManager
 
ButtonWidget m_WgtBtnSceneSettings
 
ButtonWidget m_WgtBtnSceneSave
 
ButtonWidget m_WgtBtnEditorSettings
 
ButtonWidget m_WgtBtnDeleteRuler
 
Widget m_WgtPopupsMain
 
Widget m_WgtPopupsBg
 
ref TIntArray m_OpenedPopups
 
ref map< int, ref UIPopupScriptm_Popups
 
TextWidget m_SlWgtLoadedScene
 
string m_SlSelectedClass
 
ref map< int, SceneObjectm_SlObjectsList
 
TextListboxWidget m_SlWgtLbxObjectsList
 
EditBoxWidget m_SlWgtEbxFilter
 
ButtonWidget m_SlWgtSelect
 
ButtonWidget m_SlWgtFocus
 
string m_ClSelectedClass
 
ref TStringArray m_ClClassesList
 
EditBoxWidget m_ClWgtEbxFilter
 
TextListboxWidget m_ClWgtLbxClassesList
 
ButtonWidget m_ClWgtButtonAddAtt
 
TextWidget m_PrWgtClassName
 
EditBoxWidget m_PrWgtPoxX
 
EditBoxWidget m_PrWgtPoxY
 
EditBoxWidget m_PrWgtPoxZ
 
EditBoxWidget m_PrWgtDir
 
EditBoxWidget m_PrWgtDmg
 
ButtonWidget m_WgtBtnEditInitScript
 
Widget m_PrWgtAttRoot
 
Widget m_PrWgtAttTitle
 
ref array< ref UIPropertyAttachmentm_PrWidgetsAttachments
 
ref WidgetFadeTimer m_NotifyFadeTimer
 
Widget m_NotifyWgtPanel
 
TextListboxWidget m_PresetsTextListbox
 
TextListboxWidget m_PresetItemsTextListbox
 
ButtonWidget m_PresetAddItemtButton
 
ButtonWidget m_PresetRemoveItemButton
 
ButtonWidget m_SpawnOnGroundButton
 
ButtonWidget m_SpawnInInventoryButton
 
ButtonWidget m_SpawnAsAttachmentButton
 
ButtonWidget m_UpButton
 
ButtonWidget m_DownButton
 
ButtonWidget m_PresetNewButton
 
ButtonWidget m_PresetDeleteButton
 
ButtonWidget m_PresetRenameButton
 
ButtonWidget m_PresetSetDefaultButton
 
ButtonWidget m_CopyToClipboardButton
 
EditBoxWidget m_DamageEditBox
 
EditBoxWidget m_QuantityEditBox
 
EditBoxWidget m_SpawnDistanceEditBox
 
EditBoxWidget m_ConfigsButton
 
Widget m_WgtPnlWrapper
 
ButtonWidget m_WgtBtnLeftPresets
 
ButtonWidget m_WgtBtnPositionManager
 
string m_SelectedObject
 
bool m_SelectedObjectIsPreset
 
PluginDeveloper m_Developer
 
UIPopupScriptPositionManager m_PopupScriptPositionManager
 
PluginConfigDebugProfileFixed m_ConfigDebugProfileFixed
 
PluginConfigDebugProfile m_ConfigDebugProfile
 
bool m_HintEditMode
 
float m_HoverTime
 
bool m_HoverSuccessTriggered
 
Widget m_CurrentHoverWidget
 
Widget m_HintWidgetRoot
 
ImageWidget m_HintWidgetBackground
 
Widget m_EditTooltipRoot
 
RichTextWidget m_HintWidget
 
ButtonWidget m_HintOkButton
 
ButtonWidget m_HintCancelButton
 
ButtonWidget m_HintClearButton
 
EditBoxWidget m_HintInputText
 
float m_PrevMouseX
 
float m_PrevMouseY
 
Widget m_ButtonsWindowWidget
 
ScriptConsoleTabBase m_SelectedHandler
 
int m_Id
 
int m_SelectedTab
 
ref map< Widget, ref ScriptConsoleTabBasem_TabHandlers = new map<Widget, ref ScriptConsoleTabBase>
 
ref map< int, ref ScriptConsoleTabBasem_TabHandlersByID = new map<int, ref ScriptConsoleTabBase>
 
const string NO_HINT_TEXT = "No hint"
 

Static Protected Attributes

static CameraToolsMenu m_Instance
 
static GesturesMenu instance
 
static float MENU_FADEIN_TIME = 2.0
 
static float LOGO_FADEIN_TIME = 1.0
 
static float CREDIT_SCROLL_SPEED = 200.0
 
static EntityAI m_ItemToAssign
 
static RadialQuickbarMenu instance
 
static ref array< ref MapMarkerm_MarkedEntities = new array<ref MapMarker>()
 
static const string HINTS_PATH_DEFAULT = "scripts/data/internal/script_console_hints.json"
 
static const string HINTS_PATH_OPTIONAL = "$mission:script_console_hints.json"
 
static ref JsonHintsData m_JsonData
 

Private Member Functions

void ChatInputMenu ()
 
override Widget Init ()
 
override bool UseKeyboard ()
 
override bool OnChange (Widget w, int x, int y, bool finished)
 
override void OnShow ()
 
override void OnHide ()
 
override void Refresh ()
 
override void Update (float timeslice)
 
void UpdateChannel ()
 
void EarlyAccessMenu ()
 
void ~EarlyAccessMenu ()
 
override Widget Init ()
 
override bool OnClick (Widget w, int x, int y, int button)
 
void HelpScreen ()
 
void ~HelpScreen ()
 
override Widget Init ()
 
override bool OnClick (Widget w, int x, int y, int button)
 
void InputDeviceDisconnectWarningMenu ()
 
void ~InputDeviceDisconnectWarningMenu ()
 
override Widget Init ()
 
void BuildMessages ()
 
void UpdateDisconnectTexts ()
 Composes message depending on context.
 
void SetDisconnectTexts ()
 
void UpdateDisconnectedDevices (int device=-1)
 
void UpdateWarningMenu (int device)
 
override bool OnMouseButtonUp (Widget w, int x, int y, int button)
 
override bool OnKeyUp (Widget w, int x, int y, int key)
 
void InspectMenuNew ()
 
void ~InspectMenuNew ()
 
override Widget Init ()
 
override bool OnClick (Widget w, int x, int y, int button)
 
void SetItem (EntityAI item)
 
override bool OnMouseButtonDown (Widget w, int x, int y, int button)
 
void UpdateRotation (int mouse_x, int mouse_y, bool is_dragging)
 
override bool OnMouseWheel (Widget w, int x, int y, int wheel)
 
void UpdateScale ()
 
void InviteMenu ()
 
void ~InviteMenu ()
 
override Widget Init ()
 
override void Update (float timeslice)
 
override bool OnClick (Widget w, int x, int y, int button)
 
void SetTime (int time)
 
void UpdateTime ()
 
void Cancel ()
 
void LoadingMenu ()
 
void ~LoadingMenu ()
 
override Widget Init ()
 
void LogoutMenu ()
 
void ~LogoutMenu ()
 
override Widget Init ()
 
void Show ()
 
void Hide ()
 
override bool OnClick (Widget w, int x, int y, int button)
 
override void Update (float timeslice)
 
void SetLogoutTime ()
 
void SetTime (int time)
 
void UpdateTime ()
 
void UpdateInfo ()
 
void Exit ()
 
void Cancel ()
 
void PresetsMenu ()
 
void ~PresetsMenu ()
 
override Widget Init ()
 
override bool OnClick (Widget w, int x, int y, int button)
 
void RenderPresets ()
 
bool IsPresetFixed (string preset_name)
 
int GetPresetIndexByName (string preset_name)
 
void NewPreset (string preset_name)
 
void DeletePreset ()
 
void SetDefaultPreset (int preset_index)
 
void RefreshLists ()
 
void RenamePreset (string new_preset_name)
 
void RenderPresetItems ()
 
string GetCurrentPresetName ()
 
string GetCurrentItemName ()
 
string GetCurrentObjectName ()
 
int GetCurrentPresetIndex ()
 
int GetCurrentItemIndex ()
 
bool IsCurrentPresetFixed ()
 
void AddItemToPreset ()
 
void RemoveItemFromPreset ()
 
void SetPreset (bool clear_inventory, string preset_name)
 spawn preset items into inventory
 
void ItemMoveUp ()
 
void ItemMoveDown ()
 
void SaveProfileSpawnDistance ()
 
override bool UseMouse ()
 
override bool UseKeyboard ()
 
void SceneEditorMenu ()
 
void ~SceneEditorMenu ()
 
override Widget Init ()
 
override bool OnDoubleClick (Widget w, int x, int y, int button)
 
override bool OnClick (Widget w, int x, int y, int button)
 
override bool OnChange (Widget w, int x, int y, bool finished)
 
override void OnShow ()
 
override void OnHide ()
 
override bool OnMouseWheel (Widget w, int x, int y, int wheel)
 
override bool OnItemSelected (Widget w, int x, int y, int row, int column, int oldRow, int oldColumn)
 
UIPopupScript PopupOpen (int popup_id, Param param)
 
UIPopupScript PopupBack ()
 
void PopupCloseAll ()
 
void ToggleVisibility ()
 
override void Refresh ()
 
void SceneEditorCommand (Param params)
 
void UpdateListObjects ()
 
void PopupClose (int popup_id)
 
void PopupHideAll ()
 
bool ComponentsOnClick (Widget w, int x, int y, int button)
 
bool ComponentsOnChange (Widget w, int x, int y, bool finished)
 
UIPropertyAttachment GetFreeUIPropertyAttchament ()
 
map< string, ref TStringArrayGetItemNamesForSlots (TStringArray slots)
 
void ScriptConsoleAddLocation ()
 
void ~ScriptConsoleAddLocation ()
 
void SetPosition (vector pos)
 
override Widget Init ()
 
override bool OnClick (Widget w, int x, int y, int button)
 
void ScriptConsoleNewPresetDialog ()
 
void ~ScriptConsoleNewPresetDialog ()
 
override Widget Init ()
 
override bool OnClick (Widget w, int x, int y, int button)
 
void ScriptConsoleRenamePresetDialog ()
 
void ~ScriptConsoleRenamePresetDialog ()
 
override Widget Init ()
 
override bool OnClick (Widget w, int x, int y, int button)
 
void ScriptConsoleUniversalInfoDialog ()
 
void ~ScriptConsoleUniversalInfoDialog ()
 
override Widget Init ()
 
override bool OnClick (Widget w, int x, int y, int button)
 
void SetLabel (string label)
 
void SetContent (string content)
 
void StartupMenu ()
 
void ~StartupMenu ()
 
override Widget Init ()
 
void TitleScreenMenu ()
 
void ~TitleScreenMenu ()
 
override Widget Init ()
 
override void OnShow ()
 
override void OnHide ()
 
override void Update (float timeslice)
 

Static Private Member Functions

static string GetChannelName (ChatChannel channel)
 
static void UpdateItemInfo (Widget root_widget, EntityAI item)
 
static void UpdateSlotInfo (Widget root_widget, string name, string desc="")
 
static void UpdateItemInfoDamage (Widget root_widget, EntityAI item)
 
static void UpdateItemInfoLiquidType (Widget root_widget, EntityAI item)
 
static void UpdateItemInfoTemperature (Widget root_widget, EntityAI item)
 
static void UpdateItemInfoWetness (Widget root_widget, EntityAI item)
 
static void UpdateItemInfoQuantity (Widget root_widget, EntityAI item)
 
static void UpdateItemInfoWeight (Widget root_widget, EntityAI item)
 
static void UpdateItemInfoFoodStage (Widget root_widget, EntityAI item)
 
static void UpdateItemInfoCleanness (Widget root_widget, EntityAI item)
 
static void WidgetTrySetText (Widget root_widget, string widget_name, string text, int color=0)
 

Private Attributes

EditBoxWidget m_edit_box
 
TextWidget m_channel_text
 
UAIDWrapper m_BackInputWrapper
 
ref Timer m_close_timer
 
TextListboxWidget m_KeyBindingsTextListboxWidget
 
TextListboxWidget m_MouseBindingsTextListboxWidget
 
ButtonWidget m_CloseConsoleButton
 
string m_ServerInfoText
 
ref array< intm_DisconnectedDevices
 
ref array< intm_DeviceOrder = {EUAINPUT_DEVICE_CONTROLLER, EUAINPUT_DEVICE_MOUSE, EUAINPUT_DEVICE_KEYBOARD}
 
ref map< int, stringm_DeviceMessages
 
bool m_CanClose
 
bool m_Initialized
 
string m_DevicesText
 
string m_CaptionText
 
string m_ConfirmationText
 
WrapSpacerWidget m_WrapperWidget
 
TextWidget m_CaptionWidget
 
RichTextWidget m_DeviceListWidget
 
RichTextWidget m_ActionTextWidget
 
ItemPreviewWidget m_item_widget
 
ItemPreviewWidget m_slot_widget
 
int m_characterRotationX
 
int m_characterRotationY
 
int m_characterScaleDelta
 
vector m_characterOrientation
 
TextWidget m_LogoutTimeText
 
TextWidget m_DescriptionText
 
ButtonWidget m_bCancel
 
ButtonWidget m_bCancelConsole
 
int m_iTime
 
ref FullTimeData m_FullTime
 
TextWidget m_label
 
ProgressBarWidget m_progressBar
 
ImageWidget m_image
 
ButtonWidget m_bLogoutNow
 
DayZIntroScenePC m_Scene
 
const int TOOLTIP_ID_SAVE = 1
 
const int TOOLTIP_ID_APPLY = 2
 
const int DIALOG_TAB_OFFSET = 1400
 
TextListboxWidget m_schemes_list
 
const int ID_RESPAWN_CUSTOM = 101
 
const int ID_RESPAWN_RANDOM = 102
 
const string CONST_DEFAULT_PRESET_PREFIX = "[Default]"
 
EditBoxWidget m_EditboxName
 
EditBoxWidget m_EditboxPos
 
TextWidget m_Label
 
TextWidget m_Message
 
ButtonWidget m_ClearButton
 
EditBoxWidget m_Editbox
 
const int EDITBOX_TEXT_SIZE = 16
 
ScrollWidget m_ContentScroll
 
MultilineEditBoxWidget m_Content
 
ButtonWidget m_OKButton
 
RichTextWidget m_TextPress
 

Static Private Attributes

static const int POPUP_ID_SCENE_MANAGER = 0
 
static const int POPUP_ID_SCENE_SETTINGS = 1
 
static const int POPUP_ID_SCENE_NEW = 2
 
static const int POPUP_ID_SCENE_RENAME = 3
 
static const int POPUP_ID_SCENE_DELETE = 4
 
static const int POPUP_ID_NOTIFY = 5
 
static const int POPUP_ID_EDITOR_SETTINGS = 6
 
static const int POPUP_ID_INIT_SCRIPT = 7
 
static const int POPUP_ID_POSITION_MANAGER = 8
 
static const int POPUP_ID_PRESET_NEW = 9
 
static const int POPUP_ID_PRESET_RENAME = 10
 
static const int POPUP_ID_CONFIGS = 11
 

Detailed Description

Xbox menu

Definition at line 63 of file DayZGame.c.

Constructor & Destructor Documentation

◆ ~CameraToolsMenu()

void UIScriptedMenu::~CameraToolsMenu ( )
inlineprotected

Definition at line 73 of file CameraToolsMenu.c.

74 {
75 m_Camera1.SetActive(false);
76 m_Camera2.SetActive(false);
77
78 //GetGame().ObjectDelete( m_Camera1 );
79 //GetGame().ObjectDelete( m_Camera2 );
80
82
83 MissionGameplay ms = MissionGameplay.Cast(GetGame().GetMission());
84 if (ms)
85 ms.GetHud().Show(true);
86 }
PlayerBase GetPlayer()
static void DisableFreeCamera(PlayerBase player, bool teleport_player=false)
proto native CGame GetGame()

References DeveloperFreeCamera::DisableFreeCamera(), GetGame(), and GetPlayer().

◆ ~ControlsXboxNew()

void UIScriptedMenu::~ControlsXboxNew ( )
inlineprotected

Definition at line 58 of file ControlsXboxNew.c.

59 {
60 PPERequesterBank.GetRequester(PPERequesterBank.REQ_MENUEFFECTS).Stop();
61 }

◆ ~EarlyAccessMenu()

void UIScriptedMenu::~EarlyAccessMenu ( )
inlineprivate

Definition at line 7 of file EarlyAccessMenu.c.

8 {
9 }

◆ ~GesturesMenu()

void UIScriptedMenu::~GesturesMenu ( )
inlineprotected

Definition at line 135 of file GesturesMenu.c.

136 {
137 if (GetGame() && GetGame().GetMission())
138 {
139 GetGame().GetMission().RemoveActiveInputExcludes({"radialmenu"}, false);
140 }
141 }

References GetGame().

◆ ~HelpScreen()

void UIScriptedMenu::~HelpScreen ( )
inlineprivate

Definition at line 13 of file HelpScreen.c.

14 {
15 }

◆ ~InGameMenu()

void UIScriptedMenu::~InGameMenu ( )
inlineprotected

Definition at line 26 of file InGameMenu.c.

27 {
28 HudShow(true);
29
30 Mission mission = g_Game.GetMission();
31 if (mission)
33 }
DayZGame g_Game
Definition DayZGame.c:3528
Mission mission
Mission class.
Definition gameplay.c:668
void Continue()
Definition gameplay.c:749
void HudShow(bool show)
Definition InGameMenu.c:127

References Mission::Continue(), g_Game, and mission.

◆ ~InGameMenuXbox()

void UIScriptedMenu::~InGameMenuXbox ( )
inlineprotected

Definition at line 41 of file InGameMenuXbox.c.

42 {
45
46 Mission mission = GetGame().GetMission();
47 if (mission)
48 {
49 IngameHud hud = IngameHud.Cast(mission.GetHud());
50 if (hud)
51 {
52 hud.ShowHudUI(true);
53 hud.ShowQuickbarUI(true);
54 }
55
57 }
58
59 PPERequesterBank.GetRequester(PPERequester_MenuEffects).Stop();
60 }
static ref ScriptInvoker SyncEvent_OnPlayerListUpdate
Definition ClientData.c:3
Hud GetHud()
Definition gameplay.c:701
static ref ScriptInvoker m_PermissionsAsyncInvoker
void SyncEvent_OnRecievedPlayerList(SyncPlayerList player_list)
void OnPermissionsUpdate(BiosPrivacyUidResultArray result_list)

References Mission::Continue(), GetGame(), Mission::GetHud(), OnlineServices::m_PermissionsAsyncInvoker, mission, and ClientData::SyncEvent_OnPlayerListUpdate.

◆ ~InputDeviceDisconnectWarningMenu()

void UIScriptedMenu::~InputDeviceDisconnectWarningMenu ( )
inlineprivate

Definition at line 27 of file InputDeviceDisconnectWarningMenu.c.

28 {
29 if (g_Game)
30 {
32 g_Game.DeleteTitleScreen(); // Removes any outstanding gamepad identification propmt; the gamepad is already recognized by now
33 if (g_Game.GetMission())
34 g_Game.GetMission().RemoveActiveInputExcludes({"gamepaddisconnect"}, true);
35 }
36 }

References g_Game.

◆ ~InspectMenuNew()

void UIScriptedMenu::~InspectMenuNew ( )
inlineprivate

Definition at line 18 of file InspectMenuNew.c.

19 {
20 GetGame().GetDragQueue().RemoveCalls(this);
21 if (GetGame().GetMission())
22 {
23 GetGame().GetMission().GetHud().ShowHudUI(true);
24 GetGame().GetMission().GetHud().ShowQuickbarUI(true);
25 }
26 }

References GetGame().

◆ ~InviteMenu()

void UIScriptedMenu::~InviteMenu ( )
inlineprivate

Definition at line 26 of file InviteMenu.c.

27 {
28 if (GetGame() && GetGame().GetMission())
29 {
30 GetGame().GetMission().RemoveActiveInputExcludes({"menu"}, true);
31
32 GetGame().GetMission().GetHud().ShowHudUI(true);
33 GetGame().GetMission().GetHud().ShowQuickbarUI(true);
34
35 GetGame().GetMission().GetOnInputPresetChanged().Remove(OnInputPresetChanged);
36 GetGame().GetMission().GetOnInputDeviceChanged().Remove(OnInputDeviceChanged);
37 }
38 }
void OnInputDeviceChanged(EInputDeviceType pInputDeviceType)
void OnInputPresetChanged()

References GetGame(), OnInputDeviceChanged(), and OnInputPresetChanged().

◆ ~LoadingMenu()

void UIScriptedMenu::~LoadingMenu ( )
inlineprivate

Definition at line 7 of file LoadingMenu.c.

8 {
9 }

◆ ~LogoutMenu()

void UIScriptedMenu::~LogoutMenu ( )
inlineprivate

Definition at line 21 of file LogoutMenu.c.

22 {
23 g_Game.SetKeyboardHandle(null);
24 if (GetGame().GetMission())
25 Cancel(); //cancels request on irregular close (player death, suicide, some mass-menu closure...)
26
28 }
ref FullTimeData m_FullTime
Definition InviteMenu.c:9

References Cancel(), g_Game, and GetGame().

◆ ~MapMenu()

void UIScriptedMenu::~MapMenu ( )
inlineprotected

Definition at line 40 of file MapMenu.c.

41 {
42 if (GetGame() && GetGame().GetMission())
43 {
44 GetGame().GetMission().GetOnInputPresetChanged().Remove(OnInputPresetChanged);
45 GetGame().GetMission().GetOnInputDeviceChanged().Remove(OnInputDeviceChanged);
46 }
47 }

References GetGame(), OnInputDeviceChanged(), and OnInputPresetChanged().

◆ ~CharacterCreationMenu()

void UIScriptedMenu::~CharacterCreationMenu ( )
inlineprotected

Definition at line 146 of file CharacterCreationMenu.c.

147 {
148 m_GenderSelector.m_OptionChanged.Remove(GenderChanged);
149 m_SkinSelector.m_OptionChanged.Remove(SkinChanged);
150 m_TopSelector.m_OptionChanged.Remove(TopChanged);
151 m_BottomSelector.m_OptionChanged.Remove(BottomChanged);
152 m_ShoesSelector.m_OptionChanged.Remove(ShoesChanged);
153 }
ref OptionSelectorMultistateCharacterMenu m_BottomSelector
ref OptionSelectorMultistateCharacterMenu m_TopSelector
ref OptionSelectorMultistateCharacterMenu m_GenderSelector
ref OptionSelectorMultistateCharacterMenu m_SkinSelector
ref OptionSelectorMultistateCharacterMenu m_ShoesSelector

◆ ~MainMenu()

void UIScriptedMenu::~MainMenu ( )
inlineprotected

Definition at line 117 of file MainMenu.c.

118 {
119 if (GetGame().GetMission())
120 GetGame().GetMission().GetOnModMenuVisibilityChanged().Remove(ShowDlcFrame);
121 }
void ShowDlcFrame(bool show)
Definition MainMenu.c:173

References GetGame().

◆ ~MainMenuConsole()

void UIScriptedMenu::~MainMenuConsole ( )
inlineprotected

Definition at line 76 of file MainMenuConsoles.c.

77 {
78 if (GetGame().GetMission())
79 {
80 GetGame().GetMission().GetOnInputPresetChanged().Remove(OnInputPresetChanged);
81 GetGame().GetMission().GetOnInputDeviceChanged().Remove(OnInputDeviceChanged);
82 }
83
84 if (GetGame().GetContentDLCService())
85 GetGame().GetContentDLCService().m_OnChange.Remove(OnDLCChange);
86 }
void OnDLCChange(EDLCId dlcId)

References GetGame(), OnDLCChange(), OnInputDeviceChanged(), and OnInputPresetChanged().

◆ ~MainMenuVideo()

void UIScriptedMenu::~MainMenuVideo ( )
inlineprotected

Definition at line 23 of file MainMenuVideo.c.

24 {
25 }

◆ ~TutorialsMenu()

void UIScriptedMenu::~TutorialsMenu ( )
inlineprotected

Definition at line 67 of file TutorialsMenu.c.

68 {
69 m_TabScript.m_OnTabSwitch.Remove(DrawConnectingLines);
71 }
void DrawConnectingLines(int index)

References DrawConnectingLines(), and m_TabScript.

◆ ~OptionsMenu()

void UIScriptedMenu::~OptionsMenu ( )
inlineprotected

Definition at line 97 of file OptionsMenu.c.

98 {
99 }

◆ ~ServerBrowserMenuNew()

void UIScriptedMenu::~ServerBrowserMenuNew ( )
inlineprotected

Definition at line 95 of file ServerBrowserMenuNew.c.

96 {
97#ifdef PLATFORM_CONSOLE
99#endif
100
103 m_Tabber.m_OnTabSwitch.Remove(OnTabSwitch);
105 }
static ref ScriptInvoker m_ServersAsyncInvoker
static ref ScriptInvoker m_ServerModLoadAsyncInvoker
void OnLoadServerModsAsync(GetServerModListResult result_list)
void OnLoadServersAsync(GetServersResult result_list, EBiosError error, string response)

References OnlineServices::m_ServerModLoadAsyncInvoker, OnlineServices::m_ServersAsyncInvoker, and OnLoadServerModsAsync().

◆ ~NoteMenu()

void UIScriptedMenu::~NoteMenu ( )
inlineprotected

Definition at line 24 of file NoteMenu.c.

25 {
26 MissionGameplay mission = MissionGameplay.Cast(GetGame().GetMission());
27 if (mission)
28 {
29 IngameHud hud = IngameHud.Cast(mission.GetHud());
30 if (hud)
31 hud.ShowHudUI(true);
32 }
33 }

References GetGame(), Mission::GetHud(), and mission.

◆ ~PresetsMenu()

void UIScriptedMenu::~PresetsMenu ( )
inlineprivate

Definition at line 7 of file PresetsMenu.c.

8 {
9 }

◆ ~RadialQuickbarMenu()

void UIScriptedMenu::~RadialQuickbarMenu ( )
inlineprotected

Definition at line 120 of file RadialQuickbarMenu.c.

121 {
122 if (GetGame() && GetGame().GetMission())
123 {
124 GetGame().GetMission().RemoveActiveInputExcludes({"radialmenu"}, false);
125 }
126 }

References GetGame().

◆ ~RespawnDialogue()

void UIScriptedMenu::~RespawnDialogue ( )
protected

◆ ~SceneEditorMenu()

void UIScriptedMenu::~SceneEditorMenu ( )
inlineprivate

Definition at line 350 of file SceneEditorMenu.c.

351 {
353
354 if (IsModuleExist(PluginSceneManager))
355 {
356 m_ModuleSceneManager.OnUIEditorClosed();
358 }
359
360 m_NotifyFadeTimer.Stop();
361 }
bool IsModuleExist(typename plugin_type)
PluginSceneManager m_ModuleSceneManager
ref WidgetFadeTimer m_NotifyFadeTimer

References IsModuleExist(), and PopupCloseAll().

◆ ~ScriptConsole()

void UIScriptedMenu::~ScriptConsole ( )
inlineprotected

Definition at line 51 of file ScriptConsole.c.

52 {
53#ifndef SERVER
54 if (GetGame() && GetGame().GetMission() && GetGame().GetMission().GetHud())
55 {
56 GetGame().GetMission().GetHud().ShowHudPlayer(true);
57 GetGame().GetMission().GetHud().ShowQuickbarPlayer(true);
58 }
60 m_HintWidgetRoot.Unlink();
61#endif
63 if (plugin)
64 plugin.OnScriptMenuOpened(false);
65
66 if (GetGame() && GetGame().GetMission())
67 GetGame().GetMission().EnableAllInputs(true);
68 }
void PluginItemDiagnostic()
PluginBase GetPlugin(typename plugin_type)
Widget m_HintWidgetRoot

References GetGame(), GetPlugin(), m_HintWidgetRoot, and PluginItemDiagnostic().

◆ ~ScriptConsoleAddLocation()

void UIScriptedMenu::~ScriptConsoleAddLocation ( )
inlineprivate

Definition at line 8 of file ScriptConsoleAddPosition.c.

9 {
10 }

◆ ~ScriptConsoleNewPresetDialog()

void UIScriptedMenu::~ScriptConsoleNewPresetDialog ( )
inlineprivate

Definition at line 8 of file ScriptConsoleNewPresetDialog.c.

9 {
10 }

◆ ~ScriptConsoleRenamePresetDialog()

void UIScriptedMenu::~ScriptConsoleRenamePresetDialog ( )
inlineprivate

Definition at line 8 of file ScriptConsoleRenamePresetDialog.c.

9 {
10 }

◆ ~ScriptConsoleUniversalInfoDialog()

void UIScriptedMenu::~ScriptConsoleUniversalInfoDialog ( )
private

◆ ~StartupMenu()

void UIScriptedMenu::~StartupMenu ( )
inlineprivate

Definition at line 7 of file StartupMenu.c.

8 {
9 }

◆ ~TitleScreenMenu()

void UIScriptedMenu::~TitleScreenMenu ( )
inlineprivate

Definition at line 12 of file TitleScreenMenu.c.

13 {
14 }

Member Function Documentation

◆ AddActor()

void UIScriptedMenu::AddActor ( string actor_type)
inlineprotected

Definition at line 315 of file CameraToolsMenu.c.

316 {
317 vector pos = GetCameraLookDir();
318 CTActor ac = new CTActor(m_Actors.Count(), pos, "0 0 0", actor_type, new array<string>, "", this);
319 if (ac.GetObj())
320 m_Actors.Insert(ac);
321 }
ref array< ref CTActor > m_Actors
vector GetCameraLookDir()

◆ AddEvent()

void UIScriptedMenu::AddEvent ( int actor_index)
inlineprotected

Definition at line 323 of file CameraToolsMenu.c.

324 {
325 if (actor_index > -1)
326 {
327 CTEvent ev = new CTEvent(m_Events.Count(), actor_index, m_EventContent, false, this);
328 m_Events.Insert(ev);
329 }
330 }
ref array< ref CTEvent > m_Events

◆ AddFavorite()

void UIScriptedMenu::AddFavorite ( string ipAddress,
int port,
bool favorite )
inlineprotected

Definition at line 237 of file ServerBrowserMenuNew.c.

238 {
239 string serverId = ipAddress + ":" + port;
241
242 if (favorite && !isFavorited)
243 m_Favorites.Insert(serverId);
244 else if (isFavorited)
245 {
246 m_Favorites.RemoveItem(serverId);
247 m_OfficialTab.Unfavorite(serverId);
248 m_CommunityTab.Unfavorite(serverId);
249 m_FavoritesTab.Unfavorite(serverId);
250#ifndef PLATFORM_CONSOLE
251 m_LANTab.Unfavorite(serverId);
252#endif
253 }
254 }
ref ServerBrowserTab m_OfficialTab
ref ServerBrowserTab m_LANTab
ref ServerBrowserTab m_CommunityTab
ref TStringArray m_Favorites
bool IsFavorited(string server_id)
ref ServerBrowserTab m_FavoritesTab

◆ AddFavoritesToFilter()

void UIScriptedMenu::AddFavoritesToFilter ( GetServersInput input)
inlineprotected

Definition at line 199 of file ServerBrowserMenuNew.c.

200 {
201 foreach (string id : m_Favorites)
202 {
204 id.Split(":", output);
205 if (output.Count() == 2)
206 {
207 string ip = output[0];
208 int port = output[1].ToInt();
209 input.AddFavourite(ip, port);
210 }
211 }
212 }

◆ AddGroup()

void UIScriptedMenu::AddGroup ( int index,
Input input )
inlineprotected

Definition at line 487 of file KeybindingsMenu.c.

488 {
489 }

◆ AddHandsItem()

void UIScriptedMenu::AddHandsItem ( string id,
string type )
inlineprotected

Definition at line 344 of file CameraToolsMenu.c.

345 {
346 int id_int = id.ToInt();
347 if (m_Actors.Count() > id_int && id_int > -1)
348 {
349 CTActor ac = m_Actors.Get(id_int);
350 if (ac)
351 ac.SetHandsItem(type);
352 }
353 }

◆ AddItem()

void UIScriptedMenu::AddItem ( string id,
string type )
inlineprotected

Definition at line 333 of file CameraToolsMenu.c.

334 {
335 int id_int = id.ToInt();
336 if (m_Actors.Count() > id_int && id_int > -1)
337 {
338 CTActor ac = m_Actors.Get(id_int);
339 if (ac)
340 ac.AddItem(type);
341 }
342 }

◆ AddItemToPreset()

void UIScriptedMenu::AddItemToPreset ( )
inlineprivate

Definition at line 228 of file SceneEditorMenu.c.

229 {
230 int selected_row_index = m_ClWgtLbxClassesList.GetSelectedRow();
231 if (selected_row_index != -1 && GetCurrentPresetIndex() != -1)
232 {
233 string item_name;
237 }
238 }
PluginConfigDebugProfile m_ConfigDebugProfile
TextListboxWidget m_ClWgtLbxClassesList
string GetCurrentPresetName()

References GetCurrentPresetIndex(), GetCurrentPresetName(), m_ConfigDebugProfile, and RenderPresetItems().

Referenced by OnClick().

◆ AddKeyframe()

void UIScriptedMenu::AddKeyframe ( )
inlineprotected

Definition at line 273 of file CameraToolsMenu.c.

274 {
275 if (Camera.GetCurrentCamera())
276 {
277 vector pos = Camera.GetCurrentCamera().GetWorldPosition();
278 vector orient = Camera.GetCurrentCamera().GetOrientation();
279 CTKeyframe kf = new CTKeyframe(m_Cameras.Count(), pos, orient, 1, 70, 50, -1, GetTotalTime(m_Cameras.Count()), m_KeyframeContent, this);
280 m_Cameras.Insert(kf);
282 }
283 }
void SelectKeyframe(CTKeyframe kf)
float GetTotalTime(int index)
ref array< ref CTKeyframe > m_Cameras

◆ AddMarker()

void UIScriptedMenu::AddMarker ( vector pos,
int color,
int icon = 0 )
inlineprotected

Definition at line 300 of file MapMenu.c.

301 {
302 m_Map.InsertMarker(pos, "", color, icon);
304 m_WasChanged = true;
305 }
static string GetMarkerTypeFromID(int id)
ref MapWidget m_MapWidgetInstance
Definition MapMenu.c:17
ItemMap m_Map
Definition MapMenu.c:34
bool m_WasChanged
Definition MapMenu.c:7

References MapMarkerTypes::GetMarkerTypeFromID().

◆ Apply() [1/3]

void UIScriptedMenu::Apply ( )
inlineprotected

renames character

Definition at line 157 of file CharacterCreationMenu.c.

158 {
159 if (!m_Scene.GetIntroCharacter().IsDefaultCharacter())
160 {
161 string name = m_NameSelector.GetValue();
162 if (name == "")
164
165 m_Scene.GetIntroCharacter().SaveCharName(name);
166 }
167
168 MainMenu menu_main = MainMenu.Cast(GetGame().GetUIManager().FindMenu(MENU_MAIN));
169 if (menu_main)
170 menu_main.OnChangeCharacter(false);
171 GetGame().GetUIManager().Back();
172 }
PlayerSpawnPresetDiscreteItemSetSlotData name
one set for cargo
IntroSceneCharacter GetIntroCharacter()
DayZIntroScenePC m_Scene
ref OptionSelectorEditbox m_NameSelector
const string DEFAULT_CHARACTER_NAME
Definition constants.c:838
const int MENU_MAIN
Definition constants.c:172

References GameConstants::DEFAULT_CHARACTER_NAME, GetGame(), DayZIntroSceneXbox::GetIntroCharacter(), MENU_MAIN, and name.

Referenced by OnClick(), and Update().

◆ Apply() [2/3]

void UIScriptedMenu::Apply ( )
inlineprotected

Definition at line 210 of file KeybindingsMenu.c.

211 {
213 m_Apply.SetFlags(WidgetFlags.IGNOREPOINTER);
215 m_Undo.SetFlags(WidgetFlags.IGNOREPOINTER);
217 m_Defaults.ClearFlags(WidgetFlags.IGNOREPOINTER);
218
219 m_GroupsContainer.Apply();
220
221 // save input configuration
222 GetUApi().Export();
223 }
proto native UAInputAPI GetUApi()
ref KeybindingsContainer m_GroupsContainer
void ColorWhite(Widget w, Widget enterW)
ButtonWidget m_Defaults
void ColorDisabled(Widget w)
ButtonWidget m_Undo
WidgetFlags
Definition EnWidgets.c:58

References GetUApi().

◆ Apply() [3/3]

void UIScriptedMenu::Apply ( )
inlineprotected

Definition at line 182 of file OptionsMenu.c.

183 {
184 m_ControlsTab.Apply();
185
186 if (m_GameTab.IsChanged())
187 m_GameTab.Apply();
188
189 if (m_Options.IsChanged() || m_GameTab.IsChanged())
190 {
191 m_Options.Test();
192 m_Options.Apply();
193 }
194
195 // save input configuration
196 GetUApi().Export();
197
198 if (GetGame().GetInput().IsEnabledMouseAndKeyboard()) //useless on consoles
199 {
200 m_Apply.SetFlags(WidgetFlags.IGNOREPOINTER);
202 m_Reset.SetFlags(WidgetFlags.IGNOREPOINTER);
204 }
205
206 m_CanApplyOrReset = false;
207#ifdef PLATFORM_CONSOLE
210
211 IngameHud hud;
212 if (GetGame().GetMission() && Class.CastTo(hud, GetGame().GetMission().GetHud()))
213 hud.ShowQuickBar(GetGame().GetInput().IsEnabledMouseAndKeyboardEvenOnServer());
214#endif
215
216 if (m_Options.NeedRestart())
217 g_Game.GetUIManager().ShowDialog("#main_menu_configure", "#menu_restart_needed", 117, DBT_YESNO, DBB_YES, DMT_QUESTION, this);
218 }
ActionInput GetInput()
Definition ActionBase.c:989
Super root of all classes in Enforce script.
Definition EnScript.c:11
void UpdateControlsElementVisibility()
void ColorDisable(Widget w)
Definition InGameMenu.c:346
bool m_CanApplyOrReset
Definition OptionsMenu.c:24
ref OptionsMenuGame m_GameTab
Definition OptionsMenu.c:7
void UpdateControlsElements()
ButtonWidget m_Reset
Definition OptionsMenu.c:16
ref OptionsMenuControls m_ControlsTab
Definition OptionsMenu.c:10
static proto bool CastTo(out Class to, Class from)
Try to safely down-cast base class to child class.

References Class::CastTo(), ColorDisable(), g_Game, GetGame(), GetInput(), GetUApi(), UpdateControlsElements(), and UpdateControlsElementVisibility().

◆ AutoConnect()

void UIScriptedMenu::AutoConnect ( )
inlineprotected

Definition at line 539 of file MainMenu.c.

540 {
542 }
static void AutoConnectToEmptyServer()

References OnlineServices::AutoConnectToEmptyServer().

◆ Back() [1/6]

void UIScriptedMenu::Back ( )
inlineprotected

Definition at line 76 of file ControlsXboxNew.c.

77 {
78 GetGame().GetUIManager().Back();
79 }

References GetGame().

Referenced by OnClick(), OnClick(), Update(), and Update().

◆ Back() [2/6]

void UIScriptedMenu::Back ( )
inlineprotected

Definition at line 190 of file CharacterCreationMenu.c.

191 {
192 //bring back DefaultCharacter, if it exists (it should), or a previously played one.
193 GetGame().GetMenuData().RequestGetDefaultCharacterData();
194#ifdef PLATFORM_CONSOLE
197#endif
199 m_Scene.GetIntroCharacter().CreateNewCharacterById(m_Scene.GetIntroCharacter().GetCharacterID());
200 GetGame().GetUIManager().Back();
201 }
const int DEFAULT_CHARACTER_MENU_ID
Definition constants.c:840

References GameConstants::DEFAULT_CHARACTER_MENU_ID, GetGame(), and DayZIntroSceneXbox::GetIntroCharacter().

◆ Back() [3/6]

void UIScriptedMenu::Back ( )
inlineprotected

Definition at line 225 of file KeybindingsMenu.c.

226 {
227 if (m_CurrentSettingKeyIndex != -1)
228 {
230 return;
231 }
232
234 {
236 return;
237 }
238
239 bool changed = m_GroupsContainer.IsChanged();
240
241 if (changed)
242 g_Game.GetUIManager().ShowDialog("#main_menu_configure", "#main_menu_configure_desc", MODAL_ID_BACK, DBT_YESNO, DBB_YES, DMT_QUESTION, this);
243 else
244 GetGame().GetUIManager().Back();
245 }
void CancelEnteringKeybind()
const int MODAL_ID_BACK
int m_CurrentSettingAlternateKeyIndex
void CancelEnteringAlternateKeybind()

References g_Game, and GetGame().

◆ Back() [4/6]

void UIScriptedMenu::Back ( )
inlineprotected

Definition at line 93 of file TutorialsMenu.c.

94 {
95 GetGame().GetUIManager().Back();
96 }

References GetGame().

◆ Back() [5/6]

void UIScriptedMenu::Back ( )
inlineprotected

Definition at line 220 of file OptionsMenu.c.

221 {
222 if (!g_Game.GetUIManager().IsDialogVisible() && !g_Game.GetUIManager().IsModalVisible())
223 {
224 if (IsAnyTabChanged())
225 {
226 g_Game.GetUIManager().ShowDialog("#main_menu_configure", "#main_menu_configure_desc", 1337, DBT_YESNO, DBB_YES, DMT_QUESTION, this);
227#ifdef PLATFORM_CONSOLE
229#endif
230 }
231 else
232 {
233 m_Options.Revert();
234 GetGame().EndOptionsVideo();
235 GetGame().GetUIManager().Back();
236 }
237 }
238 }
bool IsAnyTabChanged()

References g_Game, GetGame(), IsAnyTabChanged(), and UpdateControlsElements().

◆ Back() [6/6]

void UIScriptedMenu::Back ( )
inlineprotected

Definition at line 256 of file ServerBrowserMenuNew.c.

257 {
258 GetGame().GetUIManager().Back();
259 }

References GetGame().

◆ BackButtonFocus()

void UIScriptedMenu::BackButtonFocus ( )
inlineprotected

Definition at line 306 of file ServerBrowserMenuNew.c.

307 {
309 }
ButtonWidget m_Back
proto native void SetFocus(Widget w)

References m_Back, and SetFocus().

◆ BackOneLevel() [1/2]

void UIScriptedMenu::BackOneLevel ( )
inlineprotected

Definition at line 621 of file GesturesMenu.c.

622 {
625 }
void RefreshGestures(GestureCategories category_id=-1)
void UpdateCategoryName(string name)

◆ BackOneLevel() [2/2]

void UIScriptedMenu::BackOneLevel ( )
inlineprotected

Definition at line 710 of file RadialQuickbarMenu.c.

711 {
714 }
RadialQuickbarCategory
void ChangeCurrentCategory(int category)

◆ BottomChanged()

void UIScriptedMenu::BottomChanged ( )
inlineprotected

Definition at line 269 of file CharacterCreationMenu.c.

270 {
271 GetGame().GetMenuDefaultCharacterData().SetDefaultAttachment(InventorySlots.LEGS, m_BottomSelector.GetStringValue());
272 GetGame().GetMenuDefaultCharacterData().EquipDefaultCharacter(m_Scene.GetIntroCharacter().GetCharacterObj());
273 SetCharacterSaved(false);
274 }
provides access to slot configuration
void SetCharacterSaved(bool state)

References GetGame(), DayZIntroSceneXbox::GetIntroCharacter(), and SetCharacterSaved().

◆ BuildMessages()

void UIScriptedMenu::BuildMessages ( )
inlineprivate

Definition at line 58 of file InputDeviceDisconnectWarningMenu.c.

59 {
61 m_DeviceMessages.Insert(EUAINPUT_DEVICE_CONTROLLER, string.Format("<image set=\"dayz_gui\" name=\"icon_Gamepad\" />"));
62 m_DeviceMessages.Insert(EUAINPUT_DEVICE_MOUSE, string.Format("<image set=\"dayz_gui\" name=\"icon_Mouse\" />"));
63 m_DeviceMessages.Insert(EUAINPUT_DEVICE_KEYBOARD, string.Format("<image set=\"dayz_gui\" name=\"icon_Keyboard\" />"));
64 }
ref map< int, string > m_DeviceMessages

Referenced by InputDeviceDisconnectWarningMenu().

◆ ButtonSetAlphaAnim()

void UIScriptedMenu::ButtonSetAlphaAnim ( Widget w)
inlineprotected

Definition at line 450 of file MainMenuConsoles.c.

451 {
452 if (!w)
453 return;
454
455 Widget panel = w.FindWidget(w.GetName() + "_panel");
456
457 if (panel)
458 SetWidgetAnimAlpha(panel);
459 }

◆ ButtonSetColor() [1/8]

void UIScriptedMenu::ButtonSetColor ( Widget w,
int color )
inlineprotected

Definition at line 682 of file ControlsXboxNew.c.

683 {
684 if (!w)
685 return;
686
687 Widget panel = w.FindWidget(w.GetName() + "_panel");
688
689 if (panel)
690 panel.SetColor(color);
691 }

Referenced by ColorDisable(), ColorHighlight(), and ColorNormal().

◆ ButtonSetColor() [2/8]

void UIScriptedMenu::ButtonSetColor ( Widget w,
int color )
inlineprotected

Definition at line 366 of file InGameMenu.c.

367 {
368 Widget panel = w.FindWidget(w.GetName() + "_panel");
369 if (panel)
370 panel.SetColor(color);
371 }

◆ ButtonSetColor() [3/8]

void UIScriptedMenu::ButtonSetColor ( Widget w,
int color )
inlineprotected

Definition at line 638 of file InGameMenuXbox.c.

639 {
640 if (!w)
641 return;
642
643 Widget panel = w.FindWidget(w.GetName() + "_panel");
644
645 if (panel)
646 panel.SetColor(color);
647 }

◆ ButtonSetColor() [4/8]

void UIScriptedMenu::ButtonSetColor ( Widget w,
int color )
inlineprotected

Definition at line 626 of file MainMenu.c.

627 {
628 if (!w)
629 return;
630
631 Widget panel = w.FindWidget(w.GetName() + "_panel");
632
633 if (panel)
634 panel.SetColor(color);
635 }

◆ ButtonSetColor() [5/8]

void UIScriptedMenu::ButtonSetColor ( Widget w,
int color )
inlineprotected

Definition at line 439 of file MainMenuConsoles.c.

440 {
441 if (!w)
442 return;
443
444 Widget panel = w.FindWidget(w.GetName() + "_panel");
445
446 if (panel)
447 panel.SetColor(color);
448 }

◆ ButtonSetColor() [6/8]

void UIScriptedMenu::ButtonSetColor ( Widget w,
int color )
inlineprotected

Definition at line 459 of file TutorialsMenu.c.

460 {
461 if (!w)
462 return;
463
464 Widget panel = w.FindWidget(w.GetName() + "_panel");
465
466 if (panel)
467 panel.SetColor(color);
468 }

◆ ButtonSetColor() [7/8]

void UIScriptedMenu::ButtonSetColor ( Widget w,
int color )
inlineprotected

Definition at line 650 of file ServerBrowserMenuNew.c.

651 {
652 if (!w)
653 return;
654
655 Widget panel = w.FindWidget(w.GetName() + "_panel");
656
657 if (panel)
658 panel.SetColor(color);
659 }

◆ ButtonSetColor() [8/8]

void UIScriptedMenu::ButtonSetColor ( Widget w,
int color )
inlineprotected

Definition at line 171 of file RespawnDialogue.c.

172 {
173 Widget panel = w.FindWidget(w.GetName() + "_panel");
174 if (panel)
175 panel.SetColor(color);
176 }

◆ ButtonSetText() [1/7]

void UIScriptedMenu::ButtonSetText ( Widget w,
string text )
inlineprotected

Definition at line 670 of file ControlsXboxNew.c.

671 {
672 if (!w)
673 return;
674
675 TextWidget label = TextWidget.Cast(w.FindWidget(w.GetName() + "_label"));
676
677 if (label)
678 label.SetText(text);
679
680 }

◆ ButtonSetText() [2/7]

void UIScriptedMenu::ButtonSetText ( Widget w,
string text )
inlineprotected

Definition at line 355 of file InGameMenu.c.

356 {
357 if (!w)
358 return;
359
360 TextWidget label = TextWidget.Cast(w.FindWidget(w.GetName() + "_label"));
361 if (label)
362 label.SetText(text);
363
364 }

◆ ButtonSetText() [3/7]

void UIScriptedMenu::ButtonSetText ( Widget w,
string text )
inlineprotected

Definition at line 626 of file InGameMenuXbox.c.

627 {
628 if (!w)
629 return;
630
631 TextWidget label = TextWidget.Cast(w.FindWidget(w.GetName() + "_label"));
632
633 if (label)
634 label.SetText(text);
635
636 }

◆ ButtonSetText() [4/7]

void UIScriptedMenu::ButtonSetText ( Widget w,
string text )
inlineprotected

Definition at line 614 of file MainMenu.c.

615 {
616 if (!w)
617 return;
618
619 TextWidget label = TextWidget.Cast(w.FindWidget(w.GetName() + "_label"));
620
621 if (label)
622 label.SetText(text);
623
624 }

◆ ButtonSetText() [5/7]

void UIScriptedMenu::ButtonSetText ( Widget w,
string text )
inlineprotected

Definition at line 427 of file MainMenuConsoles.c.

428 {
429 if (!w)
430 return;
431
432 TextWidget label = TextWidget.Cast(w.FindWidget(w.GetName() + "_label"));
433
434 if (label)
435 label.SetText(text);
436
437 }

◆ ButtonSetText() [6/7]

void UIScriptedMenu::ButtonSetText ( Widget w,
string text )
inlineprotected

Definition at line 447 of file TutorialsMenu.c.

448 {
449 if (!w)
450 return;
451
452 TextWidget label = TextWidget.Cast(w.FindWidget(w.GetName() + "_label"));
453
454 if (label)
455 label.SetText(text);
456
457 }

◆ ButtonSetText() [7/7]

void UIScriptedMenu::ButtonSetText ( Widget w,
string text )
inlineprotected

Definition at line 638 of file ServerBrowserMenuNew.c.

639 {
640 if (!w)
641 return;
642
643 TextWidget label = TextWidget.Cast(w.FindWidget(w.GetName() + "_label"));
644
645 if (label)
646 label.SetText(text);
647
648 }

◆ ButtonSetTextColor() [1/8]

void UIScriptedMenu::ButtonSetTextColor ( Widget w,
int color )
inlineprotected

Definition at line 693 of file ControlsXboxNew.c.

694 {
695 if (!w)
696 return;
697
698 TextWidget label = TextWidget.Cast(w.FindAnyWidget(w.GetName() + "_label"));
699 TextWidget text = TextWidget.Cast(w.FindAnyWidget(w.GetName() + "_text"));
700 TextWidget text2 = TextWidget.Cast(w.FindAnyWidget(w.GetName() + "_text_1"));
701
702 if (label)
703 label.SetColor(color);
704
705 if (text)
706 text.SetColor(color);
707
708 if (text2)
709 text2.SetColor(color);
710 }

Referenced by ColorDisable(), ColorHighlight(), and ColorNormal().

◆ ButtonSetTextColor() [2/8]

void UIScriptedMenu::ButtonSetTextColor ( Widget w,
int color )
inlineprotected

Definition at line 373 of file InGameMenu.c.

374 {
375 TextWidget label = TextWidget.Cast(w.FindAnyWidget(w.GetName() + "_label"));
376 if (label)
377 label.SetColor(color);
378 }

◆ ButtonSetTextColor() [3/8]

void UIScriptedMenu::ButtonSetTextColor ( Widget w,
int color )
inlineprotected

Definition at line 649 of file InGameMenuXbox.c.

650 {
651 if (!w)
652 return;
653
654 TextWidget label = TextWidget.Cast(w.FindAnyWidget(w.GetName() + "_label"));
655 TextWidget text = TextWidget.Cast(w.FindAnyWidget(w.GetName() + "_text"));
656 TextWidget text2 = TextWidget.Cast(w.FindAnyWidget(w.GetName() + "_text_1"));
657
658 if (label)
659 label.SetColor(color);
660
661 if (text)
662 text.SetColor(color);
663
664 if (text2)
665 text2.SetColor(color);
666 }

◆ ButtonSetTextColor() [4/8]

void UIScriptedMenu::ButtonSetTextColor ( Widget w,
int color )
inlineprotected

Definition at line 648 of file MainMenu.c.

649 {
650 if (!w)
651 return;
652
653 TextWidget label = TextWidget.Cast(w.FindAnyWidget(w.GetName() + "_label"));
654 TextWidget text = TextWidget.Cast(w.FindAnyWidget(w.GetName() + "_text"));
655 TextWidget text2 = TextWidget.Cast(w.FindAnyWidget(w.GetName() + "_text_1"));
656
657 if (label)
658 label.SetColor(color);
659
660 if (text)
661 text.SetColor(color);
662
663 if (text2)
664 text2.SetColor(color);
665 }

◆ ButtonSetTextColor() [5/8]

void UIScriptedMenu::ButtonSetTextColor ( Widget w,
int color )
inlineprotected

Definition at line 461 of file MainMenuConsoles.c.

462 {
463 if (!w)
464 return;
465
466 TextWidget label = TextWidget.Cast(w.FindAnyWidget(w.GetName() + "_label"));
467 TextWidget text = TextWidget.Cast(w.FindAnyWidget(w.GetName() + "_text"));
468 TextWidget text2 = TextWidget.Cast(w.FindAnyWidget(w.GetName() + "_text_1"));
469
470 if (label)
471 label.SetColor(color);
472
473 if (text)
474 text.SetColor(color);
475
476 if (text2)
477 text2.SetColor(color);
478 }

◆ ButtonSetTextColor() [6/8]

void UIScriptedMenu::ButtonSetTextColor ( Widget w,
int color )
inlineprotected

Definition at line 481 of file TutorialsMenu.c.

482 {
483 if (!w)
484 return;
485
486 TextWidget label = TextWidget.Cast(w.FindAnyWidget(w.GetName() + "_label"));
487 TextWidget text = TextWidget.Cast(w.FindAnyWidget(w.GetName() + "_text"));
488 TextWidget text2 = TextWidget.Cast(w.FindAnyWidget(w.GetName() + "_text_1"));
489
490 if (label)
491 label.SetColor(color);
492
493 if (text)
494 text.SetColor(color);
495
496 if (text2)
497 text2.SetColor(color);
498 }

◆ ButtonSetTextColor() [7/8]

void UIScriptedMenu::ButtonSetTextColor ( Widget w,
int color )
inlineprotected

Definition at line 661 of file ServerBrowserMenuNew.c.

662 {
663 if (!w)
664 return;
665
666 TextWidget label = TextWidget.Cast(w.FindAnyWidget(w.GetName() + "_label"));
667 TextWidget text = TextWidget.Cast(w.FindAnyWidget(w.GetName() + "_text"));
668 TextWidget text2 = TextWidget.Cast(w.FindAnyWidget(w.GetName() + "_text_1"));
669
670 if (label)
671 label.SetColor(color);
672
673 if (text)
674 text.SetColor(color);
675
676 if (text2)
677 text2.SetColor(color);
678 }

◆ ButtonSetTextColor() [8/8]

void UIScriptedMenu::ButtonSetTextColor ( Widget w,
int color )
inlineprotected

Definition at line 178 of file RespawnDialogue.c.

179 {
180 TextWidget label = TextWidget.Cast(w.FindAnyWidget(w.GetName() + "_label"));
181 if (label)
182 label.SetColor(color);
183 }

◆ CameraToolsMenu()

void UIScriptedMenu::CameraToolsMenu ( )
inlineprotected

Definition at line 61 of file CameraToolsMenu.c.

62 {
66
67 m_Camera1 = Camera.Cast(GetGame().CreateObject("staticcamera", GetGame().GetPlayer().GetPosition(), true));
68 m_Camera2 = Camera.Cast(GetGame().CreateObject("staticcamera", GetGame().GetPlayer().GetPosition(), true));
69
70 m_Instance = this;
71 }
class JsonUndergroundAreaTriggerData GetPosition
static CameraToolsMenu m_Instance

References GetGame(), GetPlayer(), GetPosition, and m_Instance.

◆ Cancel() [1/2]

void UIScriptedMenu::Cancel ( )
inlineprivate

Definition at line 128 of file InviteMenu.c.

129 {
130 GetGame().GetCallQueue(CALL_CATEGORY_SYSTEM).Remove(this.UpdateTime);
131
132 g_Game.SetGameState(DayZGameState.IN_GAME);
133 g_Game.SetLoadState(DayZLoadState.CONNECT_CONTROLLER_SELECT);
134 Close();
135 }
void Close()
void UpdateTime()
Definition InviteMenu.c:119
const int CALL_CATEGORY_SYSTEM
Definition tools.c:8

References CALL_CATEGORY_SYSTEM, Close(), g_Game, and GetGame().

Referenced by OnClick(), Update(), and ~LogoutMenu().

◆ Cancel() [2/2]

void UIScriptedMenu::Cancel ( )
inlineprivate

Definition at line 168 of file LogoutMenu.c.

169 {
170 GetGame().GetMission().Continue();
171 GetGame().GetCallQueue(CALL_CATEGORY_SYSTEM).Remove(this.UpdateTime);
172
173 // request logout cancel from server
174 GetGame().LogoutRequestCancel();
175 }

References CALL_CATEGORY_SYSTEM, and GetGame().

◆ CancelEnteringAlternateKeybind()

void UIScriptedMenu::CancelEnteringAlternateKeybind ( )
inlineprotected

Definition at line 144 of file KeybindingsMenu.c.

145 {
146 m_GroupsContainer.CancelEnteringAlternateKeybind();
148 }

◆ CancelEnteringKeybind()

void UIScriptedMenu::CancelEnteringKeybind ( )
inlineprotected

Definition at line 132 of file KeybindingsMenu.c.

133 {
134 m_GroupsContainer.CancelEnteringKeybind();
136 }

◆ CanChangeHintPage()

bool UIScriptedMenu::CanChangeHintPage ( float timeAccu)
protected

◆ CanSaveDefaultCharacter()

bool UIScriptedMenu::CanSaveDefaultCharacter ( )
inlineprotected

Definition at line 420 of file MainMenu.c.

421 {
422 if (m_ScenePC && m_ScenePC.GetIntroCharacter() && m_ScenePC.GetIntroCharacter().GetCharacterID() == -1)
423 return true;
424 return false;
425 }
DayZIntroScenePC m_ScenePC
Definition MainMenu.c:7

References DayZIntroScene::GetIntroCharacter().

◆ CanStoreBeOpened()

bool UIScriptedMenu::CanStoreBeOpened ( )
inlineprotected

Definition at line 324 of file MainMenuConsoles.c.

325 {
326 return m_DisplayedDlcHandler != null;
327 }
ref MainMenuDlcHandlerBase m_DisplayedDlcHandler
Definition MainMenu.c:47

◆ ChangeAccount()

void UIScriptedMenu::ChangeAccount ( )
inlineprotected

Definition at line 365 of file MainMenuConsoles.c.

366 {
367 BiosUserManager user_manager = GetGame().GetUserManager();
368 if (user_manager)
369 {
370 g_Game.SetLoadState(DayZLoadState.MAIN_MENU_START);
371#ifndef PLATFORM_WINDOWS
372 user_manager.SelectUserEx(null);
373#endif
374 GetGame().GetUIManager().Back();
375 }
376 }

References g_Game, and GetGame().

◆ ChangeCurrentCategory()

void UIScriptedMenu::ChangeCurrentCategory ( int category)
inlineprotected

Definition at line 503 of file RadialQuickbarMenu.c.

504 {
506 RefreshQuickbar(false);
508 }
void RefreshQuickbar()

References RefreshQuickbar(), and UpdateControlsElements().

◆ CharacterCreationMenu()

void UIScriptedMenu::CharacterCreationMenu ( )
inlineprotected

Definition at line 34 of file CharacterCreationMenu.c.

35 {
36 MissionMainMenu mission = MissionMainMenu.Cast(GetGame().GetMission());
37
38#ifdef PLATFORM_CONSOLE
39 m_Scene = mission.GetIntroSceneXbox();
40#else
41 m_Scene = mission.GetIntroScenePC();
42#endif
43
45 }

References GetGame(), mission, and DayZIntroSceneXbox::ResetIntroCamera().

◆ ChatInputMenu()

void UIScriptedMenu::ChatInputMenu ( )
inlineprivate

Definition at line 8 of file ChatInputMenu.c.

9 {
10 m_close_timer = new Timer();
11 }
ref Timer m_close_timer

◆ CheckForLightsAndNVG()

void UIScriptedMenu::CheckForLightsAndNVG ( out ref array< ref RadialQuickbarItem > items,
int last_idx )
inlineprotected

Definition at line 297 of file RadialQuickbarMenu.c.

298 {
300 int count = 0;
302 ItemBase headgear = ItemBase.Cast(player.FindAttachmentBySlotName("Headgear"));
303 ItemBase eyewear = ItemBase.Cast(player.FindAttachmentBySlotName("Eyewear"));
304
305 //nvg - headgear check
306 if (headgear)
307 {
308 entity = headgear.FindAttachmentBySlotName("NVG");
309 if (entity)
310 {
311 items.Insert(new RadialQuickbarItem(count, entity, "", RadialQuickbarCategory.SPECIALIZED_LIGHTS));
312 count++;
313 }
314 }
315 //nvg/light - eyewear check
316 if (eyewear)
317 {
318 entity = eyewear.FindAttachmentBySlotName("NVG");
319 if (entity)
320 {
321 items.Insert(new RadialQuickbarItem(count, entity, "", RadialQuickbarCategory.SPECIALIZED_LIGHTS));
322 count++;
323 }
324 else if (eyewear.IsLightSource() && eyewear.HasEnergyManager() && eyewear.GetCompEM().CanWork())
325 {
326 entity = eyewear;
327 items.Insert(new RadialQuickbarItem(count, entity, "", RadialQuickbarCategory.SPECIALIZED_LIGHTS));
328 count++;
329 }
330 }
331 //light
332 if (headgear)
333 {
334 if (headgear.GetInventory().AttachmentCount() > 0)
335 {
337 for (int i = 0; i < headgear.GetInventory().AttachmentCount(); i++)
338 {
339 attachment = ItemBase.Cast(headgear.GetInventory().GetAttachmentFromIndex(i));
340 if (attachment && attachment.IsLightSource() && attachment.HasEnergyManager() && attachment.GetCompEM().CanWork())
341 {
343 items.Insert(new RadialQuickbarItem(count, entity, "", RadialQuickbarCategory.SPECIALIZED_LIGHTS));
344 count++;
345 }
346 }
347 }
348 }
349
350 //Add a category switchers
351 if (m_CurrentCategory == RadialQuickbarCategory.DEFAULT && count > 0)
352 items.InsertAt(new RadialQuickbarItem(32, null, "#toggle_lights", RadialQuickbarCategory.DEFAULT, RadialQuickbarCategory.SPECIALIZED_LIGHTS), 0);
353 else if (m_CurrentCategory == RadialQuickbarCategory.SPECIALIZED_LIGHTS)
354 items.InsertAt(new RadialQuickbarItem(32, null, "#menu_back", RadialQuickbarCategory.SPECIALIZED_LIGHTS, RadialQuickbarCategory.DEFAULT), 0);
355 }
void RadialQuickbarItem(int id, EntityAI item, string item_name, int category=RadialQuickbarCategory.DEFAULT, int category_switch=-1)

References GetGame(), GetPlayer(), and RadialQuickbarItem().

◆ CheckNewOptions()

void UIScriptedMenu::CheckNewOptions ( )
inlineprotected

Definition at line 439 of file CharacterCreationMenu.c.

440 {
441 bool show_widgets = m_Scene.GetIntroCharacter().IsDefaultCharacter();
442 bool was_visible = layoutRoot.FindAnyWidget("character_gender_button").IsVisible();
443 layoutRoot.FindAnyWidget("character_gender_button").Show(show_widgets);
444 layoutRoot.FindAnyWidget("character_head_button").Show(show_widgets);
445 layoutRoot.FindAnyWidget("character_top_button").Show(show_widgets);
446 layoutRoot.FindAnyWidget("character_bottom_button").Show(show_widgets);
447 layoutRoot.FindAnyWidget("character_shoes_button").Show(show_widgets);
448
450 m_GenderSelector.Focus();
451 if (!show_widgets)
453 }

References DayZIntroSceneXbox::GetIntroCharacter(), and SetFocus().

Referenced by Init(), OnInputDeviceChanged(), OnShow(), and RandomizeCharacter().

◆ ClearAlternativeKeybind()

void UIScriptedMenu::ClearAlternativeKeybind ( int key_index)
inlineprotected

Definition at line 118 of file KeybindingsMenu.c.

119 {
121 m_Apply.ClearFlags(WidgetFlags.IGNOREPOINTER);
123 m_Undo.ClearFlags(WidgetFlags.IGNOREPOINTER);
124 }

◆ ClearKeybind()

void UIScriptedMenu::ClearKeybind ( int key_index)
inlineprotected

Definition at line 110 of file KeybindingsMenu.c.

111 {
113 m_Apply.ClearFlags(WidgetFlags.IGNOREPOINTER);
115 m_Undo.ClearFlags(WidgetFlags.IGNOREPOINTER);
116 }

◆ CloseMapMenu()

void UIScriptedMenu::CloseMapMenu ( )
inlineprotected

Definition at line 322 of file MapMenu.c.

323 {
324 if (m_WasChanged)
325 {
326 m_Map.SyncMapMarkers();
327 m_WasChanged = false;
328 }
329
330 PlayerBase player = PlayerBase.Cast(g_Game.GetPlayer());
331 if (player)
332 {
333 player.SetMapClosingSyncSet(false); //map is closing, server needs to be notified - once
334 }
335
336 if (m_Hud)
337 {
338 m_Hud.ShowHudUI(true);
339 m_Hud.ShowQuickbarUI(true);
340 }
341
343 {
345 {
346 GetGame().GetMission().RemoveActiveInputExcludes({"map"});
347 }
348 else
349 {
350 GetGame().GetMission().RemoveActiveInputExcludes({"loopedactions"});
351 }
352
353 GetGame().GetMission().RemoveActiveInputRestriction(EInputRestrictors.MAP);
354 }
355
356 Close();
357 }
static bool GetMapIgnoreMapOwnership()
ref IngameHud m_Hud
Definition MapMenu.c:15

References Close(), g_Game, GetGame(), CfgGameplayHandler::GetMapIgnoreMapOwnership(), CfgGameplayHandler::GetUse3DMap(), m_Hud, Hud::ShowHudUI(), and Hud::ShowQuickbarUI().

◆ CloseMenu() [1/2]

static void UIScriptedMenu::CloseMenu ( )
inlinestaticprotected

Definition at line 151 of file GesturesMenu.c.

152 {
153 //execute on menu release
154 instance.OnMenuRelease();
155
156 GetGame().GetUIManager().Back();
157
158 //GetGame().GetMission().RemoveActiveInputExcludes({"radialmenu"},false);
159 }
static GesturesMenu instance

References GetGame().

◆ CloseMenu() [2/2]

static void UIScriptedMenu::CloseMenu ( )
inlinestaticprotected

Definition at line 158 of file RadialQuickbarMenu.c.

159 {
160 GetGame().GetUIManager().Back();
161 //GetGame().GetMission().RemoveActiveInputExcludes({"radialmenu"},false);
162 }

References GetGame().

◆ CloseOnline()

void UIScriptedMenu::CloseOnline ( )
inlineprotected

Definition at line 423 of file InGameMenuXbox.c.

424 {
425 m_OnlineMenu.Show(false);
426 m_SelectAvailable = true;
427 m_MuteAvailable = false;
428 m_GamercardAvailable = false;
430
432 }
ButtonWidget m_OnlineButton

References SetFocus(), and UpdateControlsElements().

Referenced by OnClick().

◆ ColorDisable() [1/4]

void UIScriptedMenu::ColorDisable ( Widget w)
inlineprotected

Definition at line 346 of file InGameMenu.c.

347 {
348 if (!w)
349 return;
350
351 ButtonSetColor(w, ARGB(0, 0, 0, 0));
353 }
static int COLOR_DISABLED_TEXT
void ButtonSetTextColor(Widget w, int color)
void ButtonSetColor(Widget w, int color)
int ARGB(int a, int r, int g, int b)
Definition proto.c:322

References ARGB(), and ColorManager::COLOR_DISABLED_TEXT.

Referenced by Apply(), OnChanged(), Reset(), and ResetCurrentTab().

◆ ColorDisable() [2/4]

void UIScriptedMenu::ColorDisable ( Widget w)
inlineprotected

Definition at line 584 of file InGameMenuXbox.c.

585 {
586#ifdef PLATFORM_WINDOWS
587 SetFocus(null);
588#endif
589
592 button.SetTextColor(ARGB(255, 255, 255, 255));
593 ButtonSetColor(w, ARGB(0, 0, 0, 0));
594 ButtonSetTextColor(w, ARGB(60, 0, 0, 0));
595 }
Widget m_ContinueButton
Definition InGameMenu.c:5

References ARGB(), ButtonSetColor(), ButtonSetTextColor(), and SetFocus().

◆ ColorDisable() [3/4]

void UIScriptedMenu::ColorDisable ( Widget w)
inlineprotected

Definition at line 614 of file CharacterCreationMenu.c.

615 {
616#ifndef PLATFORM_CONSOLE
617 SetFocus(null);
618#endif
619
620 if (w)
621 {
623 if (button)
625 }
626
627 TextWidget text1 = TextWidget.Cast(w.FindAnyWidget(w.GetName() + "_text"));
628 TextWidget text2 = TextWidget.Cast(w.FindAnyWidget(w.GetName() + "_label"));
629 TextWidget text3 = TextWidget.Cast(w.FindAnyWidget(w.GetName() + "_text_1"));
630 ImageWidget image = ImageWidget.Cast(w.FindAnyWidget(w.GetName() + "_image"));
631 Widget option = Widget.Cast(w.FindAnyWidget(w.GetName() + "_option_wrapper"));
632 Widget option_label = w.FindAnyWidget("option_label");
633
634 if (text1)
636
637 if (text2)
639
640 if (text3)
641 {
643 w.SetAlpha(1);
644 }
645
646 if (image)
648
649 if (option)
651
652#ifndef PLATFORM_CONSOLE
653 if (option_label)
655#endif
656 }

References ColorManager::COLOR_DISABLED_TEXT, and SetFocus().

◆ ColorDisable() [4/4]

void UIScriptedMenu::ColorDisable ( Widget w)
inlineprotected

Definition at line 719 of file OptionsMenu.c.

720 {
721#ifdef PLATFORM_WINDOWS
722 SetFocus(null);
723#endif
724
725 if (w)
726 {
728 if (button)
730 }
731 }

References ColorManager::COLOR_DISABLED_TEXT, and SetFocus().

◆ ColorDisabled()

void UIScriptedMenu::ColorDisabled ( Widget w)
inlineprotected

Definition at line 420 of file KeybindingsMenu.c.

421 {
422#ifdef PLATFORM_WINDOWS
423 SetFocus(null);
424#endif
425
427 if (button)
429 }

References ColorManager::COLOR_DISABLED_TEXT, and SetFocus().

◆ ColorHighlight() [1/10]

void UIScriptedMenu::ColorHighlight ( Widget w)
inlineprotected

Definition at line 641 of file ControlsXboxNew.c.

642 {
643 if (!w)
644 return;
645
646 int color_pnl = ARGB(255, 0, 0, 0);
647 int color_lbl = ARGB(255, 255, 0, 0);
648
649#ifdef PLATFORM_CONSOLE
650 color_pnl = ARGB(255, 200, 0, 0);
651 color_lbl = ARGB(255, 255, 255, 255);
652#endif
653
656 }

References ARGB().

Referenced by OnFocus(), and OnMouseEnter().

◆ ColorHighlight() [2/10]

void UIScriptedMenu::ColorHighlight ( Widget w)
inlineprotected

Definition at line 328 of file InGameMenu.c.

329 {
330 if (!w)
331 return;
332
333 ButtonSetColor(w, ARGB(255, 0, 0, 0));
334 ButtonSetTextColor(w, ARGB(255, 255, 0, 0));
335 }

References ARGB().

◆ ColorHighlight() [3/10]

void UIScriptedMenu::ColorHighlight ( Widget w)
inlineprotected

Definition at line 597 of file InGameMenuXbox.c.

598 {
599 if (!w)
600 return;
601
602 int color_pnl = ARGB(255, 0, 0, 0);
603 int color_lbl = ARGB(255, 255, 0, 0);
604
605#ifdef PLATFORM_CONSOLE
606 color_pnl = ARGB(255, 200, 0, 0);
607 color_lbl = ARGB(255, 255, 255, 255);
608#endif
609
612 }

References ARGB(), ButtonSetColor(), and ButtonSetTextColor().

◆ ColorHighlight() [4/10]

void UIScriptedMenu::ColorHighlight ( Widget w)
inlineprotected

Definition at line 534 of file CharacterCreationMenu.c.

535 {
536 if (w.IsInherited(ButtonWidget))
537 {
539 button.SetTextColor(ARGB(255, 200, 0, 0));
540 }
541
542 w.SetColor(ARGB(255, 0, 0, 0));
543
544 TextWidget text1 = TextWidget.Cast(w.FindAnyWidget(w.GetName() + "_text"));
545 TextWidget text2 = TextWidget.Cast(w.FindAnyWidget(w.GetName() + "_label"));
546 TextWidget text3 = TextWidget.Cast(w.FindAnyWidget(w.GetName() + "_text_1"));
547 ImageWidget image = ImageWidget.Cast(w.FindAnyWidget(w.GetName() + "_image"));
548 Widget option = Widget.Cast(w.FindAnyWidget(w.GetName() + "_option_wrapper"));
549 Widget option_label = w.FindAnyWidget("option_label");
550
551 if (text1)
552 text1.SetColor(ARGB(255, 255, 0, 0));
553
554 if (text2)
555 text2.SetColor(ARGB(255, 255, 0, 0));
556
557 if (text3)
558 {
559 text3.SetColor(ARGB(255, 255, 0, 0));
560 w.SetAlpha(1);
561 }
562
563 if (image)
564 image.SetColor(ARGB(255, 200, 0, 0));
565
566 if (option)
567 option.SetColor(ARGB(255, 255, 0, 0));
568
569#ifndef PLATFORM_CONSOLE
570 if (option_label)
571 option_label.SetColor(ARGB(255, 255, 0, 0));
572#endif
573 }

References ARGB().

◆ ColorHighlight() [5/10]

void UIScriptedMenu::ColorHighlight ( Widget w)
inlineprotected

Definition at line 586 of file MainMenu.c.

587 {
588 if (!w)
589 return;
590
591 int color_pnl = ARGB(255, 0, 0, 0);
592 int color_lbl = ARGB(255, 255, 0, 0);
593 int color_img = ARGB(255, 200, 0, 0);
594
598 }
void ImagenSetColor(Widget w, int color)
Definition MainMenu.c:637

References ARGB().

◆ ColorHighlight() [6/10]

void UIScriptedMenu::ColorHighlight ( Widget w)
inlineprotected

Definition at line 384 of file MainMenuConsoles.c.

385 {
386 if (!w)
387 return;
388
389 int color_pnl = ARGB(255, 200, 0, 0);
390 int color_lbl = ARGB(255, 255, 255, 255);
391
395 }
void ButtonSetAlphaAnim(Widget w)

References ARGB().

◆ ColorHighlight() [7/10]

void UIScriptedMenu::ColorHighlight ( Widget w)
inlineprotected

Definition at line 414 of file TutorialsMenu.c.

415 {
416 if (!w)
417 return;
418
419 int color_pnl = ARGB(255, 0, 0, 0);
420 int color_lbl = ARGB(255, 255, 0, 0);
421 int color_img = ARGB(255, 200, 0, 0);
422
423#ifdef PLATFORM_CONSOLE
424 color_pnl = ARGB(255, 200, 0, 0);
425 color_lbl = ARGB(255, 255, 255, 255);
426#endif
427
431 }

References ARGB().

◆ ColorHighlight() [8/10]

void UIScriptedMenu::ColorHighlight ( Widget w)
inlineprotected

Definition at line 637 of file OptionsMenu.c.

638 {
639 if ((w.GetFlags() & WidgetFlags.IGNOREPOINTER) == WidgetFlags.IGNOREPOINTER)
640 return;
641
642 if (w.IsInherited(ButtonWidget))
643 {
645 button.SetTextColor(ARGB(255, 200, 0, 0));
646 }
647
648 w.SetColor(ARGB(255, 0, 0, 0));
649
650 TextWidget text1 = TextWidget.Cast(w.FindAnyWidget(w.GetName() + "_text"));
651 TextWidget text2 = TextWidget.Cast(w.FindAnyWidget(w.GetName() + "_label"));
652 TextWidget text3 = TextWidget.Cast(w.FindAnyWidget(w.GetName() + "_text_1"));
653 ImageWidget image = ImageWidget.Cast(w.FindAnyWidget(w.GetName() + "_image"));
654 Widget option = Widget.Cast(w.FindAnyWidget(w.GetName() + "_option_wrapper"));
655 Widget option_label = w.FindAnyWidget("option_label");
656
657 if (text1)
658 text1.SetColor(ARGB(255, 255, 0, 0));
659
660 if (text2)
661 text2.SetColor(ARGB(255, 255, 0, 0));
662
663 if (text3)
664 {
665 text3.SetColor(ARGB(255, 255, 0, 0));
666 w.SetAlpha(1);
667 }
668
669 if (image)
670 image.SetColor(ARGB(255, 200, 0, 0));
671
672 if (option)
673 option.SetColor(ARGB(255, 255, 0, 0));
674
675 if (option_label)
676 option_label.SetColor(ARGB(255, 255, 0, 0));
677 }

References ARGB().

◆ ColorHighlight() [9/10]

void UIScriptedMenu::ColorHighlight ( Widget w)
inlineprotected

Definition at line 609 of file ServerBrowserMenuNew.c.

610 {
611 if (!w)
612 return;
613
614 int color_pnl = ARGB(255, 0, 0, 0);
615 int color_lbl = ARGB(255, 255, 0, 0);
616
617#ifdef PLATFORM_CONSOLE
618 color_pnl = ARGB(255, 200, 0, 0);
619 color_lbl = ARGB(255, 255, 255, 255);
620#endif
621
624 }

References ARGB().

◆ ColorHighlight() [10/10]

void UIScriptedMenu::ColorHighlight ( Widget w)
inlineprotected

Definition at line 145 of file RespawnDialogue.c.

146 {
147 if (!w)
148 return;
149
151 {
154
156 }
157
158 ButtonSetColor(w, ARGB(255, 0, 0, 0));
159 ButtonSetTextColor(w, ARGB(255, 255, 0, 0));
160 }
Widget m_CurrentlyHighlighted
void ColorNormal(Widget w)

References ARGB(), ButtonSetColor(), ButtonSetTextColor(), and ColorNormal().

◆ ColorNormal() [1/10]

void UIScriptedMenu::ColorNormal ( Widget w)
inlineprotected

Definition at line 658 of file ControlsXboxNew.c.

659 {
660 if (!w)
661 return;
662
663 int color_pnl = ARGB(0, 0, 0, 0);
664 int color_lbl = ARGB(255, 255, 255, 255);
665
668 }

References ARGB().

Referenced by ColorHighlight(), OnChanged(), OnFocusLost(), OnMouseLeave(), and PerformSetToDefaults().

◆ ColorNormal() [2/10]

void UIScriptedMenu::ColorNormal ( Widget w)
inlineprotected

Definition at line 337 of file InGameMenu.c.

338 {
339 if (!w)
340 return;
341
342 ButtonSetColor(w, ARGB(0, 0, 0, 0));
343 ButtonSetTextColor(w, ARGB(255, 255, 255, 255));
344 }

References ARGB().

◆ ColorNormal() [3/10]

void UIScriptedMenu::ColorNormal ( Widget w)
inlineprotected

Definition at line 614 of file InGameMenuXbox.c.

615 {
616 if (!w)
617 return;
618
619 int color_pnl = ARGB(0, 0, 0, 0);
620 int color_lbl = ARGB(255, 255, 255, 255);
621
624 }

References ARGB(), ButtonSetColor(), and ButtonSetTextColor().

◆ ColorNormal() [4/10]

void UIScriptedMenu::ColorNormal ( Widget w)
inlineprotected

Definition at line 575 of file CharacterCreationMenu.c.

576 {
577 if (w.IsInherited(ButtonWidget))
578 {
581 }
582
583 TextWidget text1 = TextWidget.Cast(w.FindAnyWidget(w.GetName() + "_text"));
584 TextWidget text2 = TextWidget.Cast(w.FindAnyWidget(w.GetName() + "_text_1"));
585 TextWidget text3 = TextWidget.Cast(w.FindAnyWidget(w.GetName() + "_label"));
586 ImageWidget image = ImageWidget.Cast(w.FindAnyWidget(w.GetName() + "_image"));
587 Widget option = w.FindAnyWidget(w.GetName() + "_option_wrapper");
588 Widget option_label = w.FindAnyWidget("option_label");
589
590 if (text1)
592
593 if (text2)
595
596 if (text3)
597 {
599 w.SetAlpha(0);
600 }
601
602 if (image)
604
605 if (option)
606 option.SetColor(ARGB(150, 255, 255, 255));
607
608#ifndef PLATFORM_CONSOLE
609 if (option_label)
611#endif
612 }
static int COLOR_NORMAL_TEXT
Definition ColorManager.c:5

References ARGB(), and ColorManager::COLOR_NORMAL_TEXT.

◆ ColorNormal() [5/10]

void UIScriptedMenu::ColorNormal ( Widget w)
inlineprotected

Definition at line 600 of file MainMenu.c.

601 {
602 if (!w)
603 return;
604
605 int color_pnl = ARGB(0, 0, 0, 0);
606 int color_lbl = ARGB(255, 255, 255, 255);
607 int color_img = ARGB(255, 255, 255, 255);
608
612 }

References ARGB().

◆ ColorNormal() [6/10]

void UIScriptedMenu::ColorNormal ( Widget w)
inlineprotected

Definition at line 397 of file MainMenuConsoles.c.

398 {
399 if (!w)
400 return;
401
402 int color_pnl = ARGB(0, 0, 0, 0);
403 int color_lbl = ARGB(255, 255, 255, 255);
404
408 }

References ARGB().

◆ ColorNormal() [7/10]

void UIScriptedMenu::ColorNormal ( Widget w)
inlineprotected

Definition at line 433 of file TutorialsMenu.c.

434 {
435 if (!w)
436 return;
437
438 int color_pnl = ARGB(0, 0, 0, 0);
439 int color_lbl = ARGB(255, 255, 255, 255);
440 int color_img = ARGB(255, 255, 255, 255);
441
445 }

References ARGB().

◆ ColorNormal() [8/10]

void UIScriptedMenu::ColorNormal ( Widget w)
inlineprotected

Definition at line 679 of file OptionsMenu.c.

680 {
681 if ((w.GetFlags() & WidgetFlags.IGNOREPOINTER) == WidgetFlags.IGNOREPOINTER)
682 return;
683
684 if (w.IsInherited(ButtonWidget))
685 {
687 button.SetTextColor(ARGB(255, 255, 255, 255));
688 }
689
690 TextWidget text1 = TextWidget.Cast(w.FindAnyWidget(w.GetName() + "_text"));
691 TextWidget text2 = TextWidget.Cast(w.FindAnyWidget(w.GetName() + "_text_1"));
692 TextWidget text3 = TextWidget.Cast(w.FindAnyWidget(w.GetName() + "_label"));
693 ImageWidget image = ImageWidget.Cast(w.FindAnyWidget(w.GetName() + "_image"));
694 Widget option = w.FindAnyWidget(w.GetName() + "_option_wrapper");
695 Widget option_label = w.FindAnyWidget("option_label");
696
697 if (text1)
698 text1.SetColor(ARGB(255, 255, 255, 255));
699
700 if (text2)
701 text2.SetColor(ARGB(255, 255, 255, 255));
702
703 if (text3)
704 {
705 text3.SetColor(ARGB(255, 255, 255, 255));
706 w.SetAlpha(0);
707 }
708
709 if (image)
710 image.SetColor(ARGB(255, 255, 255, 255));
711
712 if (option)
713 option.SetColor(ARGB(150, 255, 255, 255));
714
715 if (option_label)
716 option_label.SetColor(ARGB(255, 255, 255, 255));
717 }

References ARGB().

◆ ColorNormal() [9/10]

void UIScriptedMenu::ColorNormal ( Widget w)
inlineprotected

Definition at line 626 of file ServerBrowserMenuNew.c.

627 {
628 if (!w)
629 return;
630
631 int color_pnl = ARGB(0, 0, 0, 0);
632 int color_lbl = ARGB(255, 255, 255, 255);
633
636 }

References ARGB().

◆ ColorNormal() [10/10]

void UIScriptedMenu::ColorNormal ( Widget w)
inlineprotected

Definition at line 162 of file RespawnDialogue.c.

163 {
164 if (!w)
165 return;
166
167 ButtonSetColor(w, ARGB(0, 0, 0, 0));
168 ButtonSetTextColor(w, ARGB(255, 255, 255, 255));
169 }

References ARGB(), ButtonSetColor(), and ButtonSetTextColor().

◆ ColorRed() [1/2]

void UIScriptedMenu::ColorRed ( Widget w)
inlineprotected

Definition at line 896 of file CameraToolsMenu.c.

897 {
898 //SetFocus( w );
899 if (w.IsInherited(ButtonWidget))
900 {
902 button.SetTextColor(ARGB(255, 255, 0, 0));
903 button.SetAlpha(0.9);
904 }
905 }

References ARGB().

◆ ColorRed() [2/2]

void UIScriptedMenu::ColorRed ( Widget w)
inlineprotected

Definition at line 395 of file KeybindingsMenu.c.

396 {
397 SetFocus(w);
398
400 if (button && button != m_Apply)
401 button.SetTextColor(ARGB(255, 200, 0, 0));
402 }

References ARGB(), and SetFocus().

◆ ColorWhite() [1/2]

void UIScriptedMenu::ColorWhite ( Widget w,
Widget enterW )
inlineprotected

Definition at line 907 of file CameraToolsMenu.c.

908 {
909 if (w.IsInherited(ButtonWidget))
910 {
912 if (button)
913 {
914 button.SetTextColor(ARGB(255, 255, 255, 255));
915 button.SetAlpha(0.75);
916 }
917 }
918 }

References ARGB().

◆ ColorWhite() [2/2]

void UIScriptedMenu::ColorWhite ( Widget w,
Widget enterW )
inlineprotected

Definition at line 404 of file KeybindingsMenu.c.

405 {
406#ifdef PLATFORM_WINDOWS
407 SetFocus(null);
408#endif
409
411 if (button)
412 {
413 if (button.GetFlags() & WidgetFlags.DISABLED)
415 else
417 }
418 }

References ColorManager::COLOR_DISABLED_TEXT, ColorManager::COLOR_NORMAL_TEXT, and SetFocus().

◆ ComponentsOnChange()

bool UIScriptedMenu::ComponentsOnChange ( Widget w,
int x,
int y,
bool finished )
inlineprivate

Definition at line 1229 of file SceneEditorMenu.c.

1230 {
1231 for (int i = 0; i < m_Popups.Count(); ++i)
1232 {
1233 if (m_Popups.Get(i).OnChange(w, x, y, finished))
1234 return true;
1235 }
1236
1237 return false;
1238 }
Icon x
Icon y
ref map< int, ref UIPopupScript > m_Popups

References x, and y.

Referenced by OnChange().

◆ ComponentsOnClick()

bool UIScriptedMenu::ComponentsOnClick ( Widget w,
int x,
int y,
int button )
inlineprivate

Definition at line 1209 of file SceneEditorMenu.c.

1210 {
1211 for (int i = 0; i < m_Popups.Count(); ++i)
1212 {
1213 if (m_Popups.Get(i).OnClick(w, x, y, button))
1214 return true;
1215 }
1216
1217 for (int j = 0; j < m_PrWidgetsAttachments.Count(); ++j)
1218 {
1219 if (m_PrWidgetsAttachments.Get(j).OnClick(w, x, y, button))
1220 return true;
1221 }
1222
1223 return false;
1224 }
ref array< ref UIPropertyAttachment > m_PrWidgetsAttachments

References x, and y.

Referenced by OnClick().

◆ ComposeData()

void UIScriptedMenu::ComposeData ( )
inlineprotected

Inits data structure.

Definition at line 518 of file ControlsXboxNew.c.

519 {
521 {
524 }
525
527 {
530 }
531
532 Widget w = m_ControlsImage.GetChildren();
533 m_ImageMarkerStructure.Set(w.GetUserID(), w);
534
535 while (w.GetSibling())
536 {
537 w = w.GetSibling();
538 m_ImageMarkerStructure.Set(w.GetUserID(), w); //inits button markers with their IDs
539 }
540
542
543#ifdef PLATFORM_XBOX
545#else
547#endif
548
549 //categories
552
553 while (category_widget.GetSibling())
554 {
555 category_widget = category_widget.GetSibling();
557 }
558 }
static void UpdateConsolePresetID()
Definition InputUtils.c:187
const int PLATFORM_ADJUST_X1
Widget FindChildByID(Widget wid, int user_id)
Finds immediate child widget with a corresponding userID.
const int PLATFORM_ADJUST_PS
ref map< int, Widget > m_ImageMarkerStructure
ref map< int, Widget > m_CategoryStructure

References InputUtils::UpdateConsolePresetID().

◆ ConfirmAlternateKeybindEntry()

void UIScriptedMenu::ConfirmAlternateKeybindEntry ( TIntArray new_keys)
inlineprotected

Definition at line 159 of file KeybindingsMenu.c.

160 {
163 m_Apply.ClearFlags(WidgetFlags.IGNOREPOINTER);
165 m_Undo.ClearFlags(WidgetFlags.IGNOREPOINTER);
166 }

◆ ConfirmKeybindEntry()

void UIScriptedMenu::ConfirmKeybindEntry ( TIntArray new_keys)
inlineprotected

Definition at line 150 of file KeybindingsMenu.c.

151 {
154 m_Apply.ClearFlags(WidgetFlags.IGNOREPOINTER);
156 m_Undo.ClearFlags(WidgetFlags.IGNOREPOINTER);
157 }

◆ Connect()

void UIScriptedMenu::Connect ( ServerBrowserEntry server)
inlineprotected

Definition at line 511 of file ServerBrowserMenuNew.c.

512 {
514#ifdef PLATFORM_CONSOLE
516#endif
517 Play();
518 }

References Play(), and SelectServer().

◆ ConnectBestServer()

void UIScriptedMenu::ConnectBestServer ( )
inlineprotected

Definition at line 562 of file MainMenu.c.

563 {
565 }
void ConnectLastSession()
Definition MainMenu.c:544

◆ ConnectLastSession()

void UIScriptedMenu::ConnectLastSession ( )
inlineprotected

Definition at line 544 of file MainMenu.c.

545 {
546 string ip = "";
547 string name = "";
548 int port = 0;
549
550 if (!m_ScenePC.GetIntroCharacter().IsDefaultCharacter())
551 {
552 int charID = m_ScenePC.GetIntroCharacter().GetCharacterID();
553 m_ScenePC.GetIntroCharacter().GetLastPlayedServer(charID, ip, name, port);
554 }
555
556 if (ip.Length() > 0)
557 g_Game.ConnectFromServerBrowser(ip, port, "");
558 else
560 }
void OpenMenuServerBrowser()
Definition MainMenu.c:427

References g_Game, DayZIntroScene::GetIntroCharacter(), and name.

◆ CreateContent()

void UIScriptedMenu::CreateContent ( int selected_item_id = -1)
inlineprotected

Definition at line 357 of file RadialQuickbarMenu.c.

358 {
359 //delete existing content
360 DeleteItems();
361
363
364 for (int i = 0; i < m_Items.Count(); ++i)
365 {
367
368 if (quickbar_item.GetItemCategory() == m_CurrentCategory)
369 {
370 //create item card
371 Widget item_card_widget = Widget.Cast(GetGame().GetWorkspace().CreateWidgets("gui/layouts/radial_menu/radial_quickbar/radial_quickbar_item_card.layout", m_ItemCardPanel));
372 quickbar_item.SetRadialItemCard(item_card_widget);
373
374 //update item card widget
376
377 //set data
378 item_card_widget.SetUserData(quickbar_item);
379
380 //set selection
381 if (quickbar_item.GetId() == selected_item_id)
382 MarkSelected(quickbar_item.GetRadialItemCard());
384 }
385 }
386
387 //adjust radial parameters for content
388 if (/*m_Items.Count()*/category_item_count > 0)
389 {
390 RadialMenu radial_menu = RadialMenu.GetInstance();
391 radial_menu.SetRadiusOffset(0);
392 radial_menu.SetExecuteDistOffset(0.5);
393 radial_menu.SetOffsetFromTop(0);
394 radial_menu.SetItemCardRadiusOffset(0.25);
395 radial_menu.ActivateControllerTimeout(false);
396 }
397
398 //refresh radial menu
399 RadialMenu.GetInstance().Refresh(false);
400 }
void RadialMenu()
Definition RadialMenu.c:84
void UpdateQuickbarItemCard(GestureMenuItem gesture_item)
void MarkSelected(Widget w)
ref array< ref RadialQuickbarItem > m_Items

References GetGame(), RadialMenu(), and RadialQuickbarItem().

◆ CreateFakePlayerList()

SyncPlayerList UIScriptedMenu::CreateFakePlayerList ( int player_count)
inlineprotected

Definition at line 354 of file InGameMenuXbox.c.

355 {
357 player_list.m_PlayerList = new array<ref SyncPlayer>;
358 for (int i = 0; i < player_count; i++)
359 {
361 sync_player.m_UID = "uid" + i;
362 sync_player.m_PlayerName = "Player " + i;
363 player_list.m_PlayerList.Insert(sync_player);
364 }
365 return player_list;
366 }

◆ CreateGestureContent()

void UIScriptedMenu::CreateGestureContent ( )
inlineprotected

Definition at line 374 of file GesturesMenu.c.

375 {
376 //delete existing gesture widgets
378
379 for (int i = 0; i < m_GestureItems.Count(); ++i)
380 {
382
383 //create item card
384 Widget gesture_item_card_widget = Widget.Cast(GetGame().GetWorkspace().CreateWidgets("gui/layouts/radial_menu/radial_gestures/day_z_gesture_item_card.layout", m_GestureItemCardPanel));
385 gesture_item.SetRadialItemCard(gesture_item_card_widget);
386
387 //update item card widget
389
390 //set data
392 }
393
394 //set radial parameters for content
395 if (m_GestureItems.Count() > 0)
396 {
397 RadialMenu radial_menu = RadialMenu.GetInstance();
398 radial_menu.SetRadiusOffset(0);
399 radial_menu.SetExecuteDistOffset(0.5);
400 radial_menu.SetOffsetFromTop(0);
401 radial_menu.SetItemCardRadiusOffset(0.25);
402 radial_menu.ActivateControllerTimeout(false);
403 }
404
405 //refresh radial menu
406 RadialMenu.GetInstance().Refresh();
407 }
void GestureMenuItem(int id, string name, GestureCategories category)
void DeleteGestureItems()
Widget m_GestureItemCardPanel
ref array< ref GestureMenuItem > m_GestureItems

References GestureMenuItem(), GetGame(), and RadialMenu().

◆ CreateGroupContainer()

void UIScriptedMenu::CreateGroupContainer ( )
inlineprotected

Definition at line 100 of file KeybindingsMenu.c.

101 {
102 m_GroupsContainer = new KeybindingsContainer(-1, GetGame().GetInput(), layoutRoot.FindAnyWidget("TabContentsHolder"), this);
103 }

References GetGame(), and GetInput().

◆ CreateTabs()

void UIScriptedMenu::CreateTabs ( )
inlineprotected

Definition at line 82 of file KeybindingsMenu.c.

83 {
85 for (int i = 0; i < sort_count; i++)
86 {
87 if (InputUtils.GetInputActionSortingMap().GetElement(i) && InputUtils.GetInputActionSortingMap().GetElement(i).Count() > 0)
88 {
89 string group_name = GetUApi().SortingLocalization(InputUtils.GetInputActionSortingMap().GetKey(i));
90 group_name = Widget.TranslateString("#" + group_name); //oof
91 m_Tabber.AddTab(group_name);
92 }
93 }
94
96 m_Tabber.AddTab(Widget.TranslateString("#layout_pc_keybinding_unsorted"));
97 m_Tabber.DisableTabs(true);
98 }
static map< int, ref array< int > > GetInputActionSortingMap()
Definition InputUtils.c:203
static array< int > GetUnsortedInputActions()
Definition InputUtils.c:208

References InputUtils::GetInputActionSortingMap(), GetUApi(), and InputUtils::GetUnsortedInputActions().

◆ CustomizeCharacter()

void UIScriptedMenu::CustomizeCharacter ( )
inlineprotected

Definition at line 538 of file ServerBrowserMenuNew.c.

539 {
541 EnterScriptedMenu(MENU_CHARACTER);
542 }
const int MENU_CHARACTER
Definition constants.c:164

References MENU_CHARACTER.

◆ DeferredDefaultsInit()

void UIScriptedMenu::DeferredDefaultsInit ( )
inlineprotected

deprecated

Definition at line 497 of file KeybindingsMenu.c.

498 {
499 }

◆ DeleteEvent()

void UIScriptedMenu::DeleteEvent ( )
inlineprotected

Definition at line 360 of file CameraToolsMenu.c.

361 {
362
363 }

◆ DeleteGestureItems()

void UIScriptedMenu::DeleteGestureItems ( )
inlineprotected

Definition at line 436 of file GesturesMenu.c.

437 {
440
441 child = m_GestureItemCardPanel.GetChildren();
442 while (child)
443 {
445 child = child.GetSibling();
446
447 delete child_to_destroy;
448 }
449 }

◆ DeleteItems()

void UIScriptedMenu::DeleteItems ( )
inlineprotected

Definition at line 488 of file RadialQuickbarMenu.c.

489 {
492
493 child = m_ItemCardPanel.GetChildren();
494 while (child)
495 {
497 child = child.GetSibling();
498
499 delete child_to_destroy;
500 }
501 }

◆ DeleteKeyframe()

void UIScriptedMenu::DeleteKeyframe ( )
inlineprotected

Definition at line 294 of file CameraToolsMenu.c.

295 {
297 {
299 m_Cameras.Remove(index);
300 index = Math.Clamp(index, 0, m_Cameras.Count() - 1);
301 if (m_Cameras.Count() > 0)
303 }
304 }
Definition EnMath.c:7
CTKeyframe m_SelectedKeyframe
static proto float Clamp(float value, float min, float max)
Clamps 'value' to 'min' if it is lower than 'min', or to 'max' if it is higher than 'max'.

References Math::Clamp().

◆ DeletePreset()

void UIScriptedMenu::DeletePreset ( )
inlineprivate

Definition at line 85 of file SceneEditorMenu.c.

86 {
87 if (GetCurrentPresetIndex() != -1)
88 {
91 }
92 }

References GetCurrentPresetIndex(), GetCurrentPresetName(), m_ConfigDebugProfile, and RefreshLists().

Referenced by OnClick().

◆ DisplayHint()

void UIScriptedMenu::DisplayHint ( string message)
inlineprotected

Definition at line 392 of file ScriptConsole.c.

393 {
394 if (message)
395 {
396 m_HintWidgetRoot = GetGame().GetWorkspace().CreateWidgets("gui/layouts/script_console/script_console_hint.layout");
397 m_HintWidgetBackground = ImageWidget.Cast(m_HintWidgetRoot.FindAnyWidget("Background"));
398 m_HintWidget = RichTextWidget.Cast(m_HintWidgetRoot.FindAnyWidget("HintText"));
399
400 m_HintWidgetRoot.Show(true);
401 m_HintWidget.SetText(message);
402
403 int offsetX = 0;
404 int offsetY = 10;
405
406 int screenW, screenH;
408
409 int mouseX, mouseY;
411
412 float relativeX = mouseX / screenW;
413 float relativeY = mouseY / screenH;
414
415 int width, height;
416 m_HintWidget.GetTextSize(width, height);
417 if (relativeX > 0.8)
418 offsetX = -width - offsetX;
419 if (relativeY > 0.8)
421
423 m_HintWidgetBackground.SetScreenSize(width + 5, height + 5);
424
425 }
426 }
RichTextWidget m_HintWidget
ImageWidget m_HintWidgetBackground
proto void GetScreenSize(out int x, out int y)
proto void GetMousePos(out int x, out int y)

References GetGame(), GetMousePos(), GetScreenSize(), m_HintWidget, m_HintWidgetBackground, and m_HintWidgetRoot.

Referenced by HoverSuccess().

◆ DrawConnectingLines() [1/2]

void UIScriptedMenu::DrawConnectingLines ( int index)
inlineprotected

Definition at line 109 of file ControlsXboxNew.c.

110 {
111 //disconnected for now, to be finished
112 return;
113
114 m_CanvasWidget.Clear();
115
116 //TODO drawing over nyah
119
120 Widget wid_side; //left or right area
121 Widget wid_spacer; //item in the L/R areas
122 wid_side = m_VariantWidget.GetChildren();
123 typename t = EConsoleButtonsControls;
124 int side_idx;
125 int enum_value;
128
129 while (wid_side)
130 {
132
133 side_idx = wid_side.GetUserID();
134 wid_spacer = wid_side.GetChildren(); //dig into the side first..
135
136 for (int i = 1; i < EnumTools.GetEnumSize(EConsoleButtonsControls); i++)
137 {
140 t.GetVariableValue(null, i, enum_value); //TODO
141
143 if (FilterByVisible(items_raw, items_filtered) > 0) //if there are any button-relevant items..
144 {
146
147 //dump it!
148 /*
149 for (int dump = 0; dump < items_filtered.Count(); dump++)
150 {
151 Print("key: " + i + " | name: " + items_filtered[dump].GetName());
152 }
153 Print("-");
154 */
155 }
156 }
158
159 wid_side = wid_side.GetSibling();
160 }
161
162 //dump it 2: the dumpening!
163 /*
164 int count_2 = m_AreasLR.Count();
165 for (int z = 0; z < m_AreasLR.Count(); z++)
166 {
167 Print("---------");
168 Print("Area: " + z);
169 TButtonPairingInfo tmp_info = m_AreasLR.GetElement(z);
170 int count_1 = tmp_info.Count();
171 for (int zz = 0; zz < tmp_info.Count(); zz++)
172 {
173 for (int zzz = 0; zzz < tmp_info.GetElement(zz).Count(); zzz++)
174 {
175 Print("key: " + tmp_info.GetKey(zz) + " | name: " + tmp_info.GetElement(zz).Get(zzz).GetName());
176 }
177 }
178 }
179
180 Print("------------------------");
181 */
182 /*
183 map<string, ref array<int>> button_marker_groups_unflitred = new map<string, ref array<int>>;
184 map<string, ref array<int>> button_marker_groups = new map<string, ref array<int>>;
185
186 float text_widget_pos_x, text_widget_pos_y;
187 float text_widget_width, text_widget_height;
188 float dot_pos_x, dot_pos_y;
189 float dot_width, dot_height;
190 float draw_pos_x, draw_pos_y;
191
192 m_CanvasWidget.Clear();
193
194 for (int i = 0; i < m_TabScript.GetTabCount(); i++)
195 {
196 tab_array.Insert(new array<ref JsonControlMappingInfo>);
197 for (int j = 0; j < 20; j++)
198 {
199 tab_array[i].Insert(null);
200 }
201 }
202
203 // insert json info to array by index, so it is sorted
204 for (i = 0; i < control_mapping_info.Count(); i++)
205 {
206 JsonControlMappingInfo info = control_mapping_info.Get(i);
207 tab_array[info.m_TabID][info.m_TextWidgetID] = info;
208 }
209
210 // create group of buttons which are connected together with line
211 for (int l = 0; l < control_mapping_info.Count(); l++)
212 {
213 JsonControlMappingInfo info1 = control_mapping_info[l];
214 string button_name = info1.m_ButtonName;
215 int text_widget_id = info1.m_TextWidgetID;
216 if (info1.m_TabID != index)
217 {
218 continue;
219 }
220 if (!button_marker_groups_unflitred.Contains(button_name))
221 {
222 button_marker_groups_unflitred.Insert(button_name, new ref array<int>);
223 button_marker_groups_unflitred.Get(button_name).Insert(text_widget_id);
224 }
225 else
226 {
227 button_marker_groups_unflitred.Get(button_name).Insert(text_widget_id);
228 }
229 }
230
231 // we want groups which are bigger than 1
232 for (l = 0; l < button_marker_groups_unflitred.Count(); l++)
233 {
234 if (button_marker_groups_unflitred.GetElement(l).Count() > 1)
235 {
236 string key = button_marker_groups_unflitred.GetKey(l);
237 button_marker_groups.Insert(button_marker_groups_unflitred.GetKey(l), button_marker_groups_unflitred.Get(key));
238 }
239 }
240
241 Widget panel_widget;
242 Widget button_marker_widget;
243
244 for (l = 0; l < tab_array[index].Count(); l++)
245 {
246 panel_widget = layoutRoot.FindAnyWidget("PanelWidget" + l);
247 if (tab_array[index][l] != null)
248 {
249 TextWidget text_widget = TextWidget.Cast(panel_widget.FindAnyWidget("TextWidget" + l));
250
251 string key_prefix;
252 #ifdef PLATFORM_XBOX
253 key_prefix = "xb_button_marker_";
254 #else
255 #ifdef PLATFORM_PS4
256 key_prefix = "ps_button_marker_";
257 #endif
258 #endif
259
260 button_marker_widget = layoutRoot.FindAnyWidget(key_prefix + tab_array[index][l].m_ButtonName);
261 text_widget.SetText(tab_array[index][l].m_InfoText);
262 panel_widget.Show(true);
263 button_marker_widget.Show(true);
264 panel_widget.Update();
265 if (!button_marker_groups.Contains(tab_array[index][l].m_ButtonName))
266 {
267 panel_widget.GetScreenPos(text_widget_pos_x, text_widget_pos_y);
268 panel_widget.GetScreenSize(text_widget_width,text_widget_height);
269
270 button_marker_widget.GetScreenPos(dot_pos_x, dot_pos_y);
271 button_marker_widget.GetScreenSize(dot_width, dot_height);
272
273 draw_pos_y = text_widget_pos_y + text_widget_height / 2;
274 if (l < 10)
275 {
276 draw_pos_x = text_widget_pos_x + text_widget_width - 1;
277 }
278 else
279 {
280 draw_pos_x = text_widget_pos_x;
281 }
282 m_CanvasWidget.DrawLine(draw_pos_x, draw_pos_y, dot_pos_x+dot_width/2, draw_pos_y, 2, ARGBF(0.6, 1, 1, 1));
283 m_CanvasWidget.DrawLine(dot_pos_x+dot_width/2, draw_pos_y, dot_pos_x+dot_width/2, dot_pos_y+dot_height/2, 2, ARGBF(0.6, 1, 1, 1));
284 }
285 }
286 else
287 {
288 panel_widget.Show(false);
289 }
290 panel_widget.Update();
291 }
292
293 // draw connecting lines
294 for (l = 0; l < button_marker_groups.Count(); l++)
295 {
296 text_widget_pos_x = 0;
297 text_widget_pos_y = 0;
298 text_widget_width = 0;
299 text_widget_height = 0;
300 float group_point_x = 0, group_point_y = 0;
301 float first_x = 0, first_y = 0;
302
303 ref array<int> element = button_marker_groups.GetElement(l);
304 string key_name = button_marker_groups.GetKey(l);
305 #ifdef PLATFORM_XBOX
306 key_prefix = "xb_button_marker_";
307 #else
308 #ifdef PLATFORM_PS4
309 key_prefix = "ps_button_marker_";
310 #endif
311 #endif
312 button_marker_widget = layoutRoot.FindAnyWidget(key_prefix + key_name);
313
314 for (int g = 0; g < element.Count(); g++)
315 {
316 panel_widget = layoutRoot.FindAnyWidget("PanelWidget" + element[g]);
317
318 panel_widget.GetScreenPos(text_widget_pos_x, text_widget_pos_y);
319 panel_widget.GetScreenSize(text_widget_width, text_widget_height);
320
321 if (g == 0)
322 {
323 if (element[0] < 10)
324 {
325 first_x = text_widget_pos_x + text_widget_width +50;
326 }
327 else
328 {
329 first_x = text_widget_pos_x - 50;
330 }
331
332 first_y = text_widget_pos_y + text_widget_height/2;
333 }
334
335 group_point_x += text_widget_pos_x;
336 group_point_y += text_widget_pos_y;
337 if (element[0] < 10)
338 {
339 m_CanvasWidget.DrawLine(text_widget_pos_x + text_widget_width - 1, text_widget_pos_y + text_widget_height/2, text_widget_pos_x + text_widget_width +50, text_widget_pos_y + text_widget_height/2, 2, ARGBF(0.6, 1, 1, 1));
340 }
341 else
342 {
343 m_CanvasWidget.DrawLine(text_widget_pos_x, text_widget_pos_y + text_widget_height/2, text_widget_pos_x - 50, text_widget_pos_y + text_widget_height/2, 2, ARGBF(0.6, 1, 1, 1));
344 }
345 }
346 if (element[0] < 10)
347 {
348 group_point_x = group_point_x/element.Count() + text_widget_width + 50;
349 }
350 else
351 {
352 group_point_x = group_point_x/element.Count() - 50;
353 }
354
355 if (element.Count() % 2 == 0)
356 {
357 group_point_y = ((text_widget_pos_y + text_widget_height/2) - first_y) / 2 + first_y;
358 }
359 else
360 {
361 float text_widget_pos_x_center, text_widget_pos_y_center;
362 float text_widget_width_center, text_widget_height_center;
363
364 panel_widget = layoutRoot.FindAnyWidget("PanelWidget" + element[1]);
365
366 panel_widget.GetScreenPos(text_widget_pos_x_center, text_widget_pos_y_center);
367 panel_widget.GetScreenSize(text_widget_width_center, text_widget_height_center);
368
369 group_point_y = text_widget_pos_y_center + text_widget_height_center / 2;
370 }
371
372 button_marker_widget.GetScreenPos(dot_pos_x, dot_pos_y);
373 button_marker_widget.GetScreenSize(dot_width, dot_height);
374
375 m_CanvasWidget.DrawLine(group_point_x, group_point_y, dot_pos_x+dot_width/2, group_point_y, 2, ARGBF(0.6, 1, 1, 1));
376 m_CanvasWidget.DrawLine(dot_pos_x+dot_width/2, group_point_y, dot_pos_x+dot_width/2, dot_pos_y, 2, ARGBF(0.6, 1, 1, 1));
377
378 if (element[0] < 10)
379 {
380 m_CanvasWidget.DrawLine(first_x, first_y, text_widget_pos_x + text_widget_width +50, text_widget_pos_y + text_widget_height/2, 2, ARGBF(0.6, 1, 1, 1));
381 }
382 else
383 {
384 m_CanvasWidget.DrawLine(first_x, first_y, text_widget_pos_x - 50, text_widget_pos_y + text_widget_height/2, 2, ARGBF(0.6, 1, 1, 1));
385 }
386 }
387 */
388 }
enum map TButtonPairingInfo
static int GetEnumSize(typename e)
Return amount of values in enum.
Definition EnConvert.c:620
CanvasWidget m_CanvasWidget
int FilterByVisible(array< Widget > input, array< Widget > filtered)
returns count
ref map< int, ref TButtonPairingInfo > m_AreasLR
bool FindAllChildrenByID(Widget wid, int user_id, out array< Widget > results)
Finds all immediate children widgets with corresponding userIDs.

References EnumTools::GetEnumSize().

Referenced by Init().

◆ DrawConnectingLines() [2/2]

void UIScriptedMenu::DrawConnectingLines ( int index)
inlineprotected

Definition at line 98 of file TutorialsMenu.c.

99 {
100 if (index == 6)
101 {
102 m_InfoTextLeft.Show(false);
103 m_InfoTextRight.Show(false);
104 }
105 else
106 {
107 m_InfoTextLeft.Show(true);
108 m_InfoTextRight.Show(true);
111
114
117 float dot_pos_x, dot_pos_y;
118 float dot_width, dot_height;
119 float draw_pos_x, draw_pos_y;
120
121 CanvasWidget canvas_widget = CanvasWidget.Cast(layoutRoot.FindAnyWidget("CanvasWidget_" + index));
122 canvas_widget.Clear();
124
125 for (int i = 0; i < m_TabScript.GetTabCount(); i++)
126 {
128 for (int j = 0; j < 30; j++)
129 tab_array[i].Insert(NULL);
130 }
131
132 // insert json info to array by index, so it is sorted
133 for (i = 0; i < control_mapping_info.Count(); i++)
134 {
136 tab_array[info.m_TabID][info.m_TextWidgetID] = info;
137 }
138
139 // create group of buttons which are connected together with line
140 for (int l = 0; l < control_mapping_info.Count(); l++)
141 {
143 string button_name = info1.m_ButtonName;
144 int text_widget_id = info1.m_TextWidgetID;
145 if (info1.m_TabID != index)
146 continue;
148 {
151 }
152 else
154 }
155
156 // we want groups which are bigger than 1
157 for (l = 0; l < button_marker_groups_unflitred.Count(); l++)
158 {
159 if (button_marker_groups_unflitred.GetElement(l).Count() > 1)
160 {
161 string key = button_marker_groups_unflitred.GetKey(l);
163 }
164 }
165
166 // hide all button markers
167 Widget xbox_controls_image = layoutRoot.FindAnyWidget("Markers_" + index);
168
171
172 for (l = 0; l < tab_array[index].Count(); l++)
173 {
174 panel_widget = layoutRoot.FindAnyWidget("PanelWidget" + l);
175 if (tab_array[index][l] != NULL)
176 {
177 TextWidget text_widget = TextWidget.Cast(panel_widget.FindAnyWidget("TextWidget" + l));
178 button_marker_widget = layoutRoot.FindAnyWidget("button_marker_" + tab_array[index][l].m_ButtonName);
179 text_widget.SetText(tab_array[index][l].m_InfoText);
180 panel_widget.Show(true);
181 panel_widget.Update();
182
183 if (!button_marker_groups.Contains(tab_array[index][l].m_ButtonName))
184 {
187
190
192
193 if (l < 15)
195 else
197
198 canvas_widget.DrawLine(draw_pos_x, draw_pos_y, dot_pos_x + dot_width / 2, draw_pos_y, 2, ARGBF(0.6, 1, 1, 1));
199 canvas_widget.DrawLine(dot_pos_x + dot_width / 2, draw_pos_y, dot_pos_x + dot_width / 2, dot_pos_y + dot_height / 2, 2, ARGBF(0.6, 1, 1, 1));
200 }
201 }
202 else
203 panel_widget.Show(false);
204 panel_widget.Update();
205 }
206
207 // draw connecting lines
208 for (l = 0; l < button_marker_groups.Count(); l++)
209 {
214 float group_point_x = 0, group_point_y = 0;
215 float first_x = 0, first_y = 0;
216
218 string key_name = button_marker_groups.GetKey(l);
219 button_marker_widget = layoutRoot.FindAnyWidget("button_marker_" + key_name);
220
221 for (int g = 0; g < element.Count(); g++)
222 {
223 panel_widget = layoutRoot.FindAnyWidget("PanelWidget" + element[g]);
224
227
228 if (g == 0)
229 {
230 if (element[0] < 15)
232 else
235
236 }
237
240
241 if (element[0] < 15)
243 else
245 }
246
247 if (element[0] < 15)
249 else
250 group_point_x = group_point_x / element.Count() - 50;
251
253
256
258 canvas_widget.DrawLine(dot_pos_x + dot_width / 2, group_point_y, dot_pos_x + dot_width / 2, dot_pos_y, 2, ARGBF(0.6, 1, 1, 1));
259
260 if (element[0] < 15)
262 else
264 }
265 }
266 }
Widget m_InfoTextRight
Widget m_InfoTextLeft
array< ref JsonControlMappingInfo > GetControlMappingInfo()
int ARGBF(float fa, float fr, float fg, float fb)
Converts <0.0, 1.0> ARGB into color.
Definition proto.c:332

References ARGBF(), GetControlMappingInfo(), and m_TabScript.

◆ EarlyAccessMenu()

void UIScriptedMenu::EarlyAccessMenu ( )
inlineprivate

Definition at line 3 of file EarlyAccessMenu.c.

4 {
5 }

◆ ExecuteSelectedCategory()

void UIScriptedMenu::ExecuteSelectedCategory ( Widget w)
inlineprotected

Definition at line 571 of file GesturesMenu.c.

572 {
573 //only when category is not picked yet
574 if (w)
575 {
577 w.GetUserData(gesture_item);
578
579 //is category
580 if (!instance.m_IsCategorySelected && gesture_item.GetCategory() == GestureCategories.CATEGORIES)
581 {
582 //set category selected
583 instance.m_IsCategorySelected = true;
584
585 //show selected category gestures
589
590 //update category name text
592 }
593 /*else
594 {
595 ExecuteSelectedItem();
596 }*/
597 }
598 }
GestureCategories
Definition GesturesMenu.c:2
void CreateGestureContent()
void GetGestureItems(out ref array< ref GestureMenuItem > gesture_items, GestureCategories category)

References GestureMenuItem().

◆ ExecuteSelectedItem()

void UIScriptedMenu::ExecuteSelectedItem ( )
inlineprotected

Definition at line 600 of file GesturesMenu.c.

601 {
602 if (instance.m_IsCategorySelected && instance.m_SelectedItem)
603 {
604 if (!GetGame().IsDedicatedServer())
605 {
607
609 instance.m_SelectedItem.GetUserData(gesture_item);
610
611 if (gesture_item)
612 {
613 if (player.GetEmoteManager())
614 player.GetEmoteManager().CreateEmoteCBFromMenu(gesture_item.GetID());
615 }
616 }
617 }
618 }

References GestureMenuItem(), GetGame(), and GetPlayer().

◆ Exit() [1/3]

void UIScriptedMenu::Exit ( )
inlineprivate

Definition at line 156 of file LogoutMenu.c.

157 {
158 // exit menu and logout screen
159 GetGame().GetMission().Continue();
160
161 // stop updating of logout screen
162 GetGame().GetCallQueue(CALL_CATEGORY_SYSTEM).Remove(this.UpdateTime);
163
164 // go back to main menu
165 GetGame().GetMission().AbortMission();
166 }

References CALL_CATEGORY_SYSTEM, and GetGame().

Referenced by UpdateTime().

◆ Exit() [2/3]

void UIScriptedMenu::Exit ( )
inlineprotected

Definition at line 527 of file MainMenu.c.

528 {
529 GetGame().GetUIManager().ShowDialog("#main_menu_exit", "#main_menu_exit_desc", IDC_MAIN_QUIT, DBT_YESNO, DBB_YES, DMT_QUESTION, this);
530 }
const int IDC_MAIN_QUIT
Definition constants.c:136

References GetGame(), and IDC_MAIN_QUIT.

◆ Exit() [3/3]

void UIScriptedMenu::Exit ( )
inlineprotected

Definition at line 378 of file MainMenuConsoles.c.

379 {
380 GetGame().GetUIManager().ShowDialog("#main_menu_exit", "#main_menu_exit_desc", IDC_MAIN_QUIT, DBT_YESNO, DBB_YES, DMT_QUESTION, this);
381 }

References GetGame(), and IDC_MAIN_QUIT.

◆ FilterByVisible()

int UIScriptedMenu::FilterByVisible ( array< Widget > input,
array< Widget > filtered )
inlineprotected

returns count

Definition at line 630 of file ControlsXboxNew.c.

631 {
632 for (int i = 0; i < input.Count(); i++)
633 {
634 if (input[i].IsVisible())
635 filtered.Insert(input[i]);
636 }
637
638 return filtered.Count();
639 }
proto native bool IsVisible()

References IsVisible().

◆ FilterDlcs()

void UIScriptedMenu::FilterDlcs ( inout array< ref ModInfo > modArray)
inlineprotected

Definition at line 154 of file MainMenu.c.

155 {
156 if (!m_AllDlcsMap)
158 m_AllDlcsMap.Clear();
159
160 int count = modArray.Count();
162 for (int i = count - 1; i > -1; i--)
163 {
164 info = modArray[i];
165 if (info.GetIsDLC())
166 {
167 m_AllDlcsMap.Set(info.GetName(), info);
168 modArray.Remove(i);
169 }
170 }
171 }
ref map< string, ref ModInfo > m_AllDlcsMap
Definition MainMenu.c:44

◆ FilterDLCs()

void UIScriptedMenu::FilterDLCs ( inout array< ref ModInfo > modArray)
inlineprotected

leaves ONLY DLCs

Definition at line 115 of file MainMenuConsoles.c.

116 {
117 if (!m_AllDlcsMap)
119
120 m_AllDlcsMap.Clear();
122 int count = modArray.Count();
123 for (int i = count - 1; i >= 0; i--)
124 {
125 info = modArray[i];
126 if (!info.GetIsDLC())
127 modArray.Remove(i);
128 else
129 m_AllDlcsMap.Set(info.GetName(), info);
130 }
131 }

◆ FilterFocus()

void UIScriptedMenu::FilterFocus ( bool focus)
inlineprotected

Definition at line 286 of file ServerBrowserMenuNew.c.

287 {
288#ifdef PLATFORM_CONSOLE
289 TextWidget con_text = TextWidget.Cast(layoutRoot.FindAnyWidget("ConnectText"));
290 TextWidget ref_text = TextWidget.Cast(layoutRoot.FindAnyWidget("RefreshText"));
291 TextWidget res_text = TextWidget.Cast(layoutRoot.FindAnyWidget("ResetText"));
292
293 if (focus)
294 {
295 con_text.SetText("#dialog_change");
296 ref_text.SetText("#server_browser_menu_refresh");
297 res_text.SetText("#server_browser_menu_reset_filters");
298
299 con_text.Update();
300 ref_text.Update();
301 res_text.Update();
302 }
303#endif
304 }

◆ FindAllChildrenByID()

bool UIScriptedMenu::FindAllChildrenByID ( Widget wid,
int user_id,
out array< Widget > results )
inlineprotected

Finds all immediate children widgets with corresponding userIDs.

Definition at line 617 of file ControlsXboxNew.c.

618 {
619 Widget child = wid.GetChildren();
620 while (child)
621 {
622 if (child.GetUserID() == user_id)
623 results.Insert(child);
624 child = child.GetSibling();
625 }
626 return (results && results.Count() > 0);
627 }

◆ FindChildByID()

Widget UIScriptedMenu::FindChildByID ( Widget wid,
int user_id )
inlineprotected

Finds immediate child widget with a corresponding userID.

Definition at line 604 of file ControlsXboxNew.c.

605 {
606 Widget ret = wid.GetChildren();
607 while (ret)
608 {
609 if (ret.GetUserID() == user_id)
610 return ret;
611 ret = ret.GetSibling();
612 }
613 return ret;
614 }

◆ GameRespawn()

void UIScriptedMenu::GameRespawn ( bool random)
inlineprotected

Definition at line 308 of file InGameMenu.c.

309 {
310 GetGame().GetMenuDefaultCharacterData(false).SetRandomCharacterForced(random);
311 GetGame().RespawnPlayer();
312
314 if (player)
315 {
316 player.SimulateDeath(true);
317 GetGame().GetCallQueue(CALL_CATEGORY_GUI).Call(player.ShowDeadScreen, true, 0);
318 }
319
320 MissionGameplay missionGP = MissionGameplay.Cast(GetGame().GetMission());
321 missionGP.DestroyAllMenus();
322 missionGP.SetPlayerRespawning(true);
323 missionGP.Continue();
324
325 Close();
326 }
const int CALL_CATEGORY_GUI
Definition tools.c:9

References CALL_CATEGORY_GUI, Close(), GetGame(), and GetPlayer().

◆ GameRetry()

void UIScriptedMenu::GameRetry ( bool random)
inlineprotected

Definition at line 313 of file InGameMenuXbox.c.

314 {
315 if (GetGame().IsMultiplayer())
316 {
317 //GetGame().GetUIManager().CloseAll();
318 GetGame().GetMenuDefaultCharacterData(false).SetRandomCharacterForced(random);
319 GetGame().RespawnPlayer();
320
322 if (player)
323 {
324 player.SimulateDeath(true);
325 GetGame().GetCallQueue(CALL_CATEGORY_GUI).Call(player.ShowDeadScreen, true, 0);
326 }
327
328 MissionGameplay missionGP = MissionGameplay.Cast(GetGame().GetMission());
329 missionGP.DestroyAllMenus();
330 missionGP.SetPlayerRespawning(true);
331 missionGP.Continue();
332
333 Close();
334 }
335 else
336 GetGame().RestartMission();
337 }

References CALL_CATEGORY_GUI, Close(), GetGame(), and GetPlayer().

Referenced by MenuRequestRespawn(), OnClick(), and OnModalResult().

◆ GenderChanged()

void UIScriptedMenu::GenderChanged ( )
inlineprotected

Definition at line 242 of file CharacterCreationMenu.c.

243 {
245
246 if (m_GenderSelector.GetStringValue() == "Female")
247 gender = ECharGender.Female;
248
249 m_Scene.GetIntroCharacter().SetCharacterGender(gender);
250
251 m_SkinSelector.LoadNewValues(m_Scene.GetIntroCharacter().GetCharList(gender), 0);
252 m_SkinSelector.SetRandomValue();
253 SetCharacterSaved(false);
254 }
ECharGender
Definition ECharGender.c:2

References DayZIntroSceneXbox::GetIntroCharacter(), and SetCharacterSaved().

◆ GesturesMenu()

void UIScriptedMenu::GesturesMenu ( )
inlineprotected

Definition at line 125 of file GesturesMenu.c.

126 {
128
129 if (!instance)
130 instance = this;
131
132 GetGame().GetMission().GetOnInputPresetChanged().Insert(OnInputPresetChanged);
133 }

References GetGame(), and OnInputPresetChanged().

◆ GetActor()

PlayerBase UIScriptedMenu::GetActor ( int index)
inlineprotected

Definition at line 170 of file CameraToolsMenu.c.

171 {
172 if (index > -1 && index < m_Actors.Count())
173 return PlayerBase.Cast(m_Actors.Get(index).GetObj());
174 else
175 return null;
176 }

◆ GetBlurValue()

float UIScriptedMenu::GetBlurValue ( )
inlineprotected

Definition at line 689 of file CameraToolsMenu.c.

690 {
691 return m_BlurEditWidget.GetText().ToFloat();
692 }
EditBoxWidget m_BlurEditWidget

◆ GetCameraLine()

Param6< vector, vector, float, float, float, int > UIScriptedMenu::GetCameraLine ( int index)
inlineprotected

Definition at line 370 of file CameraToolsMenu.c.

371 {
372 if (index > -1 && index < m_CameraLines.Count())
373 return m_CameraLines[index];
374 return null;
375 }
ref array< ref Param6< vector, vector, float, float, float, int > > m_CameraLines

◆ GetCameraLookDir()

vector UIScriptedMenu::GetCameraLookDir ( )
inlineprotected

Definition at line 448 of file CameraToolsMenu.c.

449 {
450 vector dir = FreeDebugCamera.GetInstance().GetDirection();
451 vector from = FreeDebugCamera.GetInstance().GetPosition();
452 vector to = from + (dir * 10000);
457 if (m_SelectedEvent)
458 ev_obj = GetActor(m_SelectedEvent.GetEventActor());
460 return contact_pos;
461
462 return "0 0 0";
463 }
static proto bool RaycastRV(vector begPos, vector endPos, out vector contactPos, out vector contactDir, out int contactComponent, set< Object > results=NULL, Object with=NULL, Object ignore=NULL, bool sorted=false, bool ground_only=false, int iType=ObjIntersectView, float radius=0.0, CollisionFlags flags=CollisionFlags.NEARESTCONTACT)
Raycasts world by given parameters.
CTEvent m_SelectedEvent
PlayerBase GetActor(int index)

References DayZPhysics::RaycastRV().

◆ GetChannelName()

static string UIScriptedMenu::GetChannelName ( ChatChannel channel)
inlinestaticprivate

Definition at line 85 of file ChatInputMenu.c.

86 {
87 switch (channel)
88 {
89 case CCSystem:
90 return "System";
91 case CCAdmin:
92 return "Admin";
93 case CCDirect:
94 return "Direct";
95 case CCMegaphone:
96 return "Megaphone";
97 case CCTransmitter:
98 return "Radio";
100 return "PAS";
101 }
102
103 return "";
104 }

Referenced by UpdateChannel().

◆ GetControlMappingInfo()

array< ref JsonControlMappingInfo > UIScriptedMenu::GetControlMappingInfo ( )
inlineprotected

Definition at line 268 of file TutorialsMenu.c.

269 {
271 string file_path = PATH_MOUSEKEY; //remains set for PC vatiant
272 string profile_name = "";
273 GetGame().GetInput().GetProfileName(GetGame().GetInput().GetCurrentProfile(), profile_name);
274
275#ifdef PLATFORM_CONSOLE
276 if (!GetGame().GetInput().IsEnabledMouseAndKeyboardEvenOnServer())
277 {
278 if (profile_name == "#STR_UAPRESET_0")
279 {
280#ifdef PLATFORM_XBOX
282#else
284#endif
285 }
286 else if (profile_name == "#STR_UAPRESET_1")
287 {
288#ifdef PLATFORM_XBOX
290#else
292#endif
293 }
294 else
295 {
296 ErrorEx("Invalid file path!");
297 file_path = "";
298 }
299 }
300#endif
303
304 string js_error = "";
305 string line_content = "";
306 string content = "";
307 if (file_handle)
308 {
309 while (FGets(file_handle, line_content) >= 0)
312
313 if (js.ReadFromString(control_mapping_info, content, js_error))
315 else
316 ErrorEx("JSON ERROR => [TutorialsMenu]: " + js_error);
317 }
318 else
319 ErrorEx("FILEHANDLE ERROR => [TutorialsMenu]: " + js_error);
320
322 }
Class for sending RPC over network.
Definition gameplay.c:50
const string PATH_PS_OLD
const string PATH_MOUSEKEY
const string PATH_X1_NEW
const string PATH_PS_NEW
const string PATH_X1_OLD
enum ShapeType ErrorEx
FileMode
Definition EnSystem.c:383
proto void CloseFile(FileHandle file)
Close the File.
proto int FGets(FileHandle file, string var)
Get line from file, every next call of this function returns next line.
proto FileHandle OpenFile(string name, FileMode mode)
Opens File.

References CloseFile(), ErrorEx, FGets(), GetGame(), GetInput(), and OpenFile().

Referenced by DrawConnectingLines().

◆ GetCurrentItemIndex()

int UIScriptedMenu::GetCurrentItemIndex ( )
inlineprivate

Definition at line 211 of file SceneEditorMenu.c.

212 {
213 return m_PresetItemsTextListbox.GetSelectedRow();
214 }
TextListboxWidget m_PresetItemsTextListbox

Referenced by GetCurrentItemName(), ItemMoveDown(), ItemMoveUp(), OnChange(), OnClick(), OnDoubleClick(), and RemoveItemFromPreset().

◆ GetCurrentItemName()

string UIScriptedMenu::GetCurrentItemName ( )
inlineprivate

Definition at line 183 of file SceneEditorMenu.c.

184 {
185 if (GetCurrentItemIndex() != -1)
186 {
187 string item_name;
189 return item_name;
190 }
191 return "";
192 }

References GetCurrentItemIndex().

Referenced by OnClick().

◆ GetCurrentObjectName()

string UIScriptedMenu::GetCurrentObjectName ( )
inlineprivate

Definition at line 194 of file SceneEditorMenu.c.

195 {
196 int selected_row_index = m_ClWgtLbxClassesList.GetSelectedRow();
197 if (selected_row_index != -1)
198 {
199 string item_name;
201 return item_name;
202 }
203 return "";
204 }

Referenced by OnItemSelected().

◆ GetCurrentPresetIndex()

int UIScriptedMenu::GetCurrentPresetIndex ( )
inlineprivate

◆ GetCurrentPresetName()

string UIScriptedMenu::GetCurrentPresetName ( )
inlineprivate

Definition at line 170 of file SceneEditorMenu.c.

171 {
173 // load preset items list
174 if (index > -1 && index < m_PresetsTextListbox.GetNumItems())
175 {
178 return item_params_array.param1;
179 }
180 return "";
181 }

References GetCurrentPresetIndex().

Referenced by AddItemToPreset(), DeletePreset(), ItemMoveDown(), ItemMoveUp(), OnChange(), OnClick(), OnDoubleClick(), RemoveItemFromPreset(), RenamePreset(), RenderPresetItems(), and SetDefaultPreset().

◆ GetCurrentTab()

KeybindingsContainer UIScriptedMenu::GetCurrentTab ( )
inlineprotected

Definition at line 482 of file KeybindingsMenu.c.

483 {
484 return m_GroupsContainer;
485 }

◆ GetData()

static JsonHintsData UIScriptedMenu::GetData ( )
inlinestaticprotected

Definition at line 82 of file ScriptConsole.c.

83 {
85 if (!FileExist(path))
86 {
88 //ErrorEx(string.Format("Using default hints file: %1", path), ErrorExSeverity.INFO);
89 }
90
91 string errorMessage;
95
96 return data;
97 }
static const string HINTS_PATH_OPTIONAL
static const string HINTS_PATH_DEFAULT
proto bool FileExist(string name)
Check existence of file.

References ErrorEx, FileExist(), HINTS_PATH_DEFAULT, HINTS_PATH_OPTIONAL, and path.

Referenced by Init().

◆ GetFavoritedServerIds()

TStringArray UIScriptedMenu::GetFavoritedServerIds ( )
inlineprotected

Definition at line 107 of file ServerBrowserMenuNew.c.

108 {
109 return m_Favorites;
110 }

◆ GetFiltredConfigClasses()

TStringArray UIScriptedMenu::GetFiltredConfigClasses ( string search_string,
TStringArray array_ret )
inlineprotected

Definition at line 1151 of file SceneEditorMenu.c.

1152 {
1157
1158 array_ret.Clear();
1159
1160 search_string.ToLower();
1161
1162 for (int s = 0; s < searching_in.Count(); ++s)
1163 {
1164 string config_path = searching_in.Get(s);
1165
1166 int objects_count = g_Game.ConfigGetChildrenCount(config_path);
1167 for (int i = 0; i < objects_count; i++)
1168 {
1169 string childName;
1170 g_Game.ConfigGetChildName(config_path, i, childName);
1171
1172 int scope = g_Game.ConfigGetInt(config_path + " " + childName + " scope");
1173 if (scope == 0)
1174 continue;
1175
1176 string nchName = childName;
1177 nchName.ToLower();
1178
1179 if (nchName.Contains(search_string))
1180 array_ret.Insert(childName);
1181 }
1182 }
1183
1184 return array_ret;
1185 }
array< string > TStringArray
Definition EnScript.c:666
const string CFG_VEHICLESPATH
Definition constants.c:209
const string CFG_WEAPONSPATH
Definition constants.c:210
const string CFG_MAGAZINESPATH
Definition constants.c:211

References CFG_MAGAZINESPATH, CFG_VEHICLESPATH, CFG_WEAPONSPATH, and g_Game.

Referenced by UpdateListClasses().

◆ GetFiltredSceneObjects()

map< int, SceneObject > UIScriptedMenu::GetFiltredSceneObjects ( string search_string,
map< int, SceneObject > array_ret )
inlineprotected

Definition at line 1122 of file SceneEditorMenu.c.

1123 {
1125
1126 search_string.ToLower();
1127
1128 array_ret.Clear();
1129
1130 if (scene_objects != NULL)
1131 {
1132 for (int i = 0; i < scene_objects.Count(); ++i)
1133 {
1135
1136 string obj_name = sc_obj.GetTypeName();
1137
1138 obj_name.ToLower();
1139
1140 if (obj_name.Contains(search_string))
1141 array_ret.Insert(i, sc_obj);
1142 }
1143 }
1144
1145 return array_ret;
1146 }

Referenced by UpdateListObjects().

◆ GetFreeUIPropertyAttchament()

UIPropertyAttachment UIScriptedMenu::GetFreeUIPropertyAttchament ( )
inlineprivate

Definition at line 1243 of file SceneEditorMenu.c.

1244 {
1245 for (int i = 0; i < m_PrWidgetsAttachments.Count(); ++i)
1246 {
1248
1249 if (!ui_comp.IsVisible())
1250 return ui_comp;
1251 }
1252
1255
1256 return ui_prop;
1257 }

Referenced by Refresh().

◆ GetGestureItems()

void UIScriptedMenu::GetGestureItems ( out ref array< ref GestureMenuItem > gesture_items,
GestureCategories category )
inlineprotected

Definition at line 303 of file GesturesMenu.c.

304 {
305 gesture_items.Clear();
306
307 //PC PLATFORM
308 //All categories
309 if (category == GestureCategories.CATEGORIES)
310 {
311 gesture_items.Insert(new GestureMenuItem(GestureCategories.CATEGORY_1, "#STR_USRACT_EMOTE_CATEGORY_COMMS", category));
312 gesture_items.Insert(new GestureMenuItem(GestureCategories.CATEGORY_2, "#STR_USRACT_EMOTE_CATEGORY_INTERACTIONS", category));
313 gesture_items.Insert(new GestureMenuItem(GestureCategories.CATEGORY_3, "#STR_USRACT_EMOTE_CATEGORY_POSES", category));
314 gesture_items.Insert(new GestureMenuItem(GestureCategories.CATEGORY_4, "#STR_USRACT_EMOTE_CATEGORY_MISC", category));
315 }
316 //Category 1 - commands
317 else if (category == GestureCategories.CATEGORY_1)
318 {
319 gesture_items.Insert(new GestureMenuItem(EmoteConstants.ID_EMOTE_POINT, "#STR_USRACT_ID_EMOTE_POINT", category));
320 gesture_items.Insert(new GestureMenuItem(EmoteConstants.ID_EMOTE_MOVE, "#STR_USRACT_ID_EMOTE_MOVE", category));
321 gesture_items.Insert(new GestureMenuItem(EmoteConstants.ID_EMOTE_HOLD, "#STR_USRACT_ID_EMOTE_HOLD", category));
322 gesture_items.Insert(new GestureMenuItem(EmoteConstants.ID_EMOTE_LISTENING, "#STR_USRACT_ID_EMOTE_LISTENING", category));
323 gesture_items.Insert(new GestureMenuItem(EmoteConstants.ID_EMOTE_DOWN, "#STR_USRACT_ID_EMOTE_DOWN", category));
324 gesture_items.Insert(new GestureMenuItem(EmoteConstants.ID_EMOTE_SILENT, "#STR_USRACT_ID_EMOTE_SILENT", category));
325 gesture_items.Insert(new GestureMenuItem(EmoteConstants.ID_EMOTE_WATCHING, "#STR_USRACT_ID_EMOTE_WATCHING", category));
326 gesture_items.Insert(new GestureMenuItem(EmoteConstants.ID_EMOTE_POINTSELF, "#STR_USRACT_ID_EMOTE_POINTSELF", category));
327 gesture_items.Insert(new GestureMenuItem(EmoteConstants.ID_EMOTE_COME, "#STR_USRACT_ID_EMOTE_COME", category));
328 }
329 //Category 2 - interaction
330 else if (category == GestureCategories.CATEGORY_2)
331 {
332 gesture_items.Insert(new GestureMenuItem(EmoteConstants.ID_EMOTE_GREETING, "#STR_USRACT_ID_EMOTE_GREETING", category));
333 gesture_items.Insert(new GestureMenuItem(EmoteConstants.ID_EMOTE_TAUNT, "#STR_USRACT_ID_EMOTE_TAUNT", category));
334 gesture_items.Insert(new GestureMenuItem(EmoteConstants.ID_EMOTE_SHAKE, "#STR_USRACT_ID_EMOTE_SHAKE", category));
335 gesture_items.Insert(new GestureMenuItem(EmoteConstants.ID_EMOTE_NOD, "#STR_USRACT_ID_EMOTE_NOD", category));
336 gesture_items.Insert(new GestureMenuItem(EmoteConstants.ID_EMOTE_LOOKATME, "#STR_USRACT_ID_EMOTE_LOOKATME", category));
337 gesture_items.Insert(new GestureMenuItem(EmoteConstants.ID_EMOTE_TAUNTELBOW, "#STR_USRACT_ID_EMOTE_TAUNTELBOW", category));
338 gesture_items.Insert(new GestureMenuItem(EmoteConstants.ID_EMOTE_THUMB, "#STR_USRACT_ID_EMOTE_THUMB", category));
339 gesture_items.Insert(new GestureMenuItem(EmoteConstants.ID_EMOTE_THUMBDOWN, "#STR_USRACT_ID_EMOTE_THUMBDOWN", category));
340 gesture_items.Insert(new GestureMenuItem(EmoteConstants.ID_EMOTE_CLAP, "#STR_USRACT_ID_EMOTE_CLAP", category));
341 }
342 //Category 3 - poses
343 else if (category == GestureCategories.CATEGORY_3)
344 {
345 gesture_items.Insert(new GestureMenuItem(EmoteConstants.ID_EMOTE_SUICIDE, "#STR_USRACT_ID_EMOTE_SUICIDE", category));
346 gesture_items.Insert(new GestureMenuItem(EmoteConstants.ID_EMOTE_SURRENDER, "#STR_USRACT_ID_EMOTE_SURRENDER", category));
347 gesture_items.Insert(new GestureMenuItem(EmoteConstants.ID_EMOTE_SALUTE, "#STR_USRACT_ID_EMOTE_SALUTE", category));
348 gesture_items.Insert(new GestureMenuItem(EmoteConstants.ID_EMOTE_SITB, "#STR_USRACT_ID_EMOTE_SITB", category));
349 gesture_items.Insert(new GestureMenuItem(EmoteConstants.ID_EMOTE_LYINGDOWN, "#STR_USRACT_ID_EMOTE_LYINGDOWN", category));
350 gesture_items.Insert(new GestureMenuItem(EmoteConstants.ID_EMOTE_SITA, "#STR_USRACT_ID_EMOTE_SITA", category));
351 gesture_items.Insert(new GestureMenuItem(EmoteConstants.ID_EMOTE_CAMPFIRE, "#STR_USRACT_ID_EMOTE_CAMPFIRE", category));
352 gesture_items.Insert(new GestureMenuItem(EmoteConstants.ID_EMOTE_SHRUG, "#STR_USRACT_ID_EMOTE_SHRUG", category));
353 gesture_items.Insert(new GestureMenuItem(EmoteConstants.ID_EMOTE_SOS, "#STR_USRACT_ID_EMOTE_SOS", category));
354 }
355 //Category 4 - special
356 else if (category == GestureCategories.CATEGORY_4)
357 {
358 gesture_items.Insert(new GestureMenuItem(EmoteConstants.ID_EMOTE_DANCE, "#STR_USRACT_ID_EMOTE_DANCE", category));
359 gesture_items.Insert(new GestureMenuItem(EmoteConstants.ID_EMOTE_HEART, "#STR_USRACT_ID_EMOTE_HEART", category));
360 gesture_items.Insert(new GestureMenuItem(EmoteConstants.ID_EMOTE_FACEPALM, "#STR_USRACT_ID_EMOTE_FACEPALM", category));
361 gesture_items.Insert(new GestureMenuItem(EmoteConstants.ID_EMOTE_TIMEOUT, "#STR_USRACT_ID_EMOTE_TIMEOUT", category));
362 gesture_items.Insert(new GestureMenuItem(EmoteConstants.ID_EMOTE_THROAT, "#STR_USRACT_ID_EMOTE_THROAT", category));
363 gesture_items.Insert(new GestureMenuItem(EmoteConstants.ID_EMOTE_VOMIT, "#STR_USRACT_ID_EMOTE_VOMIT", category));
364 gesture_items.Insert(new GestureMenuItem(EmoteConstants.ID_EMOTE_RPS, "#STR_USRACT_ID_EMOTE_RPS", category));
365 gesture_items.Insert(new GestureMenuItem(EmoteConstants.ID_EMOTE_TAUNTTHINK, "#STR_USRACT_ID_EMOTE_TAUNTTHINK", category));
366 gesture_items.Insert(new GestureMenuItem(EmoteConstants.ID_EMOTE_TAUNTKISS, "#STR_USRACT_ID_EMOTE_TAUNTKISS", category));
367 //gesture_items.Insert( new GestureMenuItem( EmoteConstants.ID_EMOTE_RPS_R, "#STR_USRACT_ID_EMOTE_RPS_R", category ) );
368 //gesture_items.Insert( new GestureMenuItem( EmoteConstants.ID_EMOTE_RPS_P, "#STR_USRACT_ID_EMOTE_RPS_P", category ) );
369 //gesture_items.Insert( new GestureMenuItem( EmoteConstants.ID_EMOTE_RPS_S, "#STR_USRACT_ID_EMOTE_RPS_S", category ) );
370 //gesture_items.Insert( new GestureMenuItem( EmoteConstants.ID_EMOTE_DEBUG, "ID_EMOTE_DEBUG", category ) );
371 }
372 }
const int ID_EMOTE_LOOKATME
Definition constants.c:378
const int ID_EMOTE_TIMEOUT
Definition constants.c:368
const int ID_EMOTE_SHRUG
Definition constants.c:388
const int ID_EMOTE_VOMIT
Definition constants.c:390
const int ID_EMOTE_CAMPFIRE
Definition constants.c:362
const int ID_EMOTE_RPS
Definition constants.c:373
const int ID_EMOTE_SURRENDER
Definition constants.c:389
const int ID_EMOTE_CLAP
Definition constants.c:369
const int ID_EMOTE_FACEPALM
Definition constants.c:356
const int ID_EMOTE_SITA
Definition constants.c:363
const int ID_EMOTE_POINT
Definition constants.c:370
const int ID_EMOTE_DOWN
Definition constants.c:381
const int ID_EMOTE_THUMB
Definition constants.c:358
const int ID_EMOTE_SILENT
Definition constants.c:371
const int ID_EMOTE_MOVE
Definition constants.c:380
const int ID_EMOTE_POINTSELF
Definition constants.c:377
const int ID_EMOTE_SHAKE
Definition constants.c:387
const int ID_EMOTE_LISTENING
Definition constants.c:376
const int ID_EMOTE_TAUNT
Definition constants.c:353
const int ID_EMOTE_DANCE
Definition constants.c:361
const int ID_EMOTE_WATCHING
Definition constants.c:374
const int ID_EMOTE_GREETING
Definition constants.c:350
const int ID_EMOTE_THROAT
Definition constants.c:359
const int ID_EMOTE_SUICIDE
Definition constants.c:360
const int ID_EMOTE_NOD
Definition constants.c:386
const int ID_EMOTE_HEART
Definition constants.c:352
const int ID_EMOTE_COME
Definition constants.c:382
const int ID_EMOTE_SOS
Definition constants.c:351
const int ID_EMOTE_TAUNTTHINK
Definition constants.c:379
const int ID_EMOTE_SALUTE
Definition constants.c:372
const int ID_EMOTE_HOLD
Definition constants.c:375
const int ID_EMOTE_SITB
Definition constants.c:364
const int ID_EMOTE_LYINGDOWN
Definition constants.c:354
const int ID_EMOTE_TAUNTKISS
Definition constants.c:355
const int ID_EMOTE_THUMBDOWN
Definition constants.c:365
const int ID_EMOTE_TAUNTELBOW
Definition constants.c:357

References GestureMenuItem(), EmoteConstants::ID_EMOTE_CAMPFIRE, EmoteConstants::ID_EMOTE_CLAP, EmoteConstants::ID_EMOTE_COME, EmoteConstants::ID_EMOTE_DANCE, EmoteConstants::ID_EMOTE_DOWN, EmoteConstants::ID_EMOTE_FACEPALM, EmoteConstants::ID_EMOTE_GREETING, EmoteConstants::ID_EMOTE_HEART, EmoteConstants::ID_EMOTE_HOLD, EmoteConstants::ID_EMOTE_LISTENING, EmoteConstants::ID_EMOTE_LOOKATME, EmoteConstants::ID_EMOTE_LYINGDOWN, EmoteConstants::ID_EMOTE_MOVE, EmoteConstants::ID_EMOTE_NOD, EmoteConstants::ID_EMOTE_POINT, EmoteConstants::ID_EMOTE_POINTSELF, EmoteConstants::ID_EMOTE_RPS, EmoteConstants::ID_EMOTE_SALUTE, EmoteConstants::ID_EMOTE_SHAKE, EmoteConstants::ID_EMOTE_SHRUG, EmoteConstants::ID_EMOTE_SILENT, EmoteConstants::ID_EMOTE_SITA, EmoteConstants::ID_EMOTE_SITB, EmoteConstants::ID_EMOTE_SOS, EmoteConstants::ID_EMOTE_SUICIDE, EmoteConstants::ID_EMOTE_SURRENDER, EmoteConstants::ID_EMOTE_TAUNT, EmoteConstants::ID_EMOTE_TAUNTELBOW, EmoteConstants::ID_EMOTE_TAUNTKISS, EmoteConstants::ID_EMOTE_TAUNTTHINK, EmoteConstants::ID_EMOTE_THROAT, EmoteConstants::ID_EMOTE_THUMB, EmoteConstants::ID_EMOTE_THUMBDOWN, EmoteConstants::ID_EMOTE_TIMEOUT, EmoteConstants::ID_EMOTE_VOMIT, and EmoteConstants::ID_EMOTE_WATCHING.

◆ GetItemNamesForSlots()

map< string, ref TStringArray > UIScriptedMenu::GetItemNamesForSlots ( TStringArray slots)
inlineprivate

Definition at line 1262 of file SceneEditorMenu.c.

1263 {
1268
1270
1271 for (int m = 0; m < slots.Count(); ++m)
1272 array_ret.Insert(slots.Get(m), new TStringArray);
1273
1275 string inv_slot;
1276 string childName;
1277
1278 for (int s = 0; s < searching_in.Count(); ++s)
1279 {
1280 string config_path = searching_in.Get(s);
1281
1282 int objects_count = g_Game.ConfigGetChildrenCount(config_path);
1283 for (int i = 0; i < objects_count; i++)
1284 {
1285 g_Game.ConfigGetChildName(config_path, i, childName);
1286
1287 g_Game.ConfigGetTextArray(config_path + " " + childName + " inventorySlot", inv_slots);
1288
1289 if (inv_slots.Count() > 0)
1290 {
1291 for (int j = 0; j < inv_slots.Count(); ++j)
1292 {
1293 inv_slot = "";
1294 inv_slot = inv_slots.Get(j);
1295
1296 for (int k = 0; k < slots.Count(); ++k)
1297 {
1298 string finding_slot_type = slots.Get(k);
1299
1302 }
1303 }
1304 }
1305 else
1306 {
1307 inv_slot = "";
1308 g_Game.ConfigGetText(config_path + " " + childName + " inventorySlot", inv_slot);
1309
1310 if (inv_slot != "")
1311 {
1312 for (int l = 0; l < slots.Count(); ++l)
1313 {
1314 string finding_slot_type_2 = slots.Get(l);
1315
1318 }
1319 }
1320 }
1321 }
1322 }
1323
1324 return array_ret;
1325 }

References CFG_MAGAZINESPATH, CFG_VEHICLESPATH, CFG_WEAPONSPATH, and g_Game.

Referenced by Refresh().

◆ GetItems()

void UIScriptedMenu::GetItems ( out ref array< ref RadialQuickbarItem > items)
inlineprotected

Definition at line 279 of file RadialQuickbarMenu.c.

280 {
281 items.Clear();
282
284 int size = player.GetQuickBarSize();
286
287 for (int i = 0; i < size; ++i)
288 {
289 entity = player.GetQuickBarEntity(i);
290
291 items.Insert(new RadialQuickbarItem(i, entity, ""));
292 }
293
295 }
void CheckForLightsAndNVG(out ref array< ref RadialQuickbarItem > items, int last_idx)

References GetGame(), GetPlayer(), and RadialQuickbarItem().

◆ GetItemToAssign()

static EntityAI UIScriptedMenu::GetItemToAssign ( )
inlinestaticprotected

Definition at line 133 of file RadialQuickbarMenu.c.

134 {
135 return m_ItemToAssign;
136 }
static EntityAI m_ItemToAssign

◆ GetMenuInstance()

static RadialQuickbarMenu UIScriptedMenu::GetMenuInstance ( )
inlinestaticprotected

Definition at line 138 of file RadialQuickbarMenu.c.

139 {
140 return instance;
141 }

◆ GetMessage()

string UIScriptedMenu::GetMessage ( )
inlineprotected

Definition at line 172 of file ScriptConsole.c.

173 {
175
176 if (m_JsonData && m_JsonData.WidgetHintBindings)
177 {
178 if (m_JsonData.WidgetHintBindings.Contains(hash))
179 return m_JsonData.WidgetHintBindings.Get(hash);
180 }
181 //return "";
182 //return "No hint" + hash.ToString();
183 return NO_HINT_TEXT;
184 }
Widget m_CurrentHoverWidget
static ref JsonHintsData m_JsonData
const string NO_HINT_TEXT
int GetWidgetCombinedHash(Widget w)

References GetWidgetCombinedHash(), m_CurrentHoverWidget, and NO_HINT_TEXT.

Referenced by HoverSuccess(), and Update().

◆ GetMouseLookDir()

vector UIScriptedMenu::GetMouseLookDir ( )
inlineprotected

Definition at line 465 of file CameraToolsMenu.c.

466 {
467 vector dir = GetGame().GetPointerDirection();
468 vector from = FreeDebugCamera.GetInstance().GetPosition();
469 vector to = from + (dir * 10000);
474 if (m_SelectedEvent)
475 ev_obj = GetActor(m_SelectedEvent.GetEventActor());
477 return contact_pos;
478
479 return "0 0 0";
480 }

References GetGame(), and DayZPhysics::RaycastRV().

◆ GetPlayerObj()

PlayerBase UIScriptedMenu::GetPlayerObj ( )
inlineprotected

Definition at line 47 of file CharacterCreationMenu.c.

48 {
49 return m_Scene.GetIntroCharacter().GetCharacterObj();
50 }

References DayZIntroSceneXbox::GetIntroCharacter().

Referenced by Init().

◆ GetPresetIndexByName()

int UIScriptedMenu::GetPresetIndexByName ( string preset_name)
inlineprivate

Definition at line 65 of file SceneEditorMenu.c.

66 {
67 int i;
68 for (i = 0; i < m_PresetsTextListbox.GetNumItems(); i++)
69 {
72
73 if (item_params_array.param1 == preset_name)
74 return i;
75 }
76 return -1;
77 }

Referenced by IsPresetFixed(), RenderPresets(), and SetDefaultPreset().

◆ GetSelectedHandler()

ScriptConsoleTabBase UIScriptedMenu::GetSelectedHandler ( )
inlineprotected

Definition at line 70 of file ScriptConsole.c.

71 {
72 return m_SelectedHandler;
73 }
ScriptConsoleTabBase m_SelectedHandler

References m_SelectedHandler.

◆ GetSelectedTab()

ServerBrowserTab UIScriptedMenu::GetSelectedTab ( )
inlineprotected

Definition at line 554 of file ServerBrowserMenuNew.c.

555 {
556 switch (m_Tabber.GetSelectedIndex())
557 {
558 case 0:
559 {
560 return m_FavoritesTab;
561 }
562 case 1:
563 {
564 return m_OfficialTab;
565 }
566 case 2:
567 {
568 return m_CommunityTab;
569 }
570 case 3:
571 {
572 return m_LANTab;
573 }
574 }
575 return null;
576 }

◆ GetServersLoadingTab()

TabType UIScriptedMenu::GetServersLoadingTab ( )
inlineprotected

Definition at line 194 of file ServerBrowserMenuNew.c.

195 {
196 return m_IsRefreshing;
197 }

◆ GetTabHandler()

ScriptConsoleTabBase UIScriptedMenu::GetTabHandler ( typename tabType )
inlineprotected

Definition at line 359 of file ScriptConsole.c.

360 {
362 {
363 if (tabType == handler.Type())
364 return handler;
365 }
366 return null;
367 }
ref map< Widget, ref ScriptConsoleTabBase > m_TabHandlers

References m_TabHandlers.

◆ GetTotalTime()

float UIScriptedMenu::GetTotalTime ( int index)
inlineprotected

Definition at line 264 of file CameraToolsMenu.c.

265 {
266 float time;
267 index = Math.Clamp(index, 0, m_Cameras.Count());
268 for (int i = 0; i < index; i++)
269 time += m_Cameras.Get(i).GetInterpTime();
270 return time;
271 }

References Math::Clamp().

◆ GetWidgetCombinedHash()

int UIScriptedMenu::GetWidgetCombinedHash ( Widget w)
inlineprotected

Definition at line 160 of file ScriptConsole.c.

161 {
162 string nameThis = w.GetName();
163 string nameParent = "";
164
165 if (w.GetParent())
166 nameParent = w.GetParent().GetName();
167
169 return namesCombined.Hash();
170 }

Referenced by GetMessage(), and SetHintText().

◆ HandleLights()

void UIScriptedMenu::HandleLights ( RadialQuickbarItem quickbar_item)
inlineprotected

Definition at line 719 of file RadialQuickbarMenu.c.

720 {
722 ItemBase item = ItemBase.Cast(quickbar_item.GetItem());
724 ActionTarget atrg;
725
726 if (Headtorch_ColorBase.Cast(item))
727 {
728 atrg = new ActionTarget(item, null, -1, vector.Zero, -1.0);
729 if (mngr_client.GetAction(ActionTurnOnHeadtorch).Can(player, atrg, null))
730 mngr_client.PerformActionStart(player.GetActionManager().GetAction(ActionTurnOnHeadtorch), atrg, null);
731 else if (mngr_client.GetAction(ActionTurnOffHeadtorch).Can(player, atrg, null))
732 mngr_client.PerformActionStart(player.GetActionManager().GetAction(ActionTurnOffHeadtorch), atrg, null);
733 }
734 else if (Mich2001Helmet.Cast(item.GetHierarchyParent()))
735 {
736 atrg = new ActionTarget(item.GetHierarchyParent(), null, -1, vector.Zero, -1.0);
738 mngr_client.PerformActionStart(player.GetActionManager().GetAction(ActionTurnOnHelmetFlashlight), atrg, null);
739 else if (mngr_client.GetAction(ActionTurnOffHelmetFlashlight).Can(player, atrg, null))
740 mngr_client.PerformActionStart(player.GetActionManager().GetAction(ActionTurnOffHelmetFlashlight), atrg, null);
741 }
742 }
class ActionTargets ActionTarget
static const vector Zero
Definition EnConvert.c:110

References ActionTarget, GetGame(), GetPlayer(), and vector::Zero.

◆ HandleNVG()

void UIScriptedMenu::HandleNVG ( RadialQuickbarItem quickbar_item)
inlineprotected

Definition at line 744 of file RadialQuickbarMenu.c.

745 {
748 ActionTarget atrg;
749
750 atrg = new ActionTarget(quickbar_item.GetItem().GetHierarchyParent(), null, -1, vector.Zero, -1.0);
751 if (mngr_client.GetAction(ActionToggleNVG).Can(player, atrg, null))
752 mngr_client.PerformActionStart(player.GetActionManager().GetAction(ActionToggleNVG), atrg, null);
753 }

References ActionTarget, GetGame(), GetPlayer(), and vector::Zero.

◆ HardReset()

void UIScriptedMenu::HardReset ( )
inlineprotected

Definition at line 263 of file KeybindingsMenu.c.

264 {
265 g_Game.GetUIManager().ShowDialog("#menu_default_cap", "#menu_default_all_desc", MODAL_ID_DEFAULT_ALL, DBT_YESNO, DBB_YES, DMT_QUESTION, this);
266 }
const int MODAL_ID_DEFAULT_ALL

References g_Game.

◆ HelpScreen()

void UIScriptedMenu::HelpScreen ( )
inlineprivate

Definition at line 8 of file HelpScreen.c.

9 {
10
11 }

◆ Hide()

void UIScriptedMenu::Hide ( )
inlineprivate

Definition at line 71 of file LogoutMenu.c.

72 {
73 if (layoutRoot)
74 layoutRoot.Show(false);
75 }

Referenced by OnClick(), and Update().

◆ HideHint()

void UIScriptedMenu::HideHint ( )
inlineprotected

Definition at line 154 of file ScriptConsole.c.

155 {
157 m_HintWidgetRoot.Unlink();
158 }

References m_HintWidgetRoot.

Referenced by HoverInterrupt().

◆ HoverInterrupt()

void UIScriptedMenu::HoverInterrupt ( )
inlineprotected

Definition at line 192 of file ScriptConsole.c.

193 {
195
196 m_HoverTime = 0;
197 m_HintEditMode = false;
198 HideHint();
199 }
bool m_HoverSuccessTriggered

References HideHint(), m_HoverSuccessTriggered, and m_HoverTime.

Referenced by OnClick(), OnMouseLeave(), SetHintText(), and Update().

◆ HoverSuccess()

void UIScriptedMenu::HoverSuccess ( )
inlineprotected

Definition at line 186 of file ScriptConsole.c.

187 {
190 }
string GetMessage()
void DisplayHint(string message)

References DisplayHint(), GetMessage(), and m_HoverSuccessTriggered.

Referenced by Update().

◆ HudShow()

void UIScriptedMenu::HudShow ( bool show)
inlineprotected

Definition at line 127 of file InGameMenu.c.

128 {
129 Mission mission = GetGame().GetMission();
130 if (mission)
131 {
132 IngameHud hud = IngameHud.Cast(mission.GetHud());
133 if (hud)
134 {
135 hud.ShowHudUI(g_Game.GetProfileOption(EDayZProfilesOptions.HUD) && show);
136 hud.ShowQuickbarUI(g_Game.GetProfileOption(EDayZProfilesOptions.QUICKBAR) && show);
137 }
138 }
139 }
EDayZProfilesOptions

References g_Game, GetGame(), Mission::GetHud(), and mission.

◆ ImagenSetColor() [1/2]

void UIScriptedMenu::ImagenSetColor ( Widget w,
int color )
inlineprotected

Definition at line 637 of file MainMenu.c.

638 {
639 if (!w)
640 return;
641
642 Widget panel = w.FindWidget(w.GetName() + "_image");
643
644 if (panel)
645 panel.SetColor(color);
646 }

◆ ImagenSetColor() [2/2]

void UIScriptedMenu::ImagenSetColor ( Widget w,
int color )
inlineprotected

Definition at line 470 of file TutorialsMenu.c.

471 {
472 if (!w)
473 return;
474
475 Widget panel = w.FindWidget(w.GetName() + "_image");
476
477 if (panel)
478 panel.SetColor(color);
479 }

◆ InGameMenuXbox()

void UIScriptedMenu::InGameMenuXbox ( )
inlineprotected

Definition at line 35 of file InGameMenuXbox.c.

36 {
37 GetGame().GetMission().GetOnInputPresetChanged().Insert(OnInputPresetChanged);
38 GetGame().GetMission().GetOnInputDeviceChanged().Insert(OnInputDeviceChanged);
39 }

References GetGame(), OnInputDeviceChanged(), and OnInputPresetChanged().

◆ Init() [1/36]

override Widget UIScriptedMenu::Init ( )
inlineprotected

Definition at line 11 of file BookMenu.c.

12 {
13 layoutRoot = GetGame().GetWorkspace().CreateWidgets("gui/layouts/day_z_book.layout");
14 Class.CastTo(m_content, layoutRoot.FindAnyWidget("HtmlWidget"));
15 Class.CastTo(m_author, layoutRoot.FindAnyWidget("Author"));
16 Class.CastTo(m_title, layoutRoot.FindAnyWidget("Title"));
17 Class.CastTo(m_page, layoutRoot.FindAnyWidget("Page"));
18
19 float width;
20 m_content.GetScreenSize(width, m_page_height);
21 return layoutRoot;
22 }
TextWidget m_title
Definition BookMenu.c:4
TextWidget m_author
Definition BookMenu.c:3
HtmlWidget m_content
Definition BookMenu.c:6
float m_page_height
Definition BookMenu.c:7
TextWidget m_page
Definition BookMenu.c:5

References Class::CastTo(), and GetGame().

◆ Init() [2/36]

override Widget UIScriptedMenu::Init ( )
inlineprotected

Definition at line 126 of file CameraToolsMenu.c.

127 {
128 layoutRoot = GetGame().GetWorkspace().CreateWidgets("gui/layouts/camera_tools/camera_tools.layout");
129
130 m_KeyframeContent = layoutRoot.FindAnyWidget("keyframe_list_content");
131 m_EventContent = layoutRoot.FindAnyWidget("events_list_content");
132 m_InterpTypeCombo = XComboBoxWidget.Cast(layoutRoot.FindAnyWidget("interp_type"));
133 m_InterpTypeSpeedCombo = XComboBoxWidget.Cast(layoutRoot.FindAnyWidget("interp_speed_type"));
134 m_BlurEditWidget = EditBoxWidget.Cast(layoutRoot.FindAnyWidget("blur_value"));
135 m_ActorTypeWidget = EditBoxWidget.Cast(layoutRoot.FindAnyWidget("add_actor_type"));
136 m_ActorIdWidget = EditBoxWidget.Cast(layoutRoot.FindAnyWidget("add_actor_id"));
137 m_ActorItemTypeWidget = EditBoxWidget.Cast(layoutRoot.FindAnyWidget("add_item_type"));
138
139 m_AddKeyframe = ButtonWidget.Cast(layoutRoot.FindAnyWidget("add_keyframe"));
140 m_AddEvent = ButtonWidget.Cast(layoutRoot.FindAnyWidget("add_event"));
141
142 m_AddItem = ButtonWidget.Cast(layoutRoot.FindAnyWidget("add_actor_item"));
143 m_AddHandsItem = ButtonWidget.Cast(layoutRoot.FindAnyWidget("add_actor_item_hands"));
144 m_AddActor = ButtonWidget.Cast(layoutRoot.FindAnyWidget("add_actor"));
145 m_Play = ButtonWidget.Cast(layoutRoot.FindAnyWidget("play"));
146 m_Stop = ButtonWidget.Cast(layoutRoot.FindAnyWidget("stop"));
147 m_Save = ButtonWidget.Cast(layoutRoot.FindAnyWidget("save"));
148 m_Load = ButtonWidget.Cast(layoutRoot.FindAnyWidget("load"));
149
150 m_SaveKeyframe = ButtonWidget.Cast(layoutRoot.FindAnyWidget("save_keyframe"));
151 m_DeleteKeyframe = ButtonWidget.Cast(layoutRoot.FindAnyWidget("delete_keyframe"));
152 m_ViewKeyframe = ButtonWidget.Cast(layoutRoot.FindAnyWidget("snap_to_keyframe"));
153 m_SaveEvent = ButtonWidget.Cast(layoutRoot.FindAnyWidget("save_event"));
154 m_DeleteEvent = ButtonWidget.Cast(layoutRoot.FindAnyWidget("delete_event"));
155 m_ViewEvent = ButtonWidget.Cast(layoutRoot.FindAnyWidget("snap_to_event"));
156
157 m_CopyButton = ButtonWidget.Cast(layoutRoot.FindAnyWidget("CopyButton"));
158 m_ApplyButton = ButtonWidget.Cast(layoutRoot.FindAnyWidget("ApplyButton"));
159 m_CameraEditbox = EditBoxWidget.Cast(layoutRoot.FindAnyWidget("CameraEditbox"));
160 m_CameraValues = TextWidget.Cast(layoutRoot.FindAnyWidget("CameraValues"));
161
162 MissionGameplay ms = MissionGameplay.Cast(GetGame().GetMission());
163 ms.GetHud().Show(false);
165
166 m_BlurEditWidget.SetText("0.0");
167 return layoutRoot;
168 }
static void EnableFreeCameraSceneEditor(PlayerBase player)
ButtonWidget m_Save
ButtonWidget m_AddEvent
ButtonWidget m_Stop
TextWidget m_CameraValues
ButtonWidget m_DeleteKeyframe
ButtonWidget m_ApplyButton
EditBoxWidget m_ActorIdWidget
EditBoxWidget m_ActorTypeWidget
ButtonWidget m_ViewEvent
ButtonWidget m_ViewKeyframe
ButtonWidget m_AddKeyframe
ButtonWidget m_SaveEvent
ButtonWidget m_CopyButton
ButtonWidget m_SaveKeyframe
ButtonWidget m_DeleteEvent
ButtonWidget m_Load
ButtonWidget m_Play
ButtonWidget m_AddActor
EditBoxWidget m_CameraEditbox
XComboBoxWidget m_InterpTypeCombo
XComboBoxWidget m_InterpTypeSpeedCombo
ButtonWidget m_AddItem
EditBoxWidget m_ActorItemTypeWidget
ButtonWidget m_AddHandsItem

References DeveloperFreeCamera::EnableFreeCameraSceneEditor(), GetGame(), and GetPlayer().

◆ Init() [3/36]

override Widget UIScriptedMenu::Init ( )
inlineprivate

Definition at line 13 of file ChatInputMenu.c.

14 {
15 m_BackInputWrapper = GetUApi().GetInputByID(UAUIBack).GetPersistentWrapper();
16 layoutRoot = GetGame().GetWorkspace().CreateWidgets("gui/layouts/day_z_chat_input.layout");
17 m_edit_box = EditBoxWidget.Cast(layoutRoot.FindAnyWidget("InputEditBoxWidget"));
18 m_channel_text = TextWidget.Cast(layoutRoot.FindAnyWidget("ChannelText"));
19
21 return layoutRoot;
22 }
TextWidget m_channel_text
UAIDWrapper m_BackInputWrapper
EditBoxWidget m_edit_box

References GetGame(), GetUApi(), m_BackInputWrapper, and UpdateChannel().

◆ Init() [4/36]

override Widget UIScriptedMenu::Init ( )
inlineprotected

Definition at line 393 of file ControlsXboxNew.c.

394 {
397
398 layoutRoot = GetGame().GetWorkspace().CreateWidgets("gui/layouts/xbox/Controls_Screen.layout");
399#ifdef PLATFORM_XBOX
400 m_ControlsImage = layoutRoot.FindAnyWidget("XboxControlsImage");
401#else
402#ifdef PLATFORM_PS4
403 m_ControlsImage = layoutRoot.FindAnyWidget("PSControlsImage");
404#endif
405#endif
406 m_ControlsImage.Show(true);
407 m_TabberWidget = layoutRoot.FindAnyWidget("Tabber");
408 m_TabberWidget.GetScript(m_TabScript);
409 m_TabScript.m_OnTabSwitch.Insert(UpdateTabContent);
410 m_CanvasWidget = CanvasWidget.Cast(layoutRoot.FindAnyWidget("CanvasUniversal"));
411 m_Back = ButtonWidget.Cast(layoutRoot.FindAnyWidget("back"));
412
416
418 Class.CastTo(requester, PPERequesterBank.GetRequester(PPERequesterBank.REQ_MENUEFFECTS));
419 requester.SetVignetteIntensity(0.6);
420
421 ComposeData();
423
424 GetGame().GetMission().GetOnInputPresetChanged().Insert(OnInputPresetChanged);
425 GetGame().GetMission().GetOnInputDeviceChanged().Insert(OnInputDeviceChanged);
426
427 OnInputDeviceChanged(GetGame().GetInput().GetCurrentInputDevice());
428
429
430 return layoutRoot;
431 }
void ComposeData()
Inits data structure.
void UpdateTabContent(int tab_index)

References Class::CastTo(), GetGame(), GetInput(), m_Back, m_TabScript, OnInputDeviceChanged(), OnInputPresetChanged(), UpdateControlsElements(), and UpdateControlsElementVisibility().

◆ Init() [5/36]

override Widget UIScriptedMenu::Init ( )
inlineprivate

Definition at line 11 of file EarlyAccessMenu.c.

12 {
13 layoutRoot = GetGame().GetWorkspace().CreateWidgets("gui/layouts/day_z_early_access.layout");
14
15 return layoutRoot;
16 }

References GetGame().

◆ Init() [6/36]

override Widget UIScriptedMenu::Init ( )
inlineprotected

Definition at line 171 of file GesturesMenu.c.

172 {
174
175 layoutRoot = GetGame().GetWorkspace().CreateWidgets("gui/layouts/radial_menu/radial_gestures/day_z_gestures.layout");
176 m_GestureItemCardPanel = layoutRoot.FindAnyWidget(RadialMenu.RADIAL_ITEM_CARD_CONTAINER);
177
178 //register gestures menu
179 RadialMenu.GetInstance().RegisterClass(this);
180
181 //delay updates until fully initialized
182 RadialMenu.GetInstance().SetWidgetInitialized(false);
183
184 //set radial menu properties
185 RadialMenu.GetInstance().SetWidgetProperties("gui/layouts/radial_menu/radial_gestures/day_z_gesture_delimiter.layout");
186
187 //create content (widgets) for items
189
190 m_ToolbarPanel = layoutRoot.FindAnyWidget("toolbar_bg");
191 m_ToolbarPanel.Show(true);
192
193 //clear category name text
195
196 return layoutRoot;
197 }
Widget m_ToolbarPanel

References GetGame(), and RadialMenu().

◆ Init() [7/36]

override Widget UIScriptedMenu::Init ( )
inlineprivate

Definition at line 17 of file HelpScreen.c.

18 {
19 PluginKeyBinding module_keybinding = PluginKeyBinding.Cast(GetPlugin(PluginKeyBinding));
20
21 layoutRoot = GetGame().GetWorkspace().CreateWidgets("gui/layouts/help_screen.layout");
22 m_KeyBindingsTextListboxWidget = TextListboxWidget.Cast(layoutRoot.FindAnyWidget("KeyBindingsTextListboxWidget"));
23 m_MouseBindingsTextListboxWidget = TextListboxWidget.Cast(layoutRoot.FindAnyWidget("MouseBindingsTextListboxWidget"));
24
26 for (int i = 0; i < keybindings.Count(); i++)
27 {
28 m_KeyBindingsTextListboxWidget.AddItem(keybindings.Get(i).GetInfoBind(), NULL, 0);
29 m_KeyBindingsTextListboxWidget.SetItem(i, keybindings.Get(i).GetInfoDescription(), NULL, 1);
30 }
31
33 for (i = 0; i < mousebindings.Count(); i++)
34 {
35 m_MouseBindingsTextListboxWidget.AddItem(mousebindings.Get(i).GetInfoBind(), NULL, 0);
36 m_MouseBindingsTextListboxWidget.SetItem(i, mousebindings.Get(i).GetInfoDescription(), NULL, 1);
37 }
38
39 m_CloseConsoleButton = ButtonWidget.Cast(layoutRoot.FindAnyWidget("CloseButtonWidget"));
40
41 return layoutRoot;
42 }
TextListboxWidget m_MouseBindingsTextListboxWidget
Definition HelpScreen.c:4
ButtonWidget m_CloseConsoleButton
Definition HelpScreen.c:6
TextListboxWidget m_KeyBindingsTextListboxWidget
Definition HelpScreen.c:3

References GetGame(), and GetPlugin().

◆ Init() [8/36]

override Widget UIScriptedMenu::Init ( )
inlineprotected

Definition at line 35 of file InGameMenu.c.

36 {
37 layoutRoot = GetGame().GetWorkspace().CreateWidgets("gui/layouts/day_z_ingamemenu.layout");
38
39 m_ContinueButton = layoutRoot.FindAnyWidget("continuebtn");
40 m_SeparatorPanel = layoutRoot.FindAnyWidget("separator_red");
41 m_ExitButton = layoutRoot.FindAnyWidget("exitbtn");
42 m_RestartButton = layoutRoot.FindAnyWidget("restartbtn");
43 m_RespawnButton = layoutRoot.FindAnyWidget("respawn_button");
44 m_RestartDeadRandomButton = layoutRoot.FindAnyWidget("respawn_button_random");
45 m_RestartDeadCustomButton = layoutRoot.FindAnyWidget("respawn_button_custom");
46 m_OptionsButton = layoutRoot.FindAnyWidget("optionsbtn");
47 m_ModdedWarning = TextWidget.Cast(layoutRoot.FindAnyWidget("ModdedWarning"));
48 m_HintPanel = new UiHintPanel(layoutRoot.FindAnyWidget("hint_frame"));
49 m_ServerInfoPanel = layoutRoot.FindAnyWidget("server_info");
50 m_ServerIP = TextWidget.Cast(layoutRoot.FindAnyWidget("server_ip"));
51 m_ServerPort = TextWidget.Cast(layoutRoot.FindAnyWidget("server_port"));
52 m_ServerName = TextWidget.Cast(layoutRoot.FindAnyWidget("server_name"));
53 m_FavoriteImage = layoutRoot.FindAnyWidget("favorite_image");
54 m_UnfavoriteImage = layoutRoot.FindAnyWidget("unfavorite_image");
55 m_CopyInfoButton = layoutRoot.FindAnyWidget("copy_button");
56
57 if (GetGame().IsMultiplayer())
58 ButtonSetText(m_RestartButton, "#main_menu_respawn");
59 else
60 ButtonSetText(m_RestartButton, "#main_menu_restart");
61
62 HudShow(false);
64 SetServerInfoVisibility(SetServerInfo() && g_Game.GetProfileOption(EDayZProfilesOptions.SERVERINFO_DISPLAY));
65 m_ModdedWarning.Show(g_Game.ReportModded());
66
67 Mission mission = g_Game.GetMission();
68 if (mission)
69 mission.Pause();
70
71 return layoutRoot;
72 }
void UiHintPanel(Widget parent_widget)
void Pause()
Definition gameplay.c:748
Widget m_ExitButton
Definition InGameMenu.c:7
ref TextWidget m_ServerIP
Definition InGameMenu.c:20
bool SetServerInfo()
Definition InGameMenu.c:86
void SetServerInfoVisibility(bool show)
Definition InGameMenu.c:380
Widget m_RespawnButton
Definition InGameMenu.c:9
Widget m_FavoriteImage
Definition InGameMenu.c:15
Widget m_SeparatorPanel
Definition InGameMenu.c:6
Widget m_RestartButton
Definition InGameMenu.c:8
void ButtonSetText(Widget w, string text)
ref TextWidget m_ServerPort
Definition InGameMenu.c:21
Widget m_RestartDeadCustomButton
Definition InGameMenu.c:11
void SetGameVersion()
Definition InGameMenu.c:74
ref TextWidget m_ModdedWarning
Definition InGameMenu.c:19
Widget m_OptionsButton
Definition InGameMenu.c:12
ref TextWidget m_ServerName
Definition InGameMenu.c:22
Widget m_ServerInfoPanel
Definition InGameMenu.c:13
ref UiHintPanelLoading m_HintPanel
Definition DayZGame.c:65
Widget m_UnfavoriteImage
Definition InGameMenu.c:16
Widget m_RestartDeadRandomButton
Definition InGameMenu.c:10
Widget m_CopyInfoButton
Definition InGameMenu.c:17

References g_Game, GetGame(), m_HintPanel, m_ModdedWarning, mission, Mission::Pause(), and UiHintPanel().

◆ Init() [9/36]

override Widget UIScriptedMenu::Init ( )
inlineprotected

Definition at line 74 of file InGameMenuXbox.c.

75 {
76 layoutRoot = GetGame().GetWorkspace().CreateWidgets("gui/layouts/xbox/day_z_ingamemenu_xbox.layout");
77
78 m_OnlineMenu = GetGame().GetWorkspace().CreateWidgets("gui/layouts/xbox/ingamemenu_xbox/online_info_menu.layout", layoutRoot);
79 m_OnlineMenu.Show(false);
80
81 m_ContinueButton = ButtonWidget.Cast(layoutRoot.FindAnyWidget("continuebtn"));
82 m_RestartDeadButton = ButtonWidget.Cast(layoutRoot.FindAnyWidget("restartbtn_dead"));
83 m_ExitButton = ButtonWidget.Cast(layoutRoot.FindAnyWidget("exitbtn"));
84 m_RestartButton = ButtonWidget.Cast(layoutRoot.FindAnyWidget("restartbtn"));
85 m_OptionsButton = ButtonWidget.Cast(layoutRoot.FindAnyWidget("optionsbtn"));
86 m_ControlsButton = ButtonWidget.Cast(layoutRoot.FindAnyWidget("controlsbtn"));
87 m_OnlineButton = ButtonWidget.Cast(layoutRoot.FindAnyWidget("onlinebtn"));
88 m_TutorialsButton = ButtonWidget.Cast(layoutRoot.FindAnyWidget("tutorialsbtn"));
89 m_Version = TextWidget.Cast(layoutRoot.FindAnyWidget("version"));
90
91 m_SelectAvailable = true;
92 m_MuteAvailable = false;
94 m_BackAvailable = true;
95
96 Man player = GetGame().GetPlayer();
97 if (player)
98 {
99 int life_state = player.GetPlayerState();
100
101 if (life_state == EPlayerStates.ALIVE)
102 m_PlayerAlive = true;
103 }
104
106
107 string version;
108 GetGame().GetVersion(version);
109#ifdef PLATFORM_CONSOLE
110 version = "#main_menu_version" + " " + version + " (" + g_Game.GetDatabaseID() + ")";
111#else
112 version = "#main_menu_version" + " " + version;
113#endif
114 m_Version.SetText(version);
115
116 if (GetGame().IsMultiplayer())
117 {
118 m_OnlineButton.Show(true);
119
120 TextWidget w_text = TextWidget.Cast(m_OnlineMenu.FindAnyWidget("OnlineTextWidget"));
121 w_text.SetText(g_Game.GetHostName());
122
123 m_ServerInfoPanel = new PlayerListScriptedWidget(m_OnlineMenu.FindAnyWidget("ServerInfoPanel"));
124
127
130
131 string uid = m_ServerInfoPanel.FindPlayerByWidget(GetFocus());
132 if (uid != "")
133 {
134 if (IsLocalPlayer(uid) || m_ServerInfoPanel.IsEmpty())
135 {
136 m_MuteAvailable = false;
137 m_GamercardAvailable = false;
138 }
139 else
140 {
141 m_MuteAvailable = !GetGame().GetWorld().IsDisabledReceivingVoN();
142#ifndef PLATFORM_PS4
144#endif
146 }
147
148 if (m_ServerInfoPanel.IsGloballyMuted(uid))
149 m_MuteAvailable = false;
150 }
151 }
152 else
153 {
154 layoutRoot.FindAnyWidget("onlinebtn").Show(false);
155 layoutRoot.FindAnyWidget("invitebtn").Show(false);
156 }
157
158 //RESPAWN & RESTART
159 ButtonWidget restart_btn = ButtonWidget.Cast(layoutRoot.FindAnyWidgetById(IDC_INT_RETRY));
160 if (GetGame().IsMultiplayer())
161 restart_btn.SetText("#main_menu_respawn");
162 else
163 restart_btn.SetText("#main_menu_restart");
164
165 if (GetGame().IsMultiplayer() && !(GetGame().CanRespawnPlayer() || (player && player.IsUnconscious())))
166 {
167 restart_btn.Enable(false);
168 restart_btn.Show(false);
169 }
170 //
171
172#ifdef BULDOZER
173 delete restart_btn;
174#endif
175
176 Mission mission = GetGame().GetMission();
177 if (mission)
178 {
179 IngameHud hud = IngameHud.Cast(mission.GetHud());
180 if (hud)
181 {
182 hud.ShowHudUI(false);
183 hud.ShowQuickbarUI(false);
184 }
185
186 mission.Pause();
187 }
188
191 requester.SetVignetteIntensity(0.6);
192
196
197 OnInputDeviceChanged(GetGame().GetInput().GetCurrentInputDevice());
198
199 return layoutRoot;
200 }
EPlayerStates
static ref SyncPlayerList m_PlayerList
Definition ClientData.c:8
static bool IsPlayerMuted(string id)
static map< string, bool > GetMuteList()
void LoadFooterButtonTexts()
Initial texts load for the footer buttons.
void SetMuteButtonText(bool isMuted)
Set mute text button text (mute / unmute)
TextWidget m_Version
void LoadTextStrings()
Set correct bottom button texts based on platform (ps4 vs xbox texts)
ButtonWidget m_ControlsButton
ButtonWidget m_RestartDeadButton
bool IsLocalPlayer(string uid)
ButtonWidget m_TutorialsButton
const int IDC_INT_RETRY
ingame menu
Definition constants.c:148
proto native Widget GetFocus()

References Class::CastTo(), g_Game, GetFocus(), GetGame(), Mission::GetHud(), GetInput(), OnlineServices::GetMuteList(), IDC_INT_RETRY, IsLocalPlayer(), OnlineServices::IsPlayerMuted(), LoadFooterButtonTexts(), LoadTextStrings(), OnlineServices::m_PermissionsAsyncInvoker, ClientData::m_PlayerList, mission, OnInputDeviceChanged(), Mission::Pause(), SetMuteButtonText(), ClientData::SyncEvent_OnPlayerListUpdate, UpdateControlsElements(), and UpdateMenuFocus().

◆ Init() [10/36]

override Widget UIScriptedMenu::Init ( )
inlineprivate

Definition at line 38 of file InputDeviceDisconnectWarningMenu.c.

39 {
40 layoutRoot = g_Game.GetWorkspace().CreateWidgets("gui/layouts/new_ui/notifications/day_z_input_device_warning.layout");
41 m_WrapperWidget = WrapSpacerWidget.Cast(layoutRoot.FindAnyWidget("Wrapper"));
42 m_CaptionWidget = TextWidget.Cast(layoutRoot.FindAnyWidget("Caption"));
43 m_DeviceListWidget = RichTextWidget.Cast(layoutRoot.FindAnyWidget("DeviceList"));
44 m_ActionTextWidget = RichTextWidget.Cast(layoutRoot.FindAnyWidget("ActionText"));
45
46 g_Game.GetMission().GetOnInputDeviceConnected().Insert(UpdateDisconnectedDevices);
47 g_Game.GetMission().GetOnInputDeviceDisconnected().Insert(UpdateDisconnectedDevices);
48
50 if (g_Game.GetUIManager() && g_Game.GetUIManager().IsDialogVisible())
51 g_Game.GetUIManager().CloseDialog();
52
54
55 return layoutRoot;
56 }
void UpdateDisconnectedDevices(int device=-1)

References g_Game, and UpdateDisconnectedDevices().

◆ Init() [11/36]

override Widget UIScriptedMenu::Init ( )
inlineprivate

Definition at line 29 of file InspectMenuNew.c.

30 {
31 layoutRoot = GetGame().GetWorkspace().CreateWidgets("gui/layouts/inventory_new/day_z_inventory_new_inspect.layout");
32
33
34 return layoutRoot;
35 }

References GetGame().

◆ Init() [12/36]

override Widget UIScriptedMenu::Init ( )
inlineprivate

Definition at line 40 of file InviteMenu.c.

41 {
42 layoutRoot = GetGame().GetWorkspace().CreateWidgets("gui/layouts/day_z_invite_dialog.layout");
43
44 m_LogoutTimeText = TextWidget.Cast(layoutRoot.FindAnyWidget("txtLogoutTime"));
45 m_DescriptionText = TextWidget.Cast(layoutRoot.FindAnyWidget("txtDescription"));
46 m_bCancel = ButtonWidget.Cast(layoutRoot.FindAnyWidget("bCancel"));
47
48 // player should sit down if possible
50 if (player && player.GetEmoteManager() && !player.IsRestrained() && !player.IsUnconscious())
51 {
52 player.GetEmoteManager().CreateEmoteCBFromMenu(EmoteConstants.ID_EMOTE_SITA);
53 player.GetEmoteManager().GetEmoteLauncher().SetForced(EmoteLauncher.FORCE_DIFFERENT);
54 }
55
56 if (GetGame().GetMission())
57 {
58 GetGame().GetMission().GetOnInputPresetChanged().Insert(OnInputPresetChanged);
59 GetGame().GetMission().GetOnInputDeviceChanged().Insert(OnInputDeviceChanged);
60 }
61
62 OnInputDeviceChanged(GetGame().GetInput().GetCurrentInputDevice());
63
65 GetGame().GetCallQueue(CALL_CATEGORY_SYSTEM).CallLater(UpdateTime, 1000, true);
66
67 return layoutRoot;
68 }
static const int FORCE_DIFFERENT
TextWidget m_LogoutTimeText
Definition InviteMenu.c:3
void SetTime(int time)
Definition InviteMenu.c:98
TextWidget m_DescriptionText
Definition InviteMenu.c:4
ButtonWidget m_bCancel
Definition InviteMenu.c:5

References CALL_CATEGORY_SYSTEM, EmoteLauncher::FORCE_DIFFERENT, GetGame(), GetInput(), GetPlayer(), EmoteConstants::ID_EMOTE_SITA, OnInputDeviceChanged(), OnInputDeviceChanged(), OnInputPresetChanged(), and SetTime().

◆ Init() [13/36]

override Widget UIScriptedMenu::Init ( )
inlineprivate

Definition at line 11 of file LoadingMenu.c.

12 {
13 layoutRoot = GetGame().GetWorkspace().CreateWidgets("gui/layouts/loading.layout");
14
15 m_label = TextWidget.Cast(layoutRoot.FindAnyWidget("TextWidget"));
16 m_progressBar = ProgressBarWidget.Cast(layoutRoot.FindAnyWidget("ProgressBarWidget"));
17 m_image = ImageWidget.Cast(layoutRoot.FindAnyWidget("ImageBackground"));
18
19 m_image.LoadImageFile(0, GetRandomLoadingBackground());
20 layoutRoot.FindAnyWidget("notification_root").Show(false);
21
22#ifdef PLATFORM_CONSOLE
23#ifdef PLATFORM_XBOX
24#ifdef BUILD_EXPERIMENTAL
25 Widget exp_notifiaction = layoutRoot.FindAnyWidget("notification_root");
27 exp_notifiaction.Show(true);
28#endif
29#endif
30#endif
31
32 return layoutRoot;
33 }
string GetRandomLoadingBackground()
Returns random loading background texture path.
Definition UIManager.c:241
ProgressBarWidget m_progressBar
Definition LoadingMenu.c:36
TextWidget m_label
Definition LoadingMenu.c:35
ImageWidget m_image
Definition LoadingMenu.c:37

References GetGame(), and GetRandomLoadingBackground().

◆ Init() [14/36]

override Widget UIScriptedMenu::Init ( )
inlineprivate

Definition at line 30 of file LogoutMenu.c.

31 {
32 layoutRoot = GetGame().GetWorkspace().CreateWidgets("gui/layouts/day_z_logout_dialog.layout");
33
34 m_LogoutTimeText = TextWidget.Cast(layoutRoot.FindAnyWidget("txtLogoutTime"));
35 m_DescriptionText = TextWidget.Cast(layoutRoot.FindAnyWidget("txtDescription"));
36 m_bLogoutNow = ButtonWidget.Cast(layoutRoot.FindAnyWidget("bLogoutNow"));
37 m_bCancel = ButtonWidget.Cast(layoutRoot.FindAnyWidget("bCancel"));
38
39#ifdef PLATFORM_CONSOLE
40 m_bCancel.Show(false);
41 m_bLogoutNow.Show(false);
42
43 layoutRoot.FindAnyWidget("toolbar_bg").Show(true);
44 RichTextWidget toolbar_b = RichTextWidget.Cast(layoutRoot.FindAnyWidget("BackIcon"));
46#else
47 m_bCancel.Show(true);
48 m_bLogoutNow.Show(true);
49 layoutRoot.FindAnyWidget("toolbar_bg").Show(false);
50#endif
51
52 UpdateInfo();
53
54 // player should sit down if possible
56 if (player.GetEmoteManager() && !player.IsRestrained() && !player.IsUnconscious())
57 {
58 player.GetEmoteManager().CreateEmoteCBFromMenu(EmoteConstants.ID_EMOTE_SITA);
59 player.GetEmoteManager().GetEmoteLauncher().SetForced(EmoteLauncher.FORCE_DIFFERENT);
60 }
61
62 return layoutRoot;
63 }
static string GetRichtextButtonIconFromInputAction(notnull UAInput pInput, string pLocalizedDescription, int pInputDeviceType=EUAINPUT_DEVICE_CONTROLLER, float pScale=ICON_SCALE_NORMAL, bool pVertical=false)
Definition InputUtils.c:151
static const float ICON_SCALE_TOOLBAR
Definition InputUtils.c:15
ButtonWidget m_bLogoutNow
Definition LogoutMenu.c:6
void UpdateInfo()
Definition LogoutMenu.c:141

References EmoteLauncher::FORCE_DIFFERENT, GetGame(), GetPlayer(), InputUtils::GetRichtextButtonIconFromInputAction(), InputUtils::ICON_SCALE_TOOLBAR, EmoteConstants::ID_EMOTE_SITA, and UpdateInfo().

◆ Init() [15/36]

override Widget UIScriptedMenu::Init ( )
inlineprotected

gameplay cfg json overrides handling

override the CfgGameplayHandler.GetMapIgnoreNavItemsOwnership()

Definition at line 49 of file MapMenu.c.

50 {
51 layoutRoot = GetGame().GetWorkspace().CreateWidgets("gui/layouts/day_z_map.layout");
52 m_Hud = IngameHud.Cast(GetGame().GetMission().GetHud());
53 m_IsOpenning = true;
54
55 /*MapWidget m = MapWidget.Cast(layoutRoot.FindAnyWidget("Map"));
56 if (m)
57 {
58 m.AddUserMark("2681 4.7 1751", "Lalal", ARGB(255,255,0,0), "\\dz\\gear\\navigation\\data\\map_tree_ca.paa");
59 m.AddUserMark("2683 4.7 1851", "Lala2", ARGB(255,0,255,0), "\\dz\\gear\\navigation\\data\\map_bunker_ca.paa");
60 m.AddUserMark("2670 4.7 1651", "Lala3", ARGB(255,0,0,255), "\\dz\\gear\\navigation\\data\\map_busstop_ca.paa");
61 }*/
62
63 m_MapToolsContainer = layoutRoot.FindAnyWidget("Map_Tools_Container");
65
66 m_MapWidgetInstance = MapWidget.Cast(layoutRoot.FindAnyWidget("Map"));
67 m_GPSMarker = layoutRoot.FindAnyWidget("GPSMarkerCircle");
68 m_GPSMarkerArrow = ImageWidget.Cast(layoutRoot.FindAnyWidget("GPSMarkerArrow"));
69 m_UpperLegendContainer = layoutRoot.FindAnyWidget("Tools_Extra");
70 layoutRoot.Update();
71 m_ToolsCompassBase = layoutRoot.FindAnyWidget("Tools_Compass_Base");
72 m_ToolsCompassArrow = ImageWidget.Cast(layoutRoot.FindAnyWidget("Tools_Compass_Arrow"));
73 m_ToolsCompassAzimuth = TextWidget.Cast(layoutRoot.FindAnyWidget("Tools_Compass_Azimuth"));
74 m_ToolsGPSXText = TextWidget.Cast(layoutRoot.FindAnyWidget("Tools_GPS_X_Value"));
75 m_ToolsGPSYText = TextWidget.Cast(layoutRoot.FindAnyWidget("Tools_GPS_Y_Value"));
76 m_ToolsGPSElevationText = TextWidget.Cast(layoutRoot.FindAnyWidget("Tools_GPS_Elevation_Value"));
77 m_ToolsScaleContourText = TextWidget.Cast(layoutRoot.FindAnyWidget("Tools_Scale_Contour_Value"));
78 m_ToolsScaleCellSizeText = TextWidget.Cast(layoutRoot.FindAnyWidget("Tools_Scale_CellSize_Value"));
79 m_ToolsScaleCellSizeCanvas = CanvasWidget.Cast(layoutRoot.FindAnyWidget("Tools_Scale_CellSize_Canvas"));
80 m_ToolbarPanel = layoutRoot.FindAnyWidget("toolbar_bg");
81
82 float canvasHeight = 0;
84
86 {
87 float scale;
89 PlayerBase player = PlayerBase.Cast(g_Game.GetPlayer());
90 if (player && !player.GetLastMapInfo(scale, mapPosition))
91 {
92 vector tempPosition = GetGame().ConfigGetVector(string.Format("CfgWorlds %1 centerPosition", GetGame().GetWorldName()));
93 scale = 0.33;
95 }
96
97 m_MapWidgetInstance.SetScale(scale);
99
100 m_HasCompass = false;
101 m_HasGPS = false;
102
107
108 if (player)
109 {
110 m_MapNavigationBehaviour = player.GetMapNavigationBehaviour();
112 {
113 m_HasGPS = (m_MapNavigationBehaviour.GetNavigationType() & EMapNavigationType.GPS | EMapNavigationType.ALL == 0);
114 m_HasCompass = (m_MapNavigationBehaviour.GetNavigationType() & EMapNavigationType.COMPASS | EMapNavigationType.ALL == 0);
115
119
120 if (m_HasGPS)
121 {
124 {
126 m_MapWidgetInstance.SetMapPos(m_MapNavigationBehaviour.GetPositionReal());
127 }
128 }
129
130 if (m_HasCompass)
131 {
136 }
137
141 }
142 }
143
145
146 if (m_Hud)
147 {
148 m_Hud.ShowHudUI(false);
149 m_Hud.ShowQuickbarUI(false);
150 }
151 }
152
153 float x, y;
154 m_MapToolsContainer.GetScreenPos(x, y);
157
158 GetGame().GetMission().GetOnInputPresetChanged().Insert(OnInputPresetChanged);
159 GetGame().GetMission().GetOnInputDeviceChanged().Insert(OnInputDeviceChanged);
160
161 return layoutRoot;
162 }
static bool GetMapDisplayPlayerPosition()
static bool GetMapDisplayNavigationInfo()
static bool GetMapIgnoreNavItemsOwnership()
void SetGPSMarkerVisibility(bool pState)
Definition MapMenu.c:368
Widget m_UpperLegendContainer
Definition MapMenu.c:24
void SetUpperLegendVisibility(bool pState)
Definition MapMenu.c:380
TextWidget m_ToolsGPSElevationText
Definition MapMenu.c:29
TextWidget m_ToolsGPSYText
Definition MapMenu.c:31
TextWidget m_ToolsScaleCellSizeText
Definition MapMenu.c:32
Widget m_ToolsCompassBase
Definition MapMenu.c:25
bool m_IsOpenning
Definition MapMenu.c:10
ImageWidget m_GPSMarkerArrow
Definition MapMenu.c:23
CanvasWidget m_ToolsScaleCellSizeCanvas
Definition MapMenu.c:33
void SetCompassUIVisibility(bool pState)
Definition MapMenu.c:359
ref MapHandler m_MapMenuHandler
Definition MapMenu.c:16
ref MapNavigationBehaviour m_MapNavigationBehaviour
Definition MapMenu.c:38
TextWidget m_ToolsGPSXText
Definition MapMenu.c:30
float m_ToolScaleCellSizeCanvasWidth
Definition MapMenu.c:12
void SetGPSDirectionVisibility(bool pState)
Definition MapMenu.c:374
ImageWidget m_ToolsCompassArrow
Definition MapMenu.c:26
Widget m_GPSMarker
Definition MapMenu.c:22
TextWidget m_ToolsCompassAzimuth
Definition MapMenu.c:27
ref SizeToChild m_LegendResizer
Definition MapMenu.c:18
TextWidget m_ToolsScaleContourText
Definition MapMenu.c:28
float m_ToolsContainerPos0[2]
Definition MapMenu.c:13
Widget m_MapToolsContainer
Definition MapMenu.c:20
proto native vector Vector(float x, float y, float z)
Vector constructor from components.

References g_Game, GetGame(), CfgGameplayHandler::GetMapDisplayNavigationInfo(), CfgGameplayHandler::GetMapDisplayPlayerPosition(), CfgGameplayHandler::GetMapIgnoreNavItemsOwnership(), m_Hud, OnInputDeviceChanged(), OnInputPresetChanged(), Hud::ShowHudUI(), Hud::ShowQuickbarUI(), Vector(), x, and y.

◆ Init() [16/36]

override Widget UIScriptedMenu::Init ( )
inlineprotected

Definition at line 63 of file CharacterCreationMenu.c.

64 {
65#ifdef PLATFORM_CONSOLE
66 layoutRoot = GetGame().GetWorkspace().CreateWidgets("gui/layouts/new_ui/character_creation/xbox/character_creation.layout");
67 m_CharacterSaved = false;
68#else
69 layoutRoot = GetGame().GetWorkspace().CreateWidgets("gui/layouts/new_ui/character_creation/pc/character_creation.layout");
70#endif
71
72 m_CharacterRotationFrame = layoutRoot.FindAnyWidget("character_rotation_frame");
73 m_Apply = layoutRoot.FindAnyWidget("apply");
74 m_Save = layoutRoot.FindAnyWidget("save");
75 m_RandomizeCharacter = layoutRoot.FindAnyWidget("randomize_character");
76 m_BackButton = layoutRoot.FindAnyWidget("back");
77 m_Version = TextWidget.Cast(layoutRoot.FindAnyWidget("version"));
78 m_DetailsRoot = layoutRoot.FindAnyWidget("menu_details_tooltip");
79 m_DetailsLabel = TextWidget.Cast(m_DetailsRoot.FindAnyWidget("menu_details_label"));
80 m_DetailsText = RichTextWidget.Cast(m_DetailsRoot.FindAnyWidget("menu_details_tooltip_content"));
81 m_CharacterHeaderText = TextWidget.Cast(layoutRoot.FindAnyWidget("char_header_text"));
82 m_PlayedCharacterInfo = layoutRoot.FindAnyWidget("played_char_info");
83
84 string version;
85 GetGame().GetVersion(version);
86#ifdef PLATFORM_CONSOLE
87 version = "#main_menu_version" + " " + version + " (" + g_Game.GetDatabaseID() + ")";
88#else
89 version = "#main_menu_version" + " " + version;
90#endif
91 m_Version.SetText(version);
92
95
96 m_NameSelector = new OptionSelectorEditbox(layoutRoot.FindAnyWidget("character_name_setting_option"), m_Scene.GetIntroCharacter().GetCharacterName(), null, false);
97 m_GenderSelector = new OptionSelectorMultistateCharacterMenu(layoutRoot.FindAnyWidget("character_gender_setting_option"), 0, null, false, m_Scene.GetIntroCharacter().GetCharGenderList());
98 if (m_Scene.GetIntroCharacter().IsCharacterFemale())
99 {
100 m_GenderSelector.SetValue("Female");
101 m_SkinSelector = new OptionSelectorMultistateCharacterMenu(layoutRoot.FindAnyWidget("character_head_setting_option"), 0, null, false, m_Scene.GetIntroCharacter().GetCharList(ECharGender.Female));
102 }
103 else
104 {
105 m_GenderSelector.SetValue("Male");
106 m_SkinSelector = new OptionSelectorMultistateCharacterMenu(layoutRoot.FindAnyWidget("character_head_setting_option"), 0, null, false, m_Scene.GetIntroCharacter().GetCharList(ECharGender.Male));
107 }
108
109 m_TopSelector = new OptionSelectorMultistateCharacterMenu(layoutRoot.FindAnyWidget("character_top_setting_option"), 0, null, false, DefaultCharacterCreationMethods.GetConfigAttachmentTypes(InventorySlots.BODY));
110 m_BottomSelector = new OptionSelectorMultistateCharacterMenu(layoutRoot.FindAnyWidget("character_bottom_setting_option"), 0, null, false, DefaultCharacterCreationMethods.GetConfigAttachmentTypes(InventorySlots.LEGS));
111 m_ShoesSelector = new OptionSelectorMultistateCharacterMenu(layoutRoot.FindAnyWidget("character_shoes_setting_option"), 0, null, false, DefaultCharacterCreationMethods.GetConfigAttachmentTypes(InventorySlots.FEET));
112
114 if (scene_char)
115 {
116 Object obj = scene_char.GetInventory().FindAttachment(InventorySlots.BODY);
117 if (obj)
118 m_TopSelector.SetValue(obj.GetType(), false);
119
120 obj = scene_char.GetInventory().FindAttachment(InventorySlots.LEGS);
121 if (obj)
122 m_BottomSelector.SetValue(obj.GetType(), false);
123
124 obj = scene_char.GetInventory().FindAttachment(InventorySlots.FEET);
125 if (obj)
126 m_ShoesSelector.SetValue(obj.GetType(), false);
127
128 m_SkinSelector.SetValue(scene_char.GetType());
129 }
130
131 m_GenderSelector.m_OptionChanged.Insert(GenderChanged);
132 m_SkinSelector.m_OptionChanged.Insert(SkinChanged);
133 m_TopSelector.m_OptionChanged.Insert(TopChanged);
134 m_BottomSelector.m_OptionChanged.Insert(BottomChanged);
135 m_ShoesSelector.m_OptionChanged.Insert(ShoesChanged);
136
137 Refresh();
138 SetCharacter();
140
141 GetGame().GetMission().GetOnInputDeviceChanged().Insert(OnInputDeviceChanged);
142
143 return layoutRoot;
144 }
void OptionSelectorMultistateCharacterMenu(Widget parent, int current_index, ScriptedWidgetEventHandler parent_c, bool disabled, notnull array< string > options)
RichTextWidget m_DetailsText
override void Refresh()
TextWidget m_CharacterHeaderText
PlayerBase GetPlayerObj()

References CheckNewOptions(), g_Game, GetGame(), DayZIntroSceneXbox::GetIntroCharacter(), GetPlayerObj(), OnInputDeviceChanged(), OptionSelectorMultistateCharacterMenu(), Refresh(), and SetCharacter().

◆ Init() [17/36]

override Widget UIScriptedMenu::Init ( )
inlineprotected

Definition at line 28 of file CreditsMenu.c.

29 {
30 float x_f;
31 int x, y;
32
33 layoutRoot = GetGame().GetWorkspace().CreateWidgets("gui/layouts/new_ui/credits/credits_menu.layout", null);
34 m_Logo = ImageWidget.Cast(layoutRoot.FindAnyWidget("Logo"));
35 m_Scroller = ScrollWidget.Cast(layoutRoot.FindAnyWidget("CreditsPanel"));
36 m_Content = WrapSpacerWidget.Cast(layoutRoot.FindAnyWidget("CreditsContent"));
37 m_InfoPanelText = RichTextWidget.Cast(layoutRoot.FindAnyWidget("InfoPanelText"));
38 m_InfoPanel = layoutRoot.FindAnyWidget("InfoPanel");
39
41
45
46 m_Scroller.VScrollToPos01(0);
47 m_Scroller.GetScreenSize(x_f, m_ScrollSize);
48
49 GetGame().GameScript.Call(this, "LoadDataAsync", null);
50
51 UpdateInfoPanelText(GetGame().GetInput().GetCurrentInputDevice());
52
53 return layoutRoot;
54 }
float m_ScrollIncrement
Definition CreditsMenu.c:12
ImageWidget m_Logo
Definition CreditsMenu.c:22
RichTextWidget m_InfoPanelText
Definition CreditsMenu.c:25
float m_LogoFadeInIncrement
Definition CreditsMenu.c:10
static float LOGO_FADEIN_TIME
Definition CreditsMenu.c:4
ScrollWidget m_Scroller
Definition CreditsMenu.c:23
Widget m_InfoPanel
Definition CreditsMenu.c:26
static float CREDIT_SCROLL_SPEED
Definition CreditsMenu.c:5
void UpdateInfoPanelText(int input_device_type)
float m_MenuFadeInIncrement
Definition CreditsMenu.c:7
WrapSpacerWidget m_Content
Definition CreditsMenu.c:24
static float MENU_FADEIN_TIME
Definition CreditsMenu.c:3

References GetGame(), GetInput(), GetScreenSize(), x, and y.

◆ Init() [18/36]

override Widget UIScriptedMenu::Init ( )
inlineprotected

Definition at line 29 of file KeybindingsMenu.c.

30 {
31 Input input = GetGame().GetInput();
32 layoutRoot = GetGame().GetWorkspace().CreateWidgets("gui/layouts/new_ui/options/pc/keybinding_menu.layout", null);
33
34 m_Version = TextWidget.Cast(layoutRoot.FindAnyWidget("version"));
35 m_Apply = ButtonWidget.Cast(layoutRoot.FindAnyWidget("apply"));
36 m_Back = ButtonWidget.Cast(layoutRoot.FindAnyWidget("back"));
37 m_Undo = ButtonWidget.Cast(layoutRoot.FindAnyWidget("undo"));
38 m_Defaults = ButtonWidget.Cast(layoutRoot.FindAnyWidget("reset"));
39 m_HardReset = ButtonWidget.Cast(layoutRoot.FindAnyWidget("reset_all"));
40
41 layoutRoot.FindAnyWidget("Tabber").GetScript(m_Tabber);
42
43 string version;
44 GetGame().GetVersion(version);
45#ifdef PLATFORM_CONSOLE
46 version = "#main_menu_version" + " " + version + " (" + g_Game.GetDatabaseID() + ")";
47#else
48 version = "#main_menu_version" + " " + version;
49#endif
50 m_Version.SetText(version);
51
52#ifdef PLATFORM_PS4
53 string back = "circle";
54 if (GetGame().GetInput().GetEnterButton() != GamepadButton.A)
55 back = "cross";
56
57 ImageWidget toolbar_b = ImageWidget.Cast(layoutRoot.FindAnyWidget("BackIcon"));
58 toolbar_b.LoadImageFile(0, "set:playstation_buttons image:" + back);
59#endif
60
62 CreateTabs();
64
65 InitPresets(-1, layoutRoot.FindAnyWidget("group_header"), input);
66 m_Tabber.m_OnTabSwitch.Insert(UpdateTabContent);
67 m_Tabber.SelectTabControl(0);
68 m_Tabber.SelectTabPanel(0);
69 g_Game.SetKeyboardHandle(this);
70 m_Tabber.RefreshTab(true);
71
73 m_Apply.SetFlags(WidgetFlags.IGNOREPOINTER);
75 m_Undo.SetFlags(WidgetFlags.IGNOREPOINTER);
77 m_Defaults.ClearFlags(WidgetFlags.IGNOREPOINTER);
78
79 return layoutRoot;
80 }
Definition input.c:11
ButtonWidget m_HardReset
void InitPresets(int index, Widget parent, Input input)
void CreateGroupContainer()
GamepadButton
Definition EnSystem.c:341

References g_Game, GetGame(), GetInput(), and m_Back.

◆ Init() [19/36]

override Widget UIScriptedMenu::Init ( )
inlineprotected

Definition at line 50 of file MainMenu.c.

51 {
52 layoutRoot = GetGame().GetWorkspace().CreateWidgets("gui/layouts/new_ui/main_menu.layout");
53
54 m_Play = layoutRoot.FindAnyWidget("play");
55 m_ChooseServer = layoutRoot.FindAnyWidget("choose_server");
56 m_CustomizeCharacter = layoutRoot.FindAnyWidget("customize_character");
57 m_PlayVideo = layoutRoot.FindAnyWidget("play_video");
58 m_Tutorials = layoutRoot.FindAnyWidget("tutorials");
59 m_TutorialButton = layoutRoot.FindAnyWidget("tutorial_button");
60 m_MessageButton = layoutRoot.FindAnyWidget("message_button");
61 m_SettingsButton = layoutRoot.FindAnyWidget("settings_button");
62 m_Exit = layoutRoot.FindAnyWidget("exit_button");
63 m_PrevCharacter = layoutRoot.FindAnyWidget("prev_character");
64 m_NextCharacter = layoutRoot.FindAnyWidget("next_character");
65
66 m_DlcFrame = layoutRoot.FindAnyWidget("dlc_Frame");
67 m_Version = TextWidget.Cast(layoutRoot.FindAnyWidget("version"));
68 m_ModdedWarning = TextWidget.Cast(layoutRoot.FindAnyWidget("ModdedWarning"));
69 m_CharacterRotationFrame = layoutRoot.FindAnyWidget("character_rotation_frame");
70
71 m_LastPlayedTooltip = layoutRoot.FindAnyWidget("last_server_info");
72 m_LastPlayedTooltip.Show(false);
73 m_LastPlayedTooltipLabel = m_LastPlayedTooltip.FindAnyWidget("last_server_info_label");
74 m_LastPlayedTooltipName = TextWidget.Cast(m_LastPlayedTooltip.FindAnyWidget("last_server_info_name"));
75 m_LastPlayedTooltipIP = TextWidget.Cast(m_LastPlayedTooltip.FindAnyWidget("last_server_info_ip"));
76 m_LastPlayedTooltipPort = TextWidget.Cast(m_LastPlayedTooltip.FindAnyWidget("last_server_info_port"));
77
78 m_LastPlayedTooltipTimer = new WidgetFadeTimer();
79
80 m_Stats = new MainMenuStats(layoutRoot.FindAnyWidget("character_stats_root"));
81
82 m_Mission = MissionMainMenu.Cast(GetGame().GetMission());
83
85
86 m_ScenePC = m_Mission.GetIntroScenePC();
87
88 if (m_ScenePC)
90
91 m_PlayVideo.Show(false);
92
93 m_PlayerName = TextWidget.Cast(layoutRoot.FindAnyWidget("character_name_text"));
94
95 // Set Version
96 string version;
97 GetGame().GetVersion(version);
98 m_Version.SetText("#main_menu_version" + " " + version);
99
100 GetGame().GetUIManager().ScreenFadeOut(0);
101
102 SetFocus(null);
103
104 Refresh();
105
106 LoadMods();
108
109 GetDayZGame().GetBacklit().MainMenu_OnShow();
110 GetGame().GetMission().GetOnModMenuVisibilityChanged().Insert(ShowDlcFrame);
111
112 g_Game.SetLoadState(DayZLoadState.MAIN_MENU_CONTROLLER_SELECT);
113
114 return layoutRoot;
115 }
DayZGame GetDayZGame()
Definition DayZGame.c:3530
TextWidget m_LastPlayedTooltipPort
Definition MainMenu.c:33
ref WidgetFadeTimer m_LastPlayedTooltipTimer
Definition MainMenu.c:35
Widget m_Tutorials
Definition MainMenu.c:18
Widget m_Exit
Definition MainMenu.c:22
TextWidget m_LastPlayedTooltipIP
Definition MainMenu.c:32
TextWidget m_LastPlayedTooltipName
Definition MainMenu.c:31
ref Widget m_LastFocusedButton
Definition MainMenu.c:36
Widget m_TutorialButton
Definition MainMenu.c:19
Widget m_MessageButton
Definition MainMenu.c:20
Widget m_PrevCharacter
Definition MainMenu.c:26
Widget m_PlayVideo
Definition MainMenu.c:17
Widget m_DlcFrame
Definition MainMenu.c:43
void LoadMods()
Definition MainMenu.c:123
Widget m_ChooseServer
Definition MainMenu.c:15
MissionMainMenu m_Mission
Definition MainMenu.c:6
Widget m_NextCharacter
Definition MainMenu.c:27
Widget m_CustomizeCharacter
Definition MainMenu.c:16
TextWidget m_PlayerName
Definition MainMenu.c:9
Widget m_LastPlayedTooltip
Definition MainMenu.c:29
Widget m_LastPlayedTooltipLabel
Definition MainMenu.c:30
ref MainMenuStats m_Stats
Definition MainMenu.c:3
Widget m_SettingsButton
Definition MainMenu.c:21
void PopulateDlcFrame()
Definition MainMenu.c:180

References g_Game, GetDayZGame(), GetGame(), m_Mission, m_ModdedWarning, m_Stats, Refresh(), DayZIntroScene::ResetIntroCamera(), and SetFocus().

◆ Init() [20/36]

override Widget UIScriptedMenu::Init ( )
inlineprotected

Definition at line 29 of file MainMenuConsoles.c.

30 {
31 layoutRoot = GetGame().GetWorkspace().CreateWidgets("gui/layouts/new_ui/main_menu_console.layout");
32
33 m_PlayerName = TextWidget.Cast(layoutRoot.FindAnyWidget("character_name_xbox"));
34
35 m_ChangeAccount = layoutRoot.FindAnyWidget("choose_account");
36 m_CustomizeCharacter = layoutRoot.FindAnyWidget("customize_character");
37 m_PlayVideo = layoutRoot.FindAnyWidget("play_video");
38 m_Tutorials = layoutRoot.FindAnyWidget("tutorials");
39 m_Options = layoutRoot.FindAnyWidget("options");
40 m_Controls = layoutRoot.FindAnyWidget("controls");
41 m_Play = layoutRoot.FindAnyWidget("play");
42 m_MessageButton = layoutRoot.FindAnyWidget("message_button");
43
44 m_DlcFrame = layoutRoot.FindAnyWidget("dlc_Frame");
45 m_Version = TextWidget.Cast(layoutRoot.FindAnyWidget("version"));
46 m_Mission = MissionMainMenu.Cast(GetGame().GetMission());
48
49 GetGame().GetUIManager().ScreenFadeOut(1);
50
51 string launch_done;
52 if (!GetGame().GetProfileString("FirstLaunchDone", launch_done) || launch_done != "true")
53 {
54 GetGame().SetProfileString("FirstLaunchDone", "true");
55 GetGame().GetUIManager().ShowDialog("#main_menu_tutorial", "#main_menu_tutorial_desc", 555, DBT_YESNO, DBB_YES, DMT_QUESTION, this);
56 GetGame().SaveProfile();
57 }
58
60 LoadMods();
61 Refresh();
62
63 if (GetGame().GetMission())
64 {
65 GetGame().GetMission().GetOnInputPresetChanged().Insert(OnInputPresetChanged);
66 GetGame().GetMission().GetOnInputDeviceChanged().Insert(OnInputDeviceChanged);
67 }
68
69 OnInputDeviceChanged(GetGame().GetInput().GetCurrentInputDevice());
70
71 GetGame().GetContentDLCService().m_OnChange.Insert(OnDLCChange);
72
73 return layoutRoot;
74 }

References GetGame(), GetInput(), m_Controls, m_Mission, OnDLCChange(), OnInputDeviceChanged(), OnInputPresetChanged(), Refresh(), and UpdateControlsElementVisibility().

◆ Init() [21/36]

override Widget UIScriptedMenu::Init ( )
inlineprotected

Definition at line 7 of file MainMenuVideo.c.

8 {
9 layoutRoot = GetGame().GetWorkspace().CreateWidgets("gui/layouts/xbox/video_menu.layout");
10 m_Video = VideoWidget.Cast(layoutRoot.FindAnyWidget("video"));
11
12 GetGame().GetMission().GetOnInputDeviceChanged().Insert(OnInputDeviceChanged);
13
14 m_Video.Load("video\\DayZ_onboarding_MASTER.mp4");
15
16 m_Video.Play();
17
18 m_Video.SetCallback(VideoCallback.ON_END, StopVideo);
19
20 return layoutRoot;
21 }
ref MainMenuVideo m_Video
Definition MainMenu.c:4
VideoCallback
Definition EnWidgets.c:531

References GetGame(), and OnInputDeviceChanged().

◆ Init() [22/36]

override Widget UIScriptedMenu::Init ( )
inlineprotected

Definition at line 24 of file TutorialsMenu.c.

25 {
26#ifdef PLATFORM_CONSOLE
27 layoutRoot = GetGame().GetWorkspace().CreateWidgets("gui/layouts/new_ui/tutorials/xbox/tutorials.layout");
28#else
29 layoutRoot = GetGame().GetWorkspace().CreateWidgets("gui/layouts/new_ui/tutorials/pc/tutorials.layout");
30#endif
31
32 m_InfoTextLeft = layoutRoot.FindAnyWidget("InfoTextLeft");
33 m_InfoTextRight = layoutRoot.FindAnyWidget("InfoTextRight");
34
35 m_Back = ButtonWidget.Cast(layoutRoot.FindAnyWidget("back"));
36
37 layoutRoot.FindAnyWidget("Tabber").GetScript(m_TabScript);
38 m_TabScript.m_OnTabSwitch.Insert(DrawConnectingLines);
39
40#ifdef PLATFORM_CONSOLE
41 if (GetGame().GetInput().IsEnabledMouseAndKeyboard())
42 {
43 m_KeybindsTab = new TutorialKeybinds(layoutRoot.FindAnyWidget("Tab_6"), this);
44 m_TabScript.EnableTabControl(6, true);
45 }
46#endif
47
48 m_tab_images[0] = ImageWidget.Cast(layoutRoot.FindAnyWidget("MovementTabBackdropImageWidget"));
49 m_tab_images[1] = ImageWidget.Cast(layoutRoot.FindAnyWidget("WeaponsAndActionsBackdropImageWidget"));
50 m_tab_images[2] = ImageWidget.Cast(layoutRoot.FindAnyWidget("InventoryTabBackdropImageWidget"));
51 m_tab_images[3] = ImageWidget.Cast(layoutRoot.FindAnyWidget("MenusTabBackdropImageWidget"));
52
55
56 PPERequesterBank.GetRequester(PPERequester_TutorialMenu).Start(new Param1<float>(0.6));
58
59 GetGame().GetMission().GetOnInputPresetChanged().Insert(OnInputPresetChanged);
60 GetGame().GetMission().GetOnInputDeviceChanged().Insert(OnInputDeviceChanged);
61
62 OnInputDeviceChanged(GetGame().GetInput().GetCurrentInputDevice());
63
64 return layoutRoot;
65 }
ref TutorialKeybinds m_KeybindsTab
ImageWidget m_tab_images[TABS_COUNT]

References DrawConnectingLines(), GetGame(), GetInput(), m_Back, m_tab_images, m_TabScript, OnInputDeviceChanged(), OnInputPresetChanged(), UpdateControlsElements(), and UpdateControlsElementVisibility().

◆ Init() [23/36]

override Widget UIScriptedMenu::Init ( )
inlineprotected

Definition at line 32 of file OptionsMenu.c.

33 {
34 m_Options = new GameOptions();
35
36#ifdef PLATFORM_XBOX
37 layoutRoot = GetGame().GetWorkspace().CreateWidgets("gui/layouts/new_ui/options/xbox/options_menu.layout", null);
38#else
39#ifdef PLATFORM_PS4
40 layoutRoot = GetGame().GetWorkspace().CreateWidgets("gui/layouts/new_ui/options/ps/options_menu.layout", null);
41#else
42#ifdef PLATFORM_WINDOWS
43 layoutRoot = GetGame().GetWorkspace().CreateWidgets("gui/layouts/new_ui/options/pc/options_menu.layout", null);
44#endif
45#endif
46#endif
47
48 layoutRoot.FindAnyWidget("Tabber").GetScript(m_Tabber);
49
50 m_Details = layoutRoot.FindAnyWidget("settings_details");
51 m_Version = TextWidget.Cast(layoutRoot.FindAnyWidget("version"));
52
53 m_GameTab = new OptionsMenuGame(layoutRoot.FindAnyWidget("Tab_0"), m_Details, m_Options, this);
54 m_SoundsTab = new OptionsMenuSounds(layoutRoot.FindAnyWidget("Tab_1"), m_Details, m_Options, this);
55
56#ifdef PLATFORM_XBOX
57 m_ControlsTab = new OptionsMenuControls(layoutRoot.FindAnyWidget("Tab_2"), m_Details, m_Options, this);
58#else
59 m_VideoTab = new OptionsMenuVideo(layoutRoot.FindAnyWidget("Tab_2"), m_Details, m_Options, this);
60 m_ControlsTab = new OptionsMenuControls(layoutRoot.FindAnyWidget("Tab_3"), m_Details, m_Options, this);
61#endif
62
63 m_Apply = ButtonWidget.Cast(layoutRoot.FindAnyWidget("apply"));
64 m_Back = ButtonWidget.Cast(layoutRoot.FindAnyWidget("back"));
65 m_Reset = ButtonWidget.Cast(layoutRoot.FindAnyWidget("reset"));
66 m_Defaults = ButtonWidget.Cast(layoutRoot.FindAnyWidget("defaults"));
67
68 m_ModalLock = false;
69 m_CanApplyOrReset = false;
70 m_CanToggle = false;
71
72 string version;
73 GetGame().GetVersion(version);
74#ifdef PLATFORM_CONSOLE
75 version = "#main_menu_version" + " " + version + " (" + g_Game.GetDatabaseID() + ")";
76#else
77 version = "#main_menu_version" + " " + version;
78#endif
79 m_Version.SetText(version);
80
81#ifdef PLATFORM_WINDOWS
82 SetFocus(layoutRoot);
83#else
85#endif
86
87 m_Tabber.m_OnTabSwitch.Insert(OnTabSwitch);
88 m_Tabber.m_OnAttemptTabSwitch.Insert(OnAttemptTabSwitch);
89
90 GetGame().GetMission().GetOnInputPresetChanged().Insert(OnInputPresetChanged);
91 GetGame().GetMission().GetOnInputDeviceChanged().Insert(OnInputDeviceChanged);
92 OnChanged();
93
94 return layoutRoot;
95 }
void OnAttemptTabSwitch(int source, int target)
ref OptionsMenuSounds m_SoundsTab
Definition OptionsMenu.c:8
ref OptionsMenuVideo m_VideoTab
Definition OptionsMenu.c:9

References g_Game, GetGame(), m_Back, OnChanged(), OnInputDeviceChanged(), OnInputPresetChanged(), SetFocus(), and ToggleFocus().

◆ Init() [24/36]

override Widget UIScriptedMenu::Init ( )
inlineprotected

Definition at line 26 of file ServerBrowserMenuNew.c.

27 {
28#ifdef PLATFORM_CONSOLE
29 layoutRoot = GetGame().GetWorkspace().CreateWidgets("gui/layouts/new_ui/server_browser/xbox/server_browser.layout");
30 m_FavoritesTab = new ServerBrowserFavoritesTabConsolePages(layoutRoot.FindAnyWidget("Tab_0"), this, TabType.FAVORITE);
31 m_OfficialTab = new ServerBrowserTabConsolePages(layoutRoot.FindAnyWidget("Tab_1"), this, TabType.OFFICIAL);
32 m_CommunityTab = new ServerBrowserTabConsolePages(layoutRoot.FindAnyWidget("Tab_2"), this, TabType.COMMUNITY);
33#else
34 layoutRoot = GetGame().GetWorkspace().CreateWidgets("gui/layouts/new_ui/server_browser/pc/server_browser.layout");
35 m_FavoritesTab = new ServerBrowserFavoritesTabPc(layoutRoot.FindAnyWidget("Tab_0"), this, TabType.FAVORITE);
36 m_OfficialTab = new ServerBrowserTabPc(layoutRoot.FindAnyWidget("Tab_1"), this, TabType.OFFICIAL);
37 m_CommunityTab = new ServerBrowserTabPc(layoutRoot.FindAnyWidget("Tab_2"), this, TabType.COMMUNITY);
38 m_LANTab = new ServerBrowserTabPc(layoutRoot.FindAnyWidget("Tab_3"), this, TabType.LAN);
39#endif
40
41 layoutRoot.FindAnyWidget("Tabber").GetScript(m_Tabber);
42
43 m_Play = layoutRoot.FindAnyWidget("play");
44 m_Back = layoutRoot.FindAnyWidget("back_button");
45 m_CustomizeCharacter = layoutRoot.FindAnyWidget("customize_character");
46 m_PlayerName = TextWidget.Cast(layoutRoot.FindAnyWidget("character_name_text"));
48
49#ifndef PLATFORM_CONSOLE
50 layoutRoot.FindAnyWidget("customize_character").Show(false);
51 layoutRoot.FindAnyWidget("character").Show(false);
52#endif
53
54 Refresh();
55
56 string version;
57 GetGame().GetVersion(version);
58
59#ifdef PLATFORM_CONSOLE
60 version = "#main_menu_version" + " " + version + " (" + g_Game.GetDatabaseID() + ")";
61 if (GetGame().GetInput().IsEnabledMouseAndKeyboard())
62 {
63 layoutRoot.FindAnyWidget("play_panel_root").Show(true);
64 layoutRoot.FindAnyWidget("MouseAndKeyboardWarning").Show(true);
65 layoutRoot.FindAnyWidget("toolbar_bg").Show(false);
66 }
67#else
68 version = "#main_menu_version" + " " + version;
69#endif
70
74
75 m_Tabber.m_OnTabSwitch.Insert(OnTabSwitch);
76
77 m_FavoritesTab.RefreshList();
78
79#ifdef PLATFORM_CONSOLE
81 //Sort init
82 TextWidget sort_text = TextWidget.Cast(layoutRoot.FindAnyWidget("SortText"));
83 sort_text.SetText("#str_serverbrowserroot_toolbar_bg_consoletoolbar_sort_sorttext0");
84#endif
85
87
88 GetGame().GetMission().GetOnInputPresetChanged().Insert(OnInputPresetChanged);
89 GetGame().GetMission().GetOnInputDeviceChanged().Insert(OnInputDeviceChanged);
90 OnInputDeviceChanged(GetGame().GetInput().GetCurrentInputDevice());
91
92 return layoutRoot;
93 }
TabType

References g_Game, GetGame(), GetInput(), m_Back, OnlineServices::m_ServerModLoadAsyncInvoker, OnlineServices::m_ServersAsyncInvoker, OnInputDeviceChanged(), OnInputPresetChanged(), OnLoadServerModsAsync(), Refresh(), and UpdateControlsElements().

◆ Init() [25/36]

override Widget UIScriptedMenu::Init ( )
inlineprotected

Definition at line 78 of file NoteMenu.c.

79 {
80 layoutRoot = GetGame().GetWorkspace().CreateWidgets("gui/layouts/day_z_inventory_note.layout");
81 m_edit = MultilineEditBoxWidget.Cast(layoutRoot.FindAnyWidget("EditWidget"));
82 m_html = HtmlWidget.Cast(layoutRoot.FindAnyWidget("HtmlWidget"));
83 m_confirm_button = ButtonWidget.Cast(layoutRoot.FindAnyWidgetById(IDC_OK));
84
85 return layoutRoot;
86 }
ButtonWidget m_confirm_button
Definition NoteMenu.c:5
MultilineEditBoxWidget m_edit
Definition NoteMenu.c:3
HtmlWidget m_html
Definition NoteMenu.c:4
const int IDC_OK
Definition constants.c:127

References GetGame(), and IDC_OK.

◆ Init() [26/36]

override Widget UIScriptedMenu::Init ( )
inlineprivate

Definition at line 11 of file PresetsMenu.c.

12 {
13 layoutRoot = GetGame().GetWorkspace().CreateWidgets("gui/layouts/day_z_options_controls_preset.layout");
14
15 m_schemes_list = TextListboxWidget.Cast(layoutRoot.FindAnyWidget("PresetListboxWidget"));
16
17 int c = GetGame().GetInput().GetProfilesCount();
18 for (int i = 0; i < c; i++)
19 {
20 string tmp;
21 GetGame().GetInput().GetProfileName(i, tmp);
22 m_schemes_list.AddItem(tmp, NULL, 0);
23 }
24
25 i = GetGame().GetInput().GetCurrentProfile();
26 if (i >= 0 && i < c)
27 m_schemes_list.SelectRow(i);
28
29 return layoutRoot;
30 }
TextListboxWidget m_schemes_list
Definition PresetsMenu.c:58

References GetGame().

◆ Init() [27/36]

override Widget UIScriptedMenu::Init ( )
inlineprotected

Definition at line 167 of file RadialQuickbarMenu.c.

168 {
169 layoutRoot = GetGame().GetWorkspace().CreateWidgets("gui/layouts/radial_menu/radial_quickbar/radial_quickbar_menu.layout");
170 m_ItemCardPanel = layoutRoot.FindAnyWidget(RadialMenu.RADIAL_ITEM_CARD_CONTAINER);
171
172 //register gestures menu
173 RadialMenu.GetInstance().RegisterClass(this);
174
175 //delay updates until fully initialized
176 RadialMenu.GetInstance().SetWidgetInitialized(false);
177
178 //set radial menu properties
179 RadialMenu.GetInstance().SetWidgetProperties("gui/layouts/radial_menu/radial_quickbar/radial_quickbar_delimiter.layout");
180
181 //create content (widgets) for items
183
184 //set controller toolbar icons
186
187 m_ToolbarPanel = layoutRoot.FindAnyWidget("toolbar_bg");
188 m_ToolbarPanel.Show(true);
189
190 return layoutRoot;
191 }

References GetGame(), RadialMenu(), RefreshQuickbar(), and UpdateControlsElements().

◆ Init() [28/36]

override Widget UIScriptedMenu::Init ( )
inlineprotected

Definition at line 19 of file RespawnDialogue.c.

20 {
21 layoutRoot = GetGame().GetWorkspace().CreateWidgets("gui/layouts/day_z_respawn_dialogue.layout");
22 m_DetailsRoot = layoutRoot.FindAnyWidget("menu_details_tooltip");
23 m_DetailsLabel = TextWidget.Cast(m_DetailsRoot.FindAnyWidget("menu_details_label"));
24 m_DetailsText = RichTextWidget.Cast(m_DetailsRoot.FindAnyWidget("menu_details_tooltip_content"));
25
26 m_CustomRespawn = layoutRoot.FindAnyWidget("respawn_button_custom");
28
29 return layoutRoot;
30 }

References GetGame(), and SetFocus().

◆ Init() [29/36]

override Widget UIScriptedMenu::Init ( )
inlineprivate

Definition at line 366 of file SceneEditorMenu.c.

367 {
368 // Create Main layout menu
369 layoutRoot = GetGame().GetWorkspace().CreateWidgets("gui/layouts/scene_editor/day_z_scene_editor.layout");
370 m_WgtPnlWrapper = layoutRoot.FindAnyWidget("pnl_presets_wrapper_outer");
371 m_SlWgtLoadedScene = TextWidget.Cast(layoutRoot.FindAnyWidget("txt_left_label_loaded_scene"));
372 // Find ListTextBoxWidget for objects list
373 m_SlWgtLbxObjectsList = TextListboxWidget.Cast(layoutRoot.FindAnyWidget("txtlist_left_items"));
374 // Find Edit Box for shearching in object list
375 m_SlWgtEbxFilter = EditBoxWidget.Cast(layoutRoot.FindAnyWidget("edit_left_search_item"));
376 // Find Select Button for selecting in object list
377 m_SlWgtSelect = ButtonWidget.Cast(layoutRoot.FindAnyWidget("btn_left_select"));
378 m_SlWgtFocus = ButtonWidget.Cast(layoutRoot.FindAnyWidget("btn_left_focus"));
379 // Find Popup main panel
380 m_WgtPopupsMain = layoutRoot.FindAnyWidget("pnl_popups");
381 // Find Poups backgroudn
382 m_WgtPopupsBg = layoutRoot.FindAnyWidget("pnl_popup_bg");
383 // Find Edit Box for shearching in class list
384 m_ClWgtEbxFilter = EditBoxWidget.Cast(layoutRoot.FindAnyWidget("edit_left_search_class"));
385 // Find ListTextBoxWidget for class list
386 m_ClWgtLbxClassesList = TextListboxWidget.Cast(layoutRoot.FindAnyWidget("txtlist_left_classes"));
387 // Find Buttons
388 m_WgtBtnSceneManager = ButtonWidget.Cast(layoutRoot.FindAnyWidget("btn_top_scene_manager"));
389 m_WgtBtnPositionManager = ButtonWidget.Cast(layoutRoot.FindAnyWidget("btn_top_position_manager"));
390 m_WgtBtnSceneSettings = ButtonWidget.Cast(layoutRoot.FindAnyWidget("btn_top_settings"));
391 m_ClWgtButtonAddAtt = ButtonWidget.Cast(layoutRoot.FindAnyWidget("btn_left_cl_add_attachment"));
392 m_WgtBtnSceneSave = ButtonWidget.Cast(layoutRoot.FindAnyWidget("btn_top_save_scene"));
393 m_WgtBtnEditorSettings = ButtonWidget.Cast(layoutRoot.FindAnyWidget("btn_top_editor_settings"));
394 m_WgtBtnEditInitScript = ButtonWidget.Cast(layoutRoot.FindAnyWidget("btn_right_prop_pos_iscr_value"));
395 m_WgtBtnDeleteRuler = ButtonWidget.Cast(layoutRoot.FindAnyWidget("btn_delete_ruler"));
396 m_WgtBtnLeftPresets = ButtonWidget.Cast(layoutRoot.FindAnyWidget("btn_left_presets"));
397
398 // Find Widgets for properties
399 m_PrWgtClassName = TextWidget.Cast(layoutRoot.FindAnyWidget("txt_right_prop_class_value"));
400 m_PrWgtPoxX = EditBoxWidget.Cast(layoutRoot.FindAnyWidget("ebx_right_prop_pos_x_value"));
401 m_PrWgtPoxY = EditBoxWidget.Cast(layoutRoot.FindAnyWidget("ebx_right_prop_pos_y_value"));
402 m_PrWgtPoxZ = EditBoxWidget.Cast(layoutRoot.FindAnyWidget("ebx_right_prop_pos_z_value"));
403 m_PrWgtDir = EditBoxWidget.Cast(layoutRoot.FindAnyWidget("ebx_right_prop_pos_dir_value"));
404 m_PrWgtDmg = EditBoxWidget.Cast(layoutRoot.FindAnyWidget("ebx_right_prop_pos_hlt_value"));
405 m_PrWgtAttRoot = layoutRoot.FindAnyWidget("pnl_right_inspector_attachments");
406 m_PrWgtAttTitle = layoutRoot.FindAnyWidget("pnl_att_title");
408
409 // Notify
410 m_NotifyWgtPanel = layoutRoot.FindAnyWidget("pnl_notify");
411 m_NotifyWgtPanel.SetAlpha(0.0);
412 m_NotifyFadeTimer = new WidgetFadeTimer;
413
414 // Register Poups
415 m_Popups.Insert(POPUP_ID_SCENE_MANAGER, new UIPopupScriptSceneManager(layoutRoot.FindAnyWidget("pnl_popup_scene_manager")));
416 m_Popups.Insert(POPUP_ID_POSITION_MANAGER, new UIPopupScriptPositionManager(layoutRoot.FindAnyWidget("pnl_popup_position_manager")));
417 m_Popups.Insert(POPUP_ID_SCENE_SETTINGS, new UIPopupScriptSceneSettings(layoutRoot.FindAnyWidget("pnl_popup_settings")));
418 m_Popups.Insert(POPUP_ID_SCENE_NEW, new UIPopupScriptSceneNew(layoutRoot.FindAnyWidget("pnl_popup_scene_new")));
419 m_Popups.Insert(POPUP_ID_SCENE_RENAME, new UIPopupScriptSceneRename(layoutRoot.FindAnyWidget("pnl_popup_scene_rename")));
420 m_Popups.Insert(POPUP_ID_SCENE_DELETE, new UIPopupScriptSceneDelete(layoutRoot.FindAnyWidget("pnl_popup_scene_delete")));
421 m_Popups.Insert(POPUP_ID_NOTIFY, new UIPopupScriptNotify(layoutRoot.FindAnyWidget("pnl_popup_notify")));
422 m_Popups.Insert(POPUP_ID_EDITOR_SETTINGS, new UIPopupScriptEditorSettings(layoutRoot.FindAnyWidget("pnl_popup_editor_settings")));
423 m_Popups.Insert(POPUP_ID_INIT_SCRIPT, new UIPopupScriptInitScript(layoutRoot.FindAnyWidget("pnl_popup_init_script")));
424 m_Popups.Insert(POPUP_ID_PRESET_NEW, new UIPopupScriptPresetNew(layoutRoot.FindAnyWidget("pnl_popup_preset_new")));
425 m_Popups.Insert(POPUP_ID_PRESET_RENAME, new UIPopupScriptPresetRename(layoutRoot.FindAnyWidget("pnl_popup_preset_rename")));
426 m_Popups.Insert(POPUP_ID_CONFIGS, new UIPopupScriptConfigs(layoutRoot.FindAnyWidget("pnl_popup_configs")));
427
428 m_PresetsTextListbox = TextListboxWidget.Cast(layoutRoot.FindAnyWidget("pnl_presets"));
429 m_PresetItemsTextListbox = TextListboxWidget.Cast(layoutRoot.FindAnyWidget("pnl_preset_items"));
430 m_ConfigDebugProfileFixed = PluginConfigDebugProfileFixed.Cast(GetPlugin(PluginConfigDebugProfileFixed));
432 m_PresetAddItemtButton = ButtonWidget.Cast(layoutRoot.FindAnyWidget("btn_add_to_preset"));
433 m_PresetRemoveItemButton = ButtonWidget.Cast(layoutRoot.FindAnyWidget("btn_remove_from_preset"));
434 m_SpawnOnGroundButton = ButtonWidget.Cast(layoutRoot.FindAnyWidget("btn_spawn_on_ground"));
435 m_SpawnInInventoryButton = ButtonWidget.Cast(layoutRoot.FindAnyWidget("btn_spawn_in_inventory"));
436 m_SpawnAsAttachmentButton = ButtonWidget.Cast(layoutRoot.FindAnyWidget("btn_spawn_as_attachment"));
437 m_UpButton = ButtonWidget.Cast(layoutRoot.FindAnyWidget("btn_up"));
438 m_DownButton = ButtonWidget.Cast(layoutRoot.FindAnyWidget("btn_down"));
439 m_Developer = PluginDeveloper.Cast(GetPlugin(PluginDeveloper));
440 m_QuantityEditBox = EditBoxWidget.Cast(layoutRoot.FindAnyWidget("txt_quantity_value"));
441 m_DamageEditBox = EditBoxWidget.Cast(layoutRoot.FindAnyWidget("txt_damage_value"));
442 m_SpawnDistanceEditBox = EditBoxWidget.Cast(layoutRoot.FindAnyWidget("txt_distance_value"));
443 m_PresetNewButton = ButtonWidget.Cast(layoutRoot.FindAnyWidget("btn_new"));
444 m_PresetDeleteButton = ButtonWidget.Cast(layoutRoot.FindAnyWidget("btn_delete"));
445 m_PresetRenameButton = ButtonWidget.Cast(layoutRoot.FindAnyWidget("btn_rename"));
446 m_PresetSetDefaultButton = ButtonWidget.Cast(layoutRoot.FindAnyWidget("btn_default"));
447 m_CopyToClipboardButton = ButtonWidget.Cast(layoutRoot.FindAnyWidget("btn_copy_to_clipboard"));
448 m_ConfigsButton = EditBoxWidget.Cast(layoutRoot.FindAnyWidget("btn_top_configs"));
449 m_SpawnDistanceEditBox.SetText(m_ConfigDebugProfile.GetSpawnDistance().ToString());
450
452
455
456 PopupHideAll();
457
458 return layoutRoot;
459 }
ButtonWidget m_DownButton
static const int POPUP_ID_SCENE_RENAME
EditBoxWidget m_DamageEditBox
EditBoxWidget m_PrWgtPoxX
static const int POPUP_ID_PRESET_NEW
PluginDeveloper m_Developer
static const int POPUP_ID_EDITOR_SETTINGS
EditBoxWidget m_ConfigsButton
static const int POPUP_ID_CONFIGS
ButtonWidget m_WgtBtnEditorSettings
ButtonWidget m_WgtBtnEditInitScript
ButtonWidget m_PresetDeleteButton
static const int POPUP_ID_SCENE_NEW
ButtonWidget m_PresetRemoveItemButton
ButtonWidget m_WgtBtnSceneSave
ButtonWidget m_WgtBtnSceneSettings
EditBoxWidget m_PrWgtDir
EditBoxWidget m_PrWgtPoxY
static const int POPUP_ID_PRESET_RENAME
EditBoxWidget m_PrWgtDmg
ButtonWidget m_SpawnInInventoryButton
static const int POPUP_ID_NOTIFY
ButtonWidget m_WgtBtnLeftPresets
PluginConfigDebugProfileFixed m_ConfigDebugProfileFixed
static const int POPUP_ID_INIT_SCRIPT
EditBoxWidget m_QuantityEditBox
ButtonWidget m_SpawnAsAttachmentButton
ButtonWidget m_WgtBtnPositionManager
TextListboxWidget m_SlWgtLbxObjectsList
ButtonWidget m_PresetNewButton
ButtonWidget m_SpawnOnGroundButton
static const int POPUP_ID_SCENE_MANAGER
static const int POPUP_ID_POSITION_MANAGER
ButtonWidget m_SlWgtSelect
ButtonWidget m_ClWgtButtonAddAtt
ButtonWidget m_PresetAddItemtButton
ButtonWidget m_WgtBtnSceneManager
static const int POPUP_ID_SCENE_SETTINGS
ButtonWidget m_UpButton
ButtonWidget m_CopyToClipboardButton
EditBoxWidget m_ClWgtEbxFilter
ButtonWidget m_SlWgtFocus
EditBoxWidget m_PrWgtPoxZ
TextWidget m_PrWgtClassName
static const int POPUP_ID_SCENE_DELETE
ButtonWidget m_PresetRenameButton
EditBoxWidget m_SpawnDistanceEditBox
TextWidget m_SlWgtLoadedScene
EditBoxWidget m_SlWgtEbxFilter
ButtonWidget m_WgtBtnDeleteRuler
ButtonWidget m_PresetSetDefaultButton

References GetGame(), GetPlugin(), m_ConfigDebugProfile, PopupHideAll(), RenderPresets(), UpdateListClasses(), and UpdateListObjects().

◆ Init() [30/36]

override Widget UIScriptedMenu::Init ( )
inlineprotected

Definition at line 118 of file ScriptConsole.c.

119 {
121
122 layoutRoot = GetGame().GetWorkspace().CreateWidgets("gui/layouts/script_console/script_console.layout");
123 m_EditTooltipRoot = GetGame().GetWorkspace().CreateWidgets("gui/layouts/script_console/script_console_tooltip_edit.layout", layoutRoot);
124 m_EditTooltipRoot.Show(false);
125 m_HintOkButton = ButtonWidget.Cast(m_EditTooltipRoot.FindAnyWidget("ButtonOk"));
126 m_HintCancelButton = ButtonWidget.Cast(m_EditTooltipRoot.FindAnyWidget("ButtonCancel"));
127 m_HintClearButton = ButtonWidget.Cast(m_EditTooltipRoot.FindAnyWidget("ButtonClear"));
128 m_HintInputText = EditBoxWidget.Cast(m_EditTooltipRoot.FindAnyWidget("InputText"));
129
130 m_ButtonsWindowWidget = layoutRoot.FindAnyWidget("TabButtons");
131 m_ButtonsWindowWidget.Show(true);
132 //(Widget root, ScriptConsole console, Widget button, ScriptConsoleTabBase parent = null)
133 RegisterTab(new ScriptConsoleItemsTab(layoutRoot.FindAnyWidget("ItemsPanel"), this, ButtonWidget.Cast(layoutRoot.FindAnyWidget("ItemsButtonWidget"))));
134 RegisterTab(new ScriptConsoleConfigTab(layoutRoot.FindAnyWidget("ConfigsPanel"), this, ButtonWidget.Cast(layoutRoot.FindAnyWidget("ConfigsButtonWidget"))));
135 RegisterTab(new ScriptConsoleEnfScriptTab(layoutRoot.FindAnyWidget("EnScriptPanel"), this, ButtonWidget.Cast(layoutRoot.FindAnyWidget("EnScriptButtonWidget"))));
136 RegisterTab(new ScriptConsoleEnfScriptServerTab(layoutRoot.FindAnyWidget("EnScriptPanel"), this, ButtonWidget.Cast(layoutRoot.FindAnyWidget("EnScriptButtonWidgetServer"))));
137 RegisterTab(new ScriptConsoleGeneralTab(layoutRoot.FindAnyWidget("GeneralPanel"), this, ButtonWidget.Cast(layoutRoot.FindAnyWidget("GeneralButtonWidget"))));
138 RegisterTab(new ScriptConsoleOutputTab(layoutRoot.FindAnyWidget("OutputPanel"), this, ButtonWidget.Cast(layoutRoot.FindAnyWidget("OutputButtonWidget"))));
139 RegisterTab(new ScriptConsoleVicinityTab(layoutRoot.FindAnyWidget("VicinityPanel"), this, ButtonWidget.Cast(layoutRoot.FindAnyWidget("VicinityWidget"))));
140 RegisterTab(new ScriptConsoleSoundsTab(layoutRoot.FindAnyWidget("SoundsPanel"), this, ButtonWidget.Cast(layoutRoot.FindAnyWidget("SoundsWidget"))));
141 RegisterTab(new ScriptConsoleWeatherTab(layoutRoot.FindAnyWidget("WeatherPanel"), this, ButtonWidget.Cast(layoutRoot.FindAnyWidget("WeatherButtonWidget"))));
142
143 m_CloseConsoleButton = ButtonWidget.Cast(layoutRoot.FindAnyWidget("CloseConsoleButtonWidget"));
144
145 // load data from profile
146 m_SelectedTab = m_ConfigDebugProfile.GetTabSelected();
148
150
151 return layoutRoot;
152 }
void ScriptConsoleEnfScriptTab(Widget root, ScriptConsole console, Widget button, ScriptConsoleTabBase parent=null)
ButtonWidget m_HintCancelButton
ButtonWidget m_HintClearButton
EditBoxWidget m_HintInputText
Widget m_ButtonsWindowWidget
Widget m_EditTooltipRoot
void SelectTabByID(int id)
static JsonHintsData GetData()
void RegisterTab(ScriptConsoleTabBase handler)
ButtonWidget m_HintOkButton

References GetData(), GetGame(), GetPlugin(), m_ConfigDebugProfile, RegisterTab(), ScriptConsoleEnfScriptTab(), and SelectTabByID().

◆ Init() [31/36]

override Widget UIScriptedMenu::Init ( )
inlineprivate

Definition at line 17 of file ScriptConsoleAddPosition.c.

18 {
20 layoutRoot = GetGame().GetWorkspace().CreateWidgets("gui/layouts/script_console/script_console_add_location_dialogue.layout");
21 m_EditboxName = EditBoxWidget.Cast(layoutRoot.FindAnyWidget("LocationName"));
22 m_EditboxPos = EditBoxWidget.Cast(layoutRoot.FindAnyWidget("Position"));
23 m_Label = TextWidget.Cast(layoutRoot.FindAnyWidget("WindowLabel"));
24 m_ClearButton = ButtonWidget.Cast(layoutRoot.FindAnyWidget("ButtonClear"));
25 m_Label.SetText("ADD NEW LOCATION");
26
27 return layoutRoot;
28 }

References GetGame(), GetPlugin(), and m_ConfigDebugProfile.

◆ Init() [32/36]

override Widget UIScriptedMenu::Init ( )
inlineprivate

Definition at line 12 of file ScriptConsoleNewPresetDialog.c.

13 {
14 layoutRoot = GetGame().GetWorkspace().CreateWidgets("gui/layouts/script_console/script_console_dialog_preset.layout");
15 m_Editbox = EditBoxWidget.Cast(layoutRoot.FindAnyWidget("PrimaryEditBox"));
16 m_Label = TextWidget.Cast(layoutRoot.FindAnyWidget("WindowLabel"));
17 m_Label.SetText("NEW PRESET");
18
19 return layoutRoot;
20 }

References GetGame().

◆ Init() [33/36]

override Widget UIScriptedMenu::Init ( )
inlineprivate

Definition at line 12 of file ScriptConsoleRenamePresetDialog.c.

13 {
14 layoutRoot = GetGame().GetWorkspace().CreateWidgets("gui/layouts/script_console/script_console_dialog_preset.layout");
15 m_Editbox = EditBoxWidget.Cast(layoutRoot.FindAnyWidget("PrimaryEditBox"));
16 m_Label = TextWidget.Cast(layoutRoot.FindAnyWidget("WindowLabel"));
17 m_Message = TextWidget.Cast(layoutRoot.FindAnyWidget("MessageText"));
18
19 MissionBase mission = MissionBase.Cast(GetGame().GetMission());
20
21 UIScriptedMenu ui_menu = GetGame().GetUIManager().FindMenu(MENU_SCRIPTCONSOLE);
22 if (ui_menu != NULL)
23 {
26 if (tab)
27 {
28 m_Editbox.SetText(tab.GetCurrentPresetName());
29 m_Label.SetText("RENAME PRESET");
30 m_Message.SetText(tab.GetCurrentPresetName());
31 }
32 }
33
34 return layoutRoot;
35 }
const int MENU_SCRIPTCONSOLE
Definition constants.c:175

References GetGame(), MENU_SCRIPTCONSOLE, and mission.

◆ Init() [34/36]

override Widget UIScriptedMenu::Init ( )
inlineprivate

Definition at line 13 of file ScriptConsoleUniversalInfoDialog.c.

14 {
15 layoutRoot = GetGame().GetWorkspace().CreateWidgets("gui/layouts/script_console/script_console_universal_info_dialog.layout");
16 m_Label = TextWidget.Cast(layoutRoot.FindAnyWidget("Label"));
17 m_ContentScroll = ScrollWidget.Cast(layoutRoot.FindAnyWidget("ContentScroll"));
18 m_ContentScroll.VScrollToPos(0);
19 m_Content = MultilineEditBoxWidget.Cast(layoutRoot.FindAnyWidget("Content"));
20 m_OKButton = ButtonWidget.Cast(layoutRoot.FindAnyWidget("MessageText"));
21
22 return layoutRoot;
23 }

References GetGame().

◆ Init() [35/36]

override Widget UIScriptedMenu::Init ( )
inlineprivate

Definition at line 11 of file StartupMenu.c.

12 {
13 layoutRoot = GetGame().GetWorkspace().CreateWidgets("gui/layouts/startup.layout");
14
15 m_label = TextWidget.Cast(layoutRoot.FindAnyWidget("TextWidget"));
16
17 return layoutRoot;
18 }

References GetGame().

◆ Init() [36/36]

override Widget UIScriptedMenu::Init ( )
inlineprivate

Definition at line 16 of file TitleScreenMenu.c.

17 {
18 layoutRoot = GetGame().GetWorkspace().CreateWidgets("gui/layouts/xbox/day_z_title_screen.layout");
19
20 MissionMainMenu mission = MissionMainMenu.Cast(g_Game.GetMission());
21
22 m_TextPress = RichTextWidget.Cast(layoutRoot.FindAnyWidget("InputPromptText"));
23 if (m_TextPress)
24 {
25 string gamertag;
26 string text = Widget.TranslateString("#console_start_game");
27 GetGame().GetPlayerName(gamertag);
28#ifdef PLATFORM_XBOX
29 BiosUserManager user_manager = GetGame().GetUserManager();
30 if (user_manager && user_manager.GetSelectedUser())
31 m_TextPress.SetText(string.Format(text, "<image set=\"xbox_buttons\" name=\"A\" />"));
32 else
33 m_TextPress.SetText(string.Format(text, "<image set=\"xbox_buttons\" name=\"A\" />"));
34#endif
35
36#ifdef PLATFORM_PS4
37 string confirm = "cross";
38 if (GetGame().GetInput().GetEnterButton() == GamepadButton.A)
39 confirm = "cross";
40 else
41 confirm = "circle";
42 m_TextPress.SetText(string.Format(text, "<image set=\"playstation_buttons\" name=\"" + confirm + "\" />"));
43#endif
44 }
45 return layoutRoot;
46 }
RichTextWidget m_TextPress

References g_Game, GetGame(), GetInput(), and mission.

◆ InitInputSortingMap()

void UIScriptedMenu::InitInputSortingMap ( )
inlineprotected

Definition at line 431 of file KeybindingsMenu.c.

432 {
434 }
static bool InitInputMetadata()
Definition InputUtils.c:213

References InputUtils::InitInputMetadata().

◆ InitMapItem()

override void UIScriptedMenu::InitMapItem ( EntityAI item)
inlineprotected

Definition at line 164 of file MapMenu.c.

165 {
166 super.InitMapItem(item);
167
168 m_Map = ItemMap.Cast(item);
169 //m_Map.SyncMapMarkers();
170 //m_MarkerCount = m_Map.GetMarkerArray().Count();
171 }

◆ InitNoteRead()

override void UIScriptedMenu::InitNoteRead ( string text = "")
inlineprotected

Definition at line 35 of file NoteMenu.c.

36 {
37 m_IsWriting = false;
38
39 if (m_edit)
40 m_edit.Show(false);
41
42 if (m_html)
43 {
44 //TODO add text formating here. Just text string for now
45 if (text)
46 {
47 m_html.Show(true);
48 m_html.SetText(text);
49 m_SymbolCount = text.Length(); //string.LengthUtf8() ?
50 //m_html.SetText("<html><body><p>" + text + "</p></body></html>");
51 }
52 }
53 m_confirm_button.Show(false);
54 }
int m_SymbolCount
Definition NoteMenu.c:10
bool m_IsWriting
Definition NoteMenu.c:8

◆ InitNoteWrite()

override void UIScriptedMenu::InitNoteWrite ( EntityAI paper,
EntityAI pen,
string text = "" )
inlineprotected

Definition at line 56 of file NoteMenu.c.

57 {
58 m_IsWriting = true;
59
60 if (m_edit)
61 {
62 m_Paper = ItemBase.Cast(paper);
63 m_Pen = pen;
64 m_PenColor = m_Pen.ConfigGetString("writingColor");
65 if (m_PenColor == "")
66 m_PenColor = "#000000";
67 //m_Handwriting = handwriting;
68
69 m_edit.Show(true);
70 m_edit.SetText(text);
71 }
72
73 if (m_html)
74 m_html.Show(false);
75 m_confirm_button.Show(true);
76 }
EntityAI m_Pen
Definition NoteMenu.c:7
ItemBase m_Paper
Definition NoteMenu.c:6
string m_PenColor
Definition NoteMenu.c:11

◆ InitPresets()

void UIScriptedMenu::InitPresets ( int index,
Widget parent,
Input input )
inlineprotected

Definition at line 436 of file KeybindingsMenu.c.

437 {
438 Widget kb_root = parent.FindAnyWidget("keyboard_dropown");
439 if (kb_root)
440 kb_root.Show(false);
441
443 string profile_text;
444
445 for (int i = 0; i < input.GetProfilesCount(); i++)
446 {
447 input.GetProfileName(i, profile_text);
448 opt1.Insert(profile_text);
449 }
450
451 int current_idx = input.GetCurrentProfile();
453 m_PresetSelector = new OptionSelectorMultistate(layoutRoot.FindAnyWidget("profile_setting_option"), current_idx, null, false, opt1);
454 m_PresetSelector.m_AttemptOptionChange.Insert(OnAttemptSelectPreset);
455 m_PresetSelector.m_OptionChanged.Insert(OnSelectKBPreset);
456 }
ref OptionSelectorMultistate m_PresetSelector
void OnSelectKBPreset(int index)
void OnAttemptSelectPreset(int index)

◆ InputDeviceDisconnectWarningMenu()

void UIScriptedMenu::InputDeviceDisconnectWarningMenu ( )
inlineprivate

Definition at line 17 of file InputDeviceDisconnectWarningMenu.c.

18 {
19 g_Game.GetMission().AddActiveInputExcludes({"gamepaddisconnect"});
20
22 m_CanClose = false;
23
25 }
ref array< int > m_DisconnectedDevices

References BuildMessages(), and g_Game.

◆ InspectMenuNew()

void UIScriptedMenu::InspectMenuNew ( )
inlineprivate

Definition at line 12 of file InspectMenuNew.c.

13 {
14
15 }

◆ InviteMenu()

void UIScriptedMenu::InviteMenu ( )
inlineprivate

Definition at line 11 of file InviteMenu.c.

12 {
13 m_iTime = 15;
14
16
17 if (GetGame().GetMission())
18 {
19 GetGame().GetMission().AddActiveInputExcludes({"menu"});
20
21 GetGame().GetMission().GetHud().ShowHudUI(false);
22 GetGame().GetMission().GetHud().ShowQuickbarUI(false);
23 }
24 }
struct that keeps Time relevant information for future formatting

References GetGame().

◆ IsAnyTabChanged()

bool UIScriptedMenu::IsAnyTabChanged ( )
inlineprotected

Definition at line 260 of file OptionsMenu.c.

261 {
262 bool changed = (m_Options.IsChanged() || m_GameTab.IsChanged() || m_SoundsTab.IsChanged() || m_ControlsTab.IsChanged());
263#ifndef PLATFORM_XBOX
264 changed |= m_VideoTab.IsChanged();
265#endif
266
267 return changed;
268 }

Referenced by Back(), OnAttemptTabSwitch(), and OnChanged().

◆ IsCurrentPresetFixed()

bool UIScriptedMenu::IsCurrentPresetFixed ( )
inlineprivate

Definition at line 216 of file SceneEditorMenu.c.

217 {
219 if (index > -1 && index < m_PresetsTextListbox.GetNumItems())
220 {
223 return item_params_array.param2;
224 }
225 return -1;
226 }

References GetCurrentPresetIndex().

Referenced by RenderPresetItems(), and SetPreset().

◆ IsFavorited()

bool UIScriptedMenu::IsFavorited ( string server_id)
inlineprotected

Definition at line 214 of file ServerBrowserMenuNew.c.

215 {
216 int index = -1;
217 if (m_Favorites)
219 return (index >= 0);
220 }

◆ IsFocusable() [1/10]

bool UIScriptedMenu::IsFocusable ( Widget w)
inlineprotected

Definition at line 848 of file CameraToolsMenu.c.

849 {
850 if (w)
851 return (w == m_SaveKeyframe || w == m_DeleteKeyframe || w == m_ViewKeyframe || w == m_SaveEvent || w == m_DeleteEvent || w == m_ViewEvent || w == m_AddKeyframe || w == m_AddEvent || w == m_Play || w == m_Stop || w == m_Save || w == m_Load || w == m_InterpTypeCombo);
852 return false;
853 }

Referenced by OnFocus(), OnFocusLost(), OnMouseEnter(), and OnMouseLeave().

◆ IsFocusable() [2/10]

bool UIScriptedMenu::IsFocusable ( Widget w)
inlineprotected

Definition at line 493 of file ControlsXboxNew.c.

494 {
495 return (w && w == m_Back);
496 }

References m_Back.

◆ IsFocusable() [3/10]

bool UIScriptedMenu::IsFocusable ( Widget w)
inlineprotected

Definition at line 544 of file InGameMenuXbox.c.

545 {
546 if (w)
547 {
549 return true;
550 }
551 return false;
552 }

◆ IsFocusable() [4/10]

bool UIScriptedMenu::IsFocusable ( Widget w)
inlineprotected

Definition at line 402 of file CharacterCreationMenu.c.

403 {
404 if (w)
405 return (w == m_Apply || w == m_Save || w == m_RandomizeCharacter || w == m_BackButton);
406 return false;
407 }

◆ IsFocusable() [5/10]

bool UIScriptedMenu::IsFocusable ( Widget w)
inlineprotected

Definition at line 387 of file KeybindingsMenu.c.

388 {
389 if (w)
390 return (w == m_Apply || w == m_Back || w == m_Undo || w == m_Defaults || w == m_HardReset);
391 return false;
392 }

References m_Back.

◆ IsFocusable() [6/10]

bool UIScriptedMenu::IsFocusable ( Widget w)
inlineprotected

Definition at line 351 of file MainMenu.c.

352 {
353 if (w)
354 {
356 {
357 return true;
358 }
359
360 if (w == m_Exit || w == m_PlayVideo);
361 {
362 return true;
363 }
364
365 if (w == m_NewsMain || w == m_NewsSec1 || w == m_NewsSec2 || w == m_PrevCharacter || w == m_NextCharacter);
366 {
367 return true;
368 }
369 }
370 return false;
371 }
Widget m_NewsMain
Definition MainMenu.c:23
Widget m_NewsSec1
Definition MainMenu.c:24
Widget m_NewsSec2
Definition MainMenu.c:25

◆ IsFocusable() [7/10]

bool UIScriptedMenu::IsFocusable ( Widget w)
inlineprotected

Definition at line 408 of file TutorialsMenu.c.

409 {
410 return (w && w == m_Back);
411 }

References m_Back.

◆ IsFocusable() [8/10]

bool UIScriptedMenu::IsFocusable ( Widget w)
inlineprotected

Definition at line 567 of file OptionsMenu.c.

568 {
569 if (w)
570 return (w == m_Apply || w == m_Back || w == m_Reset || w == m_Defaults);
571 return false;
572 }

References m_Back.

◆ IsFocusable() [9/10]

bool UIScriptedMenu::IsFocusable ( Widget w)
inlineprotected

Definition at line 444 of file ServerBrowserMenuNew.c.

445 {
446 if (w)
447 return (w == m_Play || w == m_CustomizeCharacter || w == m_Back);
448 return false;
449 }

References m_Back.

◆ IsFocusable() [10/10]

bool UIScriptedMenu::IsFocusable ( Widget w)
inlineprotected

Definition at line 134 of file RespawnDialogue.c.

135 {
136 if (w)
137 {
138 if (w.GetUserID() == IDC_CANCEL || w.GetUserID() == ID_RESPAWN_CUSTOM || w.GetUserID() == ID_RESPAWN_RANDOM);
139 return true;
140 }
141
142 return false;
143 }
const int ID_RESPAWN_CUSTOM
const int ID_RESPAWN_RANDOM
const int IDC_CANCEL
Definition constants.c:128

References IDC_CANCEL.

◆ IsLocalPlayer()

bool UIScriptedMenu::IsLocalPlayer ( string uid)
inlineprotected

Definition at line 345 of file InGameMenuXbox.c.

346 {
348 string local_uid;
349 if (GetGame().GetUserManager())
350 local_uid = GetGame().GetUserManager().GetSelectedUser().GetUid();
351 return (uid == local_uid);
352 }

References GetGame(), and GetPlayer().

Referenced by Init().

◆ IsMenuClosing() [1/2]

bool UIScriptedMenu::IsMenuClosing ( )
inlineprotected

Definition at line 627 of file GesturesMenu.c.

628 {
629 return m_IsMenuClosing;
630 }

◆ IsMenuClosing() [2/2]

bool UIScriptedMenu::IsMenuClosing ( )
inlineprotected

Definition at line 755 of file RadialQuickbarMenu.c.

756 {
757 return m_IsMenuClosing;
758 }

◆ IsOnlineOpen()

bool UIScriptedMenu::IsOnlineOpen ( )
inlineprotected

Definition at line 418 of file InGameMenuXbox.c.

419 {
420 return m_OnlineMenu.IsVisible();
421 }

Referenced by UpdateControlsElements().

◆ IsPresetFixed()

bool UIScriptedMenu::IsPresetFixed ( string preset_name)
inlineprivate

Definition at line 53 of file SceneEditorMenu.c.

54 {
57 if (preset_index > -1 && preset_index < m_PresetsTextListbox.GetNumItems())
58 {
60 return item_params_array.param2;
61 }
62 return false;
63 }
int GetPresetIndexByName(string preset_name)

References GetPresetIndexByName().

Referenced by RenderPresets(), and SetDefaultPreset().

◆ IsStatic()

bool UIScriptedMenu::IsStatic ( )
inlineprotected

Definition at line 97 of file DayZGame.c.

98 {
99 return m_IsStatic;
100 }
bool m_IsStatic
Definition DayZGame.c:66

◆ ItemMoveDown()

void UIScriptedMenu::ItemMoveDown ( )
inlineprivate

◆ ItemMoveUp()

void UIScriptedMenu::ItemMoveUp ( )
inlineprivate

◆ Leave()

void UIScriptedMenu::Leave ( )
inlineprotected

Definition at line 85 of file DayZGame.c.

86 {
87 g_Game.SetGameState(DayZGameState.MAIN_MENU);
88 g_Game.SetLoadState(DayZLoadState.MAIN_MENU_START);
89
90 g_Game.GetCallQueue(CALL_CATEGORY_SYSTEM).Call(GetGame().DisconnectSessionForce);
91
92 Close();
93 }

References CALL_CATEGORY_SYSTEM, Close(), g_Game, and GetGame().

◆ LoadData()

void UIScriptedMenu::LoadData ( )
inlineprotected

Definition at line 191 of file CameraToolsMenu.c.

192 {
193 if (!FileExist(g_Game.GetMissionFolderPath() + "/CameraTools"))
194 MakeDirectory(g_Game.GetMissionFolderPath() + "/CameraTools");
195
196 m_Cameras.Clear();
197 m_Events.Clear();
198 m_Actors.Clear();
199
200 string errorMessage;
202 if (!JsonFileLoader<ref CTSaveStructure>.LoadFile(g_Game.GetMissionFolderPath() + "/CameraTools/keyframe_data.json", save_data, errorMessage))
204
205 m_InterpTypeCombo.SetCurrentItem(save_data.m_InterpType);
206 m_InterpTypeSpeedCombo.SetCurrentItem(save_data.m_InterpSpeed);
207 SetBlurValue(save_data.m_BlurValue);
208
210 {
211 CTKeyframe kf = new CTKeyframe(m_Cameras.Count(), transform.param1, transform.param2, transform.param3, transform.param4, transform.param5, transform.param6, GetTotalTime(m_Cameras.Count()), m_KeyframeContent, this);
212 kf.SetInterpTime(transform.param3);
213 m_Cameras.Insert(kf);
214 }
215
217 {
218 CTEvent ev = new CTEvent(m_Events.Count(), event_t.param1, m_EventContent, event_t.param4, this);
219 ev.SetEventType(event_t.param2);
220 ev.SetEventTime(event_t.param3);
221 m_Events.Insert(ev);
222 }
223
224 foreach (Param5<vector, vector, string, ref array<string>, string> actor_t : save_data.m_Actors)
225 {
226 CTActor ac = new CTActor(m_Actors.Count(), actor_t.param1, actor_t.param2, actor_t.param3, actor_t.param4, actor_t.param5, this);
227 m_Actors.Insert(ac);
228 }
229 }
void SetBlurValue(float blur)
proto native bool MakeDirectory(string name)
Makes a directory.

References ErrorEx, FileExist(), g_Game, and MakeDirectory().

◆ LoadDataAsync()

void UIScriptedMenu::LoadDataAsync ( )
inlineprotected

Definition at line 56 of file CreditsMenu.c.

57 {
59 for (int i = 1; i <= m_CreditsData.Departments.Count(); i++)
60 {
61 ref CreditsDepartmentElement e = new CreditsDepartmentElement(i, m_Content, m_CreditsData.Departments.Get(i - 1));
62 m_CreditsEntries.Insert(e);
63 }
64 m_Content.Update();
65 }
static JsonDataCredits GetData()
ref JsonDataCredits m_CreditsData
Definition CreditsMenu.c:17
ref array< ref CreditsElement > m_CreditsEntries
Definition CreditsMenu.c:20

References CreditsLoader::GetData().

◆ LoadFavoriteServers()

void UIScriptedMenu::LoadFavoriteServers ( )
inlineprotected

Definition at line 451 of file ServerBrowserMenuNew.c.

452 {
454
455#ifdef PLATFORM_WINDOWS
457#else
458 GetGame().GetProfileStringList("SB_Favorites", m_Favorites);
459
460 // ignore any ids that do not follow correct IP:PORT format
461 for (int i = 0; i < m_Favorites.Count(); ++i)
462 {
463 string id = m_Favorites[i];
465
466 id.Split(":", output);
467 if (output.Count() != 2)
468 {
469 m_Favorites.Remove(i);
470 --i;
471 }
472 }
473
474 // only handle MAX_FAVORITES on consoles
475 if (m_Favorites.Count() > MAX_FAVORITES)
476 {
477 // favorites are ordered by when they were favorited
478 // so keep most recent favorites and ignore oldest favorites
479 m_Favorites.Invert();
481 m_Favorites.Invert();
482 }
483#endif
484 }
const int MAX_FAVORITES
static void GetFavoriteServers(TStringArray favServers)

References OnlineServices::GetFavoriteServers(), GetGame(), and MAX_FAVORITES.

◆ LoadFooterButtonTexts() [1/3]

void UIScriptedMenu::LoadFooterButtonTexts ( )
inlineprotected

Initial texts load for the footer buttons.

Definition at line 696 of file InGameMenuXbox.c.

697 {
698 TextWidget uiGamecardText = TextWidget.Cast(layoutRoot.FindAnyWidget("GamercardText"));
699 TextWidget uiBackText = TextWidget.Cast(layoutRoot.FindAnyWidget("BackText"));
700 TextWidget uiSelectText = TextWidget.Cast(layoutRoot.FindAnyWidget("SelectText"));
701
702 if (uiGamecardText)
704 if (uiBackText)
706 if (uiSelectText)
708 }
string m_BackButtonTextID
string m_OpenGameCardButtonTextID
string m_SelectButtonTextID

References m_BackButtonTextID.

Referenced by Init().

◆ LoadFooterButtonTexts() [2/3]

void UIScriptedMenu::LoadFooterButtonTexts ( )
inlineprotected

Definition at line 83 of file MainMenuVideo.c.

84 {
85 }

◆ LoadFooterButtonTexts() [3/3]

void UIScriptedMenu::LoadFooterButtonTexts ( )
inlineprotected

Initial texts load for the footer buttons.

Definition at line 338 of file TutorialsMenu.c.

339 {
340 TextWidget uiBackText = TextWidget.Cast(layoutRoot.FindAnyWidget("BackText"));
341
342 if (uiBackText)
344 }

References m_BackButtonTextID.

◆ LoadingMenu()

void UIScriptedMenu::LoadingMenu ( )
inlineprivate

Definition at line 3 of file LoadingMenu.c.

4 {
5 }

◆ LoadMapMarkers()

override void UIScriptedMenu::LoadMapMarkers ( )
inlineprotected

Definition at line 312 of file MapMenu.c.

313 {
315 for (int i = 0; i < m_Map.GetMarkerArray().Count(); i++)
316 {
317 marker = m_Map.GetMarkerArray().Get(i);
318 m_MapWidgetInstance.AddUserMark(marker.GetMarkerPos(), marker.GetMarkerText(), marker.GetMarkerColor(), MapMarkerTypes.GetMarkerTypeFromID(marker.GetMarkerIcon())/*"\\dz\\gear\\navigation\\data\\map_tree_ca.paa"*/);
319 }
320 }

References Count, and MapMarkerTypes::GetMarkerTypeFromID().

◆ LoadMods() [1/2]

void UIScriptedMenu::LoadMods ( )
inlineprotected

Definition at line 123 of file MainMenu.c.

124 {
126 GetGame().GetModInfos(modArray);
127
128 if (modArray.Count() > 0)
129 {
130 modArray.Remove(modArray.Count() - 1);
131 modArray.Invert();
132 }
133
135
136 if (m_ModsSimple)
137 delete m_ModsSimple;
138 if (m_ModsDetailed)
139 delete m_ModsDetailed;
140
141 m_ModdedWarning.Show(GetGame().GetModToBeReported());
142
143 if (modArray.Count() > 0)
144 {
145 layoutRoot.FindAnyWidget("ModsSimple").Show(true);
146 m_ModsTooltip = new ModsMenuTooltip(layoutRoot);
147
148 m_ModsDetailed = new ModsMenuDetailed(modArray, layoutRoot.FindAnyWidget("ModsDetailed"), m_ModsTooltip, this);
149
150 m_ModsSimple = new ModsMenuSimple(modArray, layoutRoot.FindAnyWidget("ModsSimple"), m_ModsDetailed);
151 }
152 }
ref ModsMenuTooltip m_ModsTooltip
Definition MainMenu.c:41
ref ModsMenuDetailed m_ModsDetailed
Definition MainMenu.c:40
ref ModsMenuSimple m_ModsSimple
Definition MainMenu.c:39
void FilterDlcs(inout array< ref ModInfo > modArray)
Definition MainMenu.c:154

References GetGame(), and m_ModdedWarning.

◆ LoadMods() [2/2]

void UIScriptedMenu::LoadMods ( )
inlineprotected

Definition at line 94 of file MainMenuConsoles.c.

95 {
96 if (m_AllDLCs != null)
97 return;
98
100
101 GetGame().GetModInfos(m_AllDLCs);
102 if (m_AllDLCs.Count() > 0)
103 {
104 m_AllDLCs.Remove(m_AllDLCs.Count() - 1);
105 m_AllDLCs.Invert();
106 }
107
110
112 }
ref array< ref ModInfo > m_AllDLCs
void FilterDLCs(inout array< ref ModInfo > modArray)
leaves ONLY DLCs

References GetGame(), and UpdateControlsElements().

◆ LoadTextStrings() [1/3]

void UIScriptedMenu::LoadTextStrings ( )
inlineprotected

Set correct bottom button texts based on platform (ps4 vs xbox texts)

Definition at line 678 of file InGameMenuXbox.c.

679 {
680#ifdef PLATFORM_PS4
681 m_MuteButtonTextID = "#ps4_ingame_menu_mute";
682 m_UnmuteButtonTextID = "#ps4_ingame_menu_unmute";
683 m_BackButtonTextID = "#ps4_ingame_menu_back";
684 m_SelectButtonTextID = "#ps4_ingame_menu_select";
685 m_OpenGameCardButtonTextID = "#ps4_ingame_menu_opencard";
686#else
687 m_MuteButtonTextID = "#xbox_ingame_menu_mute";
688 m_UnmuteButtonTextID = "#xbox_ingame_menu_unmute";
689 m_BackButtonTextID = "#STR_rootFrame_toolbar_bg_ConsoleToolbar_Back_BackText0";
690 m_SelectButtonTextID = "#layout_xbox_ingame_menu_select";
691 m_OpenGameCardButtonTextID = "#layout_xbox_ingame_menu_gamecard";
692#endif
693 }
string m_MuteButtonTextID
string m_UnmuteButtonTextID

References m_BackButtonTextID.

Referenced by Init().

◆ LoadTextStrings() [2/3]

void UIScriptedMenu::LoadTextStrings ( )
inlineprotected

Definition at line 88 of file MainMenuVideo.c.

89 {
90 }

◆ LoadTextStrings() [3/3]

void UIScriptedMenu::LoadTextStrings ( )
inlineprotected

Set correct bottom button texts based on platform (ps4 vs xbox texts)

Definition at line 346 of file TutorialsMenu.c.

347 {
348#ifdef PLATFORM_PS4
349 m_BackButtonTextID = "ps4_ingame_menu_back";
350#else
351 m_BackButtonTextID = "STR_rootFrame_toolbar_bg_ConsoleToolbar_Back_BackText0";
352#endif
353 }

References m_BackButtonTextID.

◆ LogoutMenu()

void UIScriptedMenu::LogoutMenu ( )
inlineprivate

Definition at line 13 of file LogoutMenu.c.

14 {
15 m_iTime = 0;
16 g_Game.SetKeyboardHandle(this);
17
19 }

References g_Game.

◆ MarkSelected() [1/2]

void UIScriptedMenu::MarkSelected ( Widget w)
inlineprotected

Definition at line 529 of file GesturesMenu.c.

530 {
531 instance.m_SelectedItem = w;
532
533 if (w)
534 {
536 w.GetUserData(gesture_item);
537
538 //is not category
539 /*
540 if ( gesture_item && gesture_item.GetCategory() != GestureCategories.CATEGORIES )
541 {
542 //alter item visual
543 //TextWidget text_widget = TextWidget.Cast( gesture_item.GetRadialItemCard().FindAnyWidget( RADIAL_TEXT ) );
544 //text_widget.SetColor( ARGB( 255, 66, 175, 95 ) );
545 }
546 */
547 }
548 }

References GestureMenuItem().

◆ MarkSelected() [2/2]

void UIScriptedMenu::MarkSelected ( Widget w)
inlineprotected

Definition at line 568 of file RadialQuickbarMenu.c.

569 {
571
572 if (w)
573 {
575 w.GetUserData(quickbar_item);
577
578 if (quickbar_item && Class.CastTo(item, quickbar_item.GetItem()))
579 w.SetFlags(WidgetFlags.DISABLED);
580 else
581 w.ClearFlags(WidgetFlags.DISABLED);
582 /*
583 //is not category
584 if ( quickbar_item )
585 {
586 if ( quickbar_item.GetItem() )
587 {
588 //alter item visual
589 TextWidget text_widget = TextWidget.Cast( quickbar_item.GetRadialItemCard().FindAnyWidget( TEXT_ITEM_NAME ) );
590 text_widget.SetColor( ARGB( 255, 66, 175, 95 ) );
591 }
592 else
593 {
594 //alter item visual
595 TextWidget title_widget = TextWidget.Cast( quickbar_item.GetRadialItemCard().FindAnyWidget( TEXT_ITEM_TITLE ) );
596 title_widget.SetColor( ARGB( 255, 66, 175, 95 ) );
597 }
598 }
599 */
600 }
601 }
Widget m_SelectedItem

References Class::CastTo(), and RadialQuickbarItem().

◆ MenuRequestRespawn() [1/2]

void UIScriptedMenu::MenuRequestRespawn ( UIScriptedMenu menu,
bool random )
inlineprotected

Definition at line 302 of file InGameMenu.c.

303 {
304 if (RespawnDialogue.Cast(menu))
306 }
void GameRespawn(bool random)
Definition InGameMenu.c:308
void RespawnDialogue()

◆ MenuRequestRespawn() [2/2]

void UIScriptedMenu::MenuRequestRespawn ( UIScriptedMenu menu,
bool random )
inlineprotected

Definition at line 339 of file InGameMenuXbox.c.

340 {
341 if (RespawnDialogue.Cast(menu))
343 }
void GameRetry(bool random)

References GameRetry().

◆ NewPreset()

void UIScriptedMenu::NewPreset ( string preset_name)
inlineprivate

Definition at line 79 of file SceneEditorMenu.c.

80 {
83 }

References m_ConfigDebugProfile, and RefreshLists().

◆ NextCharacter() [1/2]

void UIScriptedMenu::NextCharacter ( )
inlineprotected

Definition at line 437 of file MainMenu.c.

438 {
440 {
441 int charID = m_ScenePC.GetIntroCharacter().GetNextCharacterID();
442 if (charID != m_ScenePC.GetIntroCharacter().GetCharacterID())
443 {
444 m_ScenePC.GetIntroCharacter().SetCharacterID(charID);
446 }
447 }
448 }
void OnChangeCharacter(bool create_character=true)
Definition MainMenu.c:463

References DayZIntroScene::GetIntroCharacter().

◆ NextCharacter() [2/2]

void UIScriptedMenu::NextCharacter ( )
inlineprotected

Definition at line 544 of file ServerBrowserMenuNew.c.

545 {
546
547 }

◆ NextPrevPage()

void UIScriptedMenu::NextPrevPage ( bool next)
inlineprotected

Definition at line 54 of file BookMenu.c.

55 {
56 if (next)
58 else
60
61 float maxOffset = 0;
64
65 if (m_content_pos < 0)
66 m_content_pos = 0;
67
70
71 m_content.SetContentOffset(m_content_pos, true);
72
75
76 m_page.SetText(currPage.ToString() + " / " + pagesTotal.ToString());
77 }
float m_content_total_height
Definition BookMenu.c:8
float m_content_pos
Definition BookMenu.c:9
static proto float Round(float f)
Returns mathematical round of value.
static proto float Ceil(float f)
Returns ceil of value.

References Math::Ceil(), and Math::Round().

◆ NoteMenu()

void UIScriptedMenu::NoteMenu ( )
inlineprotected

Definition at line 13 of file NoteMenu.c.

14 {
15 MissionGameplay mission = MissionGameplay.Cast(GetGame().GetMission());
16 if (mission)
17 {
18 IngameHud hud = IngameHud.Cast(mission.GetHud());
19 if (hud)
20 hud.ShowHudUI(false);
21 }
22 }

References GetGame(), Mission::GetHud(), and mission.

◆ OnAttemptSelectPreset()

void UIScriptedMenu::OnAttemptSelectPreset ( int index)
inlineprotected

Definition at line 458 of file KeybindingsMenu.c.

459 {
460 bool changed = m_GroupsContainer.IsChanged() && m_OriginalPresetIndex != index;
462
463 if (changed)
464 g_Game.GetUIManager().ShowDialog("#main_menu_configure", "#main_menu_configure_desc", MODAL_ID_PRESET_CHANGE, DBT_YESNO, DBB_YES, DMT_QUESTION, this);
465
466 m_PresetSelector.SetCanSwitch(!changed);
467 }
const int MODAL_ID_PRESET_CHANGE

References g_Game.

◆ OnAttemptTabSwitch()

void UIScriptedMenu::OnAttemptTabSwitch ( int source,
int target )
inlineprotected

Definition at line 240 of file OptionsMenu.c.

241 {
242 bool changed = IsAnyTabChanged();
243 if (changed)
244 {
245 if (!g_Game.GetUIManager().IsDialogVisible() && !g_Game.GetUIManager().IsModalVisible())
246 {
247 int id = target + DIALOG_TAB_OFFSET;
248 g_Game.GetUIManager().ShowDialog("#main_menu_configure", "#main_menu_configure_desc", id, DBT_YESNO, DBB_YES, DMT_QUESTION, this);
249#ifdef PLATFORM_CONSOLE
251#endif
252 }
253 }
254 else
256
257 m_Tabber.SetCanSwitch(!changed);
258 }
void ResetCurrentTab()
const int DIALOG_TAB_OFFSET
Definition OptionsMenu.c:4

References DIALOG_TAB_OFFSET, g_Game, IsAnyTabChanged(), ResetCurrentTab(), and UpdateControlsElements().

◆ OnChange() [1/3]

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

Definition at line 29 of file ChatInputMenu.c.

30 {
31 super.OnChange(w, x, y, finished);
32
33 if (!finished) return false;
34
35 string text = m_edit_box.GetText();
36
37 if (text != "")
38 {
39 GetGame().ChatPlayer(text);
40 if (!GetGame().IsMultiplayer())
41 {
42 string name;
43 GetGame().GetPlayerName(name);
45 MissionGameplay.Cast(GetGame().GetMission()).m_Chat.Add(chat_params);
46 }
47 }
48
49 m_close_timer.Run(0.1, this, "Close");
50
51 GetUApi().GetInputByID(UAPersonView).Supress();
52
53 return true;
54 }
Param4< int, string, string, string > ChatMessageEventParams
channel, from, text, color config class
Definition gameplay.c:394

References GetGame(), GetUApi(), name, x, and y.

◆ OnChange() [2/3]

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

Definition at line 714 of file SceneEditorMenu.c.

715 {
716 super.OnChange(w, x, y, finished);
717
718 if (w == m_ClWgtEbxFilter)
719 {
721 return true;
722 }
723 else if (w == m_SlWgtEbxFilter)
724 {
726 return true;
727 }
728 else if (w == m_PrWgtPoxX && finished)
729 m_ModuleSceneManager.SelectedObjectSetPosX(m_PrWgtPoxX.GetText().ToFloat());
730 else if (w == m_PrWgtPoxY && finished)
731 m_ModuleSceneManager.SelectedObjectSetPosY(m_PrWgtPoxY.GetText().ToFloat());
732 else if (w == m_PrWgtPoxZ && finished)
733 m_ModuleSceneManager.SelectedObjectSetPosZ(m_PrWgtPoxZ.GetText().ToFloat());
734 else if (w == m_PrWgtDir && finished)
735 {
736 m_ModuleSceneManager.SelectedObjectSetRot(m_PrWgtDir.GetText().ToFloat());
737 return true;
738 }
739 else if (w == m_PrWgtDmg && finished)
740 {
741 m_ModuleSceneManager.SelectedObjectSetDamage(m_PrWgtDmg.GetText().ToFloat());
742 return true;
743 }
744 else if (w == m_QuantityEditBox)
745 {
747 return true;
748 }
749 else if (w == m_DamageEditBox)
750 {
751 m_ConfigDebugProfile.SetItemHealth(GetCurrentPresetName(), GetCurrentItemIndex(), m_DamageEditBox.GetText().ToFloat());
752 return true;
753 }
754
755 bool ret = ComponentsOnChange(w, x, y, finished);
756
757 return false;
758 }
bool ComponentsOnChange(Widget w, int x, int y, bool finished)

References ComponentsOnChange(), GetCurrentItemIndex(), GetCurrentPresetName(), m_ConfigDebugProfile, UpdateListClasses(), UpdateListObjects(), x, and y.

◆ OnChange() [3/3]

override bool UIScriptedMenu::OnChange ( Widget w,
int x,
int y,
bool finished )
inlineprotected

Definition at line 338 of file ScriptConsole.c.

339 {
340 super.OnChange(w, x, y, finished);
341
343 return true;
344
345 return false;
346 }
bool OnChange(Widget w, int x, int y, bool finished)

References ScriptConsoleTabBase::OnChange(), x, and y.

◆ OnChangeCharacter()

void UIScriptedMenu::OnChangeCharacter ( bool create_character = true)
inlineprotected

Definition at line 463 of file MainMenu.c.

464 {
466 {
467 int charID = m_ScenePC.GetIntroCharacter().GetCharacterID();
469 m_ScenePC.GetIntroCharacter().CreateNewCharacterById(charID);
470 m_PlayerName.SetText(m_ScenePC.GetIntroCharacter().GetCharacterNameById(charID));
471
472 Widget w = m_CustomizeCharacter.FindAnyWidget(m_CustomizeCharacter.GetName() + "_label");
473
474 if (w)
475 {
476 TextWidget text = TextWidget.Cast(w);
477
478 if (m_ScenePC.GetIntroCharacter().IsDefaultCharacter())
479 text.SetText("#layout_main_menu_customize_char");
480 else
481 text.SetText("#layout_main_menu_rename");
482 }
483 if (m_ScenePC.GetIntroCharacter().GetCharacterObj())
484 {
485 if (m_ScenePC.GetIntroCharacter().GetCharacterObj().IsMale())
486 m_ScenePC.GetIntroCharacter().SetCharacterGender(ECharGender.Male);
487 else
488 m_ScenePC.GetIntroCharacter().SetCharacterGender(ECharGender.Female);
489 }
490
491 //update character stats
492 m_Stats.UpdateStats();
493 }
494 }

References DayZIntroScene::GetIntroCharacter(), and m_Stats.

◆ OnChanged()

void UIScriptedMenu::OnChanged ( )
inlineprotected

Definition at line 270 of file OptionsMenu.c.

271 {
272 bool changed = IsAnyTabChanged();
273
274 if (GetGame().GetInput().IsEnabledMouseAndKeyboard())
275 {
276 if (changed)
277 {
278 m_Reset.ClearFlags(WidgetFlags.IGNOREPOINTER);
280 m_Apply.ClearFlags(WidgetFlags.IGNOREPOINTER);
282 }
283 else
284 {
285 m_Apply.SetFlags(WidgetFlags.IGNOREPOINTER);
287 m_Reset.SetFlags(WidgetFlags.IGNOREPOINTER);
289 }
290 }
291
293#ifdef PLATFORM_CONSOLE
296#endif
297
298 m_Tabber.AlignTabbers();
299 }

References ColorDisable(), ColorNormal(), GetGame(), GetInput(), IsAnyTabChanged(), UpdateControlsElements(), and UpdateControlsElementVisibility().

Referenced by Init().

◆ OnClick() [1/27]

override bool UIScriptedMenu::OnClick ( Widget w,
int x,
int y,
int button )
inlineprotected

Definition at line 34 of file BookMenu.c.

35 {
36 super.OnClick(w, x, y, button);
37
38 switch (w.GetUserID())
39 {
41 NextPrevPage(false);
42 return true;
44 NextPrevPage(true);
45 return true;
46 case IDC_CANCEL:
47 Close();
48 return true;
49 }
50
51 return false;
52 }
void NextPrevPage(bool next)
Definition BookMenu.c:54
const int IDC_BOOK_VIEWER_PREV
Definition constants.c:144
const int IDC_BOOK_VIEWER_NEXT
Definition constants.c:145

References Close(), IDC_BOOK_VIEWER_NEXT, IDC_BOOK_VIEWER_PREV, IDC_CANCEL, x, and y.

◆ OnClick() [2/27]

override bool UIScriptedMenu::OnClick ( Widget w,
int x,
int y,
int button )
inlineprotected

Definition at line 720 of file CameraToolsMenu.c.

721 {
722 if (button == MouseState.LEFT)
723 {
724 if (w == m_SaveKeyframe)
725 {
726 SaveKeyframe();
727 return true;
728 }
729 else if (w == m_DeleteKeyframe)
730 {
732 return true;
733 }
734 else if (w == m_ViewKeyframe)
735 {
736 ViewKeyframe();
737 return true;
738 }
739 else if (w == m_SaveEvent)
740 {
741 SaveEvent();
742 return true;
743 }
744 else if (w == m_DeleteEvent)
745 {
746 DeleteEvent();
747 return true;
748 }
749 else if (w == m_ViewEvent)
750 {
751 ViewEvent();
752 return true;
753 }
754 else if (w == m_AddKeyframe)
755 {
756 AddKeyframe();
757 return true;
758 }
759 else if (w == m_AddEvent)
760 {
761 AddEvent(0);
762 return true;
763 }
764 else if (w == m_Play)
765 {
766 Play();
767 return true;
768 }
769 else if (w == m_Stop)
770 {
771 Stop();
772 return true;
773 }
774 else if (w == m_Save)
775 {
776 SaveData();
777 return true;
778 }
779 else if (w == m_Load)
780 {
781 LoadData();
782 return true;
783 }
784 else if (w == m_AddActor)
785 AddActor(m_ActorTypeWidget.GetText());
786 else if (w == m_AddItem)
787 AddItem(m_ActorIdWidget.GetText(), m_ActorItemTypeWidget.GetText());
788 else if (w == m_AddHandsItem)
790 else if (w == m_CopyButton)
791 {
792 string clipboardIn = FreeDebugCamera.GetInstance().GetPosition().ToString(false) + "|" + FreeDebugCamera.GetInstance().GetOrientation().ToString(false);
793 GetGame().CopyToClipboard(clipboardIn);
794
795 //Print(clipboardIn);
796 }
797 else if (w == m_ApplyButton)
798 {
799 string camText = m_CameraEditbox.GetText();
800 if (camText && camText.IndexOf("|") != -1)
801 {
802 int seperatorIndex = camText.IndexOf("|");
803 int length = camText.Length();
804
805 string posStr = camText.Substring(0, seperatorIndex);
806 string oriStr = camText.Substring(seperatorIndex + 1, length - seperatorIndex - 1);
807 FreeDebugCamera.GetInstance().SetPosition(posStr.ToVector());
808 FreeDebugCamera.GetInstance().SetOrientation(oriStr.ToVector());
809 }
810 }
811 }
812 return false;
813 }
void AddItem(string id, string type)
void AddActor(string actor_type)
void AddHandsItem(string id, string type)
void AddEvent(int actor_index)
MouseState
Definition EnSystem.c:311

References GetGame(), Play(), and Stop().

◆ OnClick() [3/27]

override bool UIScriptedMenu::OnClick ( Widget w,
int x,
int y,
int button )
inlineprotected

Definition at line 440 of file ControlsXboxNew.c.

441 {
442 if (button == MouseState.LEFT)
443 {
444 if (w == m_Back)
445 {
446 Back();
447 return true;
448 }
449 }
450 return false;
451 }

References Back(), and m_Back.

◆ OnClick() [4/27]

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

Definition at line 18 of file EarlyAccessMenu.c.

19 {
20 super.OnClick(w, x, y, button);
21
22 if (w.GetUserID() == IDC_OK)
23 {
24 Close();
25 return true;
26 }
27
28 return false;
29 }

References Close(), IDC_OK, x, and y.

◆ OnClick() [5/27]

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

Definition at line 44 of file HelpScreen.c.

45 {
46 super.OnClick(w, x, y, button);
47
49 {
50 Close();
51 return true;
52 }
53
54 return false;
55 }

References Close(), x, and y.

◆ OnClick() [6/27]

override bool UIScriptedMenu::OnClick ( Widget w,
int x,
int y,
int button )
inlineprotected

Definition at line 153 of file InGameMenu.c.

154 {
155 super.OnClick(w, x, y, button);
156
157 if (w == m_ContinueButton)
158 {
160 return true;
161 }
162 else if (w == m_RestartButton)
163 {
164#ifdef DEVELOPER
165 if (GetGame().IsMultiplayer() || (GetGame().GetPlayer() && GetGame().GetPlayer().IsUnconscious()))
167 else
168 {
169 PluginDeveloper plugin = PluginDeveloper.GetInstance();
170 if (plugin)
171 plugin.ToggleMissionLoader();
172 }
173#else
175#endif
176 return true;
177 }
178 else if (w == m_RespawnButton)
179 {
181 return true;
182 }
183 else if (w == m_OptionsButton)
184 {
186 return true;
187 }
188 else if (w == m_ExitButton)
189 {
190 OnClick_Exit();
191 return true;
192 }
193 else if (w == m_CopyInfoButton)
194 GetGame().CopyToClipboard(m_ServerInfoText);
195
196 return false;
197 }
void OnClick_Restart()
Definition InGameMenu.c:204
void OnClick_Exit()
Definition InGameMenu.c:232
void OnClick_Continue()
Definition InGameMenu.c:199
string m_ServerInfoText
Definition InGameMenu.c:3
void OnClick_Respawn()
Definition InGameMenu.c:212
void OnClick_Options()
Definition InGameMenu.c:227

References GetGame(), GetPlayer(), x, and y.

◆ OnClick() [7/27]

override bool UIScriptedMenu::OnClick ( Widget w,
int x,
int y,
int button )
inlineprotected

Definition at line 202 of file InGameMenuXbox.c.

203 {
204 super.OnClick(w, x, y, button);
205
206 switch (w.GetUserID())
207 {
209 {
210 GetGame().GetCallQueue(CALL_CATEGORY_GUI).Call(GetGame().GetMission().Continue);
211 return true;
212 }
213 case IDC_MAIN_OPTIONS:
214 {
215 EnterScriptedMenu(MENU_OPTIONS);
216 return true;
217 }
219 {
220 EnterScriptedMenu(MENU_XBOX_CONTROLS);
221 return true;
222 }
223 case IDC_MAIN_QUIT:
224 {
225 GetGame().GetUIManager().ShowDialog("#main_menu_exit", "#main_menu_exit_desc", IDC_INT_EXIT, DBT_YESNO, DBB_YES, DMT_QUESTION, NULL);
226 return true;
227 }
228 case IDC_INT_RETRY:
229 {
230 if (!GetGame().IsMultiplayer())
231 GetGame().GetUIManager().ShowDialog("#main_menu_restart", "Are you sure you want to restart?", IDC_INT_RETRY, DBT_YESNO, DBB_YES, DMT_QUESTION, this);
232 else
233 GetGame().GetUIManager().ShowDialog("#main_menu_respawn", "#main_menu_respawn_question", IDC_INT_RETRY, DBT_YESNO, DBB_YES, DMT_QUESTION, this);
234 return true;
235 }
236 case IDC_MAIN_ONLINE:
237 {
238 m_OnlineMenu.Show(true);
239 m_SelectAvailable = false;
240
242 m_ServerInfoPanel.FocusFirst();
243 return true;
244 }
245 case 117:
246 {
247 EnterScriptedMenu(MENU_TUTORIAL);
248 return true;
249 }
250 case IDC_MULTI_INVITE:
251 {
253 return true;
254 }
255 }
256
257 if (w == layoutRoot.FindAnyWidget("backbtn"))
258 CloseOnline();
259 else if (w == m_RestartDeadButton)
260 {
261 if (GetGame().GetMission().GetRespawnModeClient() == GameConstants.RESPAWN_MODE_CUSTOM)
262 GetGame().GetCallQueue(CALL_CATEGORY_GUI).Call(GetGame().GetUIManager().EnterScriptedMenu, MENU_RESPAWN_DIALOGUE, this);
263 else
264 GameRetry(true);
265 return true;
266 }
267
268 return false;
269 }
static void ShowInviteScreen()
const int BUTTON_XBOX_CONTROLS
const int RESPAWN_MODE_CUSTOM
Definition constants.c:901
const int MENU_TUTORIAL
Definition constants.c:194
const int MENU_XBOX_CONTROLS
Definition constants.c:187
const int MENU_RESPAWN_DIALOGUE
Definition constants.c:199
const int MENU_OPTIONS
Definition constants.c:173
void Continue()
Timer continue when it was paused.
Definition tools.c:235
const int IDC_INT_EXIT
Definition constants.c:150
const int IDC_MAIN_OPTIONS
Definition constants.c:134
const int IDC_MULTI_INVITE
Definition constants.c:142
const int IDC_MAIN_CONTINUE
Definition constants.c:137
const int IDC_MAIN_ONLINE
Definition constants.c:140

References BUTTON_XBOX_CONTROLS, CALL_CATEGORY_GUI, CloseOnline(), Continue(), GameRetry(), GetGame(), IDC_INT_EXIT, IDC_INT_RETRY, IDC_MAIN_CONTINUE, IDC_MAIN_ONLINE, IDC_MAIN_OPTIONS, IDC_MAIN_QUIT, IDC_MULTI_INVITE, MENU_OPTIONS, MENU_RESPAWN_DIALOGUE, MENU_TUTORIAL, MENU_XBOX_CONTROLS, GameConstants::RESPAWN_MODE_CUSTOM, OnlineServices::ShowInviteScreen(), UpdateControlsElements(), x, and y.

◆ OnClick() [8/27]

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

Definition at line 38 of file InspectMenuNew.c.

39 {
40 super.OnClick(w, x, y, button);
41
42 switch (w.GetUserID())
43 {
44 case IDC_CANCEL:
45 Close();
46 return true;
47 }
48
49 return false;
50 }

References Close(), IDC_CANCEL, x, and y.

◆ OnClick() [9/27]

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

Definition at line 85 of file InviteMenu.c.

86 {
87 super.OnClick(w, x, y, button);
88
89 if (w.GetUserID() == IDC_CANCEL)
90 {
91 Cancel();
92 return true;
93 }
94
95 return false;
96 }

References Cancel(), IDC_CANCEL, x, and y.

◆ OnClick() [10/27]

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

Definition at line 77 of file LogoutMenu.c.

78 {
79 super.OnClick(w, x, y, button);
80
81 if (w == m_bLogoutNow)
82 {
83 GetGame().GetMission().AbortMission();
84
85 return true;
86 }
87 else if (w == m_bCancel)
88 {
89 Hide();
90 Cancel();
91 return true;
92 }
93
94 return false;
95 }

References Cancel(), GetGame(), Hide(), x, and y.

◆ OnClick() [11/27]

override bool UIScriptedMenu::OnClick ( Widget w,
int x,
int y,
int button )
inlineprotected

Definition at line 181 of file MapMenu.c.

182 {
183 super.OnClick(w, x, y, button);
184
185 switch (w.GetUserID())
186 {
187 case IDC_CANCEL:
188 CloseMapMenu();
189 return true;
190 }
191
192 return false;
193 }
void CloseMapMenu()
Definition MapMenu.c:322

References IDC_CANCEL, x, and y.

◆ OnClick() [12/27]

override bool UIScriptedMenu::OnClick ( Widget w,
int x,
int y,
int button )
inlineprotected

Definition at line 289 of file CharacterCreationMenu.c.

290 {
291 if (w == m_Apply)
292 {
293 Apply();
294 return true;
295 }
296 else if (w == m_Save)
297 {
298 Save();
299 GetGame().GetUIManager().Back();
300 return true;
301 }
302 else if (w == m_RandomizeCharacter)
303 {
305 return true;
306 }
307 else if (w == m_BackButton)
308 {
309 Back();
310 return true;
311 }
312 return false;
313 }
void Apply()
renames character
void Save()
saves default character

References Apply(), Back(), GetGame(), RandomizeCharacter(), and Save().

◆ OnClick() [13/27]

override bool UIScriptedMenu::OnClick ( Widget w,
int x,
int y,
int button )
inlineprotected

Definition at line 177 of file KeybindingsMenu.c.

178 {
179 if (button == MouseState.LEFT)
180 {
181 if (w == m_Apply)
182 {
183 Apply();
184 return true;
185 }
186 else if (w == m_Back)
187 {
188 Back();
189 return true;
190 }
191 else if (w == m_Undo)
192 {
193 Reset();
194 return true;
195 }
196 else if (w == m_Defaults)
197 {
199 return true;
200 }
201 else if (w == m_HardReset)
202 {
203 HardReset();
204 return true;
205 }
206 }
207 return false;
208 }
void Reset()
Undoes the unsaved changes and reverts to previous state. Does not reset to defaults!

References Back(), m_Back, and Reset().

◆ OnClick() [14/27]

override bool UIScriptedMenu::OnClick ( Widget w,
int x,
int y,
int button )
inlineprotected

Definition at line 222 of file MainMenu.c.

223 {
224 if (button == MouseState.LEFT)
225 {
226 if (w == m_Play)
227 {
229 Play();
230 return true;
231 }
232 else if (w == m_ChooseServer)
233 {
236 return true;
237 }
238 else if (w == m_CustomizeCharacter)
239 {
241 return true;
242 }
243 else if (w == m_TutorialButton)
244 {
246 return true;
247 }
248 else if (w == m_MessageButton)
249 {
250 OpenCredits();
251 return true;
252 }
253 else if (w == m_SettingsButton)
254 {
255 OpenSettings();
256 return true;
257 }
258 else if (w == m_Exit)
259 {
260 Exit();
261 return true;
262 }
263 else if (w == m_PrevCharacter)
264 {
266 return true;
267 }
268 else if (w == m_NextCharacter)
269 {
271 return true;
272 }
273 else if (w == m_PlayVideo)
274 {
276 PlayVideo();
277 return true;
278 }
279 else if (w == m_Tutorials)
280 {
283 return true;
284 }
285 }
286 return false;
287 }
void OpenSettings()
Definition MainMenu.c:506
void OpenTutorials()
Definition MainMenu.c:516
void PlayVideo()
Definition MainMenu.c:511
void OpenMenuCustomizeCharacter()
Definition MainMenu.c:432
void OpenCredits()
Definition MainMenu.c:521
void PreviousCharacter()
Definition MainMenu.c:450
void NextCharacter()
Definition MainMenu.c:437

References Exit(), and Play().

◆ OnClick() [15/27]

override bool UIScriptedMenu::OnClick ( Widget w,
int x,
int y,
int button )
inlineprotected

Definition at line 175 of file MainMenuConsoles.c.

176 {
177 if (w == m_Play)
178 {
181 return true;
182 }
183 else if (w == m_Options)
184 {
187 return true;
188 }
189 else if (w == m_PlayVideo)
190 {
191 m_Mission.StopMusic();
194 return true;
195 }
196 else if (w == m_Tutorials)
197 {
200 return true;
201 }
202 else if (w == m_Controls)
203 {
206 return true;
207 }
208 else if (w == m_CustomizeCharacter)
209 {
212 return true;
213 }
214 else if (w == m_ChangeAccount)
215 {
218 return true;
219 }
220 else if (w == m_MessageButton)
221 {
222 OpenCredits();
223 return true;
224 }
225 return false;
226 }

References m_Controls, and m_Mission.

◆ OnClick() [16/27]

override bool UIScriptedMenu::OnClick ( Widget w,
int x,
int y,
int button )
inlineprotected

Definition at line 355 of file TutorialsMenu.c.

356 {
357 if (button == MouseState.LEFT)
358 {
359 if (w == m_Back)
360 {
361 Back();
362 return true;
363 }
364 }
365 return false;
366 }

References Back(), and m_Back.

◆ OnClick() [17/27]

override bool UIScriptedMenu::OnClick ( Widget w,
int x,
int y,
int button )
inlineprotected

Definition at line 115 of file OptionsMenu.c.

116 {
117 if (button == MouseState.LEFT)
118 {
119 switch (w)
120 {
121 case m_Apply:
122 {
123 Apply();
124 return true;
125 }
126 case m_Back:
127 {
128 Back();
129 return true;
130 }
131 case m_Reset:
132 {
134 return true;
135 }
136 case m_Defaults:
137 {
138 //SetToDefaults();
140 return true;
141 }
142 }
143 }
144 return false;
145 }
void PerformSetToDefaults()
deprecated, resets all (as before ~1.20)

References Apply(), Back(), m_Apply, m_Back, m_Defaults, m_Reset, PerformSetToDefaults(), and ResetCurrentTab().

◆ OnClick() [18/27]

override bool UIScriptedMenu::OnClick ( Widget w,
int x,
int y,
int button )
inlineprotected

Definition at line 143 of file ServerBrowserMenuNew.c.

144 {
145 if (button == MouseState.LEFT)
146 {
147 if (w == m_Play)
148 {
149 Play();
150 return true;
151 }
152 else if (w == m_Back)
153 {
154 Back();
155 return true;
156 }
157 else if (w == m_CustomizeCharacter)
158 {
160 return true;
161 }
162 }
163 return false;
164 }

References Back(), m_Back, and Play().

◆ OnClick() [19/27]

override bool UIScriptedMenu::OnClick ( Widget w,
int x,
int y,
int button )
inlineprotected

Definition at line 88 of file NoteMenu.c.

89 {
90 super.OnClick(w, x, y, button);
91
92 /* string txt;
93 m_edit.GetText(txt);
94 Print(m_edit.GetLinesCount());
95 Print(txt);
96 Print(txt.Length());*/
97
98 switch (w.GetUserID())
99 {
100 case IDC_CANCEL:
101 Close();
102 return true;
103 case IDC_OK:
104 if (m_Paper && m_Pen && m_IsWriting)
105 {
106 string edit_text;
107 m_edit.GetText(edit_text);
108 edit_text = MiscGameplayFunctions.SanitizeString(edit_text);
109 // Print("edit_text: " + edit_text);
111 m_Paper.RPCSingleParam(ERPCs.RPC_WRITE_NOTE_CLIENT, text, true);
112 }
113 Close();
114 return true;
115 }
116
117 return false;
118 }
ERPCs
Definition ERPCs.c:2

References Close(), IDC_CANCEL, IDC_OK, x, and y.

◆ OnClick() [20/27]

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

Definition at line 32 of file PresetsMenu.c.

33 {
34 super.OnClick(w, x, y, button);
35
36 switch (w.GetUserID())
37 {
38 case IDC_CANCEL:
39 Close();
40
41 return true;
42
43 case IDC_OK:
44 int index = m_schemes_list.GetSelectedRow();
45 if (index != -1)
46 {
47 GetGame().GetInput().SetProfile(index);
48 GetGame().GetMission().GetOnInputPresetChanged().Invoke();
49 Close();
50 }
51
52 return true;
53 }
54
55 return false;
56 }

References Close(), GetGame(), IDC_CANCEL, IDC_OK, x, and y.

◆ OnClick() [21/27]

override bool UIScriptedMenu::OnClick ( Widget w,
int x,
int y,
int button )
inlineprotected

Definition at line 40 of file RespawnDialogue.c.

41 {
42 super.OnClick(w, x, y, button);
43
44 switch (w.GetUserID())
45 {
46 case IDC_CANCEL:
47 Close();
48 return true;
49
51 return RequestRespawn(false);
52
54 return RequestRespawn(true);
55 }
56
57 return false;
58 }
bool RequestRespawn(bool random)

References Close(), ID_RESPAWN_CUSTOM, ID_RESPAWN_RANDOM, IDC_CANCEL, RequestRespawn(), x, and y.

◆ OnClick() [22/27]

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

Definition at line 491 of file SceneEditorMenu.c.

492 {
493 super.OnClick(w, x, y, button);
494
495 int row_index;
496
497 if (w == m_WgtBtnSceneManager)
498 {
500
501 return true;
502 }
503 else if (w == m_ConfigsButton)
504 {
506 return true;
507 }
508 else if (w == m_PresetsTextListbox)
509 {
513 return true;
514 }
515 else if (w == m_PresetSetDefaultButton)
516 {
517 if (GetCurrentPresetName() != "")
519 return true;
520 }
521 else if (w == m_PresetNewButton)
522 {
524 RefreshLists();
525 return true;
526 }
527 else if (w == m_PresetRenameButton)
528 {
530 return true;
531 }
532 else if (w == m_CopyToClipboardButton)
533 {
534 GetGame().CopyToClipboard(m_SelectedObject);
535 return true;
536 }
537 else if (w == m_PresetDeleteButton)
538 {
539 if (GetCurrentPresetName() != "")
540 DeletePreset();
541 return true;
542 }
544 {
546
547 float distance = m_SpawnDistanceEditBox.GetText().ToFloat();
548 float health = -1;
549 int quantity = -1;
550 if (GetCurrentItemIndex() != -1)
551 {
554 }
555
556 switch (w)
557 {
559 {
561 {
562 // SpawnPresetOnGround
563 ;//SetPreset( true, m_SelectedObject, spawn_type, distance );
564 }
565 else
566 m_Developer.SpawnEntityOnCursorDir(PlayerBase.Cast(GetGame().GetPlayer()), m_SelectedObject, quantity, distance, health);
567 break;
568 }
569
571 {
572 Man player = GetGame().GetPlayer();
573
574 vector rayStart = GetGame().GetCurrentCameraPosition();
575 vector rayEnd = rayStart + GetGame().GetCurrentCameraDirection() * 1.5;
581
583 if (hitObjects.Count())
584 target = hitObjects.Get(0);
585
586 if (target != NULL && target.IsInherited(EntityAI))
587 {
589 m_Developer.SpawnEntityAsAttachment(PlayerBase.Cast(player), att_parent, m_SelectedObject, health, quantity);
590 }
591 else
592 m_Developer.SpawnEntityAsAttachment(PlayerBase.Cast(player), player, m_SelectedObject, health, quantity);
593 break;
594 }
595
597 {
598 m_Developer.SpawnEntityInPlayerInventory(PlayerBase.Cast(GetGame().GetPlayer()), m_SelectedObject, health, quantity);
599 break;
600 }
601 }
602 return true;
603 }
604 else if (w == m_PresetItemsTextListbox)
605 {
608
609 if (GetCurrentItemIndex() != -1)
610 {
613
614 m_DamageEditBox.SetText(item_health.ToString());
615 m_QuantityEditBox.SetText(item_quantity.ToString());
616 }
617
618 return true;
619 }
620 else if (w == m_UpButton)
621 {
622 ItemMoveUp();
623 return true;
624 }
625 else if (w == m_DownButton)
626 {
627 ItemMoveDown();
628 return true;
629 }
630 else if (w == m_WgtBtnLeftPresets)
631 {
632 if (m_WgtPnlWrapper.IsVisible())
633 {
634 m_WgtPnlWrapper.Show(false);
635 m_WgtBtnLeftPresets.SetText("Presets >>");
636 }
637 else
638 {
639 m_WgtPnlWrapper.Show(true);
640 m_WgtBtnLeftPresets.SetText("Presets <<");
641 }
642
643 return true;
644 }
645 else if (w == m_PresetAddItemtButton)
646 {
648 return true;
649 }
650 else if (w == m_PresetRemoveItemButton)
651 {
653 return true;
654 }
655 else if (w == m_WgtBtnPositionManager)
656 {
657 m_PopupScriptPositionManager = UIPopupScriptPositionManager.Cast(PopupOpen(POPUP_ID_POSITION_MANAGER, Param.Cast(NULL)));
658 return true;
659 }
660 else if (w == m_WgtBtnSceneSettings)
661 {
663 return true;
664 }
665 else if (w == m_SlWgtSelect)
666 {
667 row_index = m_SlWgtLbxObjectsList.GetSelectedRow();
668
669 if (m_SlObjectsList.Count() > 0 && m_SlObjectsList.Count() > row_index)
670 m_ModuleSceneManager.SelectObject(m_SlObjectsList.GetElement(row_index));
671
672 return true;
673 }
674 else if (w == m_SlWgtFocus)
675 {
676 m_ModuleSceneManager.SelectedObjectFocus();
677
678 return true;
679 }
680 else if (w == m_WgtBtnSceneSave)
681 {
682 m_ModuleSceneManager.SceneSave();
683
684 return true;
685 }
686 else if (w == m_WgtBtnEditorSettings)
687 {
689
690 return true;
691 }
692 else if (w == m_WgtBtnEditInitScript)
693 {
694 Param2<int, SceneObject> param = new Param2<int, SceneObject>(m_ModuleSceneManager.GetSelectedSceneObjectIndex(), m_ModuleSceneManager.GetSelectedSceneObject());
696
697 return true;
698 }
699 else if (w == m_WgtBtnDeleteRuler)
700 {
701 m_ModuleSceneManager.RulerDelete();
702
703 return true;
704 }
705
706 bool ret = ComponentsOnClick(w, x, y, button);
707
708 return ret;
709 }
Base Param Class with no parameters. Used as general purpose parameter overloaded with Param1 to Para...
Definition param.c:12
void SetDefaultPreset(int preset_index)
UIPopupScript PopupOpen(int popup_id, Param param)
void SaveProfileSpawnDistance()
UIPopupScriptPositionManager m_PopupScriptPositionManager
ref map< int, SceneObject > m_SlObjectsList
void RemoveItemFromPreset()
bool ComponentsOnClick(Widget w, int x, int y, int button)
string GetCurrentItemName()

References AddItemToPreset(), ComponentsOnClick(), DeletePreset(), GetCurrentItemIndex(), GetCurrentItemName(), GetCurrentPresetIndex(), GetCurrentPresetName(), GetGame(), GetPlayer(), ItemMoveDown(), ItemMoveUp(), m_ConfigDebugProfile, m_SelectedObject, m_SpawnAsAttachmentButton, m_SpawnInInventoryButton, m_SpawnOnGroundButton, PopupOpen(), DayZPhysics::RaycastRV(), RefreshLists(), RemoveItemFromPreset(), RenderPresetItems(), SaveProfileSpawnDistance(), SetDefaultPreset(), x, and y.

◆ OnClick() [23/27]

override bool UIScriptedMenu::OnClick ( Widget w,
int x,
int y,
int button )
inlineprotected

Definition at line 272 of file ScriptConsole.c.

273 {
274 super.OnClick(w, x, y, button);
275
276 if (w == m_CloseConsoleButton)
277 {
278 Close();
279 GetGame().GetMission().EnableAllInputs(true);
280 return true;
281 }
282 else if (w == m_HintOkButton)
283 {
286 m_EditTooltipRoot.Show(false);
287 SaveData();
288 }
289 else if (w == m_HintCancelButton)
290 {
292 m_EditTooltipRoot.Show(false);
293
294 }
295 else if (w == m_HintClearButton)
296 m_HintInputText.SetText("");
297
298
300
302 return true;
303 return false;
304 }
bool OnClick(Widget w, int x, int y, int button)
void SetHintText(string text, Widget w)
void SelectTabByButton(Widget button)

References Close(), GetGame(), HoverInterrupt(), m_CurrentHoverWidget, ScriptConsoleTabBase::OnClick(), SaveData(), SelectTabByButton(), SetHintText(), x, and y.

◆ OnClick() [24/27]

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

Definition at line 30 of file ScriptConsoleAddPosition.c.

31 {
32 super.OnClick(w, x, y, button);
33
34 if (w.GetUserID() == IDC_OK)
35 {
36 string name = m_EditboxName.GetText();
37 ScriptConsole console = ScriptConsole.Cast(GetGame().GetUIManager().FindMenu(MENU_SCRIPTCONSOLE));
39 if (tab)
40 {
41 if (!tab.IsLocationNameAvailable(name) || name == "" || m_EditboxPos.GetText() == "")
42 return false;
43 m_ConfigDebugProfile.CustomLocationsAdd(name, m_EditboxPos.GetText().BeautifiedToVector());
44 Close();
45 tab.RefreshLocations();
46 return true;
47 }
48 }
49 else if (w.GetUserID() == IDC_CANCEL)
50 {
51 Close();
52 return true;
53 }
54 else if (w == m_ClearButton)
55 {
56 m_EditboxPos.SetText("");
57 return true;
58 }
59
60 return false;
61 }

References Close(), GetGame(), IDC_CANCEL, IDC_OK, m_ConfigDebugProfile, MENU_SCRIPTCONSOLE, name, x, and y.

◆ OnClick() [25/27]

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

Definition at line 22 of file ScriptConsoleNewPresetDialog.c.

23 {
24 super.OnClick(w, x, y, button);
25
26 if (w.GetUserID() == IDC_OK)
27 {
28 UIScriptedMenu ui_menu = GetGame().GetUIManager().FindMenu(MENU_SCRIPTCONSOLE);
29 if (ui_menu != NULL && m_Editbox.GetText())
30 {
32 //scripted_console.NewPreset( m_Editbox.GetText());
33
35 if (tab)
36 tab.NewPreset(m_Editbox.GetText());
37 }
38
39 Close();
40 return true;
41 }
42 else if (w.GetUserID() == IDC_CANCEL)
43 {
44 Close();
45 return true;
46 }
47
48 return false;
49 }

References Close(), GetGame(), IDC_CANCEL, IDC_OK, MENU_SCRIPTCONSOLE, x, and y.

◆ OnClick() [26/27]

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

Definition at line 37 of file ScriptConsoleRenamePresetDialog.c.

38 {
39 super.OnClick(w, x, y, button);
40
41 if (w.GetUserID() == IDC_OK)
42 {
43 UIScriptedMenu ui_menu = GetGame().GetUIManager().FindMenu(MENU_SCRIPTCONSOLE);
44 if (ui_menu != NULL)
45 {
48 if (tab)
49 {
50 tab.RenamePreset(m_Editbox.GetText());
51 Close();
52 return true;
53 }
54 }
55 }
56 else if (w.GetUserID() == IDC_CANCEL)
57 {
58 Close();
59 return true;
60 }
61
62 return false;
63 }

References Close(), GetGame(), IDC_CANCEL, IDC_OK, MENU_SCRIPTCONSOLE, x, and y.

◆ OnClick() [27/27]

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

Definition at line 25 of file ScriptConsoleUniversalInfoDialog.c.

26 {
27 super.OnClick(w, x, y, button);
28
29 if (w.GetUserID() == IDC_OK)
30 {
31 UIScriptedMenu consoleMenu = GetGame().GetUIManager().FindMenu(MENU_SCRIPTCONSOLE);
32 if (consoleMenu != null)
33 {
36 if (tab)
37 {
38 Close();
39 return true;
40 }
41 }
42 }
43
44 return false;
45 }

References Close(), GetGame(), IDC_OK, MENU_SCRIPTCONSOLE, x, and y.

◆ OnClick_Continue()

void UIScriptedMenu::OnClick_Continue ( )
inlineprotected

Definition at line 199 of file InGameMenu.c.

200 {
201 GetGame().GetCallQueue(CALL_CATEGORY_GUI).Call(GetGame().GetMission().Continue);
202 }

References CALL_CATEGORY_GUI, Continue(), and GetGame().

◆ OnClick_Exit()

void UIScriptedMenu::OnClick_Exit ( )
inlineprotected

Definition at line 232 of file InGameMenu.c.

233 {
234 GetGame().LogoutRequestTime();
235 GetGame().GetCallQueue(CALL_CATEGORY_GUI).Call(GetGame().GetMission().CreateLogoutMenu, this);
236 }

References CALL_CATEGORY_GUI, and GetGame().

◆ OnClick_Options()

void UIScriptedMenu::OnClick_Options ( )
inlineprotected

Definition at line 227 of file InGameMenu.c.

228 {
229 EnterScriptedMenu(MENU_OPTIONS);
230 }

References MENU_OPTIONS.

◆ OnClick_Respawn()

void UIScriptedMenu::OnClick_Respawn ( )
inlineprotected

Definition at line 212 of file InGameMenu.c.

213 {
214 Man player = GetGame().GetPlayer();
215
216 if (player && player.IsUnconscious() && !player.IsDamageDestroyed())
217 GetGame().GetUIManager().ShowDialog("#main_menu_respawn", "#main_menu_respawn_question", IDC_INT_RETRY, DBT_YESNO, DBB_YES, DMT_QUESTION, this);
218 else
219 {
220 if (GetGame().GetMission().GetRespawnModeClient() == GameConstants.RESPAWN_MODE_CUSTOM)
221 GetGame().GetCallQueue(CALL_CATEGORY_GUI).Call(GetGame().GetUIManager().EnterScriptedMenu, MENU_RESPAWN_DIALOGUE, this);
222 else
223 GameRespawn(true);
224 }
225 }

References CALL_CATEGORY_GUI, GetGame(), IDC_INT_RETRY, MENU_RESPAWN_DIALOGUE, and GameConstants::RESPAWN_MODE_CUSTOM.

◆ OnClick_Restart()

void UIScriptedMenu::OnClick_Restart ( )
inlineprotected

Definition at line 204 of file InGameMenu.c.

205 {
206 if (!GetGame().IsMultiplayer())
207 GetGame().GetCallQueue(CALL_CATEGORY_GUI).Call(GetGame().RestartMission);
208 else
210 }

References CALL_CATEGORY_GUI, and GetGame().

◆ OnController() [1/2]

override bool UIScriptedMenu::OnController ( Widget w,
int control,
int value )
inlineprotected

Definition at line 230 of file GesturesMenu.c.

231 {
232 super.OnController(w, control, value);
233
234 RadialMenu.GetInstance().SetControlType(RadialMenuControlType.CONTROLLER);
235
236 return false;
237 }
RadialMenuControlType
Definition RadialMenu.c:2

References RadialMenu().

◆ OnController() [2/2]

override bool UIScriptedMenu::OnController ( Widget w,
int control,
int value )
inlineprotected

Definition at line 226 of file RadialQuickbarMenu.c.

227 {
228 super.OnController(w, control, value);
229
230 RadialMenu.GetInstance().SetControlType(RadialMenuControlType.CONTROLLER);
231
232 return false;
233 }

References RadialMenu().

◆ OnControllerDeselect() [1/2]

void UIScriptedMenu::OnControllerDeselect ( Widget w)
inlineprotected

Definition at line 506 of file GesturesMenu.c.

507 {
509 }
void UnmarkSelected(Widget w)

◆ OnControllerDeselect() [2/2]

void UIScriptedMenu::OnControllerDeselect ( Widget w)
inlineprotected

Definition at line 551 of file RadialQuickbarMenu.c.

552 {
554 }

◆ OnControllerExecute()

void UIScriptedMenu::OnControllerExecute ( Widget w)
inlineprotected

Definition at line 511 of file GesturesMenu.c.

512 {
513 }

◆ OnControllerPressBack() [1/2]

void UIScriptedMenu::OnControllerPressBack ( Widget w)
inlineprotected

Definition at line 523 of file GesturesMenu.c.

524 {
525 BackOneLevel();
526 }

◆ OnControllerPressBack() [2/2]

void UIScriptedMenu::OnControllerPressBack ( Widget w)
inlineprotected

Definition at line 561 of file RadialQuickbarMenu.c.

562 {
563 //SecondaryAction( w );
564 BackOneLevel();
565 }

◆ OnControllerPressSelect() [1/2]

void UIScriptedMenu::OnControllerPressSelect ( Widget w)
inlineprotected

Definition at line 515 of file GesturesMenu.c.

516 {
517 if (instance.m_IsCategorySelected)
519 else
521 }
void ExecuteSelectedCategory(Widget w)
void ExecuteSelectedItem()

◆ OnControllerPressSelect() [2/2]

void UIScriptedMenu::OnControllerPressSelect ( Widget w)
inlineprotected

Definition at line 556 of file RadialQuickbarMenu.c.

557 {
559 }
void PrimaryAction(Widget w)

◆ OnControllerSelect() [1/2]

void UIScriptedMenu::OnControllerSelect ( Widget w)
inlineprotected

Definition at line 501 of file GesturesMenu.c.

502 {
504 }

◆ OnControllerSelect() [2/2]

void UIScriptedMenu::OnControllerSelect ( Widget w)
inlineprotected

Definition at line 546 of file RadialQuickbarMenu.c.

547 {
549 }

◆ OnControlsChanged() [1/2]

void UIScriptedMenu::OnControlsChanged ( RadialMenuControlType type)
inlineprotected

Definition at line 466 of file GesturesMenu.c.

467 {
468 }

◆ OnControlsChanged() [2/2]

void UIScriptedMenu::OnControlsChanged ( RadialMenuControlType type)
inlineprotected

Definition at line 514 of file RadialQuickbarMenu.c.

515 {
516 }

◆ OnDLCChange()

void UIScriptedMenu::OnDLCChange ( EDLCId dlcId)
inlineprotected

Definition at line 88 of file MainMenuConsoles.c.

89 {
91 LoadMods();
92 }

◆ OnDoubleClick() [1/2]

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

Definition at line 461 of file SceneEditorMenu.c.

462 {
464 {
466
467 //float distance = m_SpawnDistanceEditBox.GetText().ToFloat();
469 {
471 return true;
472 }
473 else
474 {
475 float health = -1;
476 int quantity = -1;
477 if (GetCurrentItemIndex() != -1)
478 {
481 }
482 m_Developer.SpawnEntityInPlayerInventory(PlayerBase.Cast(GetGame().GetPlayer()), m_SelectedObject, health, quantity);
483 return true;
484 }
485 }
486 return false;
487 }
void SetPreset(bool clear_inventory, string preset_name)
spawn preset items into inventory

References GetCurrentItemIndex(), GetCurrentPresetName(), GetGame(), GetPlayer(), m_ConfigDebugProfile, m_SelectedObject, SaveProfileSpawnDistance(), and SetPreset().

◆ OnDoubleClick() [2/2]

override bool UIScriptedMenu::OnDoubleClick ( Widget w,
int x,
int y,
int button )
inlineprotected

Definition at line 306 of file ScriptConsole.c.

307 {
308 super.OnDoubleClick(w, x, y, button);
309
311 return true;
312
313 return false;
314 }
bool OnDoubleClick(Widget w, int x, int y, int button)

References ScriptConsoleTabBase::OnDoubleClick(), x, and y.

◆ OnFocus() [1/11]

override bool UIScriptedMenu::OnFocus ( Widget w,
int x,
int y )
inlineprotected

Definition at line 828 of file CameraToolsMenu.c.

829 {
830 if (IsFocusable(w))
831 {
832 ColorRed(w);
833 return true;
834 }
835 return false;
836 }
bool IsFocusable(Widget w)
void ColorRed(Widget w)

References IsFocusable().

◆ OnFocus() [2/11]

override bool UIScriptedMenu::OnFocus ( Widget w,
int x,
int y )
inlineprotected

Definition at line 473 of file ControlsXboxNew.c.

474 {
475 if (IsFocusable(w))
476 {
478 return true;
479 }
480 return false;
481 }
void ColorHighlight(Widget w)

References ColorHighlight(), and IsFocusable().

◆ OnFocus() [3/11]

override bool UIScriptedMenu::OnFocus ( Widget w,
int x,
int y )
inlineprotected

Definition at line 524 of file InGameMenuXbox.c.

525 {
526 if (IsFocusable(w))
527 {
529 return true;
530 }
531 return false;
532 }

References ColorHighlight(), and IsFocusable().

◆ OnFocus() [4/11]

override bool UIScriptedMenu::OnFocus ( Widget w,
int x,
int y )
inlineprotected

Definition at line 366 of file CharacterCreationMenu.c.

367 {
368 string tooltip_header = "";
369 string tooltip_text = "";
370 if (IsFocusable(w))
371 {
373 switch (w.GetUserID())
374 {
375 case TOOLTIP_ID_APPLY:
376 tooltip_header = "#layout_main_menu_rename";
377 tooltip_text = "#layout_character_creation_apply_tooltip";
378 break;
379
380 case TOOLTIP_ID_SAVE:
381 tooltip_header = "#layout_character_creation_save_character_alt";
382 tooltip_text = "#layout_character_creation_save_tooltip";
383 break;
384 }
386 return true;
387 }
389 return false;
390 }
void SetTooltipTexts(Widget w, string header="", string desc="")

References ColorHighlight(), IsFocusable(), SetTooltipTexts(), TOOLTIP_ID_APPLY, and TOOLTIP_ID_SAVE.

◆ OnFocus() [5/11]

override bool UIScriptedMenu::OnFocus ( Widget w,
int x,
int y )
inlineprotected

Definition at line 364 of file KeybindingsMenu.c.

365 {
366 if (w && IsFocusable(w))
367 {
368 ColorRed(w);
369 return true;
370 }
371 return false;
372 }

References IsFocusable().

◆ OnFocus() [6/11]

override bool UIScriptedMenu::OnFocus ( Widget w,
int x,
int y )
inlineprotected

Definition at line 331 of file MainMenu.c.

332 {
333 if (IsFocusable(w))
334 {
336 return true;
337 }
338 return false;
339 }

References ColorHighlight(), and IsFocusable().

◆ OnFocus() [7/11]

override bool UIScriptedMenu::OnFocus ( Widget w,
int x,
int y )
inlineprotected

Definition at line 228 of file MainMenuConsoles.c.

229 {
231 return true;
232 }

References ColorHighlight().

◆ OnFocus() [8/11]

override bool UIScriptedMenu::OnFocus ( Widget w,
int x,
int y )
inlineprotected

Definition at line 388 of file TutorialsMenu.c.

389 {
390 if (IsFocusable(w))
391 {
393 return true;
394 }
395 return false;
396 }

References ColorHighlight(), and IsFocusable().

◆ OnFocus() [9/11]

override bool UIScriptedMenu::OnFocus ( Widget w,
int x,
int y )
inlineprotected

Definition at line 542 of file OptionsMenu.c.

543 {
544 if (w && IsFocusable(w))
545 {
547 return true;
548 }
549 else if (y == 1)
550 SliderFocus();
551 else
552 ToggleFocus();
553
554 return false;
555 }

References ColorHighlight(), IsFocusable(), SliderFocus(), ToggleFocus(), and y.

◆ OnFocus() [10/11]

override bool UIScriptedMenu::OnFocus ( Widget w,
int x,
int y )
inlineprotected

Definition at line 334 of file ServerBrowserMenuNew.c.

335 {
336 if (IsFocusable(w))
337 {
339 return true;
340 }
341 return false;
342 }

References ColorHighlight(), and IsFocusable().

◆ OnFocus() [11/11]

override bool UIScriptedMenu::OnFocus ( Widget w,
int x,
int y )
inlineprotected

Definition at line 95 of file RespawnDialogue.c.

96 {
97 string tooltip_header = "";
98 string tooltip_text = "";
99 if (IsFocusable(w))
100 {
102 switch (w.GetUserID())
103 {
105 tooltip_header = "#main_menu_respawn_random";
106 tooltip_text = "#main_menu_respawn_random_tooltip";
107 break;
108
110 tooltip_header = "#main_menu_respawn_custom";
111 tooltip_text = "#main_menu_respawn_custom_tooltip";
112 break;
113 }
114
116 return true;
117 }
118
120 return false;
121 }

References ColorHighlight(), ID_RESPAWN_CUSTOM, ID_RESPAWN_RANDOM, IsFocusable(), and SetTooltipTexts().

◆ OnFocusLost() [1/11]

override bool UIScriptedMenu::OnFocusLost ( Widget w,
int x,
int y )
inlineprotected

Definition at line 838 of file CameraToolsMenu.c.

839 {
840 if (IsFocusable(w))
841 {
842 ColorWhite(w, null);
843 return true;
844 }
845 return false;
846 }

References IsFocusable().

◆ OnFocusLost() [2/11]

override bool UIScriptedMenu::OnFocusLost ( Widget w,
int x,
int y )
inlineprotected

Definition at line 483 of file ControlsXboxNew.c.

484 {
485 if (IsFocusable(w))
486 {
487 ColorNormal(w);
488 return true;
489 }
490 return false;
491 }

References ColorNormal(), and IsFocusable().

◆ OnFocusLost() [3/11]

override bool UIScriptedMenu::OnFocusLost ( Widget w,
int x,
int y )
inlineprotected

Definition at line 534 of file InGameMenuXbox.c.

535 {
536 if (IsFocusable(w))
537 {
538 ColorNormal(w);
539 return true;
540 }
541 return false;
542 }

References ColorNormal(), and IsFocusable().

◆ OnFocusLost() [4/11]

override bool UIScriptedMenu::OnFocusLost ( Widget w,
int x,
int y )
inlineprotected

Definition at line 392 of file CharacterCreationMenu.c.

393 {
394 if (IsFocusable(w))
395 {
396 ColorNormal(w);
397 return true;
398 }
399 return false;
400 }

References ColorNormal(), and IsFocusable().

◆ OnFocusLost() [5/11]

override bool UIScriptedMenu::OnFocusLost ( Widget w,
int x,
int y )
inlineprotected

Definition at line 374 of file KeybindingsMenu.c.

375 {
376 if (w && IsFocusable(w))
377 {
378 if ((w.GetFlags() & WidgetFlags.DISABLED) || (w.GetFlags() & WidgetFlags.IGNOREPOINTER))
380 else
381 ColorWhite(w, null);
382 return true;
383 }
384 return false;
385 }

References IsFocusable().

◆ OnFocusLost() [6/11]

override bool UIScriptedMenu::OnFocusLost ( Widget w,
int x,
int y )
inlineprotected

Definition at line 341 of file MainMenu.c.

342 {
343 if (IsFocusable(w))
344 {
345 ColorNormal(w);
346 return true;
347 }
348 return false;
349 }

References ColorNormal(), and IsFocusable().

◆ OnFocusLost() [7/11]

override bool UIScriptedMenu::OnFocusLost ( Widget w,
int x,
int y )
inlineprotected

Definition at line 234 of file MainMenuConsoles.c.

235 {
236 ColorNormal(w);
237 return true;
238 }

References ColorNormal().

◆ OnFocusLost() [8/11]

override bool UIScriptedMenu::OnFocusLost ( Widget w,
int x,
int y )
inlineprotected

Definition at line 398 of file TutorialsMenu.c.

399 {
400 if (IsFocusable(w))
401 {
402 ColorNormal(w);
403 return true;
404 }
405 return false;
406 }

References ColorNormal(), and IsFocusable().

◆ OnFocusLost() [9/11]

override bool UIScriptedMenu::OnFocusLost ( Widget w,
int x,
int y )
inlineprotected

Definition at line 557 of file OptionsMenu.c.

558 {
559 if (w && IsFocusable(w))
560 {
561 ColorNormal(w);
562 return true;
563 }
564 return false;
565 }

References ColorNormal(), and IsFocusable().

◆ OnFocusLost() [10/11]

override bool UIScriptedMenu::OnFocusLost ( Widget w,
int x,
int y )
inlineprotected

Definition at line 344 of file ServerBrowserMenuNew.c.

345 {
346 if (IsFocusable(w))
347 {
348 ColorNormal(w);
349 return true;
350 }
351 return false;
352 }

References ColorNormal(), and IsFocusable().

◆ OnFocusLost() [11/11]

override bool UIScriptedMenu::OnFocusLost ( Widget w,
int x,
int y )
inlineprotected

Definition at line 123 of file RespawnDialogue.c.

124 {
125 if (IsFocusable(w))
126 {
127 ColorNormal(w);
128 return true;
129 }
130
131 return false;
132 }

References ColorNormal(), and IsFocusable().

◆ OnHide() [1/10]

override void UIScriptedMenu::OnHide ( )
inlineprotected

Definition at line 97 of file CameraToolsMenu.c.

98 {
99 super.OnHide();
100 if (!m_IsPlaying && GetGame() && GetGame().GetMission() && GetGame().GetUIManager())
101 {
102 GetGame().GetUIManager().ShowUICursor(false);
103 GetGame().GetMission().RemoveActiveInputExcludes({"menu"}, true);
104 }
105 }

References GetGame(), and m_IsPlaying.

◆ OnHide() [2/10]

override void UIScriptedMenu::OnHide ( )
inlineprivate

Definition at line 61 of file ChatInputMenu.c.

62 {
63 super.OnHide();
64 GetGame().GetMission().HideChat();
65
66 if (!GetGame().GetMission().IsVoNActive())
67 GetGame().GetMission().HideVoiceLevelWidgets();
68 }

References GetGame().

◆ OnHide() [3/10]

override void UIScriptedMenu::OnHide ( )
inlineprotected

Definition at line 215 of file GesturesMenu.c.

216 {
217 super.OnHide();
218
219 Mission mission = GetGame().GetMission();
220 if (mission)
221 {
222 IngameHud hud = IngameHud.Cast(mission.GetHud());
223 if (hud)
224 hud.ShowQuickbarUI(true);
225 }
226
227 m_IsMenuClosing = true;
228 }

References GetGame(), Mission::GetHud(), and mission.

◆ OnHide() [4/10]

override void UIScriptedMenu::OnHide ( )
inlineprotected

Definition at line 529 of file CharacterCreationMenu.c.

530 {
531 }

◆ OnHide() [5/10]

override void UIScriptedMenu::OnHide ( )
inlineprotected

Definition at line 396 of file MainMenu.c.

397 {
399 m_DisplayedDlcHandler.ShowInfoPanel(false);
400
401 GetDayZGame().GetBacklit().MainMenu_OnHide();
402 }

References GetDayZGame().

◆ OnHide() [6/10]

override void UIScriptedMenu::OnHide ( )
inlineprotected

Definition at line 291 of file MainMenuConsoles.c.

292 {
294 m_DisplayedDlcHandler.ShowInfoPanel(false);
295 GetDayZGame().GetBacklit().MainMenu_OnHide();
296 }

References GetDayZGame().

◆ OnHide() [7/10]

override void UIScriptedMenu::OnHide ( )
inlineprotected

Definition at line 38 of file MainMenuVideo.c.

39 {
40 super.OnHide();
41 GetGame().GetUIManager().ShowUICursor(true);
42 GetGame().GetSoundScene().SetSoundVolume(1.0, 1.0);
43 }

References GetGame().

◆ OnHide() [8/10]

override void UIScriptedMenu::OnHide ( )
inlineprotected

Definition at line 209 of file RadialQuickbarMenu.c.

210 {
211 super.OnHide();
212
213 Mission mission = GetGame().GetMission();
214 if (mission)
215 {
216 IngameHud hud = IngameHud.Cast(mission.GetHud());
217 if (hud)
218 hud.ShowQuickbarUI(true);
219 }
220
221 //reset item to assign
222 RadialQuickbarMenu.SetItemToAssign(NULL);
223 m_IsMenuClosing = true;
224 }

References GetGame(), Mission::GetHud(), and mission.

◆ OnHide() [9/10]

override void UIScriptedMenu::OnHide ( )
inlineprivate

Definition at line 765 of file SceneEditorMenu.c.

766 {
767 GetGame().GetMission().RemoveActiveInputExcludes({"menu"}, true);
768 }

References GetGame().

◆ OnHide() [10/10]

override void UIScriptedMenu::OnHide ( )
inlineprivate

Definition at line 68 of file TitleScreenMenu.c.

69 {
70 layoutRoot.FindAnyWidget("notification_root").Show(false);
71 }

◆ OnInputDeviceChanged() [1/10]

void UIScriptedMenu::OnInputDeviceChanged ( EInputDeviceType pInputDeviceType)
inlineprotected

Definition at line 71 of file ControlsXboxNew.c.

References UpdateControlsElementVisibility().

Referenced by Init().

◆ OnInputDeviceChanged() [2/10]

void UIScriptedMenu::OnInputDeviceChanged ( EInputDeviceType pInputDeviceType)
inlineprotected

Definition at line 69 of file InGameMenuXbox.c.

70 {
72 }

References UpdateControlsElements().

◆ OnInputDeviceChanged() [3/10]

void UIScriptedMenu::OnInputDeviceChanged ( EInputDeviceType pInputDeviceType)
inlineprotected

◆ OnInputDeviceChanged() [4/10]

void UIScriptedMenu::OnInputDeviceChanged ( EInputDeviceType pInputDeviceType)
inlineprotected

◆ OnInputDeviceChanged() [5/10]

void UIScriptedMenu::OnInputDeviceChanged ( EInputDeviceType pInputDeviceType)
inlineprotected

Definition at line 52 of file CharacterCreationMenu.c.

53 {
54#ifdef PLATFORM_CONSOLE
56 if (pInputDeviceType == EInputDeviceType.CONTROLLER)
57 {
58 CheckNewOptions(); //TODO - pick only the 'focus' bit
59 }
60#endif
61 }
EInputDeviceType
Definition input.c:3

References CheckNewOptions(), and UpdateControlsElementVisibility().

◆ OnInputDeviceChanged() [6/10]

void UIScriptedMenu::OnInputDeviceChanged ( EInputDeviceType pInputDeviceType)
inlineprotected

◆ OnInputDeviceChanged() [7/10]

void UIScriptedMenu::OnInputDeviceChanged ( EInputDeviceType pInputDeviceType)
inlineprotected

Definition at line 45 of file MainMenuVideo.c.

46 {
48 }

References UpdateControlsElements().

◆ OnInputDeviceChanged() [8/10]

void UIScriptedMenu::OnInputDeviceChanged ( EInputDeviceType pInputDeviceType)
inlineprotected

Definition at line 81 of file TutorialsMenu.c.

References UpdateControlsElementVisibility().

◆ OnInputDeviceChanged() [9/10]

void UIScriptedMenu::OnInputDeviceChanged ( EInputDeviceType pInputDeviceType)
inlineprotected

Definition at line 108 of file OptionsMenu.c.

109 {
110#ifdef PLATFORM_CONSOLE
112#endif
113 }

References UpdateControlsElementVisibility().

◆ OnInputDeviceChanged() [10/10]

void UIScriptedMenu::OnInputDeviceChanged ( EInputDeviceType pInputDeviceType)
inlineprotected

Definition at line 119 of file ServerBrowserMenuNew.c.

120 {
121 switch (pInputDeviceType)
122 {
123 case EInputDeviceType.CONTROLLER:
124#ifdef PLATFORM_CONSOLE
126 layoutRoot.FindAnyWidget("toolbar_bg").Show(true);
127 layoutRoot.FindAnyWidget("ConsoleControls").Show(true);
128#endif
129 break;
130
131 default:
132#ifdef PLATFORM_CONSOLE
133 if (GetGame().GetInput().IsEnabledMouseAndKeyboardEvenOnServer())
134 {
135 layoutRoot.FindAnyWidget("toolbar_bg").Show(false);
136 layoutRoot.FindAnyWidget("ConsoleControls").Show(false);
137 }
138#endif
139 break;
140 }
141 }

References GetGame(), GetInput(), and UpdateControlsElements().

◆ OnInputPresetChanged() [1/10]

void UIScriptedMenu::OnInputPresetChanged ( )
inlineprotected

Definition at line 63 of file ControlsXboxNew.c.

64 {
65#ifdef PLATFORM_CONSOLE
68#endif
69 }

References UpdateControlsElements(), and UpdateControlsElementVisibility().

◆ OnInputPresetChanged() [2/10]

void UIScriptedMenu::OnInputPresetChanged ( )
inlineprotected

Definition at line 161 of file GesturesMenu.c.

162 {
163#ifdef PLATFORM_CONSOLE
165#endif
166 }

References UpdateControlsElements().

◆ OnInputPresetChanged() [3/10]

void UIScriptedMenu::OnInputPresetChanged ( )
inlineprotected

Definition at line 62 of file InGameMenuXbox.c.

63 {
64#ifdef PLATFORM_CONSOLE
66#endif
67 }

References UpdateControlsElements().

◆ OnInputPresetChanged() [4/10]

void UIScriptedMenu::OnInputPresetChanged ( )
inlineprotected

Definition at line 137 of file InviteMenu.c.

138 {
139#ifdef PLATFORM_CONSOLE
141#endif
142 }

References UpdateControlsElements().

◆ OnInputPresetChanged() [5/10]

void UIScriptedMenu::OnInputPresetChanged ( )
inlineprotected

Definition at line 202 of file MapMenu.c.

203 {
204#ifdef PLATFORM_CONSOLE
206#endif
207 }

References UpdateControlsElements().

◆ OnInputPresetChanged() [6/10]

void UIScriptedMenu::OnInputPresetChanged ( )
inlineprotected

Definition at line 162 of file MainMenuConsoles.c.

163 {
164#ifdef PLATFORM_CONSOLE
166#endif
167 }

References UpdateControlsElements().

◆ OnInputPresetChanged() [7/10]

void UIScriptedMenu::OnInputPresetChanged ( )
inlineprotected

Definition at line 73 of file TutorialsMenu.c.

74 {
75#ifdef PLATFORM_CONSOLE
78#endif
79 }

References UpdateControlsElements(), and UpdateControlsElementVisibility().

◆ OnInputPresetChanged() [8/10]

void UIScriptedMenu::OnInputPresetChanged ( )
inlineprotected

Definition at line 101 of file OptionsMenu.c.

102 {
103#ifdef PLATFORM_CONSOLE
105#endif
106 }

References UpdateControlsElementVisibility().

◆ OnInputPresetChanged() [9/10]

void UIScriptedMenu::OnInputPresetChanged ( )
inlineprotected

Definition at line 112 of file ServerBrowserMenuNew.c.

113 {
114#ifdef PLATFORM_CONSOLE
116#endif
117 }

References UpdateControlsElements().

◆ OnInputPresetChanged() [10/10]

void UIScriptedMenu::OnInputPresetChanged ( )
inlineprotected

Definition at line 143 of file RadialQuickbarMenu.c.

144 {
145#ifdef PLATFORM_CONSOLE
147#endif
148 }

References UpdateControlsElements().

◆ OnItemSelected() [1/3]

override bool UIScriptedMenu::OnItemSelected ( Widget w,
int x,
int y,
int row,
int column,
int oldRow,
int oldColumn )
inlineprotected

Definition at line 444 of file InGameMenuXbox.c.

445 {
446 return false;
447 }

◆ OnItemSelected() [2/3]

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

Definition at line 784 of file SceneEditorMenu.c.

785 {
786
787 super.OnItemSelected(w, x, y, row, column, oldRow, oldColumn);
788
790 {
791 string selected_class_name;
792 m_ClWgtLbxClassesList.GetItemText(m_ClWgtLbxClassesList.GetSelectedRow(), 0, selected_class_name);
794
795 SceneObject obj_selected = m_ModuleSceneManager.GetSelectedSceneObject();
798 }
799 else if (w == m_SlWgtLbxObjectsList)
800 {
801 int row_index = m_SlWgtLbxObjectsList.GetSelectedRow();
802
803 if (m_SlObjectsList && row_index > -1 && m_SlObjectsList.Count() > 0 && m_SlObjectsList.Count() > row_index)
804 m_ModuleSceneManager.SelectObject(m_SlObjectsList.GetElement(row_index));
805 }
806
809
810 return true;
811 }
string GetCurrentObjectName()

References GetCurrentObjectName(), m_SelectedObject, x, and y.

◆ OnItemSelected() [3/3]

override bool UIScriptedMenu::OnItemSelected ( Widget w,
int x,
int y,
int row,
int column,
int oldRow,
int oldColumn )
inlineprotected

Definition at line 348 of file ScriptConsole.c.

349 {
350 super.OnItemSelected(w, x, y, row, column, oldRow, oldColumn);
351
352
354 return true;
355
356 return false;
357 }
bool OnItemSelected(Widget w, int x, int y, int row, int column, int oldRow, int oldColumn)

References ScriptConsoleTabBase::OnItemSelected(), x, and y.

◆ OnKeyDown()

override bool UIScriptedMenu::OnKeyDown ( Widget w,
int x,
int y,
int key )
inlineprotected

Definition at line 211 of file ScriptConsole.c.

212 {
213 super.OnKeyDown(w, x, y, key);
214
216 return true;
217 return false;
218
219 }
bool OnKeyDown(Widget w, int x, int y, int key)

References ScriptConsoleTabBase::OnKeyDown(), x, and y.

Referenced by CGame::OnKeyPress().

◆ OnKeyPress() [1/4]

override bool UIScriptedMenu::OnKeyPress ( Widget w,
int x,
int y,
int key )
inlineprotected

Definition at line 855 of file CameraToolsMenu.c.

856 {
857 if (!w && key == KeyCode.KC_P)
858 {
859 if (!m_IsPlaying)
860 {
861 Play();
862 return true;
863 }
864 else
865 {
866 Stop();
867 return true;
868 }
869 return false;
870 }
871 else if (g_Game.IsLeftCtrlDown() && key == KeyCode.KC_S)
872 {
873 SaveKeyframe();
874 return true;
875 }
876 else if (g_Game.IsLeftCtrlDown() && key == KeyCode.KC_Q)
877 {
878 AddKeyframe();
879 return true;
880 }
881 else if (g_Game.IsLeftCtrlDown() && key == KeyCode.KC_E)
882 {
884 return true;
885 }
886
887 else if (!w && g_Game.IsLeftCtrlDown())
888 {
890 return true;
891 }
892 return false;
893 }
void SelectActor(CTActor ac)
KeyCode
Definition EnSystem.c:157

References g_Game, m_IsPlaying, Play(), and Stop().

◆ OnKeyPress() [2/4]

override bool UIScriptedMenu::OnKeyPress ( Widget w,
int x,
int y,
int key )
inlineprotected

Definition at line 195 of file MapMenu.c.

196 {
197 super.OnKeyPress(w, x, y, key);
198
199 return false;
200 }

References x, and y.

◆ OnKeyPress() [3/4]

override bool UIScriptedMenu::OnKeyPress ( Widget w,
int x,
int y,
int key )
inlineprotected

Definition at line 283 of file CharacterCreationMenu.c.

284 {
285 super.OnKeyPress(w, x, y, key);
286 return false;
287 }

References x, and y.

◆ OnKeyPress() [4/4]

override bool UIScriptedMenu::OnKeyPress ( Widget w,
int x,
int y,
int key )
inlineprotected

Definition at line 201 of file ScriptConsole.c.

202 {
203 super.OnKeyPress(w, x, y, key);
204
206 return true;
207 return false;
208
209 }
bool OnKeyPress(Widget w, int x, int y, int key)

References ScriptConsoleTabBase::OnKeyPress(), x, and y.

◆ OnKeyUp()

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

Definition at line 143 of file InputDeviceDisconnectWarningMenu.c.

144 {
145 bool ret = super.OnKeyUp(w, x, y, key);
146
147 if (m_CanClose)
148 Close();
149 return ret | m_CanClose;
150 }

References Close(), m_CanClose, x, and y.

Referenced by CGame::OnKeyRelease().

◆ OnLoadServerModsAsync()

void UIScriptedMenu::OnLoadServerModsAsync ( GetServerModListResult result_list)
inlineprotected

Definition at line 589 of file ServerBrowserMenuNew.c.

590 {
591 if (GetSelectedTab())
593 }
override void OnLoadServerModsAsync(string server_id, array< string > mods)
ServerBrowserTab GetSelectedTab()

◆ OnLoadServersAsync()

void UIScriptedMenu::OnLoadServersAsync ( GetServersResult result_list,
EBiosError error,
string response )
inlineprotected

Definition at line 595 of file ServerBrowserMenuNew.c.

596 {
597#ifdef PLATFORM_WINDOWS
598#ifdef PLATFORM_CONSOLE
600#else
602#endif
603#else
605#endif
606 }
override void OnLoadServersAsyncPC(ref GetServersResult result_list, EBiosError error, string response)
override void OnLoadServersAsyncConsole(GetServersResult result_list, EBiosError error, string response)

◆ OnMenuRelease()

void UIScriptedMenu::OnMenuRelease ( )
protected

DEPRECATED.

◆ OnModalResult() [1/6]

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

Definition at line 238 of file InGameMenu.c.

239 {
240 super.OnModalResult(w, x, y, code, result);
241 if (code == IDC_INT_EXIT && result == DBB_YES)
242 {
243 if (GetGame().IsMultiplayer())
244 {
245 GetGame().LogoutRequestTime();
246 GetGame().GetCallQueue(CALL_CATEGORY_GUI).Call(GetGame().GetMission().CreateLogoutMenu, this);
247 }
248 else
249 {
250 // skip logout screen in singleplayer
251 GetGame().GetMission().AbortMission();
252 }
253 g_Game.CancelLoginTimeCountdown();
254 return true;
255 }
256 else if (code == IDC_INT_EXIT && result == DBB_NO)
257 g_Game.CancelLoginTimeCountdown();
258 else if (code == IDC_INT_RETRY && result == DBB_YES && GetGame().IsMultiplayer())
259 {
260 if (GetGame().GetMission().GetRespawnModeClient() == GameConstants.RESPAWN_MODE_CUSTOM)
261 GetGame().GetCallQueue(CALL_CATEGORY_GUI).Call(GetGame().GetUIManager().EnterScriptedMenu, MENU_RESPAWN_DIALOGUE, this);
262 else
263 GameRespawn(true);
264 return true;
265 }
266
267 return false;
268 }

References CALL_CATEGORY_GUI, g_Game, GetGame(), IDC_INT_EXIT, IDC_INT_RETRY, MENU_RESPAWN_DIALOGUE, GameConstants::RESPAWN_MODE_CUSTOM, x, and y.

◆ OnModalResult() [2/6]

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

Definition at line 271 of file InGameMenuXbox.c.

272 {
273 super.OnModalResult(w, x, y, code, result);
274
275 if (code == IDC_INT_EXIT && result == DBB_YES)
276 {
277 if (GetGame().IsMultiplayer())
278 {
279 GetGame().LogoutRequestTime();
280 GetGame().GetCallQueue(CALL_CATEGORY_GUI).Call(GetGame().GetMission().CreateLogoutMenu, this);
281 }
282 else
283 {
284 // skip logout screen in singleplayer
285 GetGame().GetMission().AbortMission();
286 }
287 g_Game.CancelLoginTimeCountdown();
288
289 return true;
290
291 }
292 else if (code == IDC_INT_EXIT && result == DBB_NO)
293 g_Game.CancelLoginTimeCountdown();
294 else if (code == IDC_INT_RETRY)
295 {
296 if (result == DBB_YES)
297 {
298 if (GetGame().GetMission().GetRespawnModeClient() == GameConstants.RESPAWN_MODE_CUSTOM)
299 GetGame().GetCallQueue(CALL_CATEGORY_GUI).Call(GetGame().GetUIManager().EnterScriptedMenu, MENU_RESPAWN_DIALOGUE, this);
300 else
301 {
302 GameRetry(true);
303 return true;
304 }
305 }
306 else
308 }
309
310 return false;
311 }

References CALL_CATEGORY_GUI, g_Game, GameRetry(), GetGame(), IDC_INT_EXIT, IDC_INT_RETRY, MENU_RESPAWN_DIALOGUE, GameConstants::RESPAWN_MODE_CUSTOM, UpdateMenuFocus(), x, and y.

◆ OnModalResult() [3/6]

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

Definition at line 289 of file KeybindingsMenu.c.

290 {
291 if (code == MODAL_ID_BACK)
292 {
293 if (result == DBB_YES)
294 {
295 Reset();
296 GetGame().GetUIManager().Back();
297 }
298 return true;
299 }
300 else if (code == MODAL_ID_DEFAULT)
301 {
302 if (result == DBB_YES)
304 return true;
305 }
306 else if (code == MODAL_ID_DEFAULT_ALL)
307 {
308 if (result == DBB_YES)
310 }
311 else if (code == MODAL_ID_PRESET_CHANGE)
312 {
313 if (result == DBB_YES)
314 {
315 Reset();
316 m_PresetSelector.PerformSetOption(m_TargetPresetIndex);
317 }
318 return true;
319 }
320
321 return false;
322 }
void PerformSetToDefaultsExt(int mode)
const int MODAL_ID_DEFAULT
const int MODAL_RESULT_DEFAULT_ALL
const int MODAL_RESULT_DEFAULT_CURRENT

References GetGame(), and Reset().

◆ OnModalResult() [4/6]

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

Definition at line 567 of file MainMenu.c.

568 {
569 if (code == IDC_MAIN_QUIT)
570 {
571 if (result == 2)
572 GetGame().GetCallQueue(CALL_CATEGORY_GUI).Call(g_Game.RequestExit, IDC_MAIN_QUIT);
573 if (result == 3)
575 return true;
576 }
577 else if (code == 555)
578 {
579 if (result == 2)
581 }
582 return false;
583 }

References CALL_CATEGORY_GUI, ColorNormal(), g_Game, GetFocus(), GetGame(), and IDC_MAIN_QUIT.

◆ OnModalResult() [5/6]

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

Definition at line 410 of file MainMenuConsoles.c.

411 {
412 if (code == IDC_MAIN_QUIT)
413 {
414 if (result == 2)
415 GetGame().GetCallQueue(CALL_CATEGORY_GUI).Call(g_Game.RequestExit, IDC_MAIN_QUIT);
416
417 return true;
418 }
419 else if (code == 555)
420 {
421 if (result == 2)
423 }
424 return false;
425 }

References CALL_CATEGORY_GUI, g_Game, GetGame(), and IDC_MAIN_QUIT.

◆ OnModalResult() [6/6]

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

Definition at line 485 of file OptionsMenu.c.

486 {
487 bool ret = false;
488
489 if (code == 1337)
490 {
491 if (result == 2)
492 {
493 m_Options.Revert();
494 GetGame().EndOptionsVideo();
495 GetGame().GetUIManager().Back();
496 }
497 ret = true;
498 }
499 else if (code == 117)
500 g_Game.RequestRestart(IDC_MAIN_QUIT);
501 else if (code == MODAL_ID_DEFAULT)
502 {
503 if (result == 2)
505 }
506 else if (code >= DIALOG_TAB_OFFSET)
507 {
508 if (result == 2)
509 {
510 int id = code - DIALOG_TAB_OFFSET;
511 //m_Options.Revert();
513 m_Tabber.PerformSwitchTab(id);
514 }
515 ret = true;
516 }
517
518 m_ModalLock = ret; //prevents dialog being shown on the next update
519 return ret;
520 }

References DIALOG_TAB_OFFSET, g_Game, GetGame(), IDC_MAIN_QUIT, PerformSetToDefaults(), and ResetCurrentTab().

◆ OnMouseButtonDown() [1/5]

override bool UIScriptedMenu::OnMouseButtonDown ( Widget w,
int x,
int y,
int button )
inlineprotected

Definition at line 694 of file CameraToolsMenu.c.

695 {
696 if (w == layoutRoot && button == MouseState.RIGHT && !m_IsPlaying)
697 {
698 GetGame().GetInput().ResetGameFocus();
699 GetGame().GetInput().ChangeGameFocus(-1);
700 GetGame().GetUIManager().ShowUICursor(false);
701 GetGame().GetMission().RemoveActiveInputExcludes({"menu"});
702 SetFocus(layoutRoot);
703 return true;
704 }
705 else if (!IsFocusable(w))
706 SetFocus(layoutRoot);
707 return false;
708 }

References GetGame(), IsFocusable(), m_IsPlaying, and SetFocus().

◆ OnMouseButtonDown() [2/5]

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

Definition at line 74 of file InspectMenuNew.c.

75 {
76 super.OnMouseButtonDown(w, x, y, button);
77
78 if (w == m_item_widget)
79 {
80 GetGame().GetDragQueue().Call(this, "UpdateRotation");
82 return true;
83 }
84 return false;
85 }
ItemPreviewWidget m_item_widget

References GetGame(), GetMousePos(), x, and y.

◆ OnMouseButtonDown() [3/5]

override bool UIScriptedMenu::OnMouseButtonDown ( Widget w,
int x,
int y,
int button )
inlineprotected

Definition at line 315 of file CharacterCreationMenu.c.

316 {
317#ifndef PLATFORM_CONSOLE
319 {
320 if (m_Scene)
322 return true;
323 }
324#endif
325 return false;
326 }

References DayZIntroScenePC::CharacterRotationStart().

◆ OnMouseButtonDown() [4/5]

override bool UIScriptedMenu::OnMouseButtonDown ( Widget w,
int x,
int y,
int button )
inlineprotected

Definition at line 203 of file MainMenu.c.

204 {
206 {
207 if (m_ScenePC)
209 return true;
210 }
211
212 return false;
213 }

References DayZIntroScenePC::CharacterRotationStart().

◆ OnMouseButtonDown() [5/5]

override bool UIScriptedMenu::OnMouseButtonDown ( Widget w,
int x,
int y,
int button )
inlineprotected

Definition at line 261 of file ScriptConsole.c.

262 {
263 super.OnMouseButtonDown(w, x, y, button);
264
266 return true;
267
268 return false;
269 }
bool OnMouseButtonDown(Widget w, int x, int y, int button)

References ScriptConsoleTabBase::OnMouseButtonDown(), x, and y.

◆ OnMouseButtonUp() [1/4]

override bool UIScriptedMenu::OnMouseButtonUp ( Widget w,
int x,
int y,
int button )
inlineprotected

Definition at line 710 of file CameraToolsMenu.c.

711 {
712 if (w == layoutRoot && button == MouseState.LEFT)
713 {
715 return true;
716 }
717 return false;
718 }

◆ OnMouseButtonUp() [2/4]

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

Definition at line 133 of file InputDeviceDisconnectWarningMenu.c.

134 {
135 bool ret = super.OnMouseButtonUp(w, x, y, button);
136
137 if (m_CanClose)
138 Close();
139 return ret | m_CanClose;
140 }

References Close(), m_CanClose, x, and y.

◆ OnMouseButtonUp() [3/4]

override bool UIScriptedMenu::OnMouseButtonUp ( Widget w,
int x,
int y,
int button )
inlineprotected

Definition at line 328 of file CharacterCreationMenu.c.

329 {
330#ifndef PLATFORM_CONSOLE
331 if (m_Scene)
333#endif
334 return false;
335 }

References DayZIntroScenePC::CharacterRotationStop().

◆ OnMouseButtonUp() [4/4]

override bool UIScriptedMenu::OnMouseButtonUp ( Widget w,
int x,
int y,
int button )
inlineprotected

Definition at line 215 of file MainMenu.c.

216 {
217 if (m_ScenePC)
219 return false;
220 }

References DayZIntroScenePC::CharacterRotationStop().

◆ OnMouseDeselect() [1/2]

void UIScriptedMenu::OnMouseDeselect ( Widget w)
inlineprotected

Definition at line 476 of file GesturesMenu.c.

477 {
479 }

◆ OnMouseDeselect() [2/2]

void UIScriptedMenu::OnMouseDeselect ( Widget w)
inlineprotected

Definition at line 524 of file RadialQuickbarMenu.c.

525 {
527 }

◆ OnMouseEnter() [1/14]

override bool UIScriptedMenu::OnMouseEnter ( Widget w,
int x,
int y )
inlineprotected

Definition at line 816 of file CameraToolsMenu.c.

817 {
818 if (w == m_CameraEditbox)
819 m_CameraEditbox.SetText("");
820 return true;
821 }

◆ OnMouseEnter() [2/14]

override bool UIScriptedMenu::OnMouseEnter ( Widget w,
int x,
int y )
inlineprotected

Definition at line 453 of file ControlsXboxNew.c.

454 {
455 if (IsFocusable(w))
456 {
458 return true;
459 }
460 return false;
461 }

References ColorHighlight(), and IsFocusable().

◆ OnMouseEnter() [3/14]

override bool UIScriptedMenu::OnMouseEnter ( Widget w,
int x,
int y )
inlineprotected

Definition at line 239 of file GesturesMenu.c.

240 {
241 super.OnMouseEnter(w, x, y);
242
243 RadialMenu.GetInstance().SetControlType(RadialMenuControlType.MOUSE);
244
245 return false;
246 }

References RadialMenu(), x, and y.

◆ OnMouseEnter() [4/14]

override bool UIScriptedMenu::OnMouseEnter ( Widget w,
int x,
int y )
inlineprotected

Definition at line 141 of file InGameMenu.c.

142 {
144 return true;
145 }

References ColorHighlight().

◆ OnMouseEnter() [5/14]

override bool UIScriptedMenu::OnMouseEnter ( Widget w,
int x,
int y )
inlineprotected

Definition at line 504 of file InGameMenuXbox.c.

505 {
506 if (IsFocusable(w))
507 {
509 return true;
510 }
511 return false;
512 }

References ColorHighlight(), and IsFocusable().

◆ OnMouseEnter() [6/14]

override bool UIScriptedMenu::OnMouseEnter ( Widget w,
int x,
int y )
inlineprotected

Definition at line 337 of file CharacterCreationMenu.c.

338 {
339 string tooltip_header = "";
340 string tooltip_text = "";
342 switch (w.GetUserID())
343 {
344 case TOOLTIP_ID_APPLY:
345 tooltip_header = "#layout_main_menu_rename";
346 tooltip_text = "#layout_character_creation_apply_tooltip";
347 break;
348
349 case TOOLTIP_ID_SAVE:
350 tooltip_header = "#layout_character_creation_save_character_alt";
351 tooltip_text = "#layout_character_creation_save_tooltip";
352 break;
353 }
355 return true;
356 }

References ColorHighlight(), SetTooltipTexts(), TOOLTIP_ID_APPLY, and TOOLTIP_ID_SAVE.

◆ OnMouseEnter() [7/14]

override bool UIScriptedMenu::OnMouseEnter ( Widget w,
int x,
int y )
inlineprotected

Definition at line 336 of file KeybindingsMenu.c.

337 {
338 if (w && IsFocusable(w))
339 {
340 ColorRed(w);
341 return true;
342 }
343 return false;
344 }

References IsFocusable().

◆ OnMouseEnter() [8/14]

override bool UIScriptedMenu::OnMouseEnter ( Widget w,
int x,
int y )
inlineprotected

Definition at line 289 of file MainMenu.c.

290 {
291 if (w == m_Play)
292 {
293 string ip = "";
294 string name = "";
295 int port = 0;
296
297 if (m_ScenePC && !m_ScenePC.GetIntroCharacter().IsDefaultCharacter())
298 {
299 int charID = m_ScenePC.GetIntroCharacter().GetCharacterID();
300 m_ScenePC.GetIntroCharacter().GetLastPlayedServer(charID, ip, name, port);
301
302 m_LastPlayedTooltipName.SetText("#server_details_name " + name);
303 m_LastPlayedTooltipIP.SetText("#main_menu_IP " + ip);
304 m_LastPlayedTooltipPort.SetText("#main_menu_port " + port);
305
307 }
308 }
309
310 if (IsFocusable(w))
311 {
313 return true;
314 }
315 return false;
316 }

References ColorHighlight(), DayZIntroScene::GetIntroCharacter(), IsFocusable(), and name.

◆ OnMouseEnter() [9/14]

override bool UIScriptedMenu::OnMouseEnter ( Widget w,
int x,
int y )
inlineprotected

Definition at line 368 of file TutorialsMenu.c.

369 {
370 if (IsFocusable(w))
371 {
373 return true;
374 }
375 return false;
376 }

References ColorHighlight(), and IsFocusable().

◆ OnMouseEnter() [10/14]

override bool UIScriptedMenu::OnMouseEnter ( Widget w,
int x,
int y )
inlineprotected

Definition at line 522 of file OptionsMenu.c.

523 {
524 if (w && IsFocusable(w))
525 {
527 return true;
528 }
529 return false;
530 }

References ColorHighlight(), and IsFocusable().

◆ OnMouseEnter() [11/14]

override bool UIScriptedMenu::OnMouseEnter ( Widget w,
int x,
int y )
inlineprotected

Definition at line 166 of file ServerBrowserMenuNew.c.

167 {
168 if (IsFocusable(w))
169 {
171 return true;
172 }
173 return false;
174 }

References ColorHighlight(), and IsFocusable().

◆ OnMouseEnter() [12/14]

override bool UIScriptedMenu::OnMouseEnter ( Widget w,
int x,
int y )
inlineprotected

Definition at line 235 of file RadialQuickbarMenu.c.

236 {
237 super.OnMouseEnter(w, x, y);
238
239 RadialMenu.GetInstance().SetControlType(RadialMenuControlType.MOUSE);
240
241 return false;
242 }

References RadialMenu(), x, and y.

◆ OnMouseEnter() [13/14]

override bool UIScriptedMenu::OnMouseEnter ( Widget w,
int x,
int y )
inlineprotected

Definition at line 60 of file RespawnDialogue.c.

61 {
62 string tooltip_header = "";
63 string tooltip_text = "";
65 switch (w.GetUserID())
66 {
68 tooltip_header = "#main_menu_respawn_random";
69 tooltip_text = "#main_menu_respawn_random_tooltip";
70 break;
71
73 tooltip_header = "#main_menu_respawn_custom";
74 tooltip_text = "#main_menu_respawn_custom_tooltip";
75 break;
76 }
77
79 return true;
80 }

References ColorHighlight(), ID_RESPAWN_CUSTOM, ID_RESPAWN_RANDOM, and SetTooltipTexts().

◆ OnMouseEnter() [14/14]

override bool UIScriptedMenu::OnMouseEnter ( Widget w,
int x,
int y )
inlineprotected

Definition at line 325 of file ScriptConsole.c.

326 {
327 super.OnMouseEnter(w, x, y);
328 if (!m_EditTooltipRoot.IsVisible())
330
331
332#ifdef PLATFORM_CONSOLE
333 return false;
334#endif
335 return true;
336 }

References m_CurrentHoverWidget, x, and y.

◆ OnMouseExecute() [1/2]

void UIScriptedMenu::OnMouseExecute ( Widget w)
inlineprotected

Definition at line 481 of file GesturesMenu.c.

482 {
483 }

◆ OnMouseExecute() [2/2]

void UIScriptedMenu::OnMouseExecute ( Widget w)
inlineprotected

Definition at line 529 of file RadialQuickbarMenu.c.

530 {
531 }

◆ OnMouseLeave() [1/12]

override bool UIScriptedMenu::OnMouseLeave ( Widget w,
Widget enterW,
int x,
int y )
inlineprotected

Definition at line 823 of file CameraToolsMenu.c.

824 {
825 return true;
826 }

◆ OnMouseLeave() [2/12]

override bool UIScriptedMenu::OnMouseLeave ( Widget w,
Widget enterW,
int x,
int y )
inlineprotected

Definition at line 463 of file ControlsXboxNew.c.

464 {
465 if (IsFocusable(w))
466 {
467 ColorNormal(w);
468 return true;
469 }
470 return false;
471 }

References ColorNormal(), and IsFocusable().

◆ OnMouseLeave() [3/12]

override bool UIScriptedMenu::OnMouseLeave ( Widget w,
Widget enterW,
int x,
int y )
inlineprotected

Definition at line 147 of file InGameMenu.c.

148 {
149 ColorNormal(w);
150 return true;
151 }

References ColorNormal().

◆ OnMouseLeave() [4/12]

override bool UIScriptedMenu::OnMouseLeave ( Widget w,
Widget enterW,
int x,
int y )
inlineprotected

Definition at line 514 of file InGameMenuXbox.c.

515 {
516 if (IsFocusable(w))
517 {
518 ColorNormal(w);
519 return true;
520 }
521 return false;
522 }

References ColorNormal(), and IsFocusable().

◆ OnMouseLeave() [5/12]

override bool UIScriptedMenu::OnMouseLeave ( Widget w,
Widget enterW,
int x,
int y )
inlineprotected

Definition at line 358 of file CharacterCreationMenu.c.

359 {
360 ColorNormal(w);
361 SetFocus(null);
362
363 return true;
364 }

References ColorNormal(), and SetFocus().

◆ OnMouseLeave() [6/12]

override bool UIScriptedMenu::OnMouseLeave ( Widget w,
Widget enterW,
int x,
int y )
inlineprotected

Definition at line 346 of file KeybindingsMenu.c.

347 {
348 if (w && IsFocusable(w))
349 {
350 if ((w.GetFlags() & WidgetFlags.DISABLED) || (w.GetFlags() & WidgetFlags.IGNOREPOINTER))
352 else
354 return true;
355 }
356 return false;
357 }

References IsFocusable().

◆ OnMouseLeave() [7/12]

override bool UIScriptedMenu::OnMouseLeave ( Widget w,
Widget enterW,
int x,
int y )
inlineprotected

Definition at line 318 of file MainMenu.c.

319 {
320 if (w == m_Play)
322
323 if (IsFocusable(w))
324 {
325 ColorNormal(w);
326 return true;
327 }
328 return false;
329 }

References ColorNormal(), and IsFocusable().

◆ OnMouseLeave() [8/12]

override bool UIScriptedMenu::OnMouseLeave ( Widget w,
Widget enterW,
int x,
int y )
inlineprotected

Definition at line 378 of file TutorialsMenu.c.

379 {
380 if (IsFocusable(w))
381 {
382 ColorNormal(w);
383 return true;
384 }
385 return false;
386 }

References ColorNormal(), and IsFocusable().

◆ OnMouseLeave() [9/12]

override bool UIScriptedMenu::OnMouseLeave ( Widget w,
Widget enterW,
int x,
int y )
inlineprotected

Definition at line 532 of file OptionsMenu.c.

533 {
534 if (w && IsFocusable(w))
535 {
536 ColorNormal(w);
537 return true;
538 }
539 return false;
540 }

References ColorNormal(), and IsFocusable().

◆ OnMouseLeave() [10/12]

override bool UIScriptedMenu::OnMouseLeave ( Widget w,
Widget enterW,
int x,
int y )
inlineprotected

Definition at line 176 of file ServerBrowserMenuNew.c.

177 {
178 if (IsFocusable(w))
179 {
180 ColorNormal(w);
181 return true;
182 }
183 return false;
184 }

References ColorNormal(), and IsFocusable().

◆ OnMouseLeave() [11/12]

override bool UIScriptedMenu::OnMouseLeave ( Widget w,
Widget enterW,
int x,
int y )
inlineprotected

Definition at line 82 of file RespawnDialogue.c.

83 {
85 return true;
86 }

References ColorNormal().

◆ OnMouseLeave() [12/12]

override bool UIScriptedMenu::OnMouseLeave ( Widget w,
Widget enterW,
int x,
int y )
inlineprotected

Definition at line 316 of file ScriptConsole.c.

317 {
318 super.OnMouseLeave(w, enterW, x, y);
319
320 if (!m_EditTooltipRoot.IsVisible())
322 return false;
323 }

References HoverInterrupt(), x, and y.

◆ OnMousePressLeft() [1/2]

void UIScriptedMenu::OnMousePressLeft ( Widget w)
inlineprotected

LMB.

Definition at line 486 of file GesturesMenu.c.

487 {
488 if (instance.m_IsCategorySelected)
490 else
492 }

◆ OnMousePressLeft() [2/2]

void UIScriptedMenu::OnMousePressLeft ( Widget w)
inlineprotected

LMB.

Definition at line 534 of file RadialQuickbarMenu.c.

535 {
537 }

◆ OnMousePressRight() [1/2]

void UIScriptedMenu::OnMousePressRight ( Widget w)
inlineprotected

RMB.

Definition at line 495 of file GesturesMenu.c.

496 {
497 BackOneLevel();
498 }

◆ OnMousePressRight() [2/2]

void UIScriptedMenu::OnMousePressRight ( Widget w)
inlineprotected

RMB.

Definition at line 540 of file RadialQuickbarMenu.c.

541 {
542 BackOneLevel();
543 }

◆ OnMouseSelect() [1/2]

void UIScriptedMenu::OnMouseSelect ( Widget w)
inlineprotected

Definition at line 471 of file GesturesMenu.c.

472 {
474 }

◆ OnMouseSelect() [2/2]

void UIScriptedMenu::OnMouseSelect ( Widget w)
inlineprotected

Definition at line 519 of file RadialQuickbarMenu.c.

520 {
522 }

◆ OnMouseWheel() [1/3]

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

Definition at line 101 of file InspectMenuNew.c.

102 {
103 super.OnMouseWheel(w, x, y, wheel);
104
105 if (w == m_item_widget)
106 {
108 UpdateScale();
109 }
110 return false;
111 }

References UpdateScale(), x, and y.

◆ OnMouseWheel() [2/3]

override bool UIScriptedMenu::OnMouseWheel ( Widget w,
int x,
int y,
int wheel )
inlineprotected

Definition at line 359 of file KeybindingsMenu.c.

360 {
361 return super.OnMouseWheel(w, x, y, wheel);
362 }

References x, and y.

◆ OnMouseWheel() [3/3]

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

Definition at line 773 of file SceneEditorMenu.c.

774 {
775 super.OnMouseWheel(w, x, y, wheel);
776
777 m_ModuleSceneManager.OnMouseWheel(wheel);
778 return true;
779 }

References x, and y.

◆ OnPermissionsUpdate()

void UIScriptedMenu::OnPermissionsUpdate ( BiosPrivacyUidResultArray result_list)
inlineprotected

Definition at line 456 of file InGameMenuXbox.c.

457 {
459
460 Refresh();
461 }

References Refresh().

◆ OnRPCEx()

override void UIScriptedMenu::OnRPCEx ( int rpc_type,
ParamsReadContext ctx )
inlineprotected

Definition at line 428 of file ScriptConsole.c.

429 {
430 super.OnRPCEx(rpc_type, ctx);
431#ifdef DIAG_DEVELOPER
432
435#endif
436
437 }
override void OnRPCEx(int rpc_type, ParamsReadContext ctx)

References m_TabHandlers.

◆ OnSelectKBPreset()

void UIScriptedMenu::OnSelectKBPreset ( int index)
inlineprotected

Definition at line 469 of file KeybindingsMenu.c.

470 {
472 m_GroupsContainer.OnSelectKBPreset(index);
473 string profile_text;
474 GetGame().GetInput().GetProfileName(index, profile_text);
475
476 GetGame().GetMission().GetOnInputPresetChanged().Invoke();
477 }

References GetGame().

◆ OnShow() [1/16]

override void UIScriptedMenu::OnShow ( )
inlineprotected

Definition at line 88 of file CameraToolsMenu.c.

89 {
90 super.OnShow();
91 if (!m_IsPlaying)
92 {
93 GetGame().GetMission().AddActiveInputExcludes({"menu"});
94 }
95 }

References GetGame(), and m_IsPlaying.

◆ OnShow() [2/16]

override void UIScriptedMenu::OnShow ( )
inlineprivate

Definition at line 56 of file ChatInputMenu.c.

57 {
59 }

References SetFocus().

◆ OnShow() [3/16]

override void UIScriptedMenu::OnShow ( )
inlineprotected

Definition at line 433 of file ControlsXboxNew.c.

434 {
435 super.OnShow();
436
437 SetFocus(null);
438 }

References SetFocus().

◆ OnShow() [4/16]

override void UIScriptedMenu::OnShow ( )
inlineprotected

Definition at line 199 of file GesturesMenu.c.

200 {
201 super.OnShow();
202
203 Mission mission = GetGame().GetMission();
204 if (mission)
205 {
206 IngameHud hud = IngameHud.Cast(mission.GetHud());
207 if (hud)
208 hud.ShowQuickbarUI(false);
209 }
210
211 SetFocus(layoutRoot);
212 m_IsMenuClosing = false;
213 }

References GetGame(), Mission::GetHud(), mission, and SetFocus().

◆ OnShow() [5/16]

override void UIScriptedMenu::OnShow ( )
inlineprotected

Definition at line 463 of file InGameMenuXbox.c.

464 {
465 super.OnShow();
466 Man player = GetGame().GetPlayer();
467 if (player)
468 {
469 int life_state = player.GetPlayerState();
470
471 if (life_state == EPlayerStates.ALIVE)
472 m_PlayerAlive = true;
473 }
474
475 if (m_PlayerAlive)
476 {
477 if (player)
478 m_RestartButton.Show(player.IsUnconscious());
479 }
480 else
481 m_RestartButton.Show(false);
484
486
487#ifdef PLATFORM_CONSOLE
488 bool mk = GetGame().GetInput().IsEnabledMouseAndKeyboard();
489 bool mk_server = GetGame().GetInput().IsEnabledMouseAndKeyboardEvenOnServer();
490 TextWidget warning = TextWidget.Cast(layoutRoot.FindAnyWidget("MouseAndKeyboardWarning"));
491 if (mk)
492 {
493 if (mk_server)
494 warning.SetText("#str_mouse_and_keyboard_server_warning");
495 else
496 warning.SetText("#str_controller_server_warning");
497 }
498
499 warning.Show(mk);
500#endif
502 }

References GetGame(), UpdateControlsElements(), and UpdateMenuFocus().

◆ OnShow() [6/16]

override void UIScriptedMenu::OnShow ( )
inlineprotected

Definition at line 173 of file MapMenu.c.

174 {
175 super.OnShow();
176
179 }

References UpdateControlsElements(), and UpdateControlsElementVisibility().

◆ OnShow() [7/16]

override void UIScriptedMenu::OnShow ( )
inlineprotected

Definition at line 455 of file CharacterCreationMenu.c.

456 {
457#ifdef PLATFORM_CONSOLE
458 m_GenderSelector.Focus();
460#endif
462 }

References CheckNewOptions(), and UpdateControlsElementVisibility().

◆ OnShow() [8/16]

override void UIScriptedMenu::OnShow ( )
inlineprotected

Definition at line 384 of file MainMenu.c.

385 {
387 m_DisplayedDlcHandler.ShowInfoPanel(true);
388
389 SetFocus(null);
390 OnChangeCharacter(false);
391 m_Stats.UpdateStats();
392 LoadMods();
393 return;
394 }

References m_Stats, and SetFocus().

◆ OnShow() [9/16]

override void UIScriptedMenu::OnShow ( )
inlineprotected

Definition at line 266 of file MainMenuConsoles.c.

267 {
268 GetDayZGame().GetBacklit().MainMenu_OnShow();
269
271
272 LoadMods();
273 Refresh();
274
276 m_ScenePC.GetIntroCamera().LookAt(m_ScenePC.GetIntroCharacter().GetPosition() + Vector(0, 1, 0));
278 m_DisplayedDlcHandler.ShowInfoPanel(true);
279
280 super.OnShow();
281#ifdef PLATFORM_CONSOLE
282#ifndef PLATFORM_PS4
283 layoutRoot.FindAnyWidget("choose_account").Show(GetGame().GetInput().IsEnabledMouseAndKeyboard());
284#endif
285 layoutRoot.FindAnyWidget("ButtonHolderCredits").Show(GetGame().GetInput().IsEnabledMouseAndKeyboard());
288#endif
289 }
Camera GetIntroCamera()

References GetDayZGame(), GetGame(), GetInput(), DayZIntroScene::GetIntroCamera(), DayZIntroScene::GetIntroCharacter(), Refresh(), SetFocus(), UpdateControlsElements(), UpdateControlsElementVisibility(), and Vector().

◆ OnShow() [10/16]

override void UIScriptedMenu::OnShow ( )
inlineprotected

Definition at line 28 of file MainMenuVideo.c.

29 {
30 super.OnShow();
31 GetGame().GetUIManager().ShowUICursor(false);
32 GetGame().GetSoundScene().SetSoundVolume(0.0, 0.0);
33
35 }

References GetGame(), and UpdateControlsElements().

◆ OnShow() [11/16]

override void UIScriptedMenu::OnShow ( )
inlineprotected

Definition at line 86 of file TutorialsMenu.c.

87 {
88 super.OnShow();
89
91 }

References SetFocus().

◆ OnShow() [12/16]

override void UIScriptedMenu::OnShow ( )
inlineprotected

Definition at line 592 of file OptionsMenu.c.

593 {
594 super.OnShow();
595 m_GameTab.Focus();
596 Refresh();
597 }

References Refresh().

◆ OnShow() [13/16]

override void UIScriptedMenu::OnShow ( )
inlineprotected

Definition at line 193 of file RadialQuickbarMenu.c.

194 {
195 super.OnShow();
196
197 Mission mission = GetGame().GetMission();
198 if (mission)
199 {
200 IngameHud hud = IngameHud.Cast(mission.GetHud());
201 if (hud)
202 hud.ShowQuickbarUI(false);
203 }
204
205 SetFocus(layoutRoot);
206 m_IsMenuClosing = false;
207 }

References GetGame(), Mission::GetHud(), mission, and SetFocus().

◆ OnShow() [14/16]

override void UIScriptedMenu::OnShow ( )
inlineprotected

Definition at line 88 of file RespawnDialogue.c.

89 {
90 super.OnShow();
91
93 }

References SetFocus().

◆ OnShow() [15/16]

override void UIScriptedMenu::OnShow ( )
inlineprivate

Definition at line 760 of file SceneEditorMenu.c.

761 {
762 GetGame().GetMission().AddActiveInputExcludes({"menu"});
763 }

References GetGame().

◆ OnShow() [16/16]

override void UIScriptedMenu::OnShow ( )
inlineprivate

Definition at line 48 of file TitleScreenMenu.c.

49 {
50 if (g_Game.GetGameState() != DayZGameState.CONNECTING)
51 {
52#ifdef PLATFORM_CONSOLE
53 g_Game.GamepadCheck();
54#endif
55 }
56 layoutRoot.FindAnyWidget("notification_root").Show(false);
57
58#ifdef PLATFORM_CONSOLE
59#ifdef PLATFORM_XBOX
60#ifdef BUILD_EXPERIMENTAL
61 layoutRoot.FindAnyWidget("notification_root").Show(true);
62#endif
63#endif
64#endif
65 SetWidgetAnimAlpha(m_TextPress);
66 }

References g_Game.

◆ OnTabSwitch() [1/2]

void UIScriptedMenu::OnTabSwitch ( )
inlineprotected

Definition at line 578 of file ServerBrowserMenuNew.c.

579 {
582
585
587 }
bool IsNotInitialized()
void SetServersLoadingTab(TabType refreshing)

References IsNotInitialized().

◆ OnTabSwitch() [2/2]

void UIScriptedMenu::OnTabSwitch ( int tab)
inlineprotected

Definition at line 147 of file OptionsMenu.c.

148 {
149 switch (tab)
150 {
151 case 0:
152 {
153 m_GameTab.Focus();
154 break;
155 }
156 case 1:
157 {
158 m_SoundsTab.Focus();
159 break;
160 }
161 case 2:
162 {
163#ifdef PLATFORM_XBOX
164 m_ControlsTab.Focus();
165#else
166 m_VideoTab.Focus();
167#endif
168 break;
169 }
170 case 3:
171 {
172#ifndef PLATFORM_XBOX
173 m_ControlsTab.Focus();
174#endif
175 break;
176 }
177 }
178
180 }

◆ OnVisibilityChanged()

override void UIScriptedMenu::OnVisibilityChanged ( bool isVisible)
inlineprotected

Definition at line 76 of file MainMenuVideo.c.

77 {
78 if (!isVisible)
79 m_Video.Unload();
80 }

◆ OpenCredits() [1/2]

void UIScriptedMenu::OpenCredits ( )
inlineprotected

Definition at line 521 of file MainMenu.c.

522 {
523 EnterScriptedMenu(MENU_CREDITS);
524 m_Mission.OnMenuEnter(MENU_CREDITS);
525 }
const int MENU_CREDITS
Definition constants.c:195

References m_Mission, and MENU_CREDITS.

◆ OpenCredits() [2/2]

void UIScriptedMenu::OpenCredits ( )
inlineprotected

Definition at line 359 of file MainMenuConsoles.c.

360 {
361 EnterScriptedMenu(MENU_CREDITS);
362 m_Mission.OnMenuEnter(MENU_CREDITS);
363 }

References m_Mission, and MENU_CREDITS.

◆ OpenMenu() [1/2]

static void UIScriptedMenu::OpenMenu ( )
inlinestaticprotected

Definition at line 146 of file GesturesMenu.c.

147 {
148 GetGame().GetUIManager().EnterScriptedMenu(MENU_GESTURES, NULL);
149 }
const int MENU_GESTURES
Definition constants.c:184

References GetGame(), and MENU_GESTURES.

◆ OpenMenu() [2/2]

static void UIScriptedMenu::OpenMenu ( UIScriptedMenu parent = NULL)
inlinestaticprotected

Definition at line 153 of file RadialQuickbarMenu.c.

154 {
155 GetGame().GetUIManager().EnterScriptedMenu(MENU_RADIAL_QUICKBAR, parent);
156 }
const int MENU_RADIAL_QUICKBAR
Definition constants.c:188

References GetGame(), and MENU_RADIAL_QUICKBAR.

◆ OpenMenuControls()

void UIScriptedMenu::OpenMenuControls ( )
inlineprotected

Definition at line 334 of file MainMenuConsoles.c.

335 {
336 EnterScriptedMenu(MENU_XBOX_CONTROLS);
337 }

References MENU_XBOX_CONTROLS.

◆ OpenMenuCustomizeCharacter() [1/2]

void UIScriptedMenu::OpenMenuCustomizeCharacter ( )
inlineprotected

Definition at line 432 of file MainMenu.c.

433 {
434 EnterScriptedMenu(MENU_CHARACTER);
435 }

References MENU_CHARACTER.

◆ OpenMenuCustomizeCharacter() [2/2]

void UIScriptedMenu::OpenMenuCustomizeCharacter ( )
inlineprotected

Definition at line 354 of file MainMenuConsoles.c.

355 {
356 EnterScriptedMenu(MENU_CHARACTER);
357 }

References MENU_CHARACTER.

◆ OpenMenuOptions()

void UIScriptedMenu::OpenMenuOptions ( )
inlineprotected

Definition at line 339 of file MainMenuConsoles.c.

340 {
341 EnterScriptedMenu(MENU_OPTIONS);
342 }

References MENU_OPTIONS.

◆ OpenMenuPlayVideo()

void UIScriptedMenu::OpenMenuPlayVideo ( )
inlineprotected

Definition at line 344 of file MainMenuConsoles.c.

345 {
346 EnterScriptedMenu(MENU_VIDEO);
347 }
const int MENU_VIDEO
Definition constants.c:192

References MENU_VIDEO.

◆ OpenMenuServerBrowser() [1/2]

void UIScriptedMenu::OpenMenuServerBrowser ( )
inlineprotected

Definition at line 427 of file MainMenu.c.

428 {
429 EnterScriptedMenu(MENU_SERVER_BROWSER);
430 }
const int MENU_SERVER_BROWSER
Definition constants.c:190

References MENU_SERVER_BROWSER.

◆ OpenMenuServerBrowser() [2/2]

void UIScriptedMenu::OpenMenuServerBrowser ( )
inlineprotected

Definition at line 329 of file MainMenuConsoles.c.

330 {
331 EnterScriptedMenu(MENU_SERVER_BROWSER);
332 }

References MENU_SERVER_BROWSER.

◆ OpenMenuTutorials()

void UIScriptedMenu::OpenMenuTutorials ( )
inlineprotected

Definition at line 349 of file MainMenuConsoles.c.

350 {
351 EnterScriptedMenu(MENU_TUTORIAL);
352 }

References MENU_TUTORIAL.

◆ OpenMessages()

void UIScriptedMenu::OpenMessages ( )
inlineprotected

Definition at line 501 of file MainMenu.c.

502 {
503
504 }

◆ OpenSettings()

void UIScriptedMenu::OpenSettings ( )
inlineprotected

Definition at line 506 of file MainMenu.c.

507 {
508 EnterScriptedMenu(MENU_OPTIONS);
509 }

References MENU_OPTIONS.

◆ OpenStats()

void UIScriptedMenu::OpenStats ( )
inlineprotected

Definition at line 496 of file MainMenu.c.

497 {
498
499 }

◆ OpenTutorials()

void UIScriptedMenu::OpenTutorials ( )
inlineprotected

Definition at line 516 of file MainMenu.c.

517 {
518 EnterScriptedMenu(MENU_TUTORIAL);
519 }

References MENU_TUTORIAL.

◆ OptionsMenu()

void UIScriptedMenu::OptionsMenu ( )
inlineprotected

Definition at line 27 of file OptionsMenu.c.

28 {
29
30 }

◆ PerformSetToDefaults() [1/2]

void UIScriptedMenu::PerformSetToDefaults ( )
inlineprotected

deprecated, resets all (as before ~1.20)

Definition at line 492 of file KeybindingsMenu.c.

Referenced by OnClick(), OnModalResult(), and Update().

◆ PerformSetToDefaults() [2/2]

void UIScriptedMenu::PerformSetToDefaults ( )
inlineprotected

Definition at line 391 of file OptionsMenu.c.

392 {
393 switch (m_ActiveTabIdx)
394 {
395 case 0:
396 m_GameTab.SetToDefaults();
397 break;
398
399 case 1:
400 m_SoundsTab.SetToDefaults();
401 break;
402
403 case 2:
404#ifdef PLATFORM_XBOX
405 m_ControlsTab.SetToDefaults();
406#else
407 m_VideoTab.SetToDefaults();
408#endif
409 break;
410
411 case 3:
412#ifndef PLATFORM_XBOX
413 m_ControlsTab.SetToDefaults();
414#endif
415 break;
416 }
417
418 if (GetGame().GetInput().IsEnabledMouseAndKeyboard())
419 {
420 m_Reset.ClearFlags(WidgetFlags.IGNOREPOINTER);
422 m_Apply.ClearFlags(WidgetFlags.IGNOREPOINTER);
424 }
425
426 m_CanApplyOrReset = true;
427#ifdef PLATFORM_CONSOLE
430#endif
431 }

References ColorNormal(), GetGame(), GetInput(), UpdateControlsElements(), and UpdateControlsElementVisibility().

◆ PerformSetToDefaultsExt()

void UIScriptedMenu::PerformSetToDefaultsExt ( int mode)
inlineprotected

Definition at line 268 of file KeybindingsMenu.c.

269 {
270 switch (mode)
271 {
273 GetUApi().PresetReset();
274 break;
275
277 GetUApi().Revert();
278 break;
279 }
280
282 m_Apply.SetFlags(WidgetFlags.IGNOREPOINTER);
284 m_Undo.SetFlags(WidgetFlags.IGNOREPOINTER);
285 GetGame().GetCallQueue(CALL_CATEGORY_GUI).Call(GetGame().GetMission().RefreshExcludes);
286 m_GroupsContainer.Reset(true);
287 }

References CALL_CATEGORY_GUI, GetGame(), and GetUApi().

◆ PerformSwitchPreset()

void UIScriptedMenu::PerformSwitchPreset ( )
inlineprotected

Definition at line 560 of file ControlsXboxNew.c.

561 {
562 int index;
563 string preset_text;
565
566 index = inputAPI.PresetCurrent() + 1;
567 if (index >= inputAPI.PresetCount())
568 index = 0;
569
570 inputAPI.SupressNextFrame(true);
571 inputAPI.PresetSelect(index);
573
574 GetGame().GetMission().GetOnInputPresetChanged().Invoke();
575
576#ifdef PLATFORM_WINDOWS
577 GetUApi().Export(); //works on emulated consoles (-xbox,-ps4)
578#else
579 GetUApi().SaveInputPresetMiscData(); //default console functionality
580#endif
581
584 }

References GetGame(), GetUApi(), InputUtils::UpdateConsolePresetID(), and UpdateControlsElements().

◆ Play() [1/3]

void UIScriptedMenu::Play ( )
inlineprotected

Definition at line 377 of file CameraToolsMenu.c.

378 {
379 if (Camera.GetCurrentCamera())
380 Camera.GetCurrentCamera().GetTransform(m_FreeflightCamTransform);
381 if (m_Cameras.Count() > 0)
382 {
383 layoutRoot.Show(false);
384 GetGame().GetUIManager().ShowUICursor(false);
386
387 foreach (CTKeyframe keyframe : m_Cameras)
388 {
390 m_CameraLines.Insert(transform);
391
392 }
393
394 foreach (CTActor ac : m_Actors)
395 ac.Hide();
396
397 foreach (CTEvent ev : m_Events)
398 ev.GetEventTime();
399
401
403
404 if (GetCameraLine(0).param6 > -1)
405 {
407 m_NextCamPosition = "0 0 0";
408 m_Camera1.SetActive(true);
409 }
410 else
411 {
412 m_NextCamPosition = m_Camera2.GetPosition();
414 m_Camera1.SetActive(true);
415 m_Camera1.InterpolateTo(m_Camera2, time, m_InterpTypeCombo.GetCurrentItem());
416 }
417
419 m_IsPlaying = true;
420 m_Time = 0;
421 }
422 }
vector m_NextCamPosition
Param6< vector, vector, float, float, float, int > GetCameraLine(int index)
float SetCameraData(Param6< vector, vector, float, float, float, int > transform1, Param6< vector, vector, float, float, float, int > transform2)
vector m_FreeflightCamTransform[4]
float m_FollowingTimeFinished

References DeveloperFreeCamera::DisableFreeCamera(), GetGame(), GetPlayer(), m_IsPlaying, and m_Time.

◆ Play() [2/3]

void UIScriptedMenu::Play ( )
inlineprotected

Definition at line 412 of file MainMenu.c.

413 {
414 if (!g_Game.IsNewCharacter())
415 GetGame().GetCallQueue(CALL_CATEGORY_GUI).CallByName(this, "ConnectLastSession");
416 else
417 GetGame().GetCallQueue(CALL_CATEGORY_GUI).CallByName(this, "ConnectBestServer");
418 }

References CALL_CATEGORY_GUI, g_Game, and GetGame().

◆ Play() [3/3]

void UIScriptedMenu::Play ( )
inlineprotected

Definition at line 520 of file ServerBrowserMenuNew.c.

521 {
523 {
524 string mapNM = m_SelectedServer.GetMapToRun();
525 if (!g_Game.VerifyWorldOwnership(mapNM))
526 {
527 GetGame().GetUIManager().ShowDialog("#server_browser_connect_label", "#mod_detail_info_warning", 232, DBT_OK, DBB_NONE, DMT_INFO, GetGame().GetUIManager().GetMenu());
528 g_Game.GoBuyWorldDLC(mapNM);
529 return;
530 }
531
532 string ip = m_SelectedServer.GetIP();
533 int port = m_SelectedServer.GetPort();
534 g_Game.ConnectFromServerBrowser(ip, port, "");
535 }
536 }
ServerBrowserEntry m_SelectedServer

References g_Game, GetGame(), and m_SelectedServer.

◆ PlayAnimOnActor()

static void UIScriptedMenu::PlayAnimOnActor ( int actor,
int anim )
inlinestaticprotected

Definition at line 178 of file CameraToolsMenu.c.

179 {
180 if (m_Instance)
181 {
182 PlayerBase p = m_Instance.GetActor(actor);
183 if (p)
184 {
185 EmoteCB cb = EmoteCB.Cast(p.StartCommand_Action(anim, EmoteCB, DayZPlayerConstants.STANCEMASK_ALL));
186 cb.EnableCancelCondition(true);
187 }
188 }
189 }
DayZPlayerConstants
defined in C++
Definition dayzplayer.c:597

References m_Instance.

◆ PlayPauseVideo()

void UIScriptedMenu::PlayPauseVideo ( )
inlineprotected

Definition at line 59 of file MainMenuVideo.c.

60 {
61 if (m_Video)
62 {
63 if (m_Video.IsPlaying())
64 m_Video.Pause();
65 else
66 m_Video.Play();
67 }
68 }

◆ PlayVideo()

void UIScriptedMenu::PlayVideo ( )
inlineprotected

Definition at line 511 of file MainMenu.c.

512 {
513 EnterScriptedMenu(MENU_VIDEO);
514 }

References MENU_VIDEO.

◆ PopulateDlcFrame() [1/2]

void UIScriptedMenu::PopulateDlcFrame ( )
inlineprotected

Definition at line 180 of file MainMenu.c.

181 {
182 if (!m_DlcHandlers)
184
186 int count = m_DlcData.DLCs.Count();
189
190 for (int i = 0; i < count; i++)
191 {
192 data = m_DlcData.DLCs[i];
193 info = m_AllDlcsMap.Get(data.Name);
194 MainMenuDlcHandlerBase handler = new MainMenuDlcHandlerBase(info, m_DlcFrame, data);
195
196 handler.ShowInfoPanel(true);
197 m_DisplayedDlcHandler = handler;//TODO: carousel will take care of this later
198
199 m_DlcHandlers.Insert(handler);
200 }
201 }
static JsonDataDLCList GetData()
ref JsonDataDLCList m_DlcData
Definition MainMenu.c:45
ref array< ref MainMenuDlcHandlerBase > m_DlcHandlers
Definition MainMenu.c:46

References DlcDataLoader::GetData().

◆ PopulateDlcFrame() [2/2]

void UIScriptedMenu::PopulateDlcFrame ( )
inlineprotected

Definition at line 133 of file MainMenuConsoles.c.

134 {
135 if (!m_DlcHandlers)
137 else
138 {
139 // TODO: Would be better to update the parts that need updating instead of full recreation
140 // Destroying and then reloading the same video is quite wasteful
141 m_DlcHandlers.Clear();
142 }
143
145 int count = m_DlcData.DLCs.Count();
148
149 for (int i = 0; i < count; i++)
150 {
151 data = m_DlcData.DLCs[i];
152 info = m_AllDlcsMap.Get(data.Name);
153 MainMenuDlcHandlerBase handler = new MainMenuDlcHandlerBase(info, m_DlcFrame, data);
154
155 handler.ShowInfoPanel(true);
156 m_DisplayedDlcHandler = handler;//TODO: carousel will take care of this later
157
158 m_DlcHandlers.Insert(handler);
159 }
160 }

References DlcDataLoader::GetData().

◆ PopupBack()

UIPopupScript UIScriptedMenu::PopupBack ( )
inlineprivate

Definition at line 844 of file SceneEditorMenu.c.

845 {
846 if (m_OpenedPopups.Count() > 0)
847 {
848 int popup_curr_id = m_OpenedPopups.Get(m_OpenedPopups.Count() - 1);
849
850 m_Popups.Get(popup_curr_id).Show(false);
851 m_Popups.Get(popup_curr_id).OnClose();
852
853 m_OpenedPopups.Remove(m_OpenedPopups.Count() - 1);
854
855 if (m_OpenedPopups.Count() > 0)
856 {
857 int ppp_id = m_OpenedPopups.Get(m_OpenedPopups.Count() - 1);
858 m_Popups.Get(ppp_id).Show(true);
859 m_Popups.Get(ppp_id).OnOpen(NULL);
860
861 return m_Popups.Get(ppp_id);
862 }
863 }
864
865 m_WgtPopupsMain.Show(false);
866 m_WgtPopupsBg.Show(false);
867
868 return NULL;
869 }
ref TIntArray m_OpenedPopups

◆ PopupClose()

void UIScriptedMenu::PopupClose ( int popup_id)
inlineprivate

Definition at line 1190 of file SceneEditorMenu.c.

1191 {
1192 }

◆ PopupCloseAll()

void UIScriptedMenu::PopupCloseAll ( )
inlineprivate

Definition at line 874 of file SceneEditorMenu.c.

875 {
876 if (m_OpenedPopups.Count() > 0)
877 {
878 int popup_curr_id = m_OpenedPopups.Get(m_OpenedPopups.Count() - 1);
879
880 m_Popups.Get(popup_curr_id).Show(false);
881 m_Popups.Get(popup_curr_id).OnClose();
882
883 m_OpenedPopups.Clear();
884 }
885 }

Referenced by ~SceneEditorMenu().

◆ PopupHideAll()

void UIScriptedMenu::PopupHideAll ( )
inlineprivate

Definition at line 1197 of file SceneEditorMenu.c.

1198 {
1199 for (int i = 0; i < m_Popups.Count(); ++i)
1200 m_Popups.Get(i).Show(false);
1201
1202 m_WgtPopupsMain.Show(false);
1203 m_WgtPopupsBg.Show(false);
1204 }

Referenced by Init().

◆ PopupOpen()

UIPopupScript UIScriptedMenu::PopupOpen ( int popup_id,
Param param )
inlineprivate

Definition at line 817 of file SceneEditorMenu.c.

818 {
819 // Open background image (black transparent) under popups
820 if (m_OpenedPopups.Count() == 0)
821 {
822 m_WgtPopupsMain.Show(true);
823 m_WgtPopupsBg.Show(true);
824 }
825 else
826 {
827 int popup_curr_id = m_OpenedPopups.Get(m_OpenedPopups.Count() - 1);
828 m_Popups.Get(popup_curr_id).Show(false);
829 }
830
831 m_OpenedPopups.Insert(popup_id);
832
834
835 popup.Show(true);
836 popup.OnOpen(param);
837
838 return popup;
839 }

References UIPopupScript::Show().

Referenced by OnClick().

◆ PresetsMenu()

void UIScriptedMenu::PresetsMenu ( )
inlineprivate

Definition at line 3 of file PresetsMenu.c.

4 {
5 }

◆ PreviousCharacter() [1/2]

void UIScriptedMenu::PreviousCharacter ( )
inlineprotected

Definition at line 450 of file MainMenu.c.

451 {
453 {
454 int charID = m_ScenePC.GetIntroCharacter().GetPrevCharacterID();
455 if (charID != m_ScenePC.GetIntroCharacter().GetCharacterID())
456 {
457 m_ScenePC.GetIntroCharacter().SetCharacterID(charID);
459 }
460 }
461 }

References DayZIntroScene::GetIntroCharacter().

◆ PreviousCharacter() [2/2]

void UIScriptedMenu::PreviousCharacter ( )
inlineprotected

Definition at line 549 of file ServerBrowserMenuNew.c.

550 {
551
552 }

◆ PrimaryAction()

void UIScriptedMenu::PrimaryAction ( Widget w)
inlineprotected

Definition at line 633 of file RadialQuickbarMenu.c.

634 {
635 if (instance.m_SelectedItem)
636 {
637 if (!GetGame().IsDedicatedServer())
638 {
640 instance.m_SelectedItem.GetUserData(quickbar_item);
641
642 if (quickbar_item)
643 {
645
646 //ASSIGN ACTION
647 if (GetItemToAssign())
648 {
649 //assign item to slot
650 if (quickbar_item.GetItem() == GetItemToAssign())
651 player.RemoveQuickBarEntityShortcut(GetItemToAssign());
652 else
653 player.SetQuickBarEntityShortcut(GetItemToAssign(), quickbar_item.GetId());
654 }
655 //LIGHTS
656 else if (m_CurrentCategory == RadialQuickbarCategory.SPECIALIZED_LIGHTS && quickbar_item.IsLightSourceExtra())
658 //NVG
659 else if (m_CurrentCategory == RadialQuickbarCategory.SPECIALIZED_LIGHTS && quickbar_item.IsNVGExtra())
661 //change quickbar category
662 else if (quickbar_item.GetCategorySwitchID() != -1)
663 {
664 ChangeCurrentCategory(quickbar_item.GetCategorySwitchID());
665 return;
666 }
667 //SWAP
668 else
669 {
670 EntityAI item = quickbar_item.GetItem();
671
672 if (item)
673 {
674 //swap
675 player.RadialQuickBarSingleUse(quickbar_item.GetId() + 1); //id must begin with 1 (simulating key press 1-9)
676 }
677 }
678
679 RefreshQuickbar(false);
680 }
681 }
682 }
683 }
void HandleLights(RadialQuickbarItem quickbar_item)
void HandleNVG(RadialQuickbarItem quickbar_item)
static EntityAI GetItemToAssign()

References GetGame(), GetPlayer(), RadialQuickbarItem(), and RefreshQuickbar().

◆ ProcessDistanceAndUnits()

void UIScriptedMenu::ProcessDistanceAndUnits ( float num,
out float dist,
out string units )
inlineprotected

Definition at line 410 of file MapMenu.c.

411 {
412 if (num >= 901)
413 {
414 num *= 0.001;
415 num = Math.Round(num * 10) * 0.1;
416 dist = num;
417 units = "km";
418 }
419 else if (num >= 100 && num <= 900)
420 {
421 num = Math.Ceil(num * 0.1) * 10;
422 dist = num;
423 units = "m";
424 }
425 else if (num >= 1)
426 {
427 num = Math.Floor(num);
428 dist = num;
429 units = "m";
430 }
431 else
432 {
433 num = Math.Ceil(num * 10);
434 dist = num;
435 units = "cm";
436 }
437 }
static proto float Floor(float f)
Returns floor of value.

References Math::Ceil(), Math::Floor(), and Math::Round().

◆ ProcessEmoteConditionRequest()

void UIScriptedMenu::ProcessEmoteConditionRequest ( GestureMenuItem gesture_item)
inlineprotected

Definition at line 271 of file GesturesMenu.c.

272 {
274 if (player && m_CurrentCategory != -1)
275 {
276 bool can = player.GetEmoteManager().CanPlayEmote(gesture_item.GetID()) && !player.GetEmoteManager().IsEmotePlaying();
277 gesture_item.SetCanPerformEmote(can);
278 }
279 }

References GetGame(), and GetPlayer().

◆ RadialQuickbarMenu()

void UIScriptedMenu::RadialQuickbarMenu ( )
inlineprotected

Definition at line 109 of file RadialQuickbarMenu.c.

110 {
113
114 if (!instance)
115 instance = this;
116
117 GetGame().GetMission().GetOnInputPresetChanged().Insert(OnInputPresetChanged);
118 }

References GetGame(), and OnInputPresetChanged().

◆ RandomizeCharacter()

void UIScriptedMenu::RandomizeCharacter ( )
inlineprotected

Definition at line 209 of file CharacterCreationMenu.c.

210 {
211 m_Scene.GetIntroCharacter().SetToDefaultCharacter();
212
213 // make random selection
214 m_Scene.GetIntroCharacter().SetCharacterGender(Math.RandomInt(0, 2));
215
216 if (m_Scene.GetIntroCharacter().IsCharacterFemale())
217 {
218 m_GenderSelector.SetValue("Female");
219 m_SkinSelector.LoadNewValues(m_Scene.GetIntroCharacter().GetCharList(ECharGender.Female), 0);
220 m_SkinSelector.SetRandomValue();
221 }
222 else
223 {
224 m_GenderSelector.SetValue("Male");
225 m_SkinSelector.LoadNewValues(m_Scene.GetIntroCharacter().GetCharList(ECharGender.Male), 0);
226 m_SkinSelector.SetRandomValue();
227 }
228
229 GetGame().GetMenuDefaultCharacterData().GenerateRandomEquip();
230
231 m_TopSelector.SetValue(GetGame().GetMenuDefaultCharacterData().GetAttachmentMap().Get(InventorySlots.BODY), false);
232 m_BottomSelector.SetValue(GetGame().GetMenuDefaultCharacterData().GetAttachmentMap().Get(InventorySlots.LEGS), false);
233 m_ShoesSelector.SetValue(GetGame().GetMenuDefaultCharacterData().GetAttachmentMap().Get(InventorySlots.FEET), false);
234
235 Refresh();
236 SetCharacter();
237
239 }
array< ref PlayerStatBase > Get()
static proto int RandomInt(int min, int max)
Returns a random int number between and min [inclusive] and max [exclusive].

References CheckNewOptions(), Get(), GetGame(), DayZIntroSceneXbox::GetIntroCharacter(), Math::RandomInt(), Refresh(), and SetCharacter().

Referenced by OnClick(), and Update().

◆ ReadBook()

void UIScriptedMenu::ReadBook ( InventoryItem book)
inlineprotected

Definition at line 24 of file BookMenu.c.

25 {
26 m_content.LoadFile(book.ConfigGetString("file"));
27 m_author.SetText(book.ConfigGetString("author"));
28 m_title.SetText(book.ConfigGetString("title"));
29 m_content_total_height = m_content.GetContentHeight();
30 m_content_pos = 0;
31 NextPrevPage(false);
32 }

◆ Refresh() [1/9]

override void UIScriptedMenu::Refresh ( )
inlineprivate

◆ Refresh() [2/9]

override void UIScriptedMenu::Refresh ( )
inlineprotected

Definition at line 554 of file InGameMenuXbox.c.

555 {
556 string version;
557 GetGame().GetVersion(version);
558#ifdef PLATFORM_CONSOLE
559 version = "#main_menu_version" + " " + version + " (" + g_Game.GetDatabaseID() + ")";
560#else
561 version = "#main_menu_version" + " " + version;
562#endif
563 m_Version.SetText(version);
564
565 m_MuteAvailable = false;
566 m_GamercardAvailable = false;
567
568 if (GetGame().IsMultiplayer() && layoutRoot.FindAnyWidget("OnlineInfo").IsVisible() && m_ServerInfoPanel)
569 {
570 PlayerListEntryScriptedWidget selected = m_ServerInfoPanel.GetSelectedPlayer();
571 if (selected && !selected.IsLocalPlayer())
572 {
573 m_MuteAvailable = !GetGame().GetWorld().IsDisabledReceivingVoN() && !selected.IsGloballyMuted();
574#ifndef PLATFORM_PS4
576#endif
577 SetMuteButtonText(selected.IsMuted());
578 }
579 }
580
582 }

References g_Game, GetGame(), SetMuteButtonText(), and UpdateControlsElements().

◆ Refresh() [3/9]

override void UIScriptedMenu::Refresh ( )
inlineprotected

Definition at line 464 of file CharacterCreationMenu.c.

465 {
466 string name;
467#ifdef PLATFORM_CONSOLE
468 if (GetGame().GetUserManager() && GetGame().GetUserManager().GetSelectedUser())
469 {
470 name = GetGame().GetUserManager().GetSelectedUser().GetName();
471 if (name.LengthUtf8() > 16)
472 {
473 name = name.SubstringUtf8(0, 16);
474 name += "...";
475 }
476 }
477#else
478 name = m_Scene.GetIntroCharacter().GetCharacterName();
479 if (name == "")
481#endif
482
483 m_NameSelector.SetValue(name);
484
485 string version;
486 GetGame().GetVersion(version);
487#ifdef PLATFORM_CONSOLE
488 version = "#main_menu_version" + " " + version + " (" + g_Game.GetDatabaseID() + ")";
489
490 m_Apply.Show(m_CharacterSaved || !m_Scene.GetIntroCharacter().IsDefaultCharacter());
491 m_Save.Show(!m_CharacterSaved && m_Scene.GetIntroCharacter().IsDefaultCharacter());
492#else
493 version = "#main_menu_version" + " " + version;
494 m_Apply.Show(!m_Scene.GetIntroCharacter().IsDefaultCharacter());
495 m_Save.Show(m_Scene.GetIntroCharacter().IsDefaultCharacter());
496#endif
497 m_PlayedCharacterInfo.Show(!m_Scene.GetIntroCharacter().IsDefaultCharacter());
498
499 if (m_Scene.GetIntroCharacter().IsDefaultCharacter())
500 m_CharacterHeaderText.SetText("#character_menu_header");
501 else
502 m_CharacterHeaderText.SetText("#server_browser_prev_play_filter");
503
504 m_Version.SetText(version);
505
506#ifdef PLATFORM_CONSOLE
509#endif
510 }

References GameConstants::DEFAULT_CHARACTER_NAME, g_Game, GetGame(), DayZIntroSceneXbox::GetIntroCharacter(), name, UpdateControlsElements(), and UpdateControlsElementVisibility().

◆ Refresh() [4/9]

override void UIScriptedMenu::Refresh ( )
inlineprotected

Definition at line 324 of file KeybindingsMenu.c.

325 {
326 string version;
327 GetGame().GetVersion(version);
328#ifdef PLATFORM_CONSOLE
329 version = "#main_menu_version" + " " + version + " (" + g_Game.GetDatabaseID() + ")";
330#else
331 version = "#main_menu_version" + " " + version;
332#endif
333 m_Version.SetText(version);
334 }

References g_Game, and GetGame().

◆ Refresh() [5/9]

override void UIScriptedMenu::Refresh ( )
inlineprotected

Definition at line 373 of file MainMenu.c.

374 {
375 string name;
376 if (m_ScenePC && g_Game.GetGameState() == DayZGameState.MAIN_MENU)
378
379 string version;
380 GetGame().GetVersion(version);
381 m_Version.SetText("#main_menu_version" + " " + version);
382 }

References g_Game, GetGame(), and name.

◆ Refresh() [6/9]

override void UIScriptedMenu::Refresh ( )
inlineprotected

Definition at line 240 of file MainMenuConsoles.c.

241 {
242 string name;
243
244 if (GetGame().GetUserManager() && GetGame().GetUserManager().GetSelectedUser())
245 {
246 name = GetGame().GetUserManager().GetSelectedUser().GetName();
247 if (name.LengthUtf8() > 18)
248 {
249 name = name.SubstringUtf8(0, 18);
250 name += "...";
251 }
252 }
253 m_PlayerName.SetText(name);
254
255 string version;
256 GetGame().GetVersion(version);
257 m_Version.SetText("#main_menu_version" + " " + version + " (" + g_Game.GetDatabaseID() + ")");
258
259 if (GetGame().GetMission() != null) // if missionMainMenu still exist
260 {
261 if (m_Mission && !m_Mission.GetMenuMusic())
262 m_Mission.PlayMusic();
263 }
264 }

References g_Game, GetGame(), m_Mission, and name.

◆ Refresh() [7/9]

override void UIScriptedMenu::Refresh ( )
inlineprotected

Definition at line 574 of file OptionsMenu.c.

575 {
576 string version;
577 GetGame().GetVersion(version);
578#ifdef PLATFORM_CONSOLE
579 version = "#main_menu_version" + " " + version + " (" + g_Game.GetDatabaseID() + ")";
580#else
581 version = "#main_menu_version" + " " + version;
582#endif
583
584 m_Version.SetText(version);
585
586#ifdef PLATFORM_CONSOLE
589#endif
590 }

References g_Game, GetGame(), UpdateControlsElements(), and UpdateControlsElementVisibility().

◆ Refresh() [8/9]

override void UIScriptedMenu::Refresh ( )
inlineprotected

Definition at line 354 of file ServerBrowserMenuNew.c.

355 {
356 string name;
357
358#ifdef PLATFORM_CONSOLE
359 if (GetGame().GetUserManager() && GetGame().GetUserManager().GetSelectedUser())
360 {
361 name = GetGame().GetUserManager().GetSelectedUser().GetName();
362 if (name.LengthUtf8() > 18)
363 {
364 name = name.SubstringUtf8(0, 18);
365 name += "...";
366 }
367 }
368#else
369 g_Game.GetPlayerNameShort(14, name);
370#endif
371
372 if (m_PlayerName)
373 m_PlayerName.SetText(name);
374
375 string version;
376 GetGame().GetVersion(version);
377#ifdef PLATFORM_CONSOLE
378 version = "#main_menu_version" + " " + version + " (" + g_Game.GetDatabaseID() + ")";
379#else
380 version = "#main_menu_version" + " " + version;
381#endif
382 }

References g_Game, GetGame(), and name.

◆ Refresh() [9/9]

override void UIScriptedMenu::Refresh ( )
inlineprivate

Definition at line 899 of file SceneEditorMenu.c.

900 {
902
903 string class_name = "n/a";
904 string pos_x = "n/a";
905 string pos_y = "n/a";
906 string pos_z = "n/a";
907 string rot = "n/a";
908 string hlt = "n/a";
909
910 // Clear attachments
911 for (int i = 0; i < m_PrWidgetsAttachments.Count(); ++i)
912 m_PrWidgetsAttachments.Get(i).Hide();
913
914 if (m_ModuleSceneManager.GetSelectedSceneObject())
915 {
916 SceneObject obj = m_ModuleSceneManager.GetSelectedSceneObject();
917 vector v = obj.GetPosition();
918
919 class_name = obj.GetTypeName();
920 pos_x = v[0].ToString();
921 pos_y = v[1].ToString();
922 pos_z = v[2].ToString();
923 rot = obj.GetRotation().ToString();
924 hlt = obj.GetHealth().ToString();
925
927
928 float prop_h = 0.03;
929 float prop_count = attachments_slots.Count();
930 float prop_root_h = prop_h * (prop_count + 1);
931 float line_h = 1.0 / (prop_count + 1);
932
933 m_PrWgtAttRoot.SetSize(1, prop_root_h);
934 m_PrWgtAttTitle.SetSize(1, line_h);
935
936
937 EntityAI e = m_ModuleSceneManager.GetSelectedSceneObject().GetObject();
938
940
941
942 for (int j = 0; j < attachments_in_slots.Count(); ++j)
943 {
945
947
948 ui_prop.Show(m_ModuleSceneManager.GetSelectedSceneObject().GetObject(), attachments_in_slots.GetKey(j), attachments_in_slot);
949 ui_prop.SetPos(0, (1 + j) * line_h);
950 ui_prop.SetSize(1, line_h);
951 }
952
953 m_WgtBtnEditInitScript.Enable(true);
954 }
955 else
956 m_WgtBtnEditInitScript.Enable(false);
957
959 m_PrWgtPoxX.SetText(pos_x);
960 m_PrWgtPoxY.SetText(pos_y);
961 m_PrWgtPoxZ.SetText(pos_z);
962 m_PrWgtDir.SetText(rot);
963 m_PrWgtDmg.SetText(hlt);
964
965 m_SlWgtLoadedScene.SetText("Loaded Scene: " + m_ModuleSceneManager.SceneGetName());
966
967 //Ruler
968 if (m_ModuleSceneManager.IsRulerActivated())
969 m_WgtBtnDeleteRuler.SetColor(0xFF5DE028);
970 else
971 m_WgtBtnDeleteRuler.SetColor(0xFFFFFFFF);
972
973 }
class OptionSelectorMultistate extends OptionSelector class_name
float GetHealth()
TStringArray GetConfigAttachments()
string GetTypeName()
float GetRotation()
vector GetPosition()
UIPropertyAttachment GetFreeUIPropertyAttchament()
map< string, ref TStringArray > GetItemNamesForSlots(TStringArray slots)
proto string ToString()

References class_name, SceneObject::GetConfigAttachments(), GetFreeUIPropertyAttchament(), SceneObject::GetHealth(), GetItemNamesForSlots(), SceneObject::GetPosition(), SceneObject::GetRotation(), SceneObject::GetTypeName(), float::ToString(), and UpdateListObjects().

◆ RefreshByLocalProfile()

void UIScriptedMenu::RefreshByLocalProfile ( )
protected

◆ RefreshGestures()

void UIScriptedMenu::RefreshGestures ( GestureCategories category_id = -1)
inlineprotected

Definition at line 284 of file GesturesMenu.c.

285 {
286 //create gestures content (widgets) based on categories
287 if (category_id > -1)
288 {
291 }
292 else
293 {
296 instance.m_IsCategorySelected = false;
297 }
298
301 }

References UpdateControlsElements().

◆ RefreshLists()

void UIScriptedMenu::RefreshLists ( )
inlineprivate

Definition at line 131 of file SceneEditorMenu.c.

132 {
135 }

References RenderPresetItems(), and RenderPresets().

Referenced by DeletePreset(), NewPreset(), OnClick(), and RenamePreset().

◆ RefreshQuickbar()

void UIScriptedMenu::RefreshQuickbar ( bool reset_selection = true)
inlineprotected

Definition at line 258 of file RadialQuickbarMenu.c.

259 {
260 int selected_item_id = -1;
261 if (!reset_selection)
262 {
264 if (instance.m_SelectedItem)
265 {
266 instance.m_SelectedItem.GetUserData(quickbar_item);
268 }
269 }
270
272 //CheckForLightsAndNVG( m_Items );
274 }
void CreateContent(int selected_item_id=-1)
void GetItems(out ref array< ref RadialQuickbarItem > items)

References RadialQuickbarItem().

◆ RegisterTab()

void UIScriptedMenu::RegisterTab ( ScriptConsoleTabBase handler)
inlineprotected

Definition at line 110 of file ScriptConsole.c.

111 {
112 m_TabHandlers.Insert(handler.GetButton(), handler);
114 handler.Init(m_Id);
115 m_Id++;
116 }
ref map< int, ref ScriptConsoleTabBase > m_TabHandlersByID

References m_Id.

Referenced by Init().

◆ ReloadOptions()

void UIScriptedMenu::ReloadOptions ( )
inlineprotected

Definition at line 460 of file OptionsMenu.c.

461 {
462 m_Options = new GameOptions();
463
464 if (m_GameTab)
465 m_GameTab.SetOptions(m_Options);
466 if (m_SoundsTab)
467 m_SoundsTab.SetOptions(m_Options);
468 if (m_ControlsTab)
469 m_ControlsTab.SetOptions(m_Options);
470
471#ifndef PLATFORM_XBOX
472 if (m_VideoTab)
473 m_VideoTab.SetOptions(m_Options);
474#endif
475 }

◆ ReloadVideoOptions()

void UIScriptedMenu::ReloadVideoOptions ( )
inlineprotected

Definition at line 477 of file OptionsMenu.c.

478 {
479#ifndef PLATFORM_XBOX
480 if (m_VideoTab)
481 m_VideoTab.SetOptions(m_Options);
482#endif
483 }

◆ RemoveItemFromPreset()

void UIScriptedMenu::RemoveItemFromPreset ( )
inlineprivate

Definition at line 240 of file SceneEditorMenu.c.

241 {
242 if (GetCurrentItemIndex() != -1 && GetCurrentPresetIndex() != -1)
243 {
246 }
247 }

References GetCurrentItemIndex(), GetCurrentPresetIndex(), GetCurrentPresetName(), m_ConfigDebugProfile, and RenderPresetItems().

Referenced by OnClick().

◆ RemoveMarker()

void UIScriptedMenu::RemoveMarker ( )
inlineprotected

Definition at line 307 of file MapMenu.c.

308 {
309 m_WasChanged = true;
310 }

◆ RenamePreset()

void UIScriptedMenu::RenamePreset ( string new_preset_name)
inlineprivate

Definition at line 137 of file SceneEditorMenu.c.

138 {
139 if (GetCurrentPresetIndex() != -1)
140 {
142 RefreshLists();
143 }
144 }

References GetCurrentPresetIndex(), GetCurrentPresetName(), m_ConfigDebugProfile, and RefreshLists().

◆ RenderPresetItems()

void UIScriptedMenu::RenderPresetItems ( )
inlineprivate

Definition at line 147 of file SceneEditorMenu.c.

148 {
149 // load preset items list
150 int i;
151 m_PresetItemsTextListbox.ClearItems();
152 if (GetCurrentPresetIndex() != -1)
153 {
156
157 if (isFixed)
159 else
161
162 if (preset_array)
163 {
164 for (i = 0; i < preset_array.Count(); i++)
166 }
167 }
168 }
bool IsCurrentPresetFixed()

References GetCurrentPresetIndex(), GetCurrentPresetName(), IsCurrentPresetFixed(), and m_ConfigDebugProfile.

Referenced by AddItemToPreset(), ItemMoveDown(), ItemMoveUp(), OnClick(), RefreshLists(), and RemoveItemFromPreset().

◆ RenderPresets()

void UIScriptedMenu::RenderPresets ( )
inlineprivate

Definition at line 20 of file SceneEditorMenu.c.

21 {
22 m_PresetsTextListbox.ClearItems();
23
24 int i;
26
27 // load fixed presets list
29 for (i = 0; i < presets_array.Count(); i++)
30 m_PresetsTextListbox.AddItem("[" + presets_array.Get(i) + "]", new PresetParams(presets_array.Get(i), true, false), 0);
31
32 // load custom presets list
34 for (i = 0; i < custom_presets_array.Count(); i++)
35 m_PresetsTextListbox.AddItem(custom_presets_array.Get(i), new PresetParams(custom_presets_array.Get(i), false, false), 0);
36
37 string default_preset = m_ConfigDebugProfile.GetDefaultPreset();
38 if (default_preset != "")
39 {
40 // if is fixed
43 default_preset = "[" + default_preset + "]";
45 if (index > -1 && index < m_PresetsTextListbox.GetNumItems())
46 {
49 }
50 }
51 }
const string CONST_DEFAULT_PRESET_PREFIX
bool IsPresetFixed(string preset_name)

References GetPresetIndexByName(), IsPresetFixed(), and m_ConfigDebugProfile.

Referenced by Init(), and RefreshLists().

◆ RenderScaleRuler()

void UIScriptedMenu::RenderScaleRuler ( )
inlineprotected

1st segment

last segment

Definition at line 389 of file MapMenu.c.

◆ RequestRespawn()

bool UIScriptedMenu::RequestRespawn ( bool random)
inlineprotected

Definition at line 197 of file RespawnDialogue.c.

198 {
199 IngameHud.Cast(GetGame().GetMission().GetHud()).InitBadgesAndNotifiers();
200 Man player = GetGame().GetPlayer();
201 if (player && (player.GetPlayerState() == EPlayerStates.ALIVE && !player.IsUnconscious()))
202 return false;
203
204#ifdef PLATFORM_CONSOLE
205 InGameMenuXbox menu_ingame = InGameMenuXbox.Cast(GetGame().GetUIManager().FindMenu(MENU_INGAME));
206#else
207 InGameMenu menu_ingame = InGameMenu.Cast(GetGame().GetUIManager().FindMenu(MENU_INGAME));
208#endif
209
210 if (!menu_ingame)
211 return false;
212
213 menu_ingame.MenuRequestRespawn(this, random);
214 return true;
215 }
const int MENU_INGAME
Definition constants.c:168

References GetGame(), and MENU_INGAME.

Referenced by OnClick().

◆ Reset() [1/2]

void UIScriptedMenu::Reset ( )
inlineprotected

Undoes the unsaved changes and reverts to previous state. Does not reset to defaults!

Definition at line 248 of file KeybindingsMenu.c.

249 {
251 m_Apply.SetFlags(WidgetFlags.IGNOREPOINTER);
253 m_Undo.SetFlags(WidgetFlags.IGNOREPOINTER);
254
255 m_GroupsContainer.Reset();
256 }

◆ Reset() [2/2]

void UIScriptedMenu::Reset ( )
inlineprotected

Definition at line 302 of file OptionsMenu.c.

303 {
304 m_Options.Revert();
305 m_GameTab.Revert();
306 m_SoundsTab.Revert();
307 m_ControlsTab.Revert();
308#ifndef PLATFORM_XBOX
309 m_VideoTab.Revert();
310#endif
311
312 if (m_Options.IsChanged())
313 m_Options.Revert();
314
315 if (GetGame().GetInput().IsEnabledMouseAndKeyboard())
316 {
317 m_Apply.SetFlags(WidgetFlags.IGNOREPOINTER);
319 m_Reset.SetFlags(WidgetFlags.IGNOREPOINTER);
321 }
322
323 m_CanApplyOrReset = false;
324#ifdef PLATFORM_CONSOLE
327#endif
328 }

References ColorDisable(), GetGame(), GetInput(), UpdateControlsElements(), and UpdateControlsElementVisibility().

◆ ResetCurrentTab()

void UIScriptedMenu::ResetCurrentTab ( )
inlineprotected

Definition at line 330 of file OptionsMenu.c.

331 {
332 if (m_Options.IsChanged())
333 m_Options.Revert();
334
335 switch (m_ActiveTabIdx)
336 {
337 case 0:
338 {
339 m_GameTab.Revert();
340 break;
341 }
342 case 1:
343 {
344 m_SoundsTab.Revert();
345 break;
346 }
347 case 2:
348 {
349#ifdef PLATFORM_XBOX
350 m_ControlsTab.Revert();
351#else
352 m_VideoTab.Revert();
353#endif
354 break;
355 }
356 case 3:
357 {
358#ifndef PLATFORM_XBOX
359 m_ControlsTab.Revert();
360#endif
361 break;
362 }
363 }
364
365 if (m_Options.IsChanged())
366 m_Options.Revert();
367
368 if (GetGame().GetInput().IsEnabledMouseAndKeyboard())
369 {
370 m_Apply.SetFlags(WidgetFlags.IGNOREPOINTER);
372 m_Reset.SetFlags(WidgetFlags.IGNOREPOINTER);
374 }
375
376 m_CanApplyOrReset = false;
377#ifdef PLATFORM_CONSOLE
380#endif
381
382 m_Tabber.AlignTabbers();
383 }

References ColorDisable(), GetGame(), GetInput(), UpdateControlsElements(), and UpdateControlsElementVisibility().

Referenced by OnAttemptTabSwitch(), OnClick(), OnModalResult(), and Update().

◆ RespawnDialogue()

void UIScriptedMenu::RespawnDialogue ( )
protected

◆ Save()

void UIScriptedMenu::Save ( )
inlineprotected

saves default character

Definition at line 175 of file CharacterCreationMenu.c.

176 {
177 if (m_Scene.GetIntroCharacter().IsDefaultCharacter())
178 {
179 string name = m_NameSelector.GetValue();
180 if (name == "")
182
183 m_Scene.GetIntroCharacter().SaveCharName(name);
184 m_Scene.GetIntroCharacter().SaveDefaultCharacter();
185 m_Scene.GetIntroCharacter().SetToDefaultCharacter();
186 SetCharacterSaved(true);
187 }
188 }

References GameConstants::DEFAULT_CHARACTER_NAME, DayZIntroSceneXbox::GetIntroCharacter(), name, and SetCharacterSaved().

Referenced by OnClick(), and Update().

◆ SaveData() [1/2]

void UIScriptedMenu::SaveData ( )
inlineprotected

Definition at line 231 of file CameraToolsMenu.c.

232 {
233 if (!FileExist(g_Game.GetMissionFolderPath() + "/CameraTools"))
234 MakeDirectory(g_Game.GetMissionFolderPath() + "/CameraTools");
235
237 save_data.m_InterpType = m_InterpTypeCombo.GetCurrentItem();
238 save_data.m_InterpSpeed = m_InterpTypeSpeedCombo.GetCurrentItem();
239 save_data.m_BlurValue = GetBlurValue();
240
241 foreach (CTKeyframe keyframe : m_Cameras)
242 {
244 save_data.m_Cameras.Insert(transform);
245 }
246
247 foreach (CTEvent event_t : m_Events)
248 {
249 Param4<int, int, float, bool> ev = new Param4<int, int, float, bool>(event_t.GetEventActor(), event_t.GetEventType(), event_t.GetEventTime(), event_t.GetEventWalk());
250 save_data.m_Events.Insert(ev);
251 }
252
253 foreach (CTActor actor_t : m_Actors)
254 {
255 Param5<vector, vector, string, ref array<string>, string> ac = new Param5<vector, vector, string, ref array<string>, string>(actor_t.GetPosition(), actor_t.GetRotation(), actor_t.GetActorType(), actor_t.GetItems(), actor_t.GetHandsItem());
256 save_data.m_Actors.Insert(ac);
257 }
258
259 string errorMessage;
260 if (!JsonFileLoader<ref CTSaveStructure>.SaveFile(g_Game.GetMissionFolderPath() + "/CameraTools/keyframe_data.json", save_data, errorMessage))
262 }

References ErrorEx, FileExist(), g_Game, and MakeDirectory().

Referenced by OnClick().

◆ SaveData() [2/2]

static void UIScriptedMenu::SaveData ( )
inlinestaticprotected

Definition at line 75 of file ScriptConsole.c.

References ErrorEx.

◆ SaveEvent()

void UIScriptedMenu::SaveEvent ( )
inlineprotected

Definition at line 355 of file CameraToolsMenu.c.

356 {
357
358 }

◆ SaveFavoriteServersConsoles()

void UIScriptedMenu::SaveFavoriteServersConsoles ( )
inlineprotected

Definition at line 486 of file ServerBrowserMenuNew.c.

487 {
488 GetGame().SetProfileStringList("SB_Favorites", m_Favorites);
489 GetGame().SaveProfile();
490
491 }

References GetGame().

◆ SaveKeyframe()

void UIScriptedMenu::SaveKeyframe ( )
inlineprotected

Definition at line 285 of file CameraToolsMenu.c.

286 {
287 if (m_SelectedKeyframe && Camera.GetCurrentCamera())
288 {
289 m_SelectedKeyframe.SetPosition(Camera.GetCurrentCamera().GetWorldPosition());
290 m_SelectedKeyframe.SetOrientation(Camera.GetCurrentCamera().GetOrientation());
291 }
292 }

◆ SaveProfileSpawnDistance()

void UIScriptedMenu::SaveProfileSpawnDistance ( )
inlineprivate

Definition at line 309 of file SceneEditorMenu.c.

310 {
312 m_ConfigDebugProfile.SetSpawnDistance(m_SpawnDistanceEditBox.GetText().ToFloat());
313 }

References m_ConfigDebugProfile.

Referenced by OnClick(), and OnDoubleClick().

◆ SceneEditorCommand()

void UIScriptedMenu::SceneEditorCommand ( Param params)
inlineprivate

Definition at line 975 of file SceneEditorMenu.c.

976 {
978 int cmd_id = p.param1;
979
980 switch (cmd_id)
981 {
982 case PluginSceneManager.SCENE_EDITOR_CMD_REFRESH:
983 Refresh();
984 break;
985
986 case PluginSceneManager.SCENE_EDITOR_CMD_SAVE:
987 m_NotifyWgtPanel.SetAlpha(1.0);
988 m_NotifyFadeTimer.FadeOut(m_NotifyWgtPanel, 2, true);
989 break;
990 }
991 }

References Refresh().

◆ SceneEditorMenu()

void UIScriptedMenu::SceneEditorMenu ( )
inlineprivate

Definition at line 336 of file SceneEditorMenu.c.

337 {
338 m_ModuleSceneManager = PluginSceneManager.Cast(GetPlugin(PluginSceneManager));
339 m_ModuleSceneManager.OnUIEditorOpened();
340
345 }
ref TStringArray m_ClClassesList
array< int > TIntArray
Definition EnScript.c:668

References GetPlugin().

◆ ScriptConsole()

void UIScriptedMenu::ScriptConsole ( )
inlineprotected

Definition at line 37 of file ScriptConsole.c.

38 {
39#ifndef SERVER
40 if (GetGame() && GetGame().GetMission() && GetGame().GetMission().GetHud())
41 {
42 GetGame().GetMission().GetHud().ShowHudPlayer(false);
43 GetGame().GetMission().GetHud().ShowQuickbarPlayer(false);
44 }
45#endif
47 if (plugin)
48 plugin.OnScriptMenuOpened(true);
49 }

References GetGame(), GetPlugin(), and PluginItemDiagnostic().

◆ ScriptConsoleAddLocation()

void UIScriptedMenu::ScriptConsoleAddLocation ( )
inlineprivate

Definition at line 3 of file ScriptConsoleAddPosition.c.

4 {
5
6 }

◆ ScriptConsoleNewPresetDialog()

void UIScriptedMenu::ScriptConsoleNewPresetDialog ( )
inlineprivate

Definition at line 3 of file ScriptConsoleNewPresetDialog.c.

4 {
5
6 }

◆ ScriptConsoleRenamePresetDialog()

void UIScriptedMenu::ScriptConsoleRenamePresetDialog ( )
inlineprivate

Definition at line 3 of file ScriptConsoleRenamePresetDialog.c.

4 {
5
6 }

◆ ScriptConsoleUniversalInfoDialog()

void UIScriptedMenu::ScriptConsoleUniversalInfoDialog ( )
private

◆ SecondaryAction()

void UIScriptedMenu::SecondaryAction ( Widget w)
inlineprotected

Definition at line 685 of file RadialQuickbarMenu.c.

686 {
687 if (instance.m_SelectedItem && m_CurrentCategory == RadialQuickbarCategory.DEFAULT)
688 {
689 if (!GetGame().IsDedicatedServer())
690 {
692 instance.m_SelectedItem.GetUserData(quickbar_item);
693
694 if (quickbar_item)
695 {
697 EntityAI item = quickbar_item.GetItem();
698
699 if (item)
700 {
701 player.RadialQuickBarCombine(quickbar_item.GetId() + 1); //id must begin with 1 (simulating key press 1-9)
702 RefreshQuickbar(false);
703 }
704 }
705 }
706 }
707 }

References GetGame(), GetPlayer(), RadialQuickbarItem(), and RefreshQuickbar().

◆ SelectActor()

void UIScriptedMenu::SelectActor ( CTActor ac)
inlineprotected

Definition at line 121 of file CameraToolsMenu.c.

122 {
124 }
CTActor m_SelectedActor

◆ SelectEvent()

void UIScriptedMenu::SelectEvent ( CTEvent ev)
inlineprotected

Definition at line 116 of file CameraToolsMenu.c.

117 {
119 }

◆ SelectKeyframe()

void UIScriptedMenu::SelectKeyframe ( CTKeyframe kf)
inlineprotected

Definition at line 107 of file CameraToolsMenu.c.

108 {
110 m_SelectedKeyframe.Unselect();
111
113 m_SelectedKeyframe.Select();
114 }

◆ SelectServer() [1/2]

void UIScriptedMenu::SelectServer ( )
inlineprotected

Definition at line 434 of file InGameMenuXbox.c.

435 {
437 {
438 m_ServerInfoPanel.FocusFirst();
439
440 Refresh();
441 }
442 }

References Refresh().

◆ SelectServer() [2/2]

void UIScriptedMenu::SelectServer ( ServerBrowserEntry server)
inlineprotected

Definition at line 493 of file ServerBrowserMenuNew.c.

494 {
495
497 m_SelectedServer.Deselect();
498
500
501#ifdef PLATFORM_CONSOLE
502 // disable CONNECT button if server is offline
503 RichTextWidget aButton = RichTextWidget.Cast(layoutRoot.FindAnyWidget("ConnectIcon"));
504 TextWidget connectText = TextWidget.Cast(layoutRoot.FindAnyWidget("ConnectText"));
505
506 aButton.Show(server.IsOnline());
507 connectText.Show(server.IsOnline());
508#endif
509 }

References m_SelectedServer.

◆ SelectTab()

void UIScriptedMenu::SelectTab ( ScriptConsoleTabBase selectedHandler)
inlineprotected

Definition at line 384 of file ScriptConsole.c.

References m_ConfigDebugProfile, and m_TabHandlers.

Referenced by SelectTabByButton(), and SelectTabByID().

◆ SelectTabByButton()

void UIScriptedMenu::SelectTabByButton ( Widget button)
inlineprotected

Definition at line 377 of file ScriptConsole.c.

378 {
380 if (tab)
381 SelectTab(tab);
382 }
void SelectTab(ScriptConsoleTabBase selectedHandler)

References SelectTab().

Referenced by OnClick().

◆ SelectTabByID()

void UIScriptedMenu::SelectTabByID ( int id)
inlineprotected

Definition at line 370 of file ScriptConsole.c.

371 {
373 if (tab)
374 SelectTab(tab);
375 }

References SelectTab().

Referenced by Init().

◆ ServerListFocus()

void UIScriptedMenu::ServerListFocus ( bool focus,
bool favorite )
inlineprotected

Definition at line 311 of file ServerBrowserMenuNew.c.

312 {
313#ifdef PLATFORM_CONSOLE
314 TextWidget con_text = TextWidget.Cast(layoutRoot.FindAnyWidget("ConnectText"));
315 TextWidget ref_text = TextWidget.Cast(layoutRoot.FindAnyWidget("RefreshText"));
316 TextWidget res_text = TextWidget.Cast(layoutRoot.FindAnyWidget("ResetText"));
317
318 if (focus)
319 {
320 con_text.SetText("#server_browser_menu_connect");
321
322 float x, y;
323 res_text.GetSize(x, y);
324 if (favorite)
325 res_text.SetText("#server_browser_menu_unfavorite");
326 else
327 res_text.SetText("#server_browser_menu_favorite");
328 con_text.Update();
329 res_text.Update();
330 }
331#endif
332 }

References x, and y.

◆ SetBlurValue()

void UIScriptedMenu::SetBlurValue ( float blur)
inlineprotected

Definition at line 684 of file CameraToolsMenu.c.

685 {
686 m_BlurEditWidget.SetText(blur.ToString());
687 }

◆ SetCameraData()

float UIScriptedMenu::SetCameraData ( Param6< vector, vector, float, float, float, int > transform1,
Param6< vector, vector, float, float, float, int > transform2 )
inlineprotected

Definition at line 622 of file CameraToolsMenu.c.

623 {
624 float int_value = transform1.param3;
625 if (m_InterpTypeSpeedCombo.GetCurrentItem() == 1)
628 float pQuat[4];
629 int b_index;
630 if (transform1.param6 > -1)
631 {
632 p = GetActor(transform1.param6);
633 if (p)
634 {
635 b_index = p.GetBoneIndexByName("LeftHand_Dummy");
637 }
638 }
639 else
640 {
641 m_Camera1.SetPosition(transform1.param1);
642 m_Camera1.SetOrientation(transform1.param2);
644 }
645 m_Camera1.SetFOV(transform1.param4 * Math.DEG2RAD);
646 m_Camera1.SetFocus(transform1.param5, GetBlurValue());
647
648 if (transform2)
649 {
650 if (transform2.param6 > -1)
651 {
652 pQuat[4];
653 p = GetActor(transform2.param6);
654 if (p)
655 {
656 b_index = p.GetBoneIndexByName("LeftHand_Dummy");
657 if (b_index != -1)
658 {
659 m_Camera2.SetPosition(p.GetBonePositionWS(b_index));
660
661 p.GetBoneRotationWS(b_index, pQuat);
663 v[0] = fixAngle_180_180(v[0] - 180);
664 v[1] = fixAngle_180_180(v[1] - 270);
665 v[2] = fixAngle_180_180(v[2] + 90);
666 DbgUI.Text(v.ToString());
667 m_Camera2.SetYawPitchRoll(v);
668 }
669 }
670 }
671 else
672 {
673 m_Camera2.SetPosition(transform2.param1);
674 m_Camera2.SetOrientation(transform2.param2);
675 }
676
677 m_Camera2.SetFOV(transform2.param4 * Math.DEG2RAD);
678 m_Camera2.SetFocus(transform2.param5, GetBlurValue());
679 }
680
681 return int_value;
682 }
float fixAngle_180_180(float pAngle)
Definition DbgUI.c:60
ref Param2< int, int > m_FollowingBone
static proto native float Distance(vector v1, vector v2)
Returns the distance between tips of two 3D vectors.
static proto native void Text(string label)
static proto vector QuatToAngles(float q[4])
Returns Angles vector from quaternion.
static const float DEG2RAD
Definition EnMath.c:17

References Math::DEG2RAD, vector::Distance(), fixAngle_180_180(), Math3D::QuatToAngles(), and DbgUI::Text().

◆ SetCharacter()

void UIScriptedMenu::SetCharacter ( )
inlineprotected

Definition at line 203 of file CharacterCreationMenu.c.

204 {
205 if (m_Scene.GetIntroCharacter().IsDefaultCharacter())
206 GetGame().GetMenuDefaultCharacterData().EquipDefaultCharacter(m_Scene.GetIntroCharacter().GetCharacterObj());
207 }

References GetGame(), and DayZIntroSceneXbox::GetIntroCharacter().

Referenced by Init(), and RandomizeCharacter().

◆ SetCharacterSaved()

void UIScriptedMenu::SetCharacterSaved ( bool state)
inlineprotected

Definition at line 658 of file CharacterCreationMenu.c.

659 {
660#ifdef PLATFORM_CONSOLE
662 Refresh();
663#endif
664 }

References Refresh().

Referenced by BottomChanged(), GenderChanged(), Save(), ShoesChanged(), SkinChanged(), and TopChanged().

◆ SetCompassUIVisibility()

void UIScriptedMenu::SetCompassUIVisibility ( bool pState)
inlineprotected

Definition at line 359 of file MapMenu.c.

360 {
363
366 }

◆ SetContent()

void UIScriptedMenu::SetContent ( string content)
inlineprivate

Definition at line 52 of file ScriptConsoleUniversalInfoDialog.c.

53 {
54 m_Content.SetText(content);
55 m_Content.Update();
56 float contentSizeX, contentSizeY = 0;
58 m_Content.SetSize(contentSizeX, EDITBOX_TEXT_SIZE * m_Content.GetLinesCount());
59 float y_c = m_ContentScroll.GetContentHeight();
60 float x, y;
61 m_Content.GetScreenSize(x, y);
62 if (y > y_c)
63 m_ContentScroll.SetAlpha(1);
64 }

References x, and y.

◆ SetDefaultPreset()

void UIScriptedMenu::SetDefaultPreset ( int preset_index)
inlineprivate

Definition at line 94 of file SceneEditorMenu.c.

95 {
96 // remove previous default parameter
97 string default_preset = m_ConfigDebugProfile.GetDefaultPreset();
98 if (default_preset != "")
99 {
101 // if is fixed
103 default_preset = "[" + default_preset + "]";
105 if (index > -1 && index < m_PresetsTextListbox.GetNumItems())
106 {
108 prev_preset_params_array.param3 = false; // remove DEFAULT
110 }
111 }
112
113 // set preset on preset_index to default
114 // if is fixed
117 preset_name = "[" + preset_name + "]";
118 // set new default preset
121 if (index > -1 && index < m_PresetsTextListbox.GetNumItems())
122 {
124 preset_params_array.param3 = true; // DEFAULT
126 }
127 // store preset
128 m_ConfigDebugProfile.SetDefaultPreset(GetCurrentPresetName());
129 }

References GetCurrentPresetIndex(), GetCurrentPresetName(), GetPresetIndexByName(), IsPresetFixed(), and m_ConfigDebugProfile.

Referenced by OnClick().

◆ SetDisconnectTexts()

void UIScriptedMenu::SetDisconnectTexts ( )
inlineprivate

◆ SetFavoriteConsoles()

bool UIScriptedMenu::SetFavoriteConsoles ( string ipAddress,
int port,
bool favorite )
inlineprotected

Definition at line 223 of file ServerBrowserMenuNew.c.

224 {
225 if (favorite && m_Favorites.Count() >= MAX_FAVORITES)
226 {
227 g_Game.GetUIManager().ShowDialog("#layout_notification_info_warning", "#STR_MaxFavouriteReached", 0, DBT_OK, DBB_YES, DMT_EXCLAMATION, this);
228 return false;
229 }
230
233
234 return favorite;
235 }
void AddFavorite(string ipAddress, int port, bool favorite)

References g_Game, and MAX_FAVORITES.

◆ SetGameVersion()

void UIScriptedMenu::SetGameVersion ( )
inlineprotected

Definition at line 74 of file InGameMenu.c.

75 {
76 TextWidget version_widget = TextWidget.Cast(layoutRoot.FindAnyWidget("version"));
77 string version;
78 GetGame().GetVersion(version);
79 version_widget.SetText("#main_menu_version" + " " + version);
80
81#ifdef PREVIEW_BUILD
82 version_widget.SetText("THIS IS PREVIEW");
83#endif
84 }

References GetGame().

◆ SetGPSDirectionVisibility()

void UIScriptedMenu::SetGPSDirectionVisibility ( bool pState)
inlineprotected

Definition at line 374 of file MapMenu.c.

375 {
378 }

◆ SetGPSMarkerVisibility()

void UIScriptedMenu::SetGPSMarkerVisibility ( bool pState)
inlineprotected

Definition at line 368 of file MapMenu.c.

369 {
370 if (m_GPSMarker)
371 m_GPSMarker.Show(pState);
372 }

◆ SetHintText()

void UIScriptedMenu::SetHintText ( string text,
Widget w )
inlineprotected

Definition at line 99 of file ScriptConsole.c.

100 {
101 if (m_JsonData && m_JsonData.WidgetHintBindings && w)
102 {
104 m_JsonData.WidgetHintBindings.Set(hash, text);
105 Print("setting: " + text);
106 }
108 }
proto void Print(void var)
Prints content of variable to console/log.

References GetWidgetCombinedHash(), HoverInterrupt(), and Print().

Referenced by OnClick().

◆ SetItem()

void UIScriptedMenu::SetItem ( EntityAI item)
inlineprivate

Definition at line 53 of file InspectMenuNew.c.

54 {
55 if (item)
56 {
57 InspectMenuNew.UpdateItemInfo(layoutRoot, item);
58
59 if (!m_item_widget)
60 {
61 Widget preview_frame = layoutRoot.FindAnyWidget("ItemFrameWidget");
62 if (preview_frame)
64 }
65
67 m_item_widget.SetView(item.GetViewIndex());
69 PPERequesterBank.GetRequester(PPERequester_InventoryBlur).Start();
70 }
71 }
proto native void SetView(int viewIndex)
proto native void SetModelPosition(vector vPos)
proto native void SetItem(EntityAI object)

References ItemPreviewWidget::SetItem(), ItemPreviewWidget::SetModelPosition(), ItemPreviewWidget::SetView(), and Vector().

◆ SetItemToAssign()

static void UIScriptedMenu::SetItemToAssign ( EntityAI item)
inlinestaticprotected

Definition at line 128 of file RadialQuickbarMenu.c.

129 {
131 }

◆ SetLabel()

void UIScriptedMenu::SetLabel ( string label)
inlineprivate

Definition at line 47 of file ScriptConsoleUniversalInfoDialog.c.

48 {
49 m_Label.SetText(label);
50 }

◆ SetLogoutTime()

void UIScriptedMenu::SetLogoutTime ( )
inlineprivate

Definition at line 106 of file LogoutMenu.c.

107 {
108 m_LogoutTimeText.SetText(" ");
109 }

◆ SetMenuClosing() [1/2]

void UIScriptedMenu::SetMenuClosing ( bool state)
inlineprotected

Definition at line 632 of file GesturesMenu.c.

633 {
635 }

◆ SetMenuClosing() [2/2]

void UIScriptedMenu::SetMenuClosing ( bool state)
inlineprotected

Definition at line 760 of file RadialQuickbarMenu.c.

761 {
763 }

◆ SetMuteButtonText()

void UIScriptedMenu::SetMuteButtonText ( bool isMuted)
inlineprotected

Set mute text button text (mute / unmute)

Definition at line 669 of file InGameMenuXbox.c.

References m_MuteButtonTextID, and m_UnmuteButtonTextID.

Referenced by Init(), and Refresh().

◆ SetPosition()

void UIScriptedMenu::SetPosition ( vector pos)
inlineprivate

Definition at line 12 of file ScriptConsoleAddPosition.c.

13 {
14 m_EditboxPos.SetText(pos.ToString());
15 }
proto string ToString(bool beautify=true)
Vector to string.

References vector::ToString().

◆ SetPreset()

void UIScriptedMenu::SetPreset ( bool clear_inventory,
string preset_name )
inlineprivate

spawn preset items into inventory

Definition at line 250 of file SceneEditorMenu.c.

251 {
252 int i;
253 if (GetCurrentPresetIndex() != -1)
254 {
257
258 if (is_preset_fixed)
260 else
262
264 if (clear_inventory)
265 m_Developer.ClearInventory(player);
266
267 for (i = 0; i < preset_array.Count(); i++)
268 {
269 float health = -1;
270 int quantity = -1;
271 if (is_preset_fixed)
272 {
275 }
276 else
277 {
278 health = m_ConfigDebugProfile.GetItemHealth(preset_name, i);
279 quantity = m_ConfigDebugProfile.GetItemQuantity(preset_name, i);
280 }
281
282 m_Developer.SpawnEntityInPlayerInventory(player, preset_array.Get(i), health, quantity);
283 }
284 }
285 }

References GetCurrentPresetIndex(), GetGame(), GetPlayer(), IsCurrentPresetFixed(), and m_ConfigDebugProfile.

Referenced by OnDoubleClick().

◆ SetServerInfo()

bool UIScriptedMenu::SetServerInfo ( )
inlineprotected

Definition at line 86 of file InGameMenu.c.

87 {
88 if (GetGame().IsMultiplayer())
89 {
90 MenuData menu_data = g_Game.GetMenuData();
92
93 if (info)
94 {
95 m_ServerPort.SetText(info.m_HostPort.ToString());
96 m_ServerIP.SetText(info.m_HostIp);
97 m_ServerName.SetText(info.m_Name);
98 m_UnfavoriteImage.Show(info.m_Favorite);
99 m_FavoriteImage.Show(!info.m_Favorite);
100 m_ServerInfoText = "" + info.GetIpPort();
101
102 return true;
103 }
104 //temporary, incomplete solution, OnlineServices.GetCurrentServerInfo() should be working!
105 else if (menu_data && menu_data.GetLastPlayedCharacter() != GameConstants.DEFAULT_CHARACTER_MENU_ID)
106 {
107 int char_id = menu_data.GetLastPlayedCharacter();
108 int port;
109 string address, name;
110
111 menu_data.GetLastServerAddress(char_id, address);
112 port = menu_data.GetLastServerPort(char_id);
113 menu_data.GetLastServerName(char_id, name);
114 m_ServerPort.SetText(port.ToString());
115 m_ServerIP.SetText(address);
116 m_ServerName.SetText(name);
117 m_ServerInfoText = "" + address + ":" + port;
118
119 return true;
120 }
121 else
122 g_Game.RefreshCurrentServerInfo();
123 }
124 return false;
125 }
static void GetCurrentServerInfo(string ip, int port)

References GameConstants::DEFAULT_CHARACTER_MENU_ID, g_Game, OnlineServices::GetCurrentServerInfo(), GetGame(), and name.

◆ SetServerInfoVisibility()

void UIScriptedMenu::SetServerInfoVisibility ( bool show)
inlineprotected

Definition at line 380 of file InGameMenu.c.

381 {
382 m_ServerInfoPanel.Show(show);
383 }

◆ SetServersLoadingTab()

void UIScriptedMenu::SetServersLoadingTab ( TabType refreshing)
inlineprotected

◆ SetTime() [1/2]

void UIScriptedMenu::SetTime ( int time)
inlineprivate

Definition at line 98 of file InviteMenu.c.

99 {
100 m_iTime = time;
101 string text = "#layout_logout_dialog_until_logout_";
102
103 TimeConversions.ConvertSecondsToFullTime(time, m_FullTime);
104
105 if (m_FullTime.m_Days > 0)
106 text += "dhms";
107 else if (m_FullTime.m_Hours > 0)
108 text += "hms";
109 else if (m_FullTime.m_Minutes > 0)
110 text += "ms";
111 else
112 text += "s";
113
114 text = Widget.TranslateString(text);
115 text = string.Format(text, m_FullTime.m_Seconds, m_FullTime.m_Minutes, m_FullTime.m_Hours, m_FullTime.m_Days);
116 m_LogoutTimeText.SetText(text);
117 }

Referenced by Init(), and UpdateTime().

◆ SetTime() [2/2]

void UIScriptedMenu::SetTime ( int time)
inlineprivate

Definition at line 111 of file LogoutMenu.c.

112 {
113 m_iTime = time;
114 string text = "#layout_logout_dialog_until_logout_";
115
116 TimeConversions.ConvertSecondsToFullTime(time, m_FullTime);
117
118 if (m_FullTime.m_Days > 0)
119 text += "dhms";
120 else if (m_FullTime.m_Hours > 0)
121 text += "hms";
122 else if (m_FullTime.m_Minutes > 0)
123 text += "ms";
124 else
125 text += "s";
126
127 text = Widget.TranslateString(text);
128 text = string.Format(text, m_FullTime.m_Seconds, m_FullTime.m_Minutes, m_FullTime.m_Hours, m_FullTime.m_Days);
129 m_LogoutTimeText.SetText(text);
130 }

◆ SetToDefaults() [1/2]

void UIScriptedMenu::SetToDefaults ( )
inlineprotected

Definition at line 258 of file KeybindingsMenu.c.

259 {
260 g_Game.GetUIManager().ShowDialog("#menu_default_cap", "#menu_default_desc", MODAL_ID_DEFAULT, DBT_YESNO, DBB_YES, DMT_QUESTION, this);
261 }

References g_Game.

◆ SetToDefaults() [2/2]

void UIScriptedMenu::SetToDefaults ( )
inlineprotected

Definition at line 385 of file OptionsMenu.c.

386 {
387 if (!g_Game.GetUIManager().IsDialogVisible() && !g_Game.GetUIManager().IsModalVisible())
388 g_Game.GetUIManager().ShowDialog("#menu_default_cap", "TODO - reset options to default", MODAL_ID_DEFAULT, DBT_YESNO, DBB_YES, DMT_QUESTION, this);
389 }

References g_Game.

◆ SetTooltipTexts() [1/2]

void UIScriptedMenu::SetTooltipTexts ( Widget w,
string header = "",
string desc = "" )
inlineprotected

Definition at line 409 of file CharacterCreationMenu.c.

410 {
411#ifndef PLATFORM_CONSOLE
412 bool show = header != "" && desc != "";
413 m_DetailsRoot.Show(show);
414 m_DetailsLabel.SetText(header);
415 m_DetailsText.SetText(desc);
416
417 //moves the widget to parent, setting is relative to widget alignment, case-specific implementation (getter missing!!!)
418 if (show)
419 {
423
424 w.GetScreenPos(parent_pos_x, parent_pos_y);
425 w.GetScreenSize(parent_size_x, parent_size_y);
426 layoutRoot.GetScreenSize(layout_size_x, layout_size_y);
427
430 m_DetailsRoot.SetPos(set_x, set_y, true);
431 }
432
433 m_DetailsText.Update();
434 m_DetailsLabel.Update();
435 m_DetailsRoot.Update();
436#endif
437 }

Referenced by OnFocus(), and OnMouseEnter().

◆ SetTooltipTexts() [2/2]

void UIScriptedMenu::SetTooltipTexts ( Widget w,
string header = "",
string desc = "" )
inlineprotected

Definition at line 185 of file RespawnDialogue.c.

186 {
187 bool show = header != "" && desc != "";
188 m_DetailsRoot.Show(show);
189 m_DetailsLabel.SetText(header);
190 m_DetailsText.SetText(desc);
191
192 m_DetailsText.Update();
193 m_DetailsLabel.Update();
194 m_DetailsRoot.Update();
195 }

◆ SetUpperLegendVisibility()

void UIScriptedMenu::SetUpperLegendVisibility ( bool pState)
inlineprotected

Definition at line 380 of file MapMenu.c.

381 {
384
385 if (m_LegendResizer)
386 m_LegendResizer.ResizeParentToChild();
387 }

◆ ShiftMapToolsContainer()

void UIScriptedMenu::ShiftMapToolsContainer ( )
inlineprotected

Definition at line 462 of file MapMenu.c.

463 {
464 if (m_ToolbarPanel.IsVisible())
465 {
466 float sizeX, sizeY;
467 m_ToolbarPanel.GetScreenSize(sizeX, sizeY);
469 }
470 else
472 }

◆ ShoesChanged()

void UIScriptedMenu::ShoesChanged ( )
inlineprotected

Definition at line 276 of file CharacterCreationMenu.c.

277 {
278 GetGame().GetMenuDefaultCharacterData().SetDefaultAttachment(InventorySlots.FEET, m_ShoesSelector.GetStringValue());
279 GetGame().GetMenuDefaultCharacterData().EquipDefaultCharacter(m_Scene.GetIntroCharacter().GetCharacterObj());
280 SetCharacterSaved(false);
281 }

References GetGame(), DayZIntroSceneXbox::GetIntroCharacter(), and SetCharacterSaved().

◆ ShouldRestartBeVisible()

bool UIScriptedMenu::ShouldRestartBeVisible ( Man player)
inlineprotected

Definition at line 394 of file InGameMenuXbox.c.

395 {
397 }
static bool GetDisableRespawnInUnconsciousness()

References CfgGameplayHandler::GetDisableRespawnInUnconsciousness().

Referenced by UpdateGUI(), and UpdateMenuFocus().

◆ Show()

void UIScriptedMenu::Show ( )
inlineprivate

Definition at line 65 of file LogoutMenu.c.

66 {
67 if (layoutRoot)
68 layoutRoot.Show(true);
69 }

◆ ShowAButton()

void UIScriptedMenu::ShowAButton ( bool show)
inlineprotected

Definition at line 273 of file ServerBrowserMenuNew.c.

274 {
275 RichTextWidget aIcon = RichTextWidget.Cast(layoutRoot.FindAnyWidget("ConnectIcon"));
276 TextWidget aText = TextWidget.Cast(layoutRoot.FindAnyWidget("ConnectText"));
277
278 if (aIcon)
279 aIcon.Show(show);
280
281 if (aText)
282 aText.Show(show);
283
284 }

◆ ShowDlcFrame()

void UIScriptedMenu::ShowDlcFrame ( bool show)
inlineprotected

Definition at line 173 of file MainMenu.c.

174 {
175 m_DlcFrame.Show(show);
177 m_DisplayedDlcHandler.ShowInfoPanel(show);
178 }

◆ ShowYButton()

void UIScriptedMenu::ShowYButton ( bool show)
inlineprotected

Definition at line 261 of file ServerBrowserMenuNew.c.

262 {
263 RichTextWidget yIcon = RichTextWidget.Cast(layoutRoot.FindAnyWidget("ResetIcon"));
264 TextWidget yText = TextWidget.Cast(layoutRoot.FindAnyWidget("ResetText"));
265
266 if (yIcon)
267 yIcon.Show(show);
268
269 if (yText)
270 yText.Show(show);
271 }

◆ SkinChanged()

void UIScriptedMenu::SkinChanged ( )
inlineprotected

Definition at line 256 of file CharacterCreationMenu.c.

257 {
258 m_Scene.GetIntroCharacter().CreateNewCharacterByName(m_SkinSelector.GetStringValue(), false);
259 SetCharacterSaved(false);
260 }

References DayZIntroSceneXbox::GetIntroCharacter(), and SetCharacterSaved().

◆ SliderFocus()

void UIScriptedMenu::SliderFocus ( )
inlineprotected

Definition at line 433 of file OptionsMenu.c.

434 {
435#ifdef PLATFORM_CONSOLE
436 m_CanToggle = false;
438#endif
439 }

References UpdateControlsElements().

Referenced by OnFocus().

◆ StartEnteringAlternateKeybind()

void UIScriptedMenu::StartEnteringAlternateKeybind ( int key_index)
inlineprotected

Definition at line 138 of file KeybindingsMenu.c.

◆ StartEnteringKeybind()

void UIScriptedMenu::StartEnteringKeybind ( int key_index)
inlineprotected

Definition at line 126 of file KeybindingsMenu.c.

◆ StartupMenu()

void UIScriptedMenu::StartupMenu ( )
inlineprivate

Definition at line 3 of file StartupMenu.c.

4 {
5 }

◆ Stop()

void UIScriptedMenu::Stop ( )
inlineprotected

Definition at line 424 of file CameraToolsMenu.c.

425 {
426 layoutRoot.Show(true);
427 GetGame().GetUIManager().ShowUICursor(true);
428
429 m_Camera1.SetActive(false);
430 m_Camera2.SetActive(false);
431 FreeDebugCamera.GetInstance().SetActive(true);
432
434 m_IsPlaying = false;
435
436 foreach (CTEvent ev : m_Events)
437 ev.Stop();
438
439 foreach (CTActor ac : m_Actors)
440 {
441 ac.Reset();
442 ac.Show();
443 }
444
445 Camera.GetCurrentCamera().SetTransform(m_FreeflightCamTransform);
446 }

References GetGame(), and m_IsPlaying.

◆ StopVideo()

void UIScriptedMenu::StopVideo ( )
inlineprotected

Definition at line 50 of file MainMenuVideo.c.

51 {
52 if (m_Video)
53 {
54 m_Video.Unload();
55 GetGame().GetUIManager().Back();
56 }
57 }

References GetGame().

◆ SyncEvent_OnRecievedPlayerList()

void UIScriptedMenu::SyncEvent_OnRecievedPlayerList ( SyncPlayerList player_list)
inlineprotected

Definition at line 449 of file InGameMenuXbox.c.

450 {
452
453 Refresh();
454 }

References Refresh().

◆ TitleScreenMenu()

void UIScriptedMenu::TitleScreenMenu ( )
inlineprivate

Definition at line 6 of file TitleScreenMenu.c.

7 {
8 g_Game.SetGameState(DayZGameState.MAIN_MENU);
9 g_Game.SetLoadState(DayZLoadState.MAIN_MENU_START);
10 }

References g_Game.

◆ ToggleDependentOptions()

void UIScriptedMenu::ToggleDependentOptions ( int mode,
bool state )
inlineprotected

Controls visibility and sometimes even state of specific, dependent options across sub-menus.

Definition at line 450 of file OptionsMenu.c.

451 {
452 m_GameTab.ToggleDependentOptions(mode, state);
453 m_SoundsTab.ToggleDependentOptions(mode, state);
454 m_ControlsTab.ToggleDependentOptions(mode, state);
455#ifndef PLATFORM_XBOX
456 m_VideoTab.ToggleDependentOptions(mode, state);
457#endif
458 }

◆ ToggleFavoriteServer()

void UIScriptedMenu::ToggleFavoriteServer ( )
protected

DEPRECATED.

◆ ToggleFocus()

void UIScriptedMenu::ToggleFocus ( )
inlineprotected

Definition at line 441 of file OptionsMenu.c.

442 {
443#ifdef PLATFORM_CONSOLE
444 m_CanToggle = true;
446#endif
447 }

References UpdateControlsElements().

Referenced by Init(), and OnFocus().

◆ ToggleVisibility()

void UIScriptedMenu::ToggleVisibility ( )
inlineprivate

Definition at line 891 of file SceneEditorMenu.c.

892 {
893 m_WgtRoot.Show(m_ModuleSceneManager.IsOpened());
894 }

References m_WgtRoot.

◆ TopChanged()

void UIScriptedMenu::TopChanged ( )
inlineprotected

Definition at line 262 of file CharacterCreationMenu.c.

263 {
264 GetGame().GetMenuDefaultCharacterData().SetDefaultAttachment(InventorySlots.BODY, m_TopSelector.GetStringValue());
265 GetGame().GetMenuDefaultCharacterData().EquipDefaultCharacter(m_Scene.GetIntroCharacter().GetCharacterObj());
266 SetCharacterSaved(false);
267 }

References GetGame(), DayZIntroSceneXbox::GetIntroCharacter(), and SetCharacterSaved().

◆ TryConnectLastSession()

bool UIScriptedMenu::TryConnectLastSession ( out string ip,
out int port )
inlineprotected

Definition at line 532 of file MainMenu.c.

533 {
534 if (g_Game.GetLastVisitedServer(ip, port))
535 return true;
536 return false;
537 }

References g_Game.

◆ UnmarkSelected() [1/2]

void UIScriptedMenu::UnmarkSelected ( Widget w)
inlineprotected

Definition at line 550 of file GesturesMenu.c.

551 {
552 instance.m_SelectedItem = NULL;
553
554 if (w)
555 {
557 w.GetUserData(gesture_item);
558
559 //is not category
560 /*
561 if ( gesture_item && gesture_item.GetCategory() != GestureCategories.CATEGORIES )
562 {
563 //alter item visual
564 //TextWidget text_widget = TextWidget.Cast( gesture_item.GetRadialItemCard().FindAnyWidget( RADIAL_TEXT ) );
565 //text_widget.SetColor( ARGB( 255, 255, 255, 255 ) );
566 }
567 */
568 }
569 }

References GestureMenuItem().

◆ UnmarkSelected() [2/2]

void UIScriptedMenu::UnmarkSelected ( Widget w)
inlineprotected

Definition at line 603 of file RadialQuickbarMenu.c.

604 {
606
607 /*
608 if ( w )
609 {
610 RadialQuickbarItem quickbar_item;
611 w.GetUserData( quickbar_item );
612
613 //is not category
614 if ( quickbar_item )
615 {
616 if ( quickbar_item.GetItem() )
617 {
618 //alter item visual
619 TextWidget text_widget = TextWidget.Cast( quickbar_item.GetRadialItemCard().FindAnyWidget( TEXT_ITEM_NAME ) );
620 text_widget.SetColor( ARGB( 255, 255, 255, 255 ) );
621 }
622 else
623 {
624 //alter item visual
625 TextWidget title_widget = TextWidget.Cast( quickbar_item.GetRadialItemCard().FindAnyWidget( TEXT_ITEM_TITLE ) );
626 title_widget.SetColor( ARGB( 255, 255, 255, 255 ) );
627 }
628 }
629 }
630 */
631 }

◆ Update() [1/23]

override void UIScriptedMenu::Update ( float timeslice)
inlineprotected

Definition at line 69 of file DayZGame.c.

70 {
71 if (m_HintPanel)
72 {
75 {
76 m_HintPanel.ShowRandomPage();
78 }
79 }
80
81 if (GetUApi().GetInputByID(UAUIBack).LocalPress())
82 Leave();
83 }
bool CanChangeHintPage(float timeAccu)
float m_HintTimeAccu
Definition DayZGame.c:67
void Leave()
Definition DayZGame.c:85

References LoginScreenBase::CanChangeHintPage(), GetUApi(), and m_HintPanel.

◆ Update() [2/23]

override void UIScriptedMenu::Update ( float timeslice)
inlineprotected

Definition at line 482 of file CameraToolsMenu.c.

483 {
484
485 string camPos = MiscGameplayFunctions.TruncateVecToS(FreeDebugCamera.GetInstance().GetPosition(), 0);
486 string camOri = MiscGameplayFunctions.TruncateVecToS(FreeDebugCamera.GetInstance().GetOrientation(), 0);
487 m_CameraValues.SetText("Pos:" + camPos + " | Rot:" + camOri);
488
489#ifdef DIAG_DEVELOPER
490 if (DiagMenu.GetBool(DiagMenuIDs.CAMERATOOLS_ENABLE_REMOTE_CAMERA_BROADCAST))
491 {
492 Camera cam = Camera.GetCurrentCamera();
493
494 if (!cam && m_Camera1)
495 cam = m_Camera1;
496 if (cam)
497 {
498 Param4<vector, vector, float, float> p4 = new Param4<vector, vector, float, float>(GetGame().GetCurrentCameraPosition(), GetGame().GetCurrentCameraDirection(), cam.GetNearPlane(), cam.GetCurrentFOV());
499 GetGame().RPCSingleParam(null, ERPCs.DIAG_CAMERATOOLS_CAM_DATA, p4, false);
500 }
501
502 }
503#endif
504
506 {
507 foreach (CTEvent ev : m_Events)
508 {
509 if (ev.IsTime(m_Time, m_Time + timeslice))
510 ev.Play();
511 }
512
513 m_Time += timeslice;
514
515 if (!Camera.GetCurrentCamera() || !m_Camera1 || !m_Camera2)
516 return;
517
518 if (m_FollowingBone)
519 {
521 if (p)
522 {
523 vector pos = p.GetBonePositionWS(m_FollowingBone.param2);
524
525 int bone_index = p.GetBoneIndexByName("LeftHand_Dummy");
526 float bone_rot[4];
527 p.GetBoneRotationWS(bone_index, bone_rot);
528
530
531 //Print("Rot: "+ new_orient[0] +", "+ new_orient[1] +", "+ new_orient[2]);
532
533 float temp = new_orient[1];
534 new_orient[0] = new_orient[0] + 325; // vertical
535 new_orient[1] = new_orient[2] + 245;// horizontal
536 new_orient[2] = temp + 290; // tilt
537
538 //Print("PostRot: "+ new_orient[0] +", "+ new_orient[1] +", "+ new_orient[2]);
539
540 m_Camera1.SetPosition(pos);
541 m_Camera1.SetOrientation(new_orient);
542 }
543 }
544
545 if (m_NextCameraIndex + 1 == m_CameraLines.Count())
546 {
547 Stop();
549 foreach (CTEvent ev2 : m_Events)
550 ev2.Stop();
551 return;
552 }
553
554 if (Camera.GetCurrentCamera().GetPosition() == m_NextCamPosition || (m_FollowingTimeFinished != -1 && m_Time >= m_FollowingTimeFinished))
555 {
556 int time;
557 if (GetCameraLine(m_NextCameraIndex - 1).param6 > -1)
558 {
560 GetCameraLine(m_NextCameraIndex).param6 = -1;
561
563 }
564 else
566
568 if (GetCameraLine(m_NextCameraIndex - 1).param6 > -1)
569 {
571 m_NextCamPosition = "0 0 0";
572 m_Camera1.SetActive(true);
573 }
575 {
578 m_Camera1.SetActive(true);
579 m_Camera1.InterpolateTo(m_Camera2, time, m_InterpTypeCombo.GetCurrentItem());
580 }
581 else
582 {
583 Stop();
585 FreeDebugCamera.GetInstance().SetOrientation("0 0 0");
586 foreach (CTEvent ev3 : m_Events)
587 ev3.Stop();
588 }
589 }
590 }
591 else
592 {
593 if (m_Camera1.GetPosition() == m_NextCamPosition)
595
596 for (int i = 0; i < (m_Cameras.Count() - 1); i++)
597 {
598 vector pos0 = m_Cameras.Get(i).GetPosition();
599 vector pos1 = m_Cameras.Get(i + 1).GetPosition();
601 }
602
603 if (m_SelectedActor)
604 {
605 if (!g_Game.IsLeftCtrlDown())
606 m_SelectedActor.SetPosition(GetMouseLookDir());
607 else
608 {
609 vector from = m_SelectedActor.GetPosition();
612 m_SelectedActor.SetRotation(vector.Direction(from, to).Normalized().VectorToAngles());
613 }
614
615 }
616
617 foreach (CTActor ac : m_Actors)
619 }
620 }
DiagMenuIDs
Definition EDiagMenuIDs.c:2
Definition Debug.c:14
static Shape DrawArrow(vector from, vector to, float size=0.5, int color=0xFFFFFFFF, int flags=0)
Definition Debug.c:511
vector GetMouseLookDir()
static vector Direction(vector p1, vector p2)
Returns direction vector from point p1 to point p2.
Definition EnConvert.c:220
const int COLOR_RED
Definition constants.c:64
ShapeFlags
Definition EnDebug.c:126
static proto bool GetBool(int id, bool reverse=false)
Get value as bool from the given script id.
proto native volatile void Update()

References COLOR_RED, vector::Direction(), Debug::DrawArrow(), DeveloperFreeCamera::EnableFreeCameraSceneEditor(), g_Game, DiagMenu::GetBool(), GetGame(), GetPlayer(), m_IsPlaying, m_Time, Math3D::QuatToAngles(), and Stop().

◆ Update() [3/23]

override void UIScriptedMenu::Update ( float timeslice)
inlineprivate

Definition at line 74 of file ChatInputMenu.c.

75 {
76 if (m_BackInputWrapper.InputP().LocalPress())
77 Close();
78 }
proto native UAInput InputP()

References Close(), UAIDWrapper::InputP(), and m_BackInputWrapper.

◆ Update() [4/23]

override void UIScriptedMenu::Update ( float timeslice)
inlineprotected

Definition at line 498 of file ControlsXboxNew.c.

499 {
500 if (GetUApi().GetInputByID(UAUITabLeft).LocalPress())
501 m_TabScript.PreviousTab();
502
503 if (GetUApi().GetInputByID(UAUITabRight).LocalPress())
504 m_TabScript.NextTab();
505
506 if (GetUApi().GetInputByID(UAUIBack).LocalPress())
507 Back();
508
509 if (GetUApi().GetInputByID(UASwitchPreset).LocalPress())
510 {
513 m_TabScript.RefreshTab();
514 }
515 }

References Back(), GetUApi(), and m_TabScript.

◆ Update() [5/23]

override void UIScriptedMenu::Update ( float timeslice)
inlineprotected

Definition at line 258 of file GesturesMenu.c.

259 {
260 super.Update(timeslice);
261
262 //RefreshGestures(m_CurrentCategory);
264 if (m_CurrentCategory != GestureCategories.CATEGORIES && m_CurrentCategory != -1 && player)
265 {
266 for (int i = 0; i < m_GestureItems.Count(); i++)
268 }
269 }

References GetGame(), and GetPlayer().

◆ Update() [6/23]

override void UIScriptedMenu::Update ( float timeslice)
inlineprotected

Definition at line 270 of file InGameMenu.c.

271 {
272 super.Update(timeslice);
273
274 UpdateGUI();
275 }

◆ Update() [7/23]

override void UIScriptedMenu::Update ( float timeslice)
inlineprotected

Definition at line 368 of file InGameMenuXbox.c.

369 {
370 UpdateGUI();
371
372 if (GetGame().IsMultiplayer() && layoutRoot.FindAnyWidget("OnlineInfo").IsVisible())
373 {
374 PlayerListEntryScriptedWidget selected;
376 selected = m_ServerInfoPanel.GetSelectedPlayer();
377 if (GetUApi().GetInputByID(UAUICtrlX).LocalPress())
378 {
379 if (selected)
380 m_ServerInfoPanel.ToggleMute(selected.GetUID());
381 Refresh();
382 }
383
384#ifndef PLATFORM_PS4
385 if (GetUApi().GetInputByID(UAUICtrlY).LocalPress())
386 {
387 if (selected)
389 }
390#endif
391 }
392 }
static void ShowUserProfile(string uid)

References GetGame(), GetUApi(), Refresh(), OnlineServices::ShowUserProfile(), and UpdateGUI().

◆ Update() [8/23]

override void UIScriptedMenu::Update ( float timeslice)
inlineprivate

Definition at line 70 of file InviteMenu.c.

71 {
72 if (GetUApi().GetInputByID(UAUIBack).LocalPress())
73 Cancel();
74
75 if (m_iTime <= 0)
76 {
77 GetGame().GetCallQueue(CALL_CATEGORY_SYSTEM).Remove(this.UpdateTime);
78 string ip;
79 int port;
81 GetGame().GetCallQueue(CALL_CATEGORY_SYSTEM).Call(g_Game.ConnectFromJoin, ip, port);
82 }
83 }
static void GetInviteServerInfo(out string ip, out int port)

References CALL_CATEGORY_SYSTEM, Cancel(), g_Game, GetGame(), OnlineServices::GetInviteServerInfo(), and GetUApi().

◆ Update() [9/23]

override void UIScriptedMenu::Update ( float timeslice)
inlineprivate

Definition at line 97 of file LogoutMenu.c.

98 {
99 if (GetUApi().GetInputByID(UAUIBack).LocalPress())
100 {
101 Hide();
102 Cancel();
103 }
104 }

References Cancel(), GetUApi(), and Hide().

◆ Update() [10/23]

override void UIScriptedMenu::Update ( float timeslice)
inlineprotected

Definition at line 215 of file MapMenu.c.

216 {
217 super.Update(timeslice);
219
220 PlayerBase player = PlayerBase.Cast(g_Game.GetPlayer());
221
223 {
224 if (m_Images)
225 m_MapWidgetInstance.RemoveChild(m_Images);
226
227 if (player)
228 {
229 m_ToolsScaleContourText.SetText(string.Format("%1 m", m_MapWidgetInstance.GetContourInterval()));
231 float rulerMaxDistance;
232 string rulerUnits;
234 m_ToolsScaleCellSizeText.SetText(string.Format("%1%2", rulerMaxDistance, rulerUnits));
235
237 {
238 vector mapPos = m_MapWidgetInstance.MapToScreen(m_MapNavigationBehaviour.GetPositionReal());
239 float scale = 1 - m_MapWidgetInstance.GetScale();
240
241 if (m_HasCompass)
242 {
243 vector rot = player.GetYawPitchRoll();
244 float angle = Math.Round(rot[0]);
245 if (angle < 0)
246 angle = 360 + angle;
247
248 m_GPSMarkerArrow.SetRotation(0, 0, angle);
249 m_ToolsCompassArrow.SetRotation(0, 0, angle);
250 m_ToolsCompassAzimuth.SetText(string.Format("%1°", angle));
251 }
252
253 array<int> coords = MapNavigationBehaviour.OrderedPositionNumbersFromGridCoords(player);
255 {
256 m_GPSMarker.SetSize(scale * 100, scale * 100);
257 m_GPSMarkerArrow.SetSize(scale * 100, scale * 100);
258 float sizeX, sizeY;
259 m_GPSMarker.GetSize(sizeX, sizeY);
262 m_GPSMarker.SetPos(mapPos[0] - sizeX / 2, mapPos[1] - sizeY / 2);
263 m_GPSMarkerArrow.SetPos(mapPos[0] - sizeX / 2, mapPos[1] - sizeY / 2);
264
265 if (coords.Count() == m_MapNavigationBehaviour.DISPLAY_GRID_POS_MAX_CHARS_COUNT * 2 && coords[0] >= 0)
266 {
267 m_ToolsGPSXText.SetText(string.Format(COORD_FORMAT, coords[0], coords[1], coords[2]));
268 m_ToolsGPSYText.SetText(string.Format(COORD_FORMAT, coords[3], coords[4], coords[5]));
269 }
270 else
271 {
272 m_ToolsGPSXText.SetText("-.--");
273 m_ToolsGPSYText.SetText("-.--");
274 }
275
276 m_ToolsGPSElevationText.SetText(string.Format("%1m", Math.Round(player.GetPosition()[1])));
277 }
278 else
279 {
280 m_ToolsGPSXText.SetText("-.--");
281 m_ToolsGPSYText.SetText("-.--");
282 m_ToolsGPSElevationText.SetText("----m");
283 }
284 }
285 }
286
288 if (!m_IsOpenning && (GetUApi().GetInputByID(UAUIBack).LocalPress() || isClosedWithShortcut))
289 {
290 if (player)
291 player.SetLastMapInfo(m_MapWidgetInstance.GetScale(), m_MapWidgetInstance.GetMapPos());
292
293 CloseMapMenu();
294 }
295
296 m_IsOpenning = false;
297 }
298 }
void MapNavigationBehaviour(PlayerBase pPlayer, EMapNavigationType pNavigationType=EMapNavigationType.BASIC)
ImageWidget m_Images
Definition MapMenu.c:21
void RenderScaleRuler()
Definition MapMenu.c:389
const string COORD_FORMAT
Definition MapMenu.c:3
void ProcessDistanceAndUnits(float num, out float dist, out string units)
Definition MapMenu.c:410

References g_Game, CfgGameplayHandler::GetMapIgnoreMapOwnership(), CfgGameplayHandler::GetMapIgnoreNavItemsOwnership(), GetUApi(), MapNavigationBehaviour(), and Math::Round().

◆ Update() [11/23]

override void UIScriptedMenu::Update ( float timeslice)
inlineprotected

Definition at line 512 of file CharacterCreationMenu.c.

513 {
514 if (GetUApi().GetInputByID(UAUIBack).LocalPress())
515 Back();
516
517 if (GetUApi().GetInputByID(UAUICtrlX).LocalPress())
519
520#ifdef PLATFORM_CONSOLE
521 if (GetUApi().GetInputByID(UAUICtrlY).LocalPress())
522 {
523 if (m_Scene.GetIntroCharacter().IsDefaultCharacter() && !m_CharacterSaved)
524 Save();
525 }
526#endif
527 }

References Back(), DayZIntroSceneXbox::GetIntroCharacter(), GetUApi(), RandomizeCharacter(), and Save().

◆ Update() [12/23]

override void UIScriptedMenu::Update ( float timeslice)
inlineprotected

Definition at line 67 of file CreditsMenu.c.

68 {
69 float new_menu_val;
70 if (m_LogoFadeInLevel != 1)
71 {
73 if (new_menu_val < 1)
75 else
77
78 if (m_MenuFadeInLevel > 0.5)
79 {
81 if (new_menu_val < 1)
83 else
85 }
86
87 layoutRoot.SetAlpha(m_MenuFadeInLevel);
88 m_Logo.SetAlpha(m_LogoFadeInLevel);
90 }
91 else if (m_ScrollLevel + m_ScrollSize <= m_Scroller.GetContentHeight())
92 {
95 m_Scroller.VScrollToPos(m_ScrollLevel);
96 }
97 else
98 {
100 if (new_menu_val > 0)
102 else
103 Close();
104
105 layoutRoot.SetAlpha(m_MenuFadeInLevel2);
107 }
108
110
111 if (GetGame().GetInput().LocalRelease("UAUIBack"))
112 Close();
113 }
float m_MenuFadeInLevel
Definition CreditsMenu.c:8
float m_CurrentTime
Definition CreditsMenu.c:19
float m_LogoFadeInLevel
Definition CreditsMenu.c:11
float m_MenuFadeInLevel2
Definition CreditsMenu.c:9
float m_ScrollLevel
Definition CreditsMenu.c:13

References Close(), GetGame(), and GetInput().

◆ Update() [13/23]

override void UIScriptedMenu::Update ( float timeslice)
inlineprotected

Definition at line 168 of file KeybindingsMenu.c.

169 {
170 if (GetUApi().GetInputByID(UAUIBack).LocalPress())
171 Back();
172
175 }

References Back(), and GetUApi().

◆ Update() [14/23]

override void UIScriptedMenu::Update ( float timeslice)
inlineprotected

Definition at line 404 of file MainMenu.c.

405 {
406 super.Update(timeslice);
407
408 if (GetGame() && GetUApi().GetInputByID(UAUIBack).LocalPress())
409 Exit();
410 }

References Exit(), GetGame(), and GetUApi().

◆ Update() [15/23]

override void UIScriptedMenu::Update ( float timeslice)
inlineprotected

Definition at line 298 of file MainMenuConsoles.c.

299 {
300 super.Update(timeslice);
301
302 if (g_Game.GetLoadState() != DayZGameState.CONNECTING && !GetGame().GetUIManager().IsDialogVisible())
303 {
304#ifndef PLATFORM_CONSOLE
305 if (GetUApi().GetInputByID(UAUIBack).LocalPress())
306 Exit();
307#else
308 if (GetUApi().GetInputByID(UAUICredits).LocalPress())
309 OpenCredits();
310#endif
311 }
312
313#ifdef PLATFORM_XBOX
314 if (GetUApi().GetInputByID(UAUICtrlY).LocalPress())
316#endif
317 if (GetUApi().GetInputByID(UAUICtrlX).LocalPress())
318 {
319 if (CanStoreBeOpened())
320 m_DisplayedDlcHandler.GetModInfo().GoToStore();
321 }
322 }

References Exit(), g_Game, GetGame(), and GetUApi().

◆ Update() [16/23]

override void UIScriptedMenu::Update ( float timeslice)
inlineprotected

Definition at line 70 of file MainMenuVideo.c.

71 {
72 if (GetUApi().GetInputByID(UAUIBack).LocalPress())
73 StopVideo();
74 }

References GetUApi().

◆ Update() [17/23]

override void UIScriptedMenu::Update ( float timeslice)
inlineprotected

Definition at line 324 of file TutorialsMenu.c.

325 {
326 if (GetUApi().GetInputByID(UAUITabLeft).LocalPress())
327 m_TabScript.PreviousTab();
328
329 //RIGHT BUMPER - TAB RIGHT
330 if (GetUApi().GetInputByID(UAUITabRight).LocalPress())
331 m_TabScript.NextTab();
332
333 if (GetUApi().GetInputByID(UAUIBack).LocalPress())
334 Back();
335 }

References Back(), GetUApi(), and m_TabScript.

◆ Update() [18/23]

override void UIScriptedMenu::Update ( float timeslice)
inlineprotected

Definition at line 599 of file OptionsMenu.c.

600 {
601 super.Update(timeslice);
602
603 if (m_ModalLock)
604 {
605 m_ModalLock = false;
606#ifdef PLATFORM_CONSOLE
608#endif
609 return;
610 }
611
612 if (g_Game.GetUIManager().IsDialogVisible())
613 return;
614
615 if (GetUApi().GetInputByID(UAUITabLeft).LocalPress())
616 m_Tabber.PreviousTab();
617 else if (GetUApi().GetInputByID(UAUITabRight).LocalPress())
618 m_Tabber.NextTab();
619 else if (GetUApi().GetInputByID(UAUICtrlX).LocalPress())
620 {
622 Apply();
623 }
624 else if (GetUApi().GetInputByID(UAUICredits).LocalPress())
625 {
628
629 }
630 else if (GetUApi().GetInputByID(UAUICtrlY).LocalPress())
632 else if (GetUApi().GetInputByID(UAUIBack).LocalPress())
633 Back();
634 }

References Apply(), Back(), g_Game, GetUApi(), PerformSetToDefaults(), ResetCurrentTab(), and UpdateControlsElements().

◆ Update() [19/23]

override void UIScriptedMenu::Update ( float timeslice)
inlineprotected

Definition at line 384 of file ServerBrowserMenuNew.c.

385 {
386 if (!GetGame().GetUIManager().IsDialogVisible() && !GetDayZGame().IsConnecting())
387 {
388 if (GetUApi().GetInputByID(UAUITabLeft).LocalPress())
389 m_Tabber.PreviousTab();
390
391 if (GetUApi().GetInputByID(UAUITabRight).LocalPress())
392 m_Tabber.NextTab();
393
394 if (GetUApi().GetInputByID(UAUINextDown).LocalPress())
396
397 if (GetUApi().GetInputByID(UAUINextUp).LocalPress())
399
400 if (GetUApi().GetInputByID(UAUISelect).LocalPress())
402
403 if (GetUApi().GetInputByID(UAUICtrlX).LocalPress())
405
406 if (GetUApi().GetInputByID(UAUICtrlY).LocalPress())
408
409 if (GetUApi().GetInputByID(UAUILeft).LocalPress())
411
412 // LEFT HOLD
413 if (GetUApi().GetInputByID(UAUILeft).LocalHold())
415
416 // LEFT RELEASE
417 if (GetUApi().GetInputByID(UAUILeft).LocalRelease())
419
420 if (GetUApi().GetInputByID(UAUIRight).LocalPress())
422
423 // RIGHT HOLD
424 if (GetUApi().GetInputByID(UAUIRight).LocalHold())
426
427 // RIGHT RELEASE
428 if (GetUApi().GetInputByID(UAUIRight).LocalRelease())
430
431 if (GetUApi().GetInputByID(UAUIUp).LocalPress())
432 GetSelectedTab().Up();
433
434 if (GetUApi().GetInputByID(UAUIDown).LocalPress())
435 GetSelectedTab().Down();
436
437 if (GetUApi().GetInputByID(UAUIBack).LocalPress())
438 Back();
439 }
440
441 super.Update(timeslice);
442 }
override void PressSholderRight()
override void PressSholderLeft()

References Back(), GetDayZGame(), GetGame(), and GetUApi().

◆ Update() [20/23]

override void UIScriptedMenu::Update ( float timeslice)
inlineprotected

Definition at line 120 of file NoteMenu.c.

121 {
122 super.Update(timeslice);
123
124 if (GetGame() && GetUApi().GetInputByID(UAUIBack).LocalPress())
125 Close();
126 }

References Close(), GetGame(), and GetUApi().

◆ Update() [21/23]

override void UIScriptedMenu::Update ( float timeslice)
inlineprotected

Definition at line 32 of file RespawnDialogue.c.

33 {
34 super.Update(timeslice);
35
36 if (GetUApi().GetInputByID(UAUIBack).LocalPress() || GetUApi().GetInputByID(UAUIMenu).LocalPress())
37 Close();
38 }

References Close(), and GetUApi().

◆ Update() [22/23]

override void UIScriptedMenu::Update ( float timeslice)
inlineprotected

Definition at line 221 of file ScriptConsole.c.

222 {
223 super.Update(timeslice);
224
225 int mouseX, mouseY;
230
232 {
234 if (m_HoverTime > 1)
235 HoverSuccess();
236 }
237
238 if (dist > 1 && m_HoverSuccessTriggered)
240
241 if (GetGame() && GetUApi().GetInputByID(UAUIBack).LocalPress())
242 GetGame().GetUIManager().Back();
243
244
245 if (!GetGame().IsMultiplayer() && KeyState(KeyCode.KC_RCONTROL) && KeyState(KeyCode.KC_NUMPAD0) && m_HintWidgetRoot && m_HintWidgetRoot.IsVisible())
246 {
247 ClearKey(KeyCode.KC_NUMPAD0);
248 m_EditTooltipRoot.Show(true);
249 string text = GetMessage();
250 if (text == NO_HINT_TEXT)
251 text = "";
252 m_HintInputText.SetText(text);
253
254 }
255
256
259 }
proto native void ClearKey(KeyCode key)
proto native int KeyState(KeyCode key)
static proto float Sqrt(float val)
Returns square root.
static proto float AbsFloat(float f)
Returns absolute value.

References Math::AbsFloat(), ClearKey(), GetGame(), GetMessage(), GetMousePos(), GetUApi(), HoverInterrupt(), HoverSuccess(), KeyState(), m_CurrentHoverWidget, m_HintWidgetRoot, m_HoverSuccessTriggered, m_HoverTime, m_TabHandlers, and Math::Sqrt().

◆ Update() [23/23]

override void UIScriptedMenu::Update ( float timeslice)
inlineprivate

Definition at line 73 of file TitleScreenMenu.c.

74 {
75 super.Update(timeslice);
76
77 if (GetUApi().GetInputByID(UAUISelect).LocalPress())
78 {
79#ifdef PLATFORM_WINDOWS
80 EnterScriptedMenu(MENU_MAIN);
81#endif
82#ifdef PLATFORM_XBOX
83 g_Game.GamepadCheck();
84#endif
85 }
86 }

References g_Game, GetUApi(), and MENU_MAIN.

◆ UpdateCategoryName()

void UIScriptedMenu::UpdateCategoryName ( string name)
inlineprotected

Definition at line 454 of file GesturesMenu.c.

455 {
457 m_CategoryNameText = TextWidget.Cast(layoutRoot.FindAnyWidget(CATEGORY_NAME));
458
459 m_CategoryNameText.SetText(name);
460 }
TextWidget m_CategoryNameText
const string CATEGORY_NAME

References name.

◆ UpdateChannel()

void UIScriptedMenu::UpdateChannel ( )
inlineprivate

Definition at line 80 of file ChatInputMenu.c.

81 {
82 m_channel_text.SetText(GetChannelName(/*GetGame().ChatGetChannel()*/0));
83 }
static string GetChannelName(ChatChannel channel)

References GetChannelName().

Referenced by Init().

◆ UpdateControlsElements() [1/12]

void UIScriptedMenu::UpdateControlsElements ( )
inlineprotected

◆ UpdateControlsElements() [2/12]

void UIScriptedMenu::UpdateControlsElements ( )
inlineprotected

Definition at line 637 of file GesturesMenu.c.

638 {
639 Widget toolbarBackSpacer = layoutRoot.FindAnyWidget("BackSpacer");
640
641 RichTextWidget toolbarSelectIcon = RichTextWidget.Cast(layoutRoot.FindAnyWidget("SelectIcon"));
642 RichTextWidget toolbarBackIcon = RichTextWidget.Cast(layoutRoot.FindAnyWidget("BackIcon"));
643
644 string selectAction;
645 string backAction;
646 int controllerID;
647
648 if (GetGame().GetInput().IsEnabledMouseAndKeyboardEvenOnServer() && GetGame().GetInput().GetCurrentInputDevice() == EInputDeviceType.MOUSE_AND_KEYBOARD)
649 {
650 selectAction = "UAMenuSelect";
651 backAction = "UAMenuBack";
653 }
654 else
655 {
656 selectAction = "UAUISelect";
657 backAction = "UAUIBack";
659 }
660
663 toolbarBackSpacer.Show(instance.m_IsCategorySelected);
664 }

References GetGame(), GetInput(), InputUtils::GetRichtextButtonIconFromInputAction(), and InputUtils::ICON_SCALE_TOOLBAR.

◆ UpdateControlsElements() [3/12]

void UIScriptedMenu::UpdateControlsElements ( )
inlineprotected

Definition at line 724 of file InGameMenuXbox.c.

725 {
726 bool toolbarShow = false;
727#ifdef PLATFORM_CONSOLE
728 toolbarShow = !GetGame().GetInput().IsEnabledMouseAndKeyboardEvenOnServer() || GetGame().GetInput().GetCurrentInputDevice() == EInputDeviceType.CONTROLLER;
729#endif
730
731 if (toolbarShow)
732 {
733 RichTextWidget toolbar_text = RichTextWidget.Cast(layoutRoot.FindAnyWidget("ContextToolbarText"));
734 string text = "";
737 if (m_MuteAvailable)
739 if (m_BackAvailable)
743
744 toolbar_text.SetText(text);
745 }
746
747 RichTextWidget toolbar_b2 = RichTextWidget.Cast(layoutRoot.FindAnyWidget("BackIcon0"));
749
750 bool onlineOpen = IsOnlineOpen();
751 layoutRoot.FindAnyWidget("toolbar_bg").Show(toolbarShow);
752 layoutRoot.FindAnyWidget("play_panel_root").Show(!onlineOpen);
753 layoutRoot.FindAnyWidget("play_panel_root2").Show(onlineOpen && !toolbarShow);
754 layoutRoot.FindAnyWidget("dayz_logo").Show(!onlineOpen);
755 }

References GetGame(), InputUtils::GetRichtextButtonIconFromInputAction(), InputUtils::ICON_SCALE_TOOLBAR, IsOnlineOpen(), and m_BackButtonTextID.

◆ UpdateControlsElements() [4/12]

void UIScriptedMenu::UpdateControlsElements ( )
inlineprotected

Definition at line 150 of file InviteMenu.c.

151 {
152 RichTextWidget toolbarText = RichTextWidget.Cast(layoutRoot.FindAnyWidget("ContextToolbarText"));
153 string context = string.Format(" %1", InputUtils.GetRichtextButtonIconFromInputAction("UAUIBack", "#dialog_cancel", EUAINPUT_DEVICE_CONTROLLER, InputUtils.ICON_SCALE_TOOLBAR));
154
155 toolbarText.SetText(context);
156 }

References InputUtils::GetRichtextButtonIconFromInputAction(), and InputUtils::ICON_SCALE_TOOLBAR.

◆ UpdateControlsElements() [5/12]

void UIScriptedMenu::UpdateControlsElements ( )
inlineprotected

Definition at line 439 of file MapMenu.c.

440 {
441 RichTextWidget toolbarText = RichTextWidget.Cast(layoutRoot.FindAnyWidget("ContextToolbarText"));
442 string text = string.Empty;
443
444 text += string.Format(" <image set=\"xbox_buttons\" name=\"LS\" scale=\"%1\" /> %2 ", InputUtils.ICON_SCALE_TOOLBAR, "#layout_map_navigate");
445 text += string.Format(" <image set=\"xbox_buttons\" name=\"RS\" scale=\"%1\" /> %2 ", InputUtils.ICON_SCALE_TOOLBAR, "#STR_Controls_Zoom");
447
448 toolbarText.SetText(text);
449 }

References InputUtils::GetRichtextButtonIconFromInputAction(), and InputUtils::ICON_SCALE_TOOLBAR.

◆ UpdateControlsElements() [6/12]

void UIScriptedMenu::UpdateControlsElements ( )
inlineprotected

Definition at line 666 of file CharacterCreationMenu.c.

667 {
668#ifdef PLATFORM_CONSOLE
669 RichTextWidget toolbar_text = RichTextWidget.Cast(layoutRoot.FindAnyWidget("ContextToolbarText"));
670 string text = "";
671 if (!m_CharacterSaved && m_Scene.GetIntroCharacter().IsDefaultCharacter()) //can be saved..
672 text += string.Format(" %1", InputUtils.GetRichtextButtonIconFromInputAction("UAUICtrlY", "#layout_character_creation_save_character_alt", EUAINPUT_DEVICE_CONTROLLER, InputUtils.ICON_SCALE_TOOLBAR));
673 text += string.Format(" %1", InputUtils.GetRichtextButtonIconFromInputAction("UAUICtrlX", "#layout_character_creation_toolbar_randomize", EUAINPUT_DEVICE_CONTROLLER, InputUtils.ICON_SCALE_TOOLBAR));
674 if (m_Scene.GetIntroCharacter().IsDefaultCharacter()) //edit options available
675 text += string.Format(" %1", InputUtils.GetRichtextButtonIconFromInputAction("UAUISelect", "#layout_character_creation_toolbar_select", EUAINPUT_DEVICE_CONTROLLER, InputUtils.ICON_SCALE_TOOLBAR));
676 text += string.Format(" %1", InputUtils.GetRichtextButtonIconFromInputAction("UAUIBack", "#layout_character_creation_toolbar_back", EUAINPUT_DEVICE_CONTROLLER, InputUtils.ICON_SCALE_TOOLBAR));
677 toolbar_text.SetText(text);
678
679 RichTextWidget toolbar_b2 = RichTextWidget.Cast(layoutRoot.FindAnyWidget("BackIcon0"));
680 RichTextWidget toolbar_x2 = RichTextWidget.Cast(layoutRoot.FindAnyWidget("RandomizeIcon0"));
681 RichTextWidget toolbar_y2 = RichTextWidget.Cast(layoutRoot.FindAnyWidget("SaveIcon0"));
682 RichTextWidget toolbar_y2_2 = RichTextWidget.Cast(layoutRoot.FindAnyWidget("ApplyIcon0"));
683
687 toolbar_y2.SetText(saveTextIcon);
688 toolbar_y2_2.SetText(saveTextIcon);
689#endif
690 }

References DayZIntroSceneXbox::GetIntroCharacter(), InputUtils::GetRichtextButtonIconFromInputAction(), and InputUtils::ICON_SCALE_TOOLBAR.

◆ UpdateControlsElements() [7/12]

void UIScriptedMenu::UpdateControlsElements ( )
inlineprotected

Definition at line 480 of file MainMenuConsoles.c.

481 {
482 RichTextWidget toolbar_text = RichTextWidget.Cast(layoutRoot.FindAnyWidget("ContextToolbarText"));
484
485#ifndef PLATFORM_PS4
486 context += string.Format(" %1", InputUtils.GetRichtextButtonIconFromInputAction("UAUICtrlY", "#layout_xbox_main_menu_toolbar_account", EUAINPUT_DEVICE_CONTROLLER, InputUtils.ICON_SCALE_TOOLBAR));
487#endif
488 context += string.Format(" %1", InputUtils.GetRichtextButtonIconFromInputAction("UAUISelect", "#layout_xbox_main_menu_toolbar_select", EUAINPUT_DEVICE_CONTROLLER, InputUtils.ICON_SCALE_TOOLBAR));
489
490 toolbar_text.SetText(context);
491 }

References InputUtils::GetRichtextButtonIconFromInputAction(), and InputUtils::ICON_SCALE_TOOLBAR.

◆ UpdateControlsElements() [8/12]

void UIScriptedMenu::UpdateControlsElements ( )
inlineprotected

Definition at line 92 of file MainMenuVideo.c.

93 {
94 RichTextWidget toolbar_text = RichTextWidget.Cast(layoutRoot.FindAnyWidget("ContextToolbarText"));
95 string text;
96
97 if (GetGame().GetInput().IsEnabledMouseAndKeyboard() && GetGame().GetInput().GetCurrentInputDevice() == EInputDeviceType.MOUSE_AND_KEYBOARD)
98 text = "ESC " + "#menu_back";
99 else
101
102 toolbar_text.SetText(text);
103 }

References GetGame(), GetInput(), InputUtils::GetRichtextButtonIconFromInputAction(), and InputUtils::ICON_SCALE_TOOLBAR.

◆ UpdateControlsElements() [9/12]

void UIScriptedMenu::UpdateControlsElements ( )
inlineprotected

Definition at line 500 of file TutorialsMenu.c.

501 {
502#ifdef PLATFORM_CONSOLE
503 RichTextWidget toolbar_text = RichTextWidget.Cast(layoutRoot.FindAnyWidget("ContextToolbarText"));
504 if (toolbar_text)
505 {
506 string text = string.Format(" %1", InputUtils.GetRichtextButtonIconFromInputAction("UAUIBack", "#STR_settings_menu_root_toolbar_bg_ConsoleToolbar_Back_BackText0", EUAINPUT_DEVICE_CONTROLLER, InputUtils.ICON_SCALE_TOOLBAR));
507 toolbar_text.SetText(text);
508 }
509
510 RichTextWidget toolbar_b2 = RichTextWidget.Cast(layoutRoot.FindAnyWidget("BackIcon0"));
512#endif
513 }

References InputUtils::GetRichtextButtonIconFromInputAction(), and InputUtils::ICON_SCALE_TOOLBAR.

◆ UpdateControlsElements() [10/12]

void UIScriptedMenu::UpdateControlsElements ( )
inlineprotected

Definition at line 733 of file OptionsMenu.c.

734 {
735#ifdef PLATFORM_CONSOLE
736 RichTextWidget toolbar_text = RichTextWidget.Cast(layoutRoot.FindAnyWidget("ContextToolbarText"));
737 string text = "";
738 if (g_Game.GetUIManager().IsDialogVisible() || g_Game.GetUIManager().IsDialogQueued())
739 text += string.Format(" %1", InputUtils.GetRichtextButtonIconFromInputAction("UAUISelect", "#dialog_confirm", EUAINPUT_DEVICE_CONTROLLER, InputUtils.ICON_SCALE_TOOLBAR));
740
741 else
742 {
743 if (m_CanToggle)
744 text += string.Format(" %1", InputUtils.GetRichtextButtonIconFromInputAction("UAUISelect", "#dialog_change", EUAINPUT_DEVICE_CONTROLLER, InputUtils.ICON_SCALE_TOOLBAR));
746 text += string.Format(" %1", InputUtils.GetRichtextButtonIconFromInputAction("UAUICtrlX", "#STR_settings_menu_root_toolbar_bg_ConsoleToolbar_Apply_ApplyText0", EUAINPUT_DEVICE_CONTROLLER, InputUtils.ICON_SCALE_TOOLBAR));
750 }
751 text += string.Format(" %1", InputUtils.GetRichtextButtonIconFromInputAction("UAUIBack", "#STR_settings_menu_root_toolbar_bg_ConsoleToolbar_Back_BackText0", EUAINPUT_DEVICE_CONTROLLER, InputUtils.ICON_SCALE_TOOLBAR));
752 toolbar_text.SetText(text);
753
754 RichTextWidget toolbar_b2 = RichTextWidget.Cast(layoutRoot.FindAnyWidget("BackIcon0"));
755 RichTextWidget toolbar_x2 = RichTextWidget.Cast(layoutRoot.FindAnyWidget("ApplyIcon0"));
756 RichTextWidget toolbar_y2 = RichTextWidget.Cast(layoutRoot.FindAnyWidget("ResetIcon0"));
757 RichTextWidget toolbar_def2 = RichTextWidget.Cast(layoutRoot.FindAnyWidget("DefaultIcon0"));
762#endif
763 }

References g_Game, InputUtils::GetRichtextButtonIconFromInputAction(), and InputUtils::ICON_SCALE_TOOLBAR.

◆ UpdateControlsElements() [11/12]

void UIScriptedMenu::UpdateControlsElements ( )
inlineprotected

◆ UpdateControlsElements() [12/12]

void UIScriptedMenu::UpdateControlsElements ( )
inlineprotected

Definition at line 765 of file RadialQuickbarMenu.c.

766 {
767 Widget toolbarBackSpacer = layoutRoot.FindAnyWidget("BackSpacer");
768
769 RichTextWidget toolbarSelectIcon = RichTextWidget.Cast(layoutRoot.FindAnyWidget("SelectIcon"));
770 RichTextWidget toolbarBackIcon = RichTextWidget.Cast(layoutRoot.FindAnyWidget("BackIcon"));
771
772 string selectAction;
773 string backAction;
774 int controllerID;
775
776 if (GetGame().GetInput().IsEnabledMouseAndKeyboardEvenOnServer() && GetGame().GetInput().GetCurrentInputDevice() == EInputDeviceType.MOUSE_AND_KEYBOARD)
777 {
778 selectAction = "UAMenuSelect";
779 backAction = "UAMenuBack";
781 }
782 else
783 {
784 selectAction = "UAUISelect";
785 backAction = "UAUIBack";
787 }
788
792 }

References GetGame(), GetInput(), InputUtils::GetRichtextButtonIconFromInputAction(), and InputUtils::ICON_SCALE_TOOLBAR.

◆ UpdateControlsElementVisibility() [1/7]

void UIScriptedMenu::UpdateControlsElementVisibility ( )
inlineprotected

Definition at line 725 of file ControlsXboxNew.c.

726 {
727 bool toolbarShow = false;
728#ifdef PLATFORM_CONSOLE
729 toolbarShow = !GetGame().GetInput().IsEnabledMouseAndKeyboardEvenOnServer() || GetGame().GetInput().GetCurrentInputDevice() == EInputDeviceType.CONTROLLER;
730#endif
731
732 layoutRoot.FindAnyWidget("toolbar_bg").Show(toolbarShow);
733 layoutRoot.FindAnyWidget("play_panel_root").Show(!toolbarShow);
734 }

References GetGame().

Referenced by Apply(), OnChanged(), OnInputDeviceChanged(), OnInputPresetChanged(), OnShow(), PerformSetToDefaults(), Refresh(), Reset(), and ResetCurrentTab().

◆ UpdateControlsElementVisibility() [2/7]

void UIScriptedMenu::UpdateControlsElementVisibility ( )
inlineprotected

Definition at line 158 of file InviteMenu.c.

159 {
160 bool toolbarShow = false;
161#ifdef PLATFORM_CONSOLE
162 toolbarShow = !GetGame().GetInput().IsEnabledMouseAndKeyboard() || GetGame().GetInput().GetCurrentInputDevice() == EInputDeviceType.CONTROLLER;
163#endif
164
165 layoutRoot.FindAnyWidget("BottomConsoleToolbar").Show(toolbarShow);
166 m_bCancel.Show(!toolbarShow);
167 }

References GetGame().

◆ UpdateControlsElementVisibility() [3/7]

void UIScriptedMenu::UpdateControlsElementVisibility ( )
inlineprotected

Definition at line 451 of file MapMenu.c.

452 {
453 bool toolbarShow = false;
454#ifdef PLATFORM_CONSOLE
455 toolbarShow = !GetGame().GetInput().IsEnabledMouseAndKeyboard() || GetGame().GetInput().GetCurrentInputDevice() == EInputDeviceType.CONTROLLER;
456#endif
457
460 }
void ShiftMapToolsContainer()
Definition MapMenu.c:462

References GetGame().

◆ UpdateControlsElementVisibility() [4/7]

void UIScriptedMenu::UpdateControlsElementVisibility ( )
inlineprotected

Definition at line 692 of file CharacterCreationMenu.c.

693 {
694#ifdef PLATFORM_CONSOLE
695 bool toolbarShow = !GetGame().GetInput().IsEnabledMouseAndKeyboard() || GetGame().GetInput().GetCurrentInputDevice() == EInputDeviceType.CONTROLLER;
696 layoutRoot.FindAnyWidget("toolbar_bg").Show(toolbarShow);
697 layoutRoot.FindAnyWidget("play_panel_root").Show(!toolbarShow);
698#endif
699 }

References GetGame().

◆ UpdateControlsElementVisibility() [5/7]

void UIScriptedMenu::UpdateControlsElementVisibility ( )
inlineprotected

Definition at line 493 of file MainMenuConsoles.c.

494 {
495 bool toolbarShow = false;
496#ifdef PLATFORM_CONSOLE
497 toolbarShow = !GetGame().GetInput().IsEnabledMouseAndKeyboard() || GetGame().GetInput().GetCurrentInputDevice() == EInputDeviceType.CONTROLLER;
498#endif
499
500 layoutRoot.FindAnyWidget("toolbar_bg").Show(toolbarShow);
501 }

References GetGame().

◆ UpdateControlsElementVisibility() [6/7]

void UIScriptedMenu::UpdateControlsElementVisibility ( )
inlineprotected

Definition at line 515 of file TutorialsMenu.c.

516 {
517 bool toolbarShow = false;
518#ifdef PLATFORM_CONSOLE
519 toolbarShow = !GetGame().GetInput().IsEnabledMouseAndKeyboardEvenOnServer() || GetGame().GetInput().GetCurrentInputDevice() == EInputDeviceType.CONTROLLER;
520#endif
521
522#ifdef PLATFORM_CONSOLE
523 layoutRoot.FindAnyWidget("toolbar_bg").Show(toolbarShow);
524#endif
525 layoutRoot.FindAnyWidget("play_panel_root").Show(!toolbarShow);
526 }

References GetGame().

◆ UpdateControlsElementVisibility() [7/7]

void UIScriptedMenu::UpdateControlsElementVisibility ( )
inlineprotected

Definition at line 765 of file OptionsMenu.c.

766 {
767 bool toolbarShow = false;
768#ifdef PLATFORM_CONSOLE
769 toolbarShow = !GetGame().GetInput().IsEnabledMouseAndKeyboardEvenOnServer() || GetGame().GetInput().GetCurrentInputDevice() == EInputDeviceType.CONTROLLER;
770#endif
771
772 layoutRoot.FindAnyWidget("toolbar_bg").Show(toolbarShow);
773 layoutRoot.FindAnyWidget("play_panel_root").Show(!toolbarShow);
774 }

References GetGame().

◆ UpdateDisconnectedDevices()

void UIScriptedMenu::UpdateDisconnectedDevices ( int device = -1)
inlineprivate

Definition at line 113 of file InputDeviceDisconnectWarningMenu.c.

114 {
115 m_DisconnectedDevices.Clear();
116 m_CanClose = g_Game.GetInput().AreAllAllowedInputDevicesActive(m_DisconnectedDevices);
118 m_Initialized = true;
119 }

References g_Game, m_Initialized, and UpdateWarningMenu().

Referenced by Init().

◆ UpdateDisconnectTexts()

void UIScriptedMenu::UpdateDisconnectTexts ( )
inlineprivate

Composes message depending on context.

Definition at line 67 of file InputDeviceDisconnectWarningMenu.c.

68 {
70 int count = m_DeviceOrder.Count();
71 int idx;
72 int device;
73 bool gamepadInactive = false;
74
75 m_DevicesText = string.Empty;
76 for (int i = 0; i < count; i++)
77 {
80 if (idx != -1) //is disconnected and relevant
81 {
84 {
85 gamepadInactive = true;
86 if (deviceCount > 1)
87 m_DevicesText += "| ";
88 }
89 }
90 }
91
92 if (deviceCount > 1)
93 {
94 m_CaptionText = "#str_inputdevice_notification_header_multiple";
95 m_ConfirmationText = "#str_inputdevice_notification_prompt_multiple";
96 }
97 else
98 {
99 m_CaptionText = "#str_inputdevice_notification_header_single";
100 m_ConfirmationText = "#str_inputdevice_notification_prompt_single";
101 }
102 }
static const string Empty
Definition EnString.c:7

References string::Empty.

Referenced by UpdateWarningMenu().

◆ UpdateGUI() [1/2]

void UIScriptedMenu::UpdateGUI ( )
inlineprotected

Definition at line 277 of file InGameMenu.c.

278 {
279#ifdef BULDOZER
280 m_RestartButton.Show(false);
281 m_RespawnButton.Show(false);
282#else
283 Man player = GetGame().GetPlayer();
284 bool playerAlive = player && player.GetPlayerState() == EPlayerStates.ALIVE;
285
286 if (GetGame().IsMultiplayer())
287 {
290 }
291 else
292 {
293 m_RestartButton.Show(true);
294 m_RespawnButton.Show(false);
296 }
297
299#endif
300 }

References CfgGameplayHandler::GetDisableRespawnInUnconsciousness(), and GetGame().

Referenced by Update().

◆ UpdateGUI() [2/2]

void UIScriptedMenu::UpdateGUI ( )
inlineprotected

Definition at line 400 of file InGameMenuXbox.c.

401 {
402 Man player = GetGame().GetPlayer();
403 if (player)
404 {
405 int life_state = player.GetPlayerState();
407 }
408
409 if (m_PlayerAlive)
411 else
412 m_RestartButton.Show(false);
413
416 }
bool ShouldRestartBeVisible(Man player)

References GetGame(), and ShouldRestartBeVisible().

◆ UpdateInfo()

void UIScriptedMenu::UpdateInfo ( )
inlineprivate

Definition at line 141 of file LogoutMenu.c.

142 {
144 if (player.IsRestrained() || player.IsUnconscious())
145 {
146 // display killInfo
147 m_DescriptionText.SetText("#layout_logout_dialog_note_killed");
148 }
149 else
150 {
151 // hide killInfo
152 m_DescriptionText.SetText("#layout_logout_dialog_note");
153 }
154 }

References GetGame(), and GetPlayer().

Referenced by Init().

◆ UpdateInfoPanelText()

void UIScriptedMenu::UpdateInfoPanelText ( int input_device_type)
inlineprotected

Definition at line 115 of file CreditsMenu.c.

116 {
117 if (GetGame().GetInput().IsEnabledMouseAndKeyboard() && input_device_type == EInputDeviceType.MOUSE_AND_KEYBOARD)
118 m_InfoPanelText.SetText("ESC " + "#menu_back");
119 else
121 }

References GetGame(), GetInput(), InputUtils::GetRichtextButtonIconFromInputAction(), and InputUtils::ICON_SCALE_TOOLBAR.

◆ UpdateItemInfo()

static void UIScriptedMenu::UpdateItemInfo ( Widget root_widget,
EntityAI item )
inlinestaticprivate

Definition at line 134 of file InspectMenuNew.c.

135 {
136 if (!root_widget || !item) return;
137
138 Widget panelInfo = root_widget.FindAnyWidget("InventoryInfoPanelWidget");
139 if (panelInfo)
140 {
141 if (item.IsInherited(ZombieBase) || item.IsInherited(Car))
142 panelInfo.Show(false);
143 else
144 panelInfo.Show(true);
145 }
146
147 if (!item.IsInherited(ZombieBase) && !item.IsInherited(Car))
148 {
150 WidgetTrySetText(root_widget, "ItemDescWidget", iItem.GetTooltip());
151 }
152
153 WidgetTrySetText(root_widget, "ItemNameWidget", item.GetDisplayName());
154 InspectMenuNew.UpdateItemInfoDamage(root_widget, item);
155 InspectMenuNew.UpdateItemInfoLiquidType(root_widget, item);
156 InspectMenuNew.UpdateItemInfoTemperature(root_widget, item);
157 InspectMenuNew.UpdateItemInfoWetness(root_widget, item);
158 InspectMenuNew.UpdateItemInfoQuantity(root_widget, item);
159 InspectMenuNew.UpdateItemInfoWeight(root_widget, item);
160 InspectMenuNew.UpdateItemInfoFoodStage(root_widget, item);
161 InspectMenuNew.UpdateItemInfoCleanness(root_widget, item);
162
163 Widget content = root_widget.FindAnyWidget("InventoryInfoPanelWidget");
164 }
static void WidgetTrySetText(Widget root_widget, string widget_name, string text, int color=0)

References WidgetTrySetText().

◆ UpdateItemInfoCleanness()

static void UIScriptedMenu::UpdateItemInfoCleanness ( Widget root_widget,
EntityAI item )
inlinestaticprivate

Definition at line 511 of file InspectMenuNew.c.

512 {
513 ItemBase ib = ItemBase.Cast(item);
514 if (ib && ib.m_Cleanness == 1)
515 WidgetTrySetText(root_widget, "ItemCleannessWidget", "#inv_inspect_cleaned", Colors.WHITEGRAY);
516 else
517 WidgetTrySetText(root_widget, "ItemCleannessWidget", "");
518 }
Definition Colors.c:4
const int WHITEGRAY
Definition Colors.c:16

References Colors::WHITEGRAY, and WidgetTrySetText().

◆ UpdateItemInfoDamage()

static void UIScriptedMenu::UpdateItemInfoDamage ( Widget root_widget,
EntityAI item )
inlinestaticprivate

Definition at line 175 of file InspectMenuNew.c.

176 {
177 if (item.IsInherited(ZombieBase) || item.IsInherited(Car)) return;
178
179 int damageLevel = item.GetHealthLevel();
180
181 switch (damageLevel)
182 {
184 {
185 WidgetTrySetText(root_widget, "ItemDamageWidget", "#inv_inspect_ruined", Colors.COLOR_RUINED);
186 break;
187 }
189 {
190 WidgetTrySetText(root_widget, "ItemDamageWidget", "#inv_inspect_badly", Colors.COLOR_BADLY_DAMAGED);
191 break;
192 }
193
195 {
196 WidgetTrySetText(root_widget, "ItemDamageWidget", "#inv_inspect_damaged", Colors.COLOR_DAMAGED);
197 break;
198 }
199
201 {
202 WidgetTrySetText(root_widget, "ItemDamageWidget", "#inv_inspect_worn", Colors.COLOR_WORN);
203 break;
204 }
205
207 {
208 WidgetTrySetText(root_widget, "ItemDamageWidget", "#inv_inspect_pristine", Colors.COLOR_PRISTINE);
209 break;
210 }
211
212 default:
213 {
214 WidgetTrySetText(root_widget, "ItemDamageWidget", "ERROR", Colors.COLOR_PRISTINE);
215 break;
216 }
217 }
218
219 }
const int COLOR_DAMAGED
Definition Colors.c:22
const int COLOR_BADLY_DAMAGED
Definition Colors.c:21
const int COLOR_PRISTINE
Definition Colors.c:24
const int COLOR_WORN
Definition Colors.c:23
const int COLOR_RUINED
Definition Colors.c:20
const int STATE_RUINED
Definition constants.c:757
const int STATE_WORN
Definition constants.c:760
const int STATE_DAMAGED
Definition constants.c:759
const int STATE_BADLY_DAMAGED
Definition constants.c:758
const int STATE_PRISTINE
Definition constants.c:761

References Colors::COLOR_BADLY_DAMAGED, Colors::COLOR_DAMAGED, Colors::COLOR_PRISTINE, Colors::COLOR_RUINED, Colors::COLOR_WORN, GameConstants::STATE_BADLY_DAMAGED, GameConstants::STATE_DAMAGED, GameConstants::STATE_PRISTINE, GameConstants::STATE_RUINED, GameConstants::STATE_WORN, and WidgetTrySetText().

◆ UpdateItemInfoFoodStage()

static void UIScriptedMenu::UpdateItemInfoFoodStage ( Widget root_widget,
EntityAI item )
inlinestaticprivate

Definition at line 463 of file InspectMenuNew.c.

464 {
466 if (food_item && food_item.HasFoodStage())
467 {
468 ref FoodStage food_stage = food_item.GetFoodStage();
469 FoodStageType food_stage_type = food_stage.GetFoodStageType();
470
471 switch (food_stage_type)
472 {
473 case FoodStageType.RAW:
474 {
475 WidgetTrySetText(root_widget, "ItemFoodStageWidget", "#inv_inspect_raw", Colors.COLOR_RAW);
476 break;
477 }
478 case FoodStageType.BAKED:
479 {
480 WidgetTrySetText(root_widget, "ItemFoodStageWidget", "#inv_inspect_baked", Colors.COLOR_BAKED);
481 break;
482 }
483 case FoodStageType.BOILED:
484 {
485 WidgetTrySetText(root_widget, "ItemFoodStageWidget", "#inv_inspect_boiled", Colors.COLOR_BOILED);
486 break;
487 }
488 case FoodStageType.DRIED:
489 {
490 WidgetTrySetText(root_widget, "ItemFoodStageWidget", "#inv_inspect_dried", Colors.COLOR_DRIED);
491 break;
492 }
493 case FoodStageType.BURNED:
494 {
495 WidgetTrySetText(root_widget, "ItemFoodStageWidget", "#inv_inspect_burned", Colors.COLOR_BURNED);
496 break;
497 }
498 case FoodStageType.ROTTEN:
499 {
500 WidgetTrySetText(root_widget, "ItemFoodStageWidget", "#inv_inspect_rotten", Colors.COLOR_ROTTEN);
501 break;
502 }
503 }
504 }
505 else
506 WidgetTrySetText(root_widget, "ItemFoodStageWidget", "");
507 }
FoodStageType
Definition FoodStage.c:2
const int COLOR_BAKED
Definition Colors.c:34
const int COLOR_RAW
Definition Colors.c:33
const int COLOR_ROTTEN
Definition Colors.c:38
const int COLOR_BOILED
Definition Colors.c:35
const int COLOR_BURNED
Definition Colors.c:37
const int COLOR_DRIED
Definition Colors.c:36

References Colors::COLOR_BAKED, Colors::COLOR_BOILED, Colors::COLOR_BURNED, Colors::COLOR_DRIED, Colors::COLOR_RAW, Colors::COLOR_ROTTEN, and WidgetTrySetText().

◆ UpdateItemInfoLiquidType()

static void UIScriptedMenu::UpdateItemInfoLiquidType ( Widget root_widget,
EntityAI item )
inlinestaticprivate

Definition at line 222 of file InspectMenuNew.c.

223 {
224 if (item.IsInherited(ZombieBase) || item.IsInherited(Car)) return;
225
227
228 if (item_base && item_base.GetQuantity() > 0 && item_base.IsBloodContainer())
229 {
231
232 if (blood_container.GetBloodTypeVisible())
233 {
234 string type;
235 bool positive;
236 string blood_type_name = BloodTypes.GetBloodTypeName(blood_container.GetLiquidType(), type, positive);
237 WidgetTrySetText(root_widget, "ItemLiquidTypeWidget", "#inv_inspect_blood: " + blood_type_name, Colors.COLOR_LIQUID);
238 }
239 else
240 WidgetTrySetText(root_widget, "ItemLiquidTypeWidget", "#inv_inspect_blood", Colors.COLOR_LIQUID);
241 }
242 else if (item_base && item_base.GetQuantity() > 0 && item_base.IsLiquidContainer())
243 {
244 int liquid_type = item_base.GetLiquidType();
245
246 switch (liquid_type)
247 {
248 case LIQUID_WATER:
249 {
250 WidgetTrySetText(root_widget, "ItemLiquidTypeWidget", "#inv_inspect_water", Colors.COLOR_LIQUID);
251 break;
252 }
253
255 {
256 WidgetTrySetText(root_widget, "ItemLiquidTypeWidget", "#inv_inspect_river_water", Colors.COLOR_LIQUID);
257 break;
258 }
259
260 case LIQUID_VODKA:
261 {
262 WidgetTrySetText(root_widget, "ItemLiquidTypeWidget", "#inv_inspect_vodka", Colors.COLOR_LIQUID);
263 break;
264 }
265
266 case LIQUID_BEER:
267 {
268 WidgetTrySetText(root_widget, "ItemLiquidTypeWidget", "#inv_inspect_beer", Colors.COLOR_LIQUID);
269 break;
270 }
271
272 case LIQUID_GASOLINE:
273 {
274 WidgetTrySetText(root_widget, "ItemLiquidTypeWidget", "#inv_inspect_gasoline", Colors.COLOR_LIQUID);
275 break;
276 }
277
278 case LIQUID_DIESEL:
279 {
280 WidgetTrySetText(root_widget, "ItemLiquidTypeWidget", "#inv_inspect_diesel", Colors.COLOR_LIQUID);
281 break;
282 }
283
285 {
286 WidgetTrySetText(root_widget, "ItemLiquidTypeWidget", "#inv_inspect_disinfectant", Colors.COLOR_LIQUID);
287 break;
288 }
289
290 case LIQUID_SALINE:
291 {
292 WidgetTrySetText(root_widget, "ItemLiquidTypeWidget", "#inv_inspect_saline", Colors.COLOR_LIQUID);
293 break;
294 }
295
296 default:
297 {
298 WidgetTrySetText(root_widget, "ItemLiquidTypeWidget", "ERROR", Colors.COLOR_LIQUID);
299 break;
300 }
301 }
302 }
303 else
304 WidgetTrySetText(root_widget, "ItemLiquidTypeWidget", "");
305 }
static string GetBloodTypeName(int bloodtype, out string type, out bool positive)
Definition BloodType.c:82
const int COLOR_LIQUID
Definition Colors.c:31
const int LIQUID_VODKA
Definition constants.c:506
const int LIQUID_DISINFECTANT
Definition constants.c:510
const int LIQUID_BEER
Definition constants.c:507
const int LIQUID_GASOLINE
Definition constants.c:508
const int LIQUID_WATER
Definition constants.c:504
const int LIQUID_RIVERWATER
Definition constants.c:505
const int LIQUID_DIESEL
Definition constants.c:509
const int LIQUID_SALINE
Definition constants.c:502

References Colors::COLOR_LIQUID, BloodTypes::GetBloodTypeName(), LIQUID_BEER, LIQUID_DIESEL, LIQUID_DISINFECTANT, LIQUID_GASOLINE, LIQUID_RIVERWATER, LIQUID_SALINE, LIQUID_VODKA, LIQUID_WATER, and WidgetTrySetText().

◆ UpdateItemInfoQuantity()

static void UIScriptedMenu::UpdateItemInfoQuantity ( Widget root_widget,
EntityAI item )
inlinestaticprivate

Definition at line 353 of file InspectMenuNew.c.

354 {
355 if (item.IsInherited(ZombieBase) || item.IsInherited(Car)) return;
356
358 if (item_base)
359 {
360 float item_quantity = item_base.GetQuantity();
361 int max_quantity = item.GetQuantityMax();
362
363 float quantity_ratio;
364
365 if (max_quantity > 0 && !item.IsInherited(ClothingBase)) // Some items, like books, have max_quantity set to 0 => division by ZERO error in quantity_ratio
366 {
367 string quantity_str;
368 if (item.ConfigGetString("stackedUnit") == "pc.")
369 {
370 if (item_quantity == 1)
371 WidgetTrySetText(root_widget, "ItemQuantityWidget", item_quantity.ToString() + " " + "#inv_inspect_piece", Colors.COLOR_DEFAULT);
372 else
373 WidgetTrySetText(root_widget, "ItemQuantityWidget", item_quantity.ToString() + " " + "#inv_inspect_pieces", Colors.COLOR_DEFAULT);
374 }
375 else if (item.ConfigGetString("stackedUnit") == "percentage")
376 {
378
379 quantity_str = "#inv_inspect_remaining " + quantity_ratio.ToString() + "#inv_inspect_percent";
381 }
382 else if (item.ConfigGetString("stackedUnit") == "g")
383 {
385
386 quantity_str = "#inv_inspect_remaining " + quantity_ratio.ToString() + "#inv_inspect_percent";
388 }
389 else if (item.ConfigGetString("stackedUnit") == "ml")
390 {
392
393 quantity_str = "#inv_inspect_remaining " + quantity_ratio.ToString() + "#inv_inspect_percent";
395 }
396 else if (item.IsInherited(Magazine))
397 {
400
401 if (magazine_item.GetAmmoCount() == 1)
402 WidgetTrySetText(root_widget, "ItemQuantityWidget", magazine_item.GetAmmoCount().ToString() + " " + "#inv_inspect_piece", Colors.COLOR_DEFAULT);
403 else
404 WidgetTrySetText(root_widget, "ItemQuantityWidget", magazine_item.GetAmmoCount().ToString() + " " + "#inv_inspect_pieces", Colors.COLOR_DEFAULT);
405 }
406 else
407 WidgetTrySetText(root_widget, "ItemQuantityWidget", "");
408 }
409 else
410 {
411 if (item.IsInherited(ClothingBase))
412 {
413 float heatIsolation = MiscGameplayFunctions.GetCurrentItemHeatIsolation(item_base);
415 WidgetTrySetText(root_widget, "ItemQuantityWidget", "#inv_inspect_iso_bad", GetTemperatureColor(10));
417 WidgetTrySetText(root_widget, "ItemQuantityWidget", "#inv_inspect_iso_low", GetTemperatureColor(20));
419 WidgetTrySetText(root_widget, "ItemQuantityWidget", "#inv_inspect_iso_medium", GetTemperatureColor(30));
421 WidgetTrySetText(root_widget, "ItemQuantityWidget", "#inv_inspect_iso_high", GetTemperatureColor(50));
422 else
423 WidgetTrySetText(root_widget, "ItemQuantityWidget", "#inv_inspect_iso_excel", GetTemperatureColor(70));
424 }
425 else
426 WidgetTrySetText(root_widget, "ItemQuantityWidget", "");
427 }
428 }
429 }
const int COLOR_DEFAULT
Definition Colors.c:18
const float HEATISO_THRESHOLD_HIGH
Definition constants.c:816
const float HEATISO_THRESHOLD_MEDIUM
Definition constants.c:815
const float HEATISO_THRESHOLD_BAD
Definition constants.c:813
const float HEATISO_THRESHOLD_LOW
Definition constants.c:814
int GetTemperatureColor(int temperature)
Definition tools.c:929

References Class::CastTo(), Colors::COLOR_DEFAULT, GetTemperatureColor(), GameConstants::HEATISO_THRESHOLD_BAD, GameConstants::HEATISO_THRESHOLD_HIGH, GameConstants::HEATISO_THRESHOLD_LOW, GameConstants::HEATISO_THRESHOLD_MEDIUM, Math::Round(), and WidgetTrySetText().

◆ UpdateItemInfoTemperature()

static void UIScriptedMenu::UpdateItemInfoTemperature ( Widget root_widget,
EntityAI item )
inlinestaticprivate

Definition at line 308 of file InspectMenuNew.c.

309 {
310 if (item.IsInherited(ZombieBase) || item.IsInherited(Car)) return;
311 float temperature;
313 if (item_base)
314 temperature = item_base.GetTemperature();
315
316 if (temperature > 30)
317 {
318 if (temperature > 100)
319 temperature = 100 * Math.Floor(temperature / 100.0);
320 else
321 temperature = 10 * Math.Floor(temperature / 10.0);
322 WidgetTrySetText(root_widget, "ItemTemperatureWidget", "#inv_inspect_about " + temperature.ToString() + " " + "#inv_inspect_celsius", GetTemperatureColor(temperature));
323 }
324 else
325 WidgetTrySetText(root_widget, "ItemTemperatureWidget", "");
326 }

References Math::Floor(), GetTemperatureColor(), and WidgetTrySetText().

◆ UpdateItemInfoWeight()

static void UIScriptedMenu::UpdateItemInfoWeight ( Widget root_widget,
EntityAI item )
inlinestaticprivate

Definition at line 432 of file InspectMenuNew.c.

433 {
434 if (!item.CanDisplayWeight())
435 {
436 WidgetTrySetText(root_widget, "ItemWeightWidget", "", Colors.COLOR_DEFAULT);
437 return;
438 }
439
441 if (item_IB)
442 {
443 int weight = item_IB.GetWeightEx();
444
445 if (root_widget.GetName() != "BackPanelWidget")
446 weight = item_IB.GetSingleInventoryItemWeightEx();
447
448 if (weight >= 1000)
449 {
450 int kilos = Math.Round(weight / 1000.0);
451 WidgetTrySetText(root_widget, "ItemWeightWidget", "#inv_inspect_about" + " " + kilos.ToString() + " " + "#inv_inspect_kg", Colors.COLOR_DEFAULT);
452 }
453 else if (weight >= 500)
454 WidgetTrySetText(root_widget, "ItemWeightWidget", "#inv_inspect_under_1", Colors.COLOR_DEFAULT);
455 else if (weight >= 250)
456 WidgetTrySetText(root_widget, "ItemWeightWidget", "#inv_inspect_under_05", Colors.COLOR_DEFAULT);
457 else
458 WidgetTrySetText(root_widget, "ItemWeightWidget", "#inv_inspect_under_025", Colors.COLOR_DEFAULT);
459 }
460 }

References Colors::COLOR_DEFAULT, Math::Round(), and WidgetTrySetText().

◆ UpdateItemInfoWetness()

static void UIScriptedMenu::UpdateItemInfoWetness ( Widget root_widget,
EntityAI item )
inlinestaticprivate

Definition at line 329 of file InspectMenuNew.c.

330 {
331 if (item.IsInherited(ZombieBase) || item.IsInherited(Car)) return;
332 float wetness = 0;
333
334 if (item.IsInherited(ItemBase))
335 {
337 wetness = item_IB.GetWet();
338 }
339
341 WidgetTrySetText(root_widget, "ItemWetnessWidget", "");
343 WidgetTrySetText(root_widget, "ItemWetnessWidget", "#inv_inspcet_damp", Colors.COLOR_DAMP);
345 WidgetTrySetText(root_widget, "ItemWetnessWidget", "#inv_inspect_wet", Colors.COLOR_WET);
347 WidgetTrySetText(root_widget, "ItemWetnessWidget", "#inv_inspect_soaking_wet", Colors.COLOR_SOAKING_WET);
348 else
349 WidgetTrySetText(root_widget, "ItemWetnessWidget", "#inv_inspect_drenched", Colors.COLOR_DRENCHED);
350 }
const int COLOR_DRENCHED
Definition Colors.c:26
const int COLOR_DAMP
Definition Colors.c:29
const int COLOR_WET
Definition Colors.c:28
const int COLOR_SOAKING_WET
Definition Colors.c:27
const float STATE_DAMP
Definition constants.c:784
const float STATE_SOAKING_WET
Definition constants.c:782
const float STATE_DRENCHED
Definition constants.c:781
const float STATE_WET
Definition constants.c:783

References Colors::COLOR_DAMP, Colors::COLOR_DRENCHED, Colors::COLOR_SOAKING_WET, Colors::COLOR_WET, GameConstants::STATE_DAMP, GameConstants::STATE_DRENCHED, GameConstants::STATE_SOAKING_WET, GameConstants::STATE_WET, and WidgetTrySetText().

◆ UpdateListClasses()

void UIScriptedMenu::UpdateListClasses ( )
inlineprotected

Definition at line 1109 of file SceneEditorMenu.c.

1110 {
1112
1113 m_ClWgtLbxClassesList.ClearItems();
1114
1115 for (int i = 0; i < m_ClClassesList.Count(); ++i)
1116 m_ClWgtLbxClassesList.AddItem(m_ClClassesList.Get(i), NULL, 0);
1117 }
TStringArray GetFiltredConfigClasses(string search_string, TStringArray array_ret)

References GetFiltredConfigClasses().

Referenced by Init(), and OnChange().

◆ UpdateListObjects()

void UIScriptedMenu::UpdateListObjects ( )
inlineprivate

Definition at line 1084 of file SceneEditorMenu.c.

1085 {
1087
1088 m_SlWgtLbxObjectsList.ClearItems();
1089
1090 int row = -1;
1091 SceneObject selected_object = m_ModuleSceneManager.GetSelectedSceneObject();
1092
1093 for (int i = 0; i < m_SlObjectsList.Count(); ++i)
1094 {
1095 SceneObject scene_obj = m_SlObjectsList.GetElement(i);
1096
1098 row = i;
1099
1100 m_SlWgtLbxObjectsList.AddItem(scene_obj.GetTypeName(), NULL, 0);
1101 }
1102
1103 m_SlWgtLbxObjectsList.SelectRow(row);
1104 }
map< int, SceneObject > GetFiltredSceneObjects(string search_string, map< int, SceneObject > array_ret)

References GetFiltredSceneObjects().

Referenced by Init(), OnChange(), and Refresh().

◆ UpdateMenuFocus()

void UIScriptedMenu::UpdateMenuFocus ( )
inlineprotected

Definition at line 710 of file InGameMenuXbox.c.

711 {
712 Man player = GetGame().GetPlayer();
713 if (m_PlayerAlive)
714 {
717 else
719 }
720 else
722 }

References GetGame(), SetFocus(), and ShouldRestartBeVisible().

Referenced by Init(), OnModalResult(), and OnShow().

◆ UpdateQuickbarItemCard() [1/2]

void UIScriptedMenu::UpdateQuickbarItemCard ( GestureMenuItem gesture_item)
inlineprotected

Definition at line 409 of file GesturesMenu.c.

410 {
411 Widget gesture_item_card_widget = gesture_item.GetRadialItemCard();
412 //texts
415 gesture_text.SetText(gesture_item.GetName());
416 bool input_name_available = gesture_item.GetBoundButtonText() != "";
419 input_text.SetText(gesture_item.GetBoundButtonText());
420 //coloring
422 if (gesture_item.GetCanPerformEmote())
423 {
424 gesture_item_card_widget.SetFlags(WidgetFlags.DISABLED); //flag just seems to be...'there', useful for showing radial selector. Still...
425 gesture_text.SetColor(ARGB(255, 255, 255, 255));
426 input_text.SetColor(ARGB(255, 255, 255, 255));
427 }
428 else
429 {
430 gesture_item_card_widget.ClearFlags(WidgetFlags.DISABLED);
431 gesture_text.SetColor(ARGB(255, 150, 150, 150));
432 input_text.SetColor(ARGB(255, 150, 150, 150));
433 }
434 }
const string INPUT_TEXT
const string GESTURE_TEXT
void ProcessEmoteConditionRequest(GestureMenuItem gesture_item)

References ARGB().

◆ UpdateQuickbarItemCard() [2/2]

void UIScriptedMenu::UpdateQuickbarItemCard ( RadialQuickbarItem quickbar_item)
inlineprotected

Definition at line 402 of file RadialQuickbarMenu.c.

403 {
404 Widget item_card_widget = quickbar_item.GetRadialItemCard();
405
406 //get content panels
407 Widget item_details = item_card_widget.FindAnyWidget("ItemDetails");
408 TextWidget item_title = TextWidget.Cast(item_card_widget.FindAnyWidget("ItemTitle"));
409
410 //set text
412 EntityAI item = quickbar_item.GetItem();
413
414 Widget quantity_panel = item_card_widget.FindAnyWidget("QuantityPanel");
415 if (item)
416 {
417 //item text
418 text_widget.SetText(quickbar_item.GetItem().GetDisplayName());
419
420 //item preview
421 ItemPreviewWidget item_preview = ItemPreviewWidget.Cast(item_card_widget.FindAnyWidget("ItemPreview"));
422 item_preview.SetItem(item);
423 item_preview.SetView(item.GetViewIndex());
424 item_preview.SetModelOrientation(Vector(0, 0, 0));
425
426 //item quantity
427 Widget quantity_stack = quantity_panel.FindAnyWidget("QuantityStackPanel");
428 ProgressBarWidget quantity_bar = ProgressBarWidget.Cast(quantity_panel.FindAnyWidget("QuantityBar"));
430 //calculate and set quantity
432 quantity_panel.Show(false);
433 else if (has_quantity == QUANTITY_COUNT)
434 {
435 //hide bar
436 quantity_bar.Show(false);
437
438 //show stack
439 TextWidget quantity_text = TextWidget.Cast(quantity_stack.FindAnyWidget("Quantity"));
441 quantity_stack.Show(true);
442 }
444 {
445 //hide stack
446 quantity_stack.Show(false);
447
448 //show bar
449 float progress_max = quantity_bar.GetMax();
450 int max = item.ConfigGetInt("varQuantityMax");
451 int count = item.ConfigGetInt("count");
453
454 if (count > 0)
455 max = count;
456 if (max > 0)
457 {
458
459 float value = Math.Round((quantity / max) * 100);
460 quantity_bar.SetCurrent(value);
461 }
462
463 quantity_bar.Show(true);
464 }
465
466 //display content panels
467 item_details.Show(true);
468 item_title.Show(false);
469 }
470 else if (quickbar_item.GetCategorySwitchID() != -1)
471 {
472 item_title.SetText(quickbar_item.GetItemName());
473
474 item_details.Show(false);
475 item_title.Show(true);
476 }
477 else
478 {
479 item_title.SetText("#container_empty");
480
481 //display content panels
482 item_details.Show(false);
483 item_title.Show(true);
484 }
485 }
static float GetItemQuantity(InventoryItem item)
static int HasItemQuantity(notnull EntityAI item)
static string GetItemQuantityText(EntityAI item, bool showMax=false)
const string TEXT_ITEM_NAME
const int QUANTITY_PROGRESS
Definition constants.c:484
const int QUANTITY_COUNT
Definition constants.c:483
const int QUANTITY_HIDDEN
Definition constants.c:482

References QuantityConversions::GetItemQuantity(), QuantityConversions::GetItemQuantityText(), QuantityConversions::HasItemQuantity(), QUANTITY_COUNT, QUANTITY_HIDDEN, QUANTITY_PROGRESS, Math::Round(), and Vector().

◆ UpdateRotation()

void UIScriptedMenu::UpdateRotation ( int mouse_x,
int mouse_y,
bool is_dragging )
inlineprivate

Definition at line 88 of file InspectMenuNew.c.

89 {
91 o[0] = o[0] + (m_characterRotationY - mouse_y);
92 o[1] = o[1] - (m_characterRotationX - mouse_x);
93
95
96 if (!is_dragging)
98 }
proto native void SetModelOrientation(vector vOrientation)
vector m_characterOrientation

References m_characterOrientation, and ItemPreviewWidget::SetModelOrientation().

◆ UpdateScale()

void UIScriptedMenu::UpdateScale ( )
inlineprivate

Definition at line 114 of file InspectMenuNew.c.

115 {
116 float w, h, x, y;
117 m_item_widget.GetPos(x, y);
118 m_item_widget.GetSize(w, h);
119 w = w + (m_characterScaleDelta / 4);
120 h = h + (m_characterScaleDelta / 4);
121 if (w > 0.5 && w < 3)
122 {
123 m_item_widget.SetSize(w, h);
124
125 // align to center
126 int screen_w, screen_h;
128 float new_x = x - (m_characterScaleDelta / 8);
129 float new_y = y - (m_characterScaleDelta / 8);
130 m_item_widget.SetPos(new_x, new_y);
131 }
132 }

References GetScreenSize(), x, and y.

Referenced by OnMouseWheel().

◆ UpdateSlotInfo()

static void UIScriptedMenu::UpdateSlotInfo ( Widget root_widget,
string name,
string desc = "" )
inlinestaticprivate

Definition at line 167 of file InspectMenuNew.c.

168 {
169 if (!root_widget) return;
170
171 WidgetTrySetText(root_widget, "ItemNameWidget", name);
172 }

References name, and WidgetTrySetText().

◆ UpdateTabContent() [1/2]

void UIScriptedMenu::UpdateTabContent ( int tab_index)
inlineprotected

Definition at line 81 of file ControlsXboxNew.c.

82 {
83 Widget w;
84 //hide old
85 if (m_CurrentTabIdx != -1)
86 {
87 m_VariantWidget.Show(false);
88 while (m_VariantWidget.GetParent())
89 {
90 m_VariantWidget = m_VariantWidget.GetParent();
91 m_VariantWidget.Show(false);
92 }
93 }
94 //show new
96 w.Show(true);
98
99 while (w.GetParent())
100 {
101 w = w.GetParent();
102 w.Show(true);
103 }
104
107 }
static int GetConsolePresetID()
Definition InputUtils.c:198

References DrawConnectingLines(), and InputUtils::GetConsolePresetID().

◆ UpdateTabContent() [2/2]

void UIScriptedMenu::UpdateTabContent ( int tab_index)
inlineprotected

Definition at line 105 of file KeybindingsMenu.c.

106 {
107 m_GroupsContainer.SwitchSubgroup(tab_index);
108 }

◆ UpdateTime() [1/2]

void UIScriptedMenu::UpdateTime ( )
inlineprivate

Definition at line 119 of file InviteMenu.c.

120 {
121 if (m_iTime > 0)
122 {
123 m_iTime -= 1;
125 }
126 }

References SetTime().

◆ UpdateTime() [2/2]

void UIScriptedMenu::UpdateTime ( )
inlineprivate

Definition at line 132 of file LogoutMenu.c.

133 {
134
135 if (m_iTime > 0)
136 SetTime(--m_iTime);
137 else
138 Exit();
139 }

References Exit(), and SetTime().

◆ UpdateToolbar()

void UIScriptedMenu::UpdateToolbar ( )
inlineprotected

DEPRECATED.

Definition at line 452 of file GesturesMenu.c.

452{}

◆ UpdateToolbarText()

void UIScriptedMenu::UpdateToolbarText ( )
inlineprotected

Definition at line 586 of file ControlsXboxNew.c.

587 {
589 int target_idx = inputAPI.PresetCurrent() + 1;
590 int count = inputAPI.PresetCount();
591 if (target_idx >= inputAPI.PresetCount())
592 target_idx = 0;
593
596 m_NextPresetText = "#STR_UAPRESET_ChangeTo_0";
598 m_NextPresetText = "#STR_UAPRESET_ChangeTo_1";
599 else
600 m_NextPresetText = "Invalid console preset name: " + m_NextPresetText;
601 }
static const string PRESET_NEW
Definition InputUtils.c:5
static const string PRESET_OLD
Definition InputUtils.c:4

References GetUApi(), InputUtils::PRESET_NEW, and InputUtils::PRESET_OLD.

◆ UpdateWarningMenu()

void UIScriptedMenu::UpdateWarningMenu ( int device)
inlineprivate

Definition at line 121 of file InputDeviceDisconnectWarningMenu.c.

122 {
123 if (m_CanClose)
124 Close();
125 else if (layoutRoot)
126 {
129 }
130 }
void UpdateDisconnectTexts()
Composes message depending on context.

References Close(), SetDisconnectTexts(), and UpdateDisconnectTexts().

Referenced by UpdateDisconnectedDevices().

◆ UseGamepad() [1/2]

override bool UIScriptedMenu::UseGamepad ( )
inlineprotected

Definition at line 253 of file GesturesMenu.c.

254 {
255 return true;
256 }

Referenced by UIMenuPanel::LockControls(), and UIMenuPanel::UnlockControls().

◆ UseGamepad() [2/2]

override bool UIScriptedMenu::UseGamepad ( )
inlineprotected

Definition at line 249 of file RadialQuickbarMenu.c.

250 {
251 return true;
252 }

◆ UseKeyboard() [1/2]

override bool UIScriptedMenu::UseKeyboard ( )
inlineprivate

Definition at line 24 of file ChatInputMenu.c.

25 {
26 return true;
27 }

Referenced by UIMenuPanel::LockControls(), and UIMenuPanel::UnlockControls().

◆ UseKeyboard() [2/2]

override bool UIScriptedMenu::UseKeyboard ( )
inlineprivate

Definition at line 327 of file SceneEditorMenu.c.

328 {
329 return true;
330 }

◆ UseMouse() [1/3]

override bool UIScriptedMenu::UseMouse ( )
inlineprotected

Definition at line 248 of file GesturesMenu.c.

249 {
250 return true;
251 }

Referenced by UIMenuPanel::LockControls(), and UIMenuPanel::UnlockControls().

◆ UseMouse() [2/3]

override bool UIScriptedMenu::UseMouse ( )
inlineprotected

Definition at line 244 of file RadialQuickbarMenu.c.

245 {
246 return true;
247 }

◆ UseMouse() [3/3]

override bool UIScriptedMenu::UseMouse ( )
inlineprivate

Definition at line 319 of file SceneEditorMenu.c.

320 {
321 return true;
322 }

◆ ViewEvent()

void UIScriptedMenu::ViewEvent ( )
inlineprotected

Definition at line 365 of file CameraToolsMenu.c.

366 {
367
368 }

◆ ViewKeyframe()

void UIScriptedMenu::ViewKeyframe ( )
inlineprotected

Definition at line 306 of file CameraToolsMenu.c.

307 {
308 if (m_SelectedKeyframe && Camera.GetCurrentCamera())
309 {
310 Camera.GetCurrentCamera().SetPosition(m_SelectedKeyframe.GetPosition());
311 Camera.GetCurrentCamera().SetOrientation(m_SelectedKeyframe.GetOrientation());
312 }
313 }

◆ WidgetTrySetText()

static void UIScriptedMenu::WidgetTrySetText ( Widget root_widget,
string widget_name,
string text,
int color = 0 )
inlinestaticprivate

Definition at line 522 of file InspectMenuNew.c.

523 {
524 TextWidget widget = TextWidget.Cast(root_widget.FindAnyWidget(widget_name));
526 if (widget)
527 {
528 widget.SetText(text);
529 Widget widget_background = root_widget.FindAnyWidget(widget_name + "Background");
531 {
532 if (color != 0)
533 {
534 widget_background.Show(true);
535 widget_background.SetColor(color | 0x7F000000);
536 }
537 else
538 widget_background.Show(false);
539 }
540 }
541 if (rt_widget)
542 rt_widget.Update();
543 }

Referenced by UpdateItemInfo(), UpdateItemInfoCleanness(), UpdateItemInfoDamage(), UpdateItemInfoFoodStage(), UpdateItemInfoLiquidType(), UpdateItemInfoQuantity(), UpdateItemInfoTemperature(), UpdateItemInfoWeight(), UpdateItemInfoWetness(), and UpdateSlotInfo().

Member Data Documentation

◆ AREA_LEFT

const int UIScriptedMenu::AREA_LEFT = 1
protected

Definition at line 50 of file ControlsXboxNew.c.

◆ AREA_RIGHT

const int UIScriptedMenu::AREA_RIGHT = 2
protected

Definition at line 51 of file ControlsXboxNew.c.

◆ BUTTON_XBOX_CONTROLS

const int UIScriptedMenu::BUTTON_XBOX_CONTROLS = 201
protected

Definition at line 33 of file InGameMenuXbox.c.

Referenced by OnClick().

◆ CATEGORY_NAME

const string UIScriptedMenu::CATEGORY_NAME = "CategoryName"
protected

Definition at line 112 of file GesturesMenu.c.

◆ CONST_DEFAULT_PRESET_PREFIX

const string UIScriptedMenu::CONST_DEFAULT_PRESET_PREFIX = "[Default]"
private

Definition at line 17 of file SceneEditorMenu.c.

◆ COORD_FORMAT

const string UIScriptedMenu::COORD_FORMAT = "%1.%2%3"
protected

Definition at line 3 of file MapMenu.c.

◆ CREDIT_SCROLL_SPEED

float UIScriptedMenu::CREDIT_SCROLL_SPEED = 200.0
staticprotected

Definition at line 5 of file CreditsMenu.c.

◆ DIALOG_TAB_OFFSET

const int UIScriptedMenu::DIALOG_TAB_OFFSET = 1400
private

Definition at line 4 of file OptionsMenu.c.

Referenced by OnAttemptTabSwitch(), and OnModalResult().

◆ EDITBOX_TEXT_SIZE

const int UIScriptedMenu::EDITBOX_TEXT_SIZE = 16
private

Definition at line 3 of file ScriptConsoleUniversalInfoDialog.c.

◆ GESTURE_TEXT

const string UIScriptedMenu::GESTURE_TEXT = "GestureNameText"
protected

Definition at line 110 of file GesturesMenu.c.

◆ HINTS_PATH_DEFAULT

const string UIScriptedMenu::HINTS_PATH_DEFAULT = "scripts/data/internal/script_console_hints.json"
staticprotected

Definition at line 29 of file ScriptConsole.c.

Referenced by GetData().

◆ HINTS_PATH_OPTIONAL

const string UIScriptedMenu::HINTS_PATH_OPTIONAL = "$mission:script_console_hints.json"
staticprotected

Definition at line 30 of file ScriptConsole.c.

Referenced by GetData().

◆ ID_RESPAWN_CUSTOM

const int UIScriptedMenu::ID_RESPAWN_CUSTOM = 101
private

Definition at line 3 of file RespawnDialogue.c.

Referenced by OnClick(), OnFocus(), and OnMouseEnter().

◆ ID_RESPAWN_RANDOM

const int UIScriptedMenu::ID_RESPAWN_RANDOM = 102
private

Definition at line 4 of file RespawnDialogue.c.

Referenced by OnClick(), OnFocus(), and OnMouseEnter().

◆ INPUT_TEXT

const string UIScriptedMenu::INPUT_TEXT = "InputActionText"
protected

Definition at line 111 of file GesturesMenu.c.

◆ instance [1/2]

GesturesMenu UIScriptedMenu::instance
staticprotected

Definition at line 120 of file GesturesMenu.c.

◆ instance [2/2]

RadialQuickbarMenu UIScriptedMenu::instance
staticprotected

Definition at line 104 of file RadialQuickbarMenu.c.

◆ LOGO_FADEIN_TIME

float UIScriptedMenu::LOGO_FADEIN_TIME = 1.0
staticprotected

Definition at line 4 of file CreditsMenu.c.

◆ m_ActionTextWidget

RichTextWidget UIScriptedMenu::m_ActionTextWidget
private

Definition at line 15 of file InputDeviceDisconnectWarningMenu.c.

◆ m_ActiveTabIdx

int UIScriptedMenu::m_ActiveTabIdx = 0
protected

Definition at line 22 of file OptionsMenu.c.

◆ m_ActorIdWidget

EditBoxWidget UIScriptedMenu::m_ActorIdWidget
protected

Definition at line 35 of file CameraToolsMenu.c.

◆ m_ActorItemTypeWidget

EditBoxWidget UIScriptedMenu::m_ActorItemTypeWidget
protected

Definition at line 36 of file CameraToolsMenu.c.

◆ m_Actors

ref array<ref CTActor> UIScriptedMenu::m_Actors
protected

Definition at line 23 of file CameraToolsMenu.c.

◆ m_ActorTypeWidget

EditBoxWidget UIScriptedMenu::m_ActorTypeWidget
protected

Definition at line 33 of file CameraToolsMenu.c.

◆ m_AddActor

ButtonWidget UIScriptedMenu::m_AddActor
protected

Definition at line 40 of file CameraToolsMenu.c.

◆ m_AddEvent

ButtonWidget UIScriptedMenu::m_AddEvent
protected

Definition at line 51 of file CameraToolsMenu.c.

◆ m_AddHandsItem

ButtonWidget UIScriptedMenu::m_AddHandsItem
protected

Definition at line 39 of file CameraToolsMenu.c.

◆ m_AddItem

ButtonWidget UIScriptedMenu::m_AddItem
protected

Definition at line 38 of file CameraToolsMenu.c.

◆ m_AddKeyframe

ButtonWidget UIScriptedMenu::m_AddKeyframe
protected

Definition at line 46 of file CameraToolsMenu.c.

◆ m_AllDLCs

ref array<ref ModInfo> UIScriptedMenu::m_AllDLCs
protected

Definition at line 22 of file MainMenuConsoles.c.

◆ m_AllDlcsMap

ref map< string, ref ModInfo > UIScriptedMenu::m_AllDlcsMap
protected

Definition at line 44 of file MainMenu.c.

◆ m_Apply [1/2]

ButtonWidget UIScriptedMenu::m_Apply
protected

Definition at line 14 of file CharacterCreationMenu.c.

Referenced by OnClick().

◆ m_Apply [2/2]

ButtonWidget UIScriptedMenu::m_Apply
protected

Definition at line 10 of file KeybindingsMenu.c.

◆ m_ApplyButton

ButtonWidget UIScriptedMenu::m_ApplyButton
protected

Definition at line 57 of file CameraToolsMenu.c.

◆ m_AreasLR

ref map<int, ref TButtonPairingInfo> UIScriptedMenu::m_AreasLR
protected

Definition at line 48 of file ControlsXboxNew.c.

◆ m_author

TextWidget UIScriptedMenu::m_author
protected

Definition at line 3 of file BookMenu.c.

◆ m_Back [1/2]

ButtonWidget UIScriptedMenu::m_Back
protected

Definition at line 35 of file ControlsXboxNew.c.

Referenced by OnClick().

◆ m_Back [2/2]

Widget UIScriptedMenu::m_Back
protected

Definition at line 12 of file ServerBrowserMenuNew.c.

◆ m_BackAvailable

bool UIScriptedMenu::m_BackAvailable
protected

Definition at line 13 of file InGameMenuXbox.c.

◆ m_BackButton

Widget UIScriptedMenu::m_BackButton
protected

Definition at line 17 of file CharacterCreationMenu.c.

◆ m_BackButtonTextID

string UIScriptedMenu::m_BackButtonTextID
protected

Definition at line 30 of file ControlsXboxNew.c.

◆ m_BackInputWrapper

UAIDWrapper UIScriptedMenu::m_BackInputWrapper
private

Definition at line 5 of file ChatInputMenu.c.

◆ m_bCancel

ButtonWidget UIScriptedMenu::m_bCancel
private

Definition at line 5 of file InviteMenu.c.

◆ m_bCancelConsole

ButtonWidget UIScriptedMenu::m_bCancelConsole
private

Definition at line 6 of file InviteMenu.c.

◆ m_bLogoutNow

ButtonWidget UIScriptedMenu::m_bLogoutNow
private

Definition at line 6 of file LogoutMenu.c.

◆ m_BlurEditWidget

EditBoxWidget UIScriptedMenu::m_BlurEditWidget
protected

Definition at line 32 of file CameraToolsMenu.c.

◆ m_BottomSelector

ref OptionSelectorMultistateCharacterMenu UIScriptedMenu::m_BottomSelector
protected

Definition at line 29 of file CharacterCreationMenu.c.

◆ m_ButtonsWindowWidget

Widget UIScriptedMenu::m_ButtonsWindowWidget
protected

Definition at line 17 of file ScriptConsole.c.

◆ m_Camera1

Camera UIScriptedMenu::m_Camera1
protected

Definition at line 9 of file CameraToolsMenu.c.

◆ m_Camera2

Camera UIScriptedMenu::m_Camera2
protected

Definition at line 10 of file CameraToolsMenu.c.

◆ m_CameraEditbox

EditBoxWidget UIScriptedMenu::m_CameraEditbox
protected

Definition at line 58 of file CameraToolsMenu.c.

◆ m_CameraLines

ref array<ref Param6<vector, vector, float, float, float, int> > UIScriptedMenu::m_CameraLines
protected

Definition at line 12 of file CameraToolsMenu.c.

◆ m_Cameras

ref array<ref CTKeyframe> UIScriptedMenu::m_Cameras
protected

Definition at line 24 of file CameraToolsMenu.c.

◆ m_CameraValues

TextWidget UIScriptedMenu::m_CameraValues
protected

Definition at line 59 of file CameraToolsMenu.c.

◆ m_CanApplyOrReset

bool UIScriptedMenu::m_CanApplyOrReset
protected

Definition at line 24 of file OptionsMenu.c.

◆ m_CanClose

bool UIScriptedMenu::m_CanClose
private

Definition at line 6 of file InputDeviceDisconnectWarningMenu.c.

Referenced by OnKeyUp(), and OnMouseButtonUp().

◆ m_CanToggle

bool UIScriptedMenu::m_CanToggle
protected

Definition at line 25 of file OptionsMenu.c.

◆ m_CanvasWidget

CanvasWidget UIScriptedMenu::m_CanvasWidget
protected

Definition at line 39 of file ControlsXboxNew.c.

◆ m_CaptionText

string UIScriptedMenu::m_CaptionText
private

Definition at line 9 of file InputDeviceDisconnectWarningMenu.c.

◆ m_CaptionWidget

TextWidget UIScriptedMenu::m_CaptionWidget
private

Definition at line 13 of file InputDeviceDisconnectWarningMenu.c.

◆ m_CategoryNameText

TextWidget UIScriptedMenu::m_CategoryNameText
protected

Definition at line 106 of file GesturesMenu.c.

◆ m_CategoryStructure

ref map<int, Widget> UIScriptedMenu::m_CategoryStructure
protected

Definition at line 47 of file ControlsXboxNew.c.

◆ m_ChangeAccount

Widget UIScriptedMenu::m_ChangeAccount
protected

Definition at line 11 of file MainMenuConsoles.c.

◆ m_channel_text

TextWidget UIScriptedMenu::m_channel_text
private

Definition at line 4 of file ChatInputMenu.c.

◆ m_CharacterHeaderText

TextWidget UIScriptedMenu::m_CharacterHeaderText
protected

Definition at line 23 of file CharacterCreationMenu.c.

◆ m_characterOrientation

vector UIScriptedMenu::m_characterOrientation
private

Definition at line 9 of file InspectMenuNew.c.

Referenced by UpdateRotation().

◆ m_CharacterRotationFrame

Widget UIScriptedMenu::m_CharacterRotationFrame
protected

Definition at line 13 of file CharacterCreationMenu.c.

◆ m_characterRotationX

int UIScriptedMenu::m_characterRotationX
private

Definition at line 6 of file InspectMenuNew.c.

◆ m_characterRotationY

int UIScriptedMenu::m_characterRotationY
private

Definition at line 7 of file InspectMenuNew.c.

◆ m_characterScaleDelta

int UIScriptedMenu::m_characterScaleDelta
private

Definition at line 8 of file InspectMenuNew.c.

◆ m_ChooseServer

Widget UIScriptedMenu::m_ChooseServer
protected

Definition at line 15 of file MainMenu.c.

◆ m_ClClassesList

ref TStringArray UIScriptedMenu::m_ClClassesList
protected

Definition at line 1026 of file SceneEditorMenu.c.

◆ m_ClearButton

ButtonWidget UIScriptedMenu::m_ClearButton
private

Definition at line 67 of file ScriptConsoleAddPosition.c.

◆ m_close_timer

ref Timer UIScriptedMenu::m_close_timer
private

Definition at line 6 of file ChatInputMenu.c.

◆ m_CloseConsoleButton

ButtonWidget UIScriptedMenu::m_CloseConsoleButton
private

Definition at line 6 of file HelpScreen.c.

◆ m_ClSelectedClass

string UIScriptedMenu::m_ClSelectedClass
protected

Definition at line 1025 of file SceneEditorMenu.c.

◆ m_ClWgtButtonAddAtt

ButtonWidget UIScriptedMenu::m_ClWgtButtonAddAtt
protected

Definition at line 1029 of file SceneEditorMenu.c.

◆ m_ClWgtEbxFilter

EditBoxWidget UIScriptedMenu::m_ClWgtEbxFilter
protected

Definition at line 1027 of file SceneEditorMenu.c.

◆ m_ClWgtLbxClassesList

TextListboxWidget UIScriptedMenu::m_ClWgtLbxClassesList
protected

Definition at line 1028 of file SceneEditorMenu.c.

◆ m_CommunityTab

ref ServerBrowserTab UIScriptedMenu::m_CommunityTab
protected

Definition at line 18 of file ServerBrowserMenuNew.c.

◆ m_ConfigDebugProfile

PluginConfigDebugProfile UIScriptedMenu::m_ConfigDebugProfile
protected

Definition at line 1076 of file SceneEditorMenu.c.

◆ m_ConfigDebugProfileFixed

PluginConfigDebugProfileFixed UIScriptedMenu::m_ConfigDebugProfileFixed
protected

Definition at line 1075 of file SceneEditorMenu.c.

◆ m_ConfigsButton

EditBoxWidget UIScriptedMenu::m_ConfigsButton
protected

Definition at line 1066 of file SceneEditorMenu.c.

◆ m_confirm_button

ButtonWidget UIScriptedMenu::m_confirm_button
protected

Definition at line 5 of file NoteMenu.c.

◆ m_ConfirmationText

string UIScriptedMenu::m_ConfirmationText
private

Definition at line 10 of file InputDeviceDisconnectWarningMenu.c.

◆ m_content

HtmlWidget UIScriptedMenu::m_content
protected

Definition at line 6 of file BookMenu.c.

◆ m_Content [1/2]

WrapSpacerWidget UIScriptedMenu::m_Content
protected

Definition at line 24 of file CreditsMenu.c.

◆ m_Content [2/2]

MultilineEditBoxWidget UIScriptedMenu::m_Content
private

Definition at line 7 of file ScriptConsoleUniversalInfoDialog.c.

◆ m_content_pos

float UIScriptedMenu::m_content_pos
protected

Definition at line 9 of file BookMenu.c.

◆ m_content_total_height

float UIScriptedMenu::m_content_total_height
protected

Definition at line 8 of file BookMenu.c.

◆ m_ContentScroll

ScrollWidget UIScriptedMenu::m_ContentScroll
private

Definition at line 6 of file ScriptConsoleUniversalInfoDialog.c.

◆ m_ContinueButton [1/2]

Widget UIScriptedMenu::m_ContinueButton
protected

Definition at line 5 of file InGameMenu.c.

◆ m_ContinueButton [2/2]

ButtonWidget UIScriptedMenu::m_ContinueButton
protected

Definition at line 22 of file InGameMenuXbox.c.

◆ m_Controls

Widget UIScriptedMenu::m_Controls
protected

Definition at line 16 of file MainMenuConsoles.c.

◆ m_ControlsButton

ButtonWidget UIScriptedMenu::m_ControlsButton
protected

Definition at line 27 of file InGameMenuXbox.c.

◆ m_ControlsImage

Widget UIScriptedMenu::m_ControlsImage
protected

Definition at line 42 of file ControlsXboxNew.c.

◆ m_ControlsLayoutImage

ImageWidget UIScriptedMenu::m_ControlsLayoutImage
protected

Definition at line 36 of file ControlsXboxNew.c.

◆ m_ControlsTab

ref OptionsMenuControls UIScriptedMenu::m_ControlsTab
protected

Definition at line 10 of file OptionsMenu.c.

◆ m_CopyButton

ButtonWidget UIScriptedMenu::m_CopyButton
protected

Definition at line 56 of file CameraToolsMenu.c.

◆ m_CopyInfoButton

Widget UIScriptedMenu::m_CopyInfoButton
protected

Definition at line 17 of file InGameMenu.c.

◆ m_CopyToClipboardButton

ButtonWidget UIScriptedMenu::m_CopyToClipboardButton
protected

Definition at line 1062 of file SceneEditorMenu.c.

◆ m_CreditsData

ref JsonDataCredits UIScriptedMenu::m_CreditsData
protected

Definition at line 17 of file CreditsMenu.c.

◆ m_CreditsEntries

ref array<ref CreditsElement> UIScriptedMenu::m_CreditsEntries = new array<ref CreditsElement>
protected

Definition at line 20 of file CreditsMenu.c.

◆ m_CurrentCategory

int UIScriptedMenu::m_CurrentCategory
protected

Definition at line 117 of file GesturesMenu.c.

◆ m_CurrentHoverWidget

Widget UIScriptedMenu::m_CurrentHoverWidget
protected

Definition at line 6 of file ScriptConsole.c.

◆ m_CurrentlyHighlighted

Widget UIScriptedMenu::m_CurrentlyHighlighted
protected

Definition at line 14 of file RespawnDialogue.c.

◆ m_CurrentMuteButtonText

string UIScriptedMenu::m_CurrentMuteButtonText
protected

Definition at line 9 of file InGameMenuXbox.c.

◆ m_CurrentPresetVariant

int UIScriptedMenu::m_CurrentPresetVariant = -1
protected

Definition at line 33 of file ControlsXboxNew.c.

◆ m_CurrentSettingAlternateKeyIndex

int UIScriptedMenu::m_CurrentSettingAlternateKeyIndex = -1
protected

Definition at line 17 of file KeybindingsMenu.c.

◆ m_CurrentSettingKeyIndex

int UIScriptedMenu::m_CurrentSettingKeyIndex = -1
protected

Definition at line 16 of file KeybindingsMenu.c.

◆ m_CurrentTabIdx

int UIScriptedMenu::m_CurrentTabIdx = -1
protected

Definition at line 32 of file ControlsXboxNew.c.

◆ m_CurrentTime

float UIScriptedMenu::m_CurrentTime = 0.0
protected

Definition at line 19 of file CreditsMenu.c.

◆ m_CustomizeCharacter

Widget UIScriptedMenu::m_CustomizeCharacter
protected

Definition at line 16 of file MainMenu.c.

◆ m_CustomRespawn

Widget UIScriptedMenu::m_CustomRespawn
protected

Definition at line 11 of file RespawnDialogue.c.

◆ m_DamageEditBox

EditBoxWidget UIScriptedMenu::m_DamageEditBox
protected

Definition at line 1063 of file SceneEditorMenu.c.

◆ m_Defaults

ButtonWidget UIScriptedMenu::m_Defaults
protected

Definition at line 13 of file KeybindingsMenu.c.

Referenced by OnClick().

◆ m_DeleteEvent

ButtonWidget UIScriptedMenu::m_DeleteEvent
protected

Definition at line 53 of file CameraToolsMenu.c.

◆ m_DeleteKeyframe

ButtonWidget UIScriptedMenu::m_DeleteKeyframe
protected

Definition at line 48 of file CameraToolsMenu.c.

◆ m_DescriptionText

TextWidget UIScriptedMenu::m_DescriptionText
private

Definition at line 4 of file InviteMenu.c.

◆ m_Details

Widget UIScriptedMenu::m_Details
protected

Definition at line 19 of file OptionsMenu.c.

◆ m_DetailsLabel

TextWidget UIScriptedMenu::m_DetailsLabel
protected

Definition at line 21 of file CharacterCreationMenu.c.

◆ m_DetailsRoot

Widget UIScriptedMenu::m_DetailsRoot
protected

Definition at line 20 of file CharacterCreationMenu.c.

◆ m_DetailsText

RichTextWidget UIScriptedMenu::m_DetailsText
protected

Definition at line 22 of file CharacterCreationMenu.c.

◆ m_Developer

PluginDeveloper UIScriptedMenu::m_Developer
protected

Definition at line 1073 of file SceneEditorMenu.c.

◆ m_DeviceListWidget

RichTextWidget UIScriptedMenu::m_DeviceListWidget
private

Definition at line 14 of file InputDeviceDisconnectWarningMenu.c.

◆ m_DeviceMessages

ref map<int, string> UIScriptedMenu::m_DeviceMessages
private

Definition at line 5 of file InputDeviceDisconnectWarningMenu.c.

◆ m_DeviceOrder

◆ m_DevicesText

string UIScriptedMenu::m_DevicesText
private

Definition at line 8 of file InputDeviceDisconnectWarningMenu.c.

◆ m_DisconnectedDevices

ref array<int> UIScriptedMenu::m_DisconnectedDevices
private

Definition at line 3 of file InputDeviceDisconnectWarningMenu.c.

◆ m_DisplayedDlcHandler

ref MainMenuDlcHandlerBase UIScriptedMenu::m_DisplayedDlcHandler
protected

Definition at line 47 of file MainMenu.c.

◆ m_DlcData

ref JsonDataDLCList UIScriptedMenu::m_DlcData
protected

Definition at line 45 of file MainMenu.c.

◆ m_DlcFrame

Widget UIScriptedMenu::m_DlcFrame
protected

Definition at line 43 of file MainMenu.c.

◆ m_DlcHandlers

ref array< ref MainMenuDlcHandlerBase > UIScriptedMenu::m_DlcHandlers
protected

Definition at line 46 of file MainMenu.c.

◆ m_DownButton

ButtonWidget UIScriptedMenu::m_DownButton
protected

Definition at line 1057 of file SceneEditorMenu.c.

◆ m_edit

MultilineEditBoxWidget UIScriptedMenu::m_edit
protected

Definition at line 3 of file NoteMenu.c.

◆ m_edit_box

EditBoxWidget UIScriptedMenu::m_edit_box
private

Definition at line 3 of file ChatInputMenu.c.

◆ m_Editbox

EditBoxWidget UIScriptedMenu::m_Editbox
private

Definition at line 51 of file ScriptConsoleNewPresetDialog.c.

◆ m_EditboxName

EditBoxWidget UIScriptedMenu::m_EditboxName
private

Definition at line 63 of file ScriptConsoleAddPosition.c.

◆ m_EditboxPos

EditBoxWidget UIScriptedMenu::m_EditboxPos
private

Definition at line 64 of file ScriptConsoleAddPosition.c.

◆ m_EditTooltipRoot

Widget UIScriptedMenu::m_EditTooltipRoot
protected

Definition at line 9 of file ScriptConsole.c.

◆ m_EventContent

Widget UIScriptedMenu::m_EventContent
protected

Definition at line 28 of file CameraToolsMenu.c.

◆ m_Events

ref array<ref CTEvent> UIScriptedMenu::m_Events
protected

Definition at line 25 of file CameraToolsMenu.c.

◆ m_Exit

Widget UIScriptedMenu::m_Exit
protected

Definition at line 22 of file MainMenu.c.

◆ m_ExitButton [1/2]

Widget UIScriptedMenu::m_ExitButton
protected

Definition at line 7 of file InGameMenu.c.

◆ m_ExitButton [2/2]

ButtonWidget UIScriptedMenu::m_ExitButton
protected

Definition at line 23 of file InGameMenuXbox.c.

◆ m_FavoriteButton

Widget UIScriptedMenu::m_FavoriteButton
protected

Definition at line 14 of file InGameMenu.c.

◆ m_FavoriteImage

Widget UIScriptedMenu::m_FavoriteImage
protected

Definition at line 15 of file InGameMenu.c.

◆ m_Favorites

ref TStringArray UIScriptedMenu::m_Favorites
protected

Definition at line 23 of file ServerBrowserMenuNew.c.

◆ m_FavoritesTab

ref ServerBrowserTab UIScriptedMenu::m_FavoritesTab
protected

Definition at line 19 of file ServerBrowserMenuNew.c.

◆ m_FollowingBone

ref Param2<int, int> UIScriptedMenu::m_FollowingBone
protected

Definition at line 17 of file CameraToolsMenu.c.

◆ m_FollowingTimeFinished

float UIScriptedMenu::m_FollowingTimeFinished
protected

Definition at line 16 of file CameraToolsMenu.c.

◆ m_FreeflightCamTransform

vector UIScriptedMenu::m_FreeflightCamTransform[4]
protected

Definition at line 4 of file CameraToolsMenu.c.

◆ m_FullTime

ref FullTimeData UIScriptedMenu::m_FullTime
private

Definition at line 9 of file InviteMenu.c.

◆ m_GamercardAvailable

bool UIScriptedMenu::m_GamercardAvailable
protected

Definition at line 14 of file InGameMenuXbox.c.

◆ m_GameTab

ref OptionsMenuGame UIScriptedMenu::m_GameTab
protected

Definition at line 7 of file OptionsMenu.c.

◆ m_GenderSelector

ref OptionSelectorMultistateCharacterMenu UIScriptedMenu::m_GenderSelector
protected

Definition at line 26 of file CharacterCreationMenu.c.

◆ m_GestureItemCardPanel

Widget UIScriptedMenu::m_GestureItemCardPanel
protected

Definition at line 102 of file GesturesMenu.c.

◆ m_GestureItems

ref array<ref GestureMenuItem> UIScriptedMenu::m_GestureItems
protected

Definition at line 103 of file GesturesMenu.c.

◆ m_GPSMarker

Widget UIScriptedMenu::m_GPSMarker
protected

Definition at line 22 of file MapMenu.c.

◆ m_GPSMarkerArrow

ImageWidget UIScriptedMenu::m_GPSMarkerArrow
protected

Definition at line 23 of file MapMenu.c.

◆ m_GroupsContainer

ref KeybindingsContainer UIScriptedMenu::m_GroupsContainer
protected

Definition at line 6 of file KeybindingsMenu.c.

◆ m_HardReset

ButtonWidget UIScriptedMenu::m_HardReset
protected

Definition at line 14 of file KeybindingsMenu.c.

◆ m_HintCancelButton

ButtonWidget UIScriptedMenu::m_HintCancelButton
protected

Definition at line 12 of file ScriptConsole.c.

◆ m_HintClearButton

ButtonWidget UIScriptedMenu::m_HintClearButton
protected

Definition at line 13 of file ScriptConsole.c.

◆ m_HintEditMode

bool UIScriptedMenu::m_HintEditMode
protected

Definition at line 3 of file ScriptConsole.c.

◆ m_HintInputText

EditBoxWidget UIScriptedMenu::m_HintInputText
protected

Definition at line 14 of file ScriptConsole.c.

◆ m_HintOkButton

ButtonWidget UIScriptedMenu::m_HintOkButton
protected

Definition at line 11 of file ScriptConsole.c.

◆ m_HintPanel [1/2]

ref UiHintPanelLoading UIScriptedMenu::m_HintPanel
protected

Definition at line 65 of file DayZGame.c.

◆ m_HintPanel [2/2]

ref UiHintPanel UIScriptedMenu::m_HintPanel
protected

Definition at line 24 of file InGameMenu.c.

◆ m_HintTimeAccu

float UIScriptedMenu::m_HintTimeAccu
protected

Definition at line 67 of file DayZGame.c.

◆ m_HintWidget

RichTextWidget UIScriptedMenu::m_HintWidget
protected

Definition at line 10 of file ScriptConsole.c.

◆ m_HintWidgetBackground

ImageWidget UIScriptedMenu::m_HintWidgetBackground
protected

Definition at line 8 of file ScriptConsole.c.

◆ m_HintWidgetRoot

Widget UIScriptedMenu::m_HintWidgetRoot
protected

Definition at line 7 of file ScriptConsole.c.

◆ m_HoverSuccessTriggered

bool UIScriptedMenu::m_HoverSuccessTriggered
protected

Definition at line 5 of file ScriptConsole.c.

◆ m_HoverTime

float UIScriptedMenu::m_HoverTime
protected

Definition at line 4 of file ScriptConsole.c.

◆ m_html

HtmlWidget UIScriptedMenu::m_html
protected

Definition at line 4 of file NoteMenu.c.

◆ m_Hud

ref IngameHud UIScriptedMenu::m_Hud
protected

Definition at line 15 of file MapMenu.c.

◆ m_Id

int UIScriptedMenu::m_Id
protected

Definition at line 19 of file ScriptConsole.c.

◆ m_image

ImageWidget UIScriptedMenu::m_image
private

Definition at line 37 of file LoadingMenu.c.

◆ m_ImageMarkerStructure

ref map<int, Widget> UIScriptedMenu::m_ImageMarkerStructure
protected

Definition at line 46 of file ControlsXboxNew.c.

◆ m_Images

ImageWidget UIScriptedMenu::m_Images
protected

Definition at line 21 of file MapMenu.c.

◆ m_InfoPanel

Widget UIScriptedMenu::m_InfoPanel
protected

Definition at line 26 of file CreditsMenu.c.

◆ m_InfoPanelText

RichTextWidget UIScriptedMenu::m_InfoPanelText
protected

Definition at line 25 of file CreditsMenu.c.

◆ m_InfoTextLeft

Widget UIScriptedMenu::m_InfoTextLeft
protected

Definition at line 11 of file TutorialsMenu.c.

◆ m_InfoTextRight

Widget UIScriptedMenu::m_InfoTextRight
protected

Definition at line 12 of file TutorialsMenu.c.

◆ m_Initialized

bool UIScriptedMenu::m_Initialized
private

Definition at line 7 of file InputDeviceDisconnectWarningMenu.c.

◆ m_Instance

CameraToolsMenu UIScriptedMenu::m_Instance
staticprotected

Definition at line 3 of file CameraToolsMenu.c.

◆ m_InterpTypeCombo

XComboBoxWidget UIScriptedMenu::m_InterpTypeCombo
protected

Definition at line 31 of file CameraToolsMenu.c.

◆ m_InterpTypeSpeedCombo

XComboBoxWidget UIScriptedMenu::m_InterpTypeSpeedCombo
protected

Definition at line 30 of file CameraToolsMenu.c.

◆ m_IsCategorySelected

bool UIScriptedMenu::m_IsCategorySelected
protected

Definition at line 115 of file GesturesMenu.c.

◆ m_IsMenuClosing

bool UIScriptedMenu::m_IsMenuClosing
protected

Definition at line 116 of file GesturesMenu.c.

◆ m_IsOpenning

bool UIScriptedMenu::m_IsOpenning
protected

Definition at line 10 of file MapMenu.c.

◆ m_IsPlaying

bool UIScriptedMenu::m_IsPlaying
protected

Definition at line 13 of file CameraToolsMenu.c.

◆ m_IsRefreshing

TabType UIScriptedMenu::m_IsRefreshing = TabType.NONE
protected

Definition at line 22 of file ServerBrowserMenuNew.c.

◆ m_IsStatic

bool UIScriptedMenu::m_IsStatic
protected

Definition at line 66 of file DayZGame.c.

◆ m_IsWriting

bool UIScriptedMenu::m_IsWriting
protected

Definition at line 8 of file NoteMenu.c.

◆ m_item_widget

ItemPreviewWidget UIScriptedMenu::m_item_widget
private

Definition at line 4 of file InspectMenuNew.c.

◆ m_ItemCardPanel

Widget UIScriptedMenu::m_ItemCardPanel
protected

Definition at line 90 of file RadialQuickbarMenu.c.

◆ m_Items

ref array<ref RadialQuickbarItem> UIScriptedMenu::m_Items
protected

Definition at line 91 of file RadialQuickbarMenu.c.

◆ m_ItemToAssign

EntityAI UIScriptedMenu::m_ItemToAssign
staticprotected

Definition at line 101 of file RadialQuickbarMenu.c.

◆ m_iTime

int UIScriptedMenu::m_iTime
private

Definition at line 7 of file InviteMenu.c.

◆ m_JsonData

ref JsonHintsData UIScriptedMenu::m_JsonData
staticprotected

Definition at line 32 of file ScriptConsole.c.

◆ m_KBDropdown

ref DropdownPrefab UIScriptedMenu::m_KBDropdown
protected

Definition at line 4 of file KeybindingsMenu.c.

◆ m_KeyBindingsTextListboxWidget

TextListboxWidget UIScriptedMenu::m_KeyBindingsTextListboxWidget
private

Definition at line 3 of file HelpScreen.c.

◆ m_KeybindsTab

ref TutorialKeybinds UIScriptedMenu::m_KeybindsTab
protected

Definition at line 19 of file TutorialsMenu.c.

◆ m_KeyframeContent

Widget UIScriptedMenu::m_KeyframeContent
protected

Definition at line 27 of file CameraToolsMenu.c.

◆ m_label

TextWidget UIScriptedMenu::m_label
private

Definition at line 35 of file LoadingMenu.c.

◆ m_Label

TextWidget UIScriptedMenu::m_Label
private

Definition at line 65 of file ScriptConsoleAddPosition.c.

◆ m_LANTab

ref ServerBrowserTab UIScriptedMenu::m_LANTab
protected

Definition at line 20 of file ServerBrowserMenuNew.c.

◆ m_LastFocusedButton

ref Widget UIScriptedMenu::m_LastFocusedButton
protected

Definition at line 36 of file MainMenu.c.

◆ m_LastPlayedTooltip

Widget UIScriptedMenu::m_LastPlayedTooltip
protected

Definition at line 29 of file MainMenu.c.

◆ m_LastPlayedTooltipIP

TextWidget UIScriptedMenu::m_LastPlayedTooltipIP
protected

Definition at line 32 of file MainMenu.c.

◆ m_LastPlayedTooltipLabel

Widget UIScriptedMenu::m_LastPlayedTooltipLabel
protected

Definition at line 30 of file MainMenu.c.

◆ m_LastPlayedTooltipName

TextWidget UIScriptedMenu::m_LastPlayedTooltipName
protected

Definition at line 31 of file MainMenu.c.

◆ m_LastPlayedTooltipPort

TextWidget UIScriptedMenu::m_LastPlayedTooltipPort
protected

Definition at line 33 of file MainMenu.c.

◆ m_LastPlayedTooltipTimer

ref WidgetFadeTimer UIScriptedMenu::m_LastPlayedTooltipTimer
protected

Definition at line 35 of file MainMenu.c.

◆ m_LegendResizer

ref SizeToChild UIScriptedMenu::m_LegendResizer
protected

Definition at line 18 of file MapMenu.c.

◆ m_Load

ButtonWidget UIScriptedMenu::m_Load
protected

Definition at line 44 of file CameraToolsMenu.c.

◆ m_Logo

ImageWidget UIScriptedMenu::m_Logo
protected

Definition at line 22 of file CreditsMenu.c.

◆ m_LogoFadeInIncrement

float UIScriptedMenu::m_LogoFadeInIncrement
protected

Definition at line 10 of file CreditsMenu.c.

◆ m_LogoFadeInLevel

float UIScriptedMenu::m_LogoFadeInLevel
protected

Definition at line 11 of file CreditsMenu.c.

◆ m_LogoutTimeText

TextWidget UIScriptedMenu::m_LogoutTimeText
private

Definition at line 3 of file InviteMenu.c.

◆ m_Map

ItemMap UIScriptedMenu::m_Map
protected

Definition at line 34 of file MapMenu.c.

◆ m_MapMenuHandler

ref MapHandler UIScriptedMenu::m_MapMenuHandler
protected

Definition at line 16 of file MapMenu.c.

◆ m_MapNavigationBehaviour

ref MapNavigationBehaviour UIScriptedMenu::m_MapNavigationBehaviour
protected

Definition at line 38 of file MapMenu.c.

◆ m_MapToolsContainer

Widget UIScriptedMenu::m_MapToolsContainer
protected

Definition at line 20 of file MapMenu.c.

◆ m_MapWidgetInstance

ref MapWidget UIScriptedMenu::m_MapWidgetInstance
protected

Definition at line 17 of file MapMenu.c.

◆ m_MarkedEntities

ref array<ref MapMarker> UIScriptedMenu::m_MarkedEntities = new array<ref MapMarker>()
staticprotected

Definition at line 21 of file ScriptConsole.c.

◆ m_MenuFadeInIncrement

float UIScriptedMenu::m_MenuFadeInIncrement
protected

Definition at line 7 of file CreditsMenu.c.

◆ m_MenuFadeInLevel

float UIScriptedMenu::m_MenuFadeInLevel
protected

Definition at line 8 of file CreditsMenu.c.

◆ m_MenuFadeInLevel2

float UIScriptedMenu::m_MenuFadeInLevel2 = 1
protected

Definition at line 9 of file CreditsMenu.c.

◆ m_Message

TextWidget UIScriptedMenu::m_Message
private

Definition at line 66 of file ScriptConsoleAddPosition.c.

◆ m_MessageButton

Widget UIScriptedMenu::m_MessageButton
protected

Definition at line 20 of file MainMenu.c.

◆ m_Mission

MissionMainMenu UIScriptedMenu::m_Mission
protected

Definition at line 6 of file MainMenu.c.

◆ m_ModalLock

bool UIScriptedMenu::m_ModalLock
protected

Definition at line 23 of file OptionsMenu.c.

◆ m_ModdedWarning

ref TextWidget UIScriptedMenu::m_ModdedWarning
protected

Definition at line 19 of file InGameMenu.c.

◆ m_ModsDetailed

ref ModsMenuDetailed UIScriptedMenu::m_ModsDetailed
protected

Definition at line 40 of file MainMenu.c.

◆ m_ModsSimple

ref ModsMenuSimple UIScriptedMenu::m_ModsSimple
protected

Definition at line 39 of file MainMenu.c.

◆ m_ModsTooltip

ref ModsMenuTooltip UIScriptedMenu::m_ModsTooltip
protected

Definition at line 41 of file MainMenu.c.

◆ m_ModuleSceneManager

PluginSceneManager UIScriptedMenu::m_ModuleSceneManager
protected

Definition at line 997 of file SceneEditorMenu.c.

◆ m_MouseBindingsTextListboxWidget

TextListboxWidget UIScriptedMenu::m_MouseBindingsTextListboxWidget
private

Definition at line 4 of file HelpScreen.c.

◆ m_MuteAvailable

bool UIScriptedMenu::m_MuteAvailable
protected

Definition at line 12 of file InGameMenuXbox.c.

◆ m_MuteButtonTextID

string UIScriptedMenu::m_MuteButtonTextID
protected

Definition at line 4 of file InGameMenuXbox.c.

Referenced by SetMuteButtonText().

◆ m_NameSelector

ref OptionSelectorEditbox UIScriptedMenu::m_NameSelector
protected

Definition at line 25 of file CharacterCreationMenu.c.

◆ m_NewsMain

Widget UIScriptedMenu::m_NewsMain
protected

Definition at line 23 of file MainMenu.c.

◆ m_NewsSec1

Widget UIScriptedMenu::m_NewsSec1
protected

Definition at line 24 of file MainMenu.c.

◆ m_NewsSec2

Widget UIScriptedMenu::m_NewsSec2
protected

Definition at line 25 of file MainMenu.c.

◆ m_NextCameraIndex

int UIScriptedMenu::m_NextCameraIndex = 1
protected

Definition at line 14 of file CameraToolsMenu.c.

◆ m_NextCamPosition

vector UIScriptedMenu::m_NextCamPosition
protected

Definition at line 5 of file CameraToolsMenu.c.

◆ m_NextCharacter

Widget UIScriptedMenu::m_NextCharacter
protected

Definition at line 27 of file MainMenu.c.

◆ m_NextPresetText

string UIScriptedMenu::m_NextPresetText
protected

Definition at line 31 of file ControlsXboxNew.c.

◆ m_NotifyFadeTimer

ref WidgetFadeTimer UIScriptedMenu::m_NotifyFadeTimer
protected

Definition at line 1045 of file SceneEditorMenu.c.

◆ m_NotifyWgtPanel

Widget UIScriptedMenu::m_NotifyWgtPanel
protected

Definition at line 1046 of file SceneEditorMenu.c.

◆ m_OfficialTab

ref ServerBrowserTab UIScriptedMenu::m_OfficialTab
protected

Definition at line 17 of file ServerBrowserMenuNew.c.

◆ m_OKButton

ButtonWidget UIScriptedMenu::m_OKButton
private

Definition at line 8 of file ScriptConsoleUniversalInfoDialog.c.

◆ m_OnlineButton

ButtonWidget UIScriptedMenu::m_OnlineButton
protected

Definition at line 28 of file InGameMenuXbox.c.

◆ m_OnlineMenu

Widget UIScriptedMenu::m_OnlineMenu
protected

Definition at line 20 of file InGameMenuXbox.c.

◆ m_OpenedPopups

ref TIntArray UIScriptedMenu::m_OpenedPopups
protected

Definition at line 1012 of file SceneEditorMenu.c.

◆ m_OpenGameCardButtonTextID

string UIScriptedMenu::m_OpenGameCardButtonTextID
protected

Definition at line 8 of file InGameMenuXbox.c.

◆ m_Options [1/2]

Widget UIScriptedMenu::m_Options
protected

Definition at line 15 of file MainMenuConsoles.c.

◆ m_Options [2/2]

ref GameOptions UIScriptedMenu::m_Options
protected

Definition at line 12 of file OptionsMenu.c.

◆ m_OptionsButton [1/2]

Widget UIScriptedMenu::m_OptionsButton
protected

Definition at line 12 of file InGameMenu.c.

◆ m_OptionsButton [2/2]

ButtonWidget UIScriptedMenu::m_OptionsButton
protected

Definition at line 26 of file InGameMenuXbox.c.

◆ m_OriginalCharacterID

int UIScriptedMenu::m_OriginalCharacterID
protected

Definition at line 32 of file CharacterCreationMenu.c.

◆ m_OriginalPresetIndex

int UIScriptedMenu::m_OriginalPresetIndex
protected

Definition at line 18 of file KeybindingsMenu.c.

◆ m_page

TextWidget UIScriptedMenu::m_page
protected

Definition at line 5 of file BookMenu.c.

◆ m_page_height

float UIScriptedMenu::m_page_height
protected

Definition at line 7 of file BookMenu.c.

◆ m_Paper

ItemBase UIScriptedMenu::m_Paper
protected

Definition at line 6 of file NoteMenu.c.

◆ m_Pen

EntityAI UIScriptedMenu::m_Pen
protected

Definition at line 7 of file NoteMenu.c.

◆ m_PenColor

string UIScriptedMenu::m_PenColor
protected

Definition at line 11 of file NoteMenu.c.

◆ m_PlatformHolder

Widget UIScriptedMenu::m_PlatformHolder
protected

Definition at line 43 of file ControlsXboxNew.c.

◆ m_Play [1/2]

Widget UIScriptedMenu::m_Play
protected

Definition at line 41 of file CameraToolsMenu.c.

◆ m_Play [2/2]

Widget UIScriptedMenu::m_Play
protected

Definition at line 14 of file MainMenu.c.

◆ m_PlayedCharacterInfo

Widget UIScriptedMenu::m_PlayedCharacterInfo
protected

Definition at line 18 of file CharacterCreationMenu.c.

◆ m_PlayerAlive

bool UIScriptedMenu::m_PlayerAlive
protected

Definition at line 16 of file InGameMenuXbox.c.

◆ m_PlayerName

TextWidget UIScriptedMenu::m_PlayerName
protected

Definition at line 9 of file MainMenu.c.

◆ m_PlayVideo

Widget UIScriptedMenu::m_PlayVideo
protected

Definition at line 17 of file MainMenu.c.

◆ m_Popups

ref map<int, ref UIPopupScript> UIScriptedMenu::m_Popups
protected

Definition at line 1013 of file SceneEditorMenu.c.

◆ m_PopupScriptPositionManager

UIPopupScriptPositionManager UIScriptedMenu::m_PopupScriptPositionManager
protected

Definition at line 1074 of file SceneEditorMenu.c.

◆ m_PresetAddItemtButton

ButtonWidget UIScriptedMenu::m_PresetAddItemtButton
protected

Definition at line 1051 of file SceneEditorMenu.c.

◆ m_PresetDeleteButton

ButtonWidget UIScriptedMenu::m_PresetDeleteButton
protected

Definition at line 1059 of file SceneEditorMenu.c.

◆ m_PresetItemsTextListbox

TextListboxWidget UIScriptedMenu::m_PresetItemsTextListbox
protected

Definition at line 1050 of file SceneEditorMenu.c.

◆ m_PresetNewButton

ButtonWidget UIScriptedMenu::m_PresetNewButton
protected

Definition at line 1058 of file SceneEditorMenu.c.

◆ m_PresetRemoveItemButton

ButtonWidget UIScriptedMenu::m_PresetRemoveItemButton
protected

Definition at line 1052 of file SceneEditorMenu.c.

◆ m_PresetRenameButton

ButtonWidget UIScriptedMenu::m_PresetRenameButton
protected

Definition at line 1060 of file SceneEditorMenu.c.

◆ m_PresetSelector

ref OptionSelectorMultistate UIScriptedMenu::m_PresetSelector
protected

Definition at line 5 of file KeybindingsMenu.c.

◆ m_PresetSetDefaultButton

ButtonWidget UIScriptedMenu::m_PresetSetDefaultButton
protected

Definition at line 1061 of file SceneEditorMenu.c.

◆ m_PresetsTextListbox

TextListboxWidget UIScriptedMenu::m_PresetsTextListbox
protected

Definition at line 1049 of file SceneEditorMenu.c.

◆ m_PrevCharacter

Widget UIScriptedMenu::m_PrevCharacter
protected

Definition at line 26 of file MainMenu.c.

◆ m_PrevMouseX

float UIScriptedMenu::m_PrevMouseX
protected

Definition at line 15 of file ScriptConsole.c.

◆ m_PrevMouseY

float UIScriptedMenu::m_PrevMouseY
protected

Definition at line 16 of file ScriptConsole.c.

◆ m_progressBar

ProgressBarWidget UIScriptedMenu::m_progressBar
private

Definition at line 36 of file LoadingMenu.c.

◆ m_PrWgtAttRoot

Widget UIScriptedMenu::m_PrWgtAttRoot
protected

Definition at line 1039 of file SceneEditorMenu.c.

◆ m_PrWgtAttTitle

Widget UIScriptedMenu::m_PrWgtAttTitle
protected

Definition at line 1040 of file SceneEditorMenu.c.

◆ m_PrWgtClassName

TextWidget UIScriptedMenu::m_PrWgtClassName
protected

Definition at line 1032 of file SceneEditorMenu.c.

◆ m_PrWgtDir

EditBoxWidget UIScriptedMenu::m_PrWgtDir
protected

Definition at line 1036 of file SceneEditorMenu.c.

◆ m_PrWgtDmg

EditBoxWidget UIScriptedMenu::m_PrWgtDmg
protected

Definition at line 1037 of file SceneEditorMenu.c.

◆ m_PrWgtPoxX

EditBoxWidget UIScriptedMenu::m_PrWgtPoxX
protected

Definition at line 1033 of file SceneEditorMenu.c.

◆ m_PrWgtPoxY

EditBoxWidget UIScriptedMenu::m_PrWgtPoxY
protected

Definition at line 1034 of file SceneEditorMenu.c.

◆ m_PrWgtPoxZ

EditBoxWidget UIScriptedMenu::m_PrWgtPoxZ
protected

Definition at line 1035 of file SceneEditorMenu.c.

◆ m_PrWidgetsAttachments

ref array<ref UIPropertyAttachment> UIScriptedMenu::m_PrWidgetsAttachments
protected

Definition at line 1042 of file SceneEditorMenu.c.

◆ m_QuantityEditBox

EditBoxWidget UIScriptedMenu::m_QuantityEditBox
protected

Definition at line 1064 of file SceneEditorMenu.c.

◆ m_RandomizeCharacter

Widget UIScriptedMenu::m_RandomizeCharacter
protected

Definition at line 16 of file CharacterCreationMenu.c.

◆ m_Reset

ButtonWidget UIScriptedMenu::m_Reset
protected

Definition at line 16 of file OptionsMenu.c.

Referenced by OnClick().

◆ m_RespawnButton

Widget UIScriptedMenu::m_RespawnButton
protected

Definition at line 9 of file InGameMenu.c.

◆ m_RestartButton [1/2]

Widget UIScriptedMenu::m_RestartButton
protected

Definition at line 8 of file InGameMenu.c.

◆ m_RestartButton [2/2]

ButtonWidget UIScriptedMenu::m_RestartButton
protected

Definition at line 25 of file InGameMenuXbox.c.

◆ m_RestartDeadButton

ButtonWidget UIScriptedMenu::m_RestartDeadButton
protected

Definition at line 24 of file InGameMenuXbox.c.

◆ m_RestartDeadCustomButton

Widget UIScriptedMenu::m_RestartDeadCustomButton
protected

Definition at line 11 of file InGameMenu.c.

◆ m_RestartDeadRandomButton

Widget UIScriptedMenu::m_RestartDeadRandomButton
protected

Definition at line 10 of file InGameMenu.c.

◆ m_Save [1/2]

ButtonWidget UIScriptedMenu::m_Save
protected

Definition at line 43 of file CameraToolsMenu.c.

◆ m_Save [2/2]

Widget UIScriptedMenu::m_Save
protected

Definition at line 15 of file CharacterCreationMenu.c.

◆ m_SaveEvent

ButtonWidget UIScriptedMenu::m_SaveEvent
protected

Definition at line 52 of file CameraToolsMenu.c.

◆ m_SaveKeyframe

ButtonWidget UIScriptedMenu::m_SaveKeyframe
protected

Definition at line 47 of file CameraToolsMenu.c.

◆ m_Scene

DayZIntroScenePC UIScriptedMenu::m_Scene
private

Definition at line 7 of file CharacterCreationMenu.c.

◆ m_ScenePC

DayZIntroScenePC UIScriptedMenu::m_ScenePC
protected

Definition at line 7 of file MainMenu.c.

◆ m_schemes_list

TextListboxWidget UIScriptedMenu::m_schemes_list
private

Definition at line 58 of file PresetsMenu.c.

◆ m_Scroller

ScrollWidget UIScriptedMenu::m_Scroller
protected

Definition at line 23 of file CreditsMenu.c.

◆ m_ScrollIncrement

float UIScriptedMenu::m_ScrollIncrement
protected

Definition at line 12 of file CreditsMenu.c.

◆ m_ScrollLevel

float UIScriptedMenu::m_ScrollLevel
protected

Definition at line 13 of file CreditsMenu.c.

◆ m_ScrollMax

float UIScriptedMenu::m_ScrollMax
protected

Definition at line 14 of file CreditsMenu.c.

◆ m_ScrollSize

float UIScriptedMenu::m_ScrollSize
protected

Definition at line 15 of file CreditsMenu.c.

◆ m_SelectAvailable

bool UIScriptedMenu::m_SelectAvailable
protected

Definition at line 11 of file InGameMenuXbox.c.

◆ m_SelectButtonTextID

string UIScriptedMenu::m_SelectButtonTextID
protected

Definition at line 7 of file InGameMenuXbox.c.

◆ m_SelectedActor

CTActor UIScriptedMenu::m_SelectedActor
protected

Definition at line 21 of file CameraToolsMenu.c.

◆ m_SelectedEvent

CTEvent UIScriptedMenu::m_SelectedEvent
protected

Definition at line 20 of file CameraToolsMenu.c.

◆ m_SelectedHandler

ScriptConsoleTabBase UIScriptedMenu::m_SelectedHandler
protected

Definition at line 18 of file ScriptConsole.c.

Referenced by GetSelectedHandler().

◆ m_SelectedItem

Widget UIScriptedMenu::m_SelectedItem
protected

Definition at line 114 of file GesturesMenu.c.

◆ m_SelectedKeyframe

CTKeyframe UIScriptedMenu::m_SelectedKeyframe
protected

Definition at line 19 of file CameraToolsMenu.c.

◆ m_SelectedObject

string UIScriptedMenu::m_SelectedObject
protected

Definition at line 1071 of file SceneEditorMenu.c.

◆ m_SelectedObjectIsPreset

bool UIScriptedMenu::m_SelectedObjectIsPreset
protected

Definition at line 1072 of file SceneEditorMenu.c.

◆ m_SelectedServer

ServerBrowserEntry UIScriptedMenu::m_SelectedServer
protected

Definition at line 24 of file ServerBrowserMenuNew.c.

◆ m_SelectedTab

int UIScriptedMenu::m_SelectedTab
protected

Definition at line 22 of file ScriptConsole.c.

◆ m_SeparatorPanel

Widget UIScriptedMenu::m_SeparatorPanel
protected

Definition at line 6 of file InGameMenu.c.

◆ m_ServerInfoPanel [1/2]

Widget UIScriptedMenu::m_ServerInfoPanel
protected

Definition at line 13 of file InGameMenu.c.

◆ m_ServerInfoPanel [2/2]

ref PlayerListScriptedWidget UIScriptedMenu::m_ServerInfoPanel
protected

Definition at line 18 of file InGameMenuXbox.c.

◆ m_ServerInfoText

string UIScriptedMenu::m_ServerInfoText
private

Definition at line 3 of file InGameMenu.c.

◆ m_ServerIP

ref TextWidget UIScriptedMenu::m_ServerIP
protected

Definition at line 20 of file InGameMenu.c.

◆ m_ServerName

ref TextWidget UIScriptedMenu::m_ServerName
protected

Definition at line 22 of file InGameMenu.c.

◆ m_ServerPort

ref TextWidget UIScriptedMenu::m_ServerPort
protected

Definition at line 21 of file InGameMenu.c.

◆ m_SetKeybinds

ref array<int> UIScriptedMenu::m_SetKeybinds
protected

Definition at line 20 of file KeybindingsMenu.c.

◆ m_SettingsButton

Widget UIScriptedMenu::m_SettingsButton
protected

Definition at line 21 of file MainMenu.c.

◆ m_ShoesSelector

ref OptionSelectorMultistateCharacterMenu UIScriptedMenu::m_ShoesSelector
protected

Definition at line 30 of file CharacterCreationMenu.c.

◆ m_SkinSelector

ref OptionSelectorMultistateCharacterMenu UIScriptedMenu::m_SkinSelector
protected

Definition at line 27 of file CharacterCreationMenu.c.

◆ m_SlObjectsList

ref map<int, SceneObject> UIScriptedMenu::m_SlObjectsList
protected

Definition at line 1018 of file SceneEditorMenu.c.

◆ m_slot_widget

ItemPreviewWidget UIScriptedMenu::m_slot_widget
private

Definition at line 5 of file InspectMenuNew.c.

◆ m_SlSelectedClass

string UIScriptedMenu::m_SlSelectedClass
protected

Definition at line 1017 of file SceneEditorMenu.c.

◆ m_SlWgtEbxFilter

EditBoxWidget UIScriptedMenu::m_SlWgtEbxFilter
protected

Definition at line 1020 of file SceneEditorMenu.c.

◆ m_SlWgtFocus

ButtonWidget UIScriptedMenu::m_SlWgtFocus
protected

Definition at line 1022 of file SceneEditorMenu.c.

◆ m_SlWgtLbxObjectsList

TextListboxWidget UIScriptedMenu::m_SlWgtLbxObjectsList
protected

Definition at line 1019 of file SceneEditorMenu.c.

◆ m_SlWgtLoadedScene

TextWidget UIScriptedMenu::m_SlWgtLoadedScene
protected

Definition at line 1016 of file SceneEditorMenu.c.

◆ m_SlWgtSelect

ButtonWidget UIScriptedMenu::m_SlWgtSelect
protected

Definition at line 1021 of file SceneEditorMenu.c.

◆ m_SoundsTab

ref OptionsMenuSounds UIScriptedMenu::m_SoundsTab
protected

Definition at line 8 of file OptionsMenu.c.

◆ m_SpawnAsAttachmentButton

ButtonWidget UIScriptedMenu::m_SpawnAsAttachmentButton
protected

Definition at line 1055 of file SceneEditorMenu.c.

Referenced by OnClick().

◆ m_SpawnDistanceEditBox

EditBoxWidget UIScriptedMenu::m_SpawnDistanceEditBox
protected

Definition at line 1065 of file SceneEditorMenu.c.

◆ m_SpawnInInventoryButton

ButtonWidget UIScriptedMenu::m_SpawnInInventoryButton
protected

Definition at line 1054 of file SceneEditorMenu.c.

Referenced by OnClick().

◆ m_SpawnOnGroundButton

ButtonWidget UIScriptedMenu::m_SpawnOnGroundButton
protected

Definition at line 1053 of file SceneEditorMenu.c.

Referenced by OnClick().

◆ m_Stats

ref MainMenuStats UIScriptedMenu::m_Stats
protected

Definition at line 3 of file MainMenu.c.

◆ m_Stop

ButtonWidget UIScriptedMenu::m_Stop
protected

Definition at line 42 of file CameraToolsMenu.c.

◆ m_SymbolCount

int UIScriptedMenu::m_SymbolCount
protected

Definition at line 10 of file NoteMenu.c.

◆ m_tab_images

ImageWidget UIScriptedMenu::m_tab_images[TABS_COUNT]
protected

Definition at line 17 of file TutorialsMenu.c.

◆ m_Tabber

TabberUI UIScriptedMenu::m_Tabber
protected

Definition at line 3 of file KeybindingsMenu.c.

◆ m_TabberWidget

Widget UIScriptedMenu::m_TabberWidget
protected

Definition at line 41 of file ControlsXboxNew.c.

◆ m_TabHandlers

ref map<Widget, ref ScriptConsoleTabBase> UIScriptedMenu::m_TabHandlers = new map<Widget, ref ScriptConsoleTabBase>
protected

Definition at line 23 of file ScriptConsole.c.

Referenced by GetTabHandler(), OnRPCEx(), SelectTab(), and Update().

◆ m_TabHandlersByID

ref map<int, ref ScriptConsoleTabBase> UIScriptedMenu::m_TabHandlersByID = new map<int, ref ScriptConsoleTabBase>
protected

Definition at line 24 of file ScriptConsole.c.

◆ m_Tabs

ref array<ref KeybindingsGroup> UIScriptedMenu::m_Tabs
protected

Definition at line 7 of file KeybindingsMenu.c.

◆ m_TabScript

TabberUI UIScriptedMenu::m_TabScript
protected

Definition at line 40 of file ControlsXboxNew.c.

◆ m_TargetPresetIndex

int UIScriptedMenu::m_TargetPresetIndex
protected

Definition at line 19 of file KeybindingsMenu.c.

◆ m_TextPress

RichTextWidget UIScriptedMenu::m_TextPress
private

Definition at line 4 of file TitleScreenMenu.c.

◆ m_Time

float UIScriptedMenu::m_Time
protected

Definition at line 7 of file CameraToolsMenu.c.

◆ m_title

TextWidget UIScriptedMenu::m_title
protected

Definition at line 4 of file BookMenu.c.

◆ m_ToolbarPanel

Widget UIScriptedMenu::m_ToolbarPanel
protected

Definition at line 104 of file GesturesMenu.c.

◆ m_ToolScaleCellSizeCanvasWidth

float UIScriptedMenu::m_ToolScaleCellSizeCanvasWidth
protected

Definition at line 12 of file MapMenu.c.

◆ m_ToolsCompassArrow

ImageWidget UIScriptedMenu::m_ToolsCompassArrow
protected

Definition at line 26 of file MapMenu.c.

◆ m_ToolsCompassAzimuth

TextWidget UIScriptedMenu::m_ToolsCompassAzimuth
protected

Definition at line 27 of file MapMenu.c.

◆ m_ToolsCompassBase

Widget UIScriptedMenu::m_ToolsCompassBase
protected

Definition at line 25 of file MapMenu.c.

◆ m_ToolsContainerPos0

float UIScriptedMenu::m_ToolsContainerPos0[2]
protected

Definition at line 13 of file MapMenu.c.

◆ m_ToolsGPSElevationText

TextWidget UIScriptedMenu::m_ToolsGPSElevationText
protected

Definition at line 29 of file MapMenu.c.

◆ m_ToolsGPSXText

TextWidget UIScriptedMenu::m_ToolsGPSXText
protected

Definition at line 30 of file MapMenu.c.

◆ m_ToolsGPSYText

TextWidget UIScriptedMenu::m_ToolsGPSYText
protected

Definition at line 31 of file MapMenu.c.

◆ m_ToolsScaleCellSizeCanvas

CanvasWidget UIScriptedMenu::m_ToolsScaleCellSizeCanvas
protected

Definition at line 33 of file MapMenu.c.

◆ m_ToolsScaleCellSizeText

TextWidget UIScriptedMenu::m_ToolsScaleCellSizeText
protected

Definition at line 32 of file MapMenu.c.

◆ m_ToolsScaleContourText

TextWidget UIScriptedMenu::m_ToolsScaleContourText
protected

Definition at line 28 of file MapMenu.c.

◆ m_TopSelector

ref OptionSelectorMultistateCharacterMenu UIScriptedMenu::m_TopSelector
protected

Definition at line 28 of file CharacterCreationMenu.c.

◆ m_TutorialButton

Widget UIScriptedMenu::m_TutorialButton
protected

Definition at line 19 of file MainMenu.c.

◆ m_Tutorials

Widget UIScriptedMenu::m_Tutorials
protected

Definition at line 18 of file MainMenu.c.

◆ m_TutorialsButton

ButtonWidget UIScriptedMenu::m_TutorialsButton
protected

Definition at line 29 of file InGameMenuXbox.c.

◆ m_Undo

ButtonWidget UIScriptedMenu::m_Undo
protected

Definition at line 12 of file KeybindingsMenu.c.

◆ m_UnfavoriteImage

Widget UIScriptedMenu::m_UnfavoriteImage
protected

Definition at line 16 of file InGameMenu.c.

◆ m_UnmuteButtonTextID

string UIScriptedMenu::m_UnmuteButtonTextID
protected

Definition at line 5 of file InGameMenuXbox.c.

Referenced by SetMuteButtonText().

◆ m_UpButton

ButtonWidget UIScriptedMenu::m_UpButton
protected

Definition at line 1056 of file SceneEditorMenu.c.

◆ m_UpperLegendContainer

Widget UIScriptedMenu::m_UpperLegendContainer
protected

Definition at line 24 of file MapMenu.c.

◆ m_VariantWidget

Widget UIScriptedMenu::m_VariantWidget
protected

Definition at line 44 of file ControlsXboxNew.c.

◆ m_Version

TextWidget UIScriptedMenu::m_Version
protected

Definition at line 31 of file InGameMenuXbox.c.

◆ m_Video [1/2]

ref MainMenuVideo UIScriptedMenu::m_Video
protected

Definition at line 4 of file MainMenu.c.

◆ m_Video [2/2]

VideoWidget UIScriptedMenu::m_Video
protected

Definition at line 5 of file MainMenuVideo.c.

◆ m_VideoTab

ref OptionsMenuVideo UIScriptedMenu::m_VideoTab
protected

Definition at line 9 of file OptionsMenu.c.

◆ m_ViewEvent

ButtonWidget UIScriptedMenu::m_ViewEvent
protected

Definition at line 54 of file CameraToolsMenu.c.

◆ m_ViewKeyframe

ButtonWidget UIScriptedMenu::m_ViewKeyframe
protected

Definition at line 49 of file CameraToolsMenu.c.

◆ m_WasChanged

bool UIScriptedMenu::m_WasChanged
protected

Definition at line 7 of file MapMenu.c.

◆ m_WgtBtnDeleteRuler

ButtonWidget UIScriptedMenu::m_WgtBtnDeleteRuler
protected

Definition at line 1007 of file SceneEditorMenu.c.

◆ m_WgtBtnEditInitScript

ButtonWidget UIScriptedMenu::m_WgtBtnEditInitScript
protected

Definition at line 1038 of file SceneEditorMenu.c.

◆ m_WgtBtnEditorSettings

ButtonWidget UIScriptedMenu::m_WgtBtnEditorSettings
protected

Definition at line 1006 of file SceneEditorMenu.c.

◆ m_WgtBtnLeftPresets

ButtonWidget UIScriptedMenu::m_WgtBtnLeftPresets
protected

Definition at line 1068 of file SceneEditorMenu.c.

◆ m_WgtBtnPositionManager

ButtonWidget UIScriptedMenu::m_WgtBtnPositionManager
protected

Definition at line 1069 of file SceneEditorMenu.c.

◆ m_WgtBtnSceneManager

ButtonWidget UIScriptedMenu::m_WgtBtnSceneManager
protected

Definition at line 1003 of file SceneEditorMenu.c.

◆ m_WgtBtnSceneSave

ButtonWidget UIScriptedMenu::m_WgtBtnSceneSave
protected

Definition at line 1005 of file SceneEditorMenu.c.

◆ m_WgtBtnSceneSettings

ButtonWidget UIScriptedMenu::m_WgtBtnSceneSettings
protected

Definition at line 1004 of file SceneEditorMenu.c.

◆ m_WgtPnlWrapper

Widget UIScriptedMenu::m_WgtPnlWrapper
protected

Definition at line 1067 of file SceneEditorMenu.c.

◆ m_WgtPopupsBg

Widget UIScriptedMenu::m_WgtPopupsBg
protected

Definition at line 1011 of file SceneEditorMenu.c.

◆ m_WgtPopupsMain

Widget UIScriptedMenu::m_WgtPopupsMain
protected

Definition at line 1010 of file SceneEditorMenu.c.

◆ m_WgtRoot

Widget UIScriptedMenu::m_WgtRoot
protected

Definition at line 996 of file SceneEditorMenu.c.

◆ m_WrapperWidget

WrapSpacerWidget UIScriptedMenu::m_WrapperWidget
private

Definition at line 12 of file InputDeviceDisconnectWarningMenu.c.

◆ MENU_FADEIN_TIME

float UIScriptedMenu::MENU_FADEIN_TIME = 2.0
staticprotected

Definition at line 3 of file CreditsMenu.c.

◆ MODAL_ID_BACK

const int UIScriptedMenu::MODAL_ID_BACK = 1337
protected

Definition at line 22 of file KeybindingsMenu.c.

◆ MODAL_ID_DEFAULT

const int UIScriptedMenu::MODAL_ID_DEFAULT = 100
protected

Definition at line 23 of file KeybindingsMenu.c.

◆ MODAL_ID_DEFAULT_ALL

const int UIScriptedMenu::MODAL_ID_DEFAULT_ALL = 101
protected

Definition at line 24 of file KeybindingsMenu.c.

◆ MODAL_ID_PRESET_CHANGE

const int UIScriptedMenu::MODAL_ID_PRESET_CHANGE = 200
protected

Definition at line 25 of file KeybindingsMenu.c.

◆ MODAL_RESULT_DEFAULT_ALL

const int UIScriptedMenu::MODAL_RESULT_DEFAULT_ALL = 1
protected

Definition at line 27 of file KeybindingsMenu.c.

◆ MODAL_RESULT_DEFAULT_CURRENT

const int UIScriptedMenu::MODAL_RESULT_DEFAULT_CURRENT = 0
protected

Definition at line 26 of file KeybindingsMenu.c.

◆ NO_HINT_TEXT

const string UIScriptedMenu::NO_HINT_TEXT = "No hint"
protected

Definition at line 34 of file ScriptConsole.c.

Referenced by GetMessage().

◆ PATH_MOUSEKEY

const string UIScriptedMenu::PATH_MOUSEKEY = "scripts/data/pagedatatutorials.json"
protected

Definition at line 3 of file TutorialsMenu.c.

◆ PATH_PS_NEW

const string UIScriptedMenu::PATH_PS_NEW = "ps4/pagedatatutorialsalternate.json"
protected

Definition at line 7 of file TutorialsMenu.c.

◆ PATH_PS_OLD

const string UIScriptedMenu::PATH_PS_OLD = "ps4/pagedatatutorials.json"
protected

Definition at line 6 of file TutorialsMenu.c.

◆ PATH_X1_NEW

const string UIScriptedMenu::PATH_X1_NEW = "xbox/pagedatatutorialsalternate.json"
protected

Definition at line 5 of file TutorialsMenu.c.

◆ PATH_X1_OLD

const string UIScriptedMenu::PATH_X1_OLD = "xbox/pagedatatutorials.json"
protected

Definition at line 4 of file TutorialsMenu.c.

◆ PLATFORM_ADJUST_PS

const int UIScriptedMenu::PLATFORM_ADJUST_PS = 2000
protected

Definition at line 53 of file ControlsXboxNew.c.

◆ PLATFORM_ADJUST_X1

const int UIScriptedMenu::PLATFORM_ADJUST_X1 = 1000
protected

Definition at line 52 of file ControlsXboxNew.c.

◆ POPUP_ID_CONFIGS

const int UIScriptedMenu::POPUP_ID_CONFIGS = 11
staticprivate

Definition at line 16 of file SceneEditorMenu.c.

◆ POPUP_ID_EDITOR_SETTINGS

const int UIScriptedMenu::POPUP_ID_EDITOR_SETTINGS = 6
staticprivate

Definition at line 11 of file SceneEditorMenu.c.

◆ POPUP_ID_INIT_SCRIPT

const int UIScriptedMenu::POPUP_ID_INIT_SCRIPT = 7
staticprivate

Definition at line 12 of file SceneEditorMenu.c.

◆ POPUP_ID_NOTIFY

const int UIScriptedMenu::POPUP_ID_NOTIFY = 5
staticprivate

Definition at line 10 of file SceneEditorMenu.c.

◆ POPUP_ID_POSITION_MANAGER

const int UIScriptedMenu::POPUP_ID_POSITION_MANAGER = 8
staticprivate

Definition at line 13 of file SceneEditorMenu.c.

◆ POPUP_ID_PRESET_NEW

const int UIScriptedMenu::POPUP_ID_PRESET_NEW = 9
staticprivate

Definition at line 14 of file SceneEditorMenu.c.

◆ POPUP_ID_PRESET_RENAME

const int UIScriptedMenu::POPUP_ID_PRESET_RENAME = 10
staticprivate

Definition at line 15 of file SceneEditorMenu.c.

◆ POPUP_ID_SCENE_DELETE

const int UIScriptedMenu::POPUP_ID_SCENE_DELETE = 4
staticprivate

Definition at line 9 of file SceneEditorMenu.c.

◆ POPUP_ID_SCENE_MANAGER

const int UIScriptedMenu::POPUP_ID_SCENE_MANAGER = 0
staticprivate

Definition at line 5 of file SceneEditorMenu.c.

◆ POPUP_ID_SCENE_NEW

const int UIScriptedMenu::POPUP_ID_SCENE_NEW = 2
staticprivate

Definition at line 7 of file SceneEditorMenu.c.

◆ POPUP_ID_SCENE_RENAME

const int UIScriptedMenu::POPUP_ID_SCENE_RENAME = 3
staticprivate

Definition at line 8 of file SceneEditorMenu.c.

◆ POPUP_ID_SCENE_SETTINGS

const int UIScriptedMenu::POPUP_ID_SCENE_SETTINGS = 1
staticprivate

Definition at line 6 of file SceneEditorMenu.c.

◆ RADIAL_TEXT

const string UIScriptedMenu::RADIAL_TEXT = "RadialText"
protected

Definition at line 109 of file GesturesMenu.c.

◆ SCALE_RULER_LINE_WIDTH

const int UIScriptedMenu::SCALE_RULER_LINE_WIDTH = 8
protected

Definition at line 4 of file MapMenu.c.

◆ SCALE_RULER_NUM_SEGMENTS

const int UIScriptedMenu::SCALE_RULER_NUM_SEGMENTS = 10
protected

Definition at line 5 of file MapMenu.c.

◆ TABS_COUNT

const int UIScriptedMenu::TABS_COUNT = 4
protected

Definition at line 16 of file TutorialsMenu.c.

◆ TEXT_ITEM_NAME

const string UIScriptedMenu::TEXT_ITEM_NAME = "ItemName"
protected

Definition at line 97 of file RadialQuickbarMenu.c.

◆ TEXT_ITEM_TITLE

const string UIScriptedMenu::TEXT_ITEM_TITLE = "ItemTitle"
protected

Definition at line 98 of file RadialQuickbarMenu.c.

◆ TOOLTIP_ID_APPLY

const int UIScriptedMenu::TOOLTIP_ID_APPLY = 2
private

Definition at line 11 of file CharacterCreationMenu.c.

Referenced by OnFocus(), and OnMouseEnter().

◆ TOOLTIP_ID_SAVE

const int UIScriptedMenu::TOOLTIP_ID_SAVE = 1
private

Definition at line 10 of file CharacterCreationMenu.c.

Referenced by OnFocus(), and OnMouseEnter().


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