DayZ 1.24
Loading...
Searching...
No Matches
ScriptedWidgetEventHandler Class Reference

map: item x vector(index, width, height) More...

Inheritance diagram for ScriptedWidgetEventHandler:
[legend]
Collaboration diagram for ScriptedWidgetEventHandler:
[legend]

Protected Member Functions

void OnWidgetScriptInit (Widget w)
 
bool ResizeParentToChild ()
 
bool ResizeParentToChild (out bool changed_size, int limit=-1, bool immedUpdate=true)
 
void UiHintPanel (Widget parent_widget)
 
void ~UiHintPanel ()
 
void Init (DayZGame game)
 
void LoadContentList ()
 
void BuildLayout (Widget parent_widget)
 
void PopulateLayout ()
 
void SetHintHeadline ()
 
void SetHintDescription ()
 
void SetHintImage ()
 
void SetHintPaging ()
 
void ShowRandomPage ()
 
void RandomizePageIndex ()
 
void ShowNextPage ()
 
void ShowPreviousPage ()
 
void StartSlideshow ()
 
void SlideshowThread ()
 
void StopSlideShow ()
 
void RestartSlideShow ()
 
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 InventoryGrid ()
 
void OnWidgetScriptInit (Widget w)
 
bool CanAddItemInHandToInventory ()
 
override bool OnUpdate (Widget w)
 
override bool OnMouseEnter (Widget w, int x, int y)
 
override bool OnMouseLeave (Widget w, Widget enterW, int x, int y)
 
override bool OnMouseButtonDown (Widget w, int x, int y, int button)
 
override bool OnMouseButtonUp (Widget w, int x, int y, int button)
 
override bool OnDoubleClick (Widget w, int x, int y, int button)
 
override bool OnDrop (Widget w, int x, int y, Widget reciever)
 
int GetCol (Widget w)
 
int GetColFromBg (Widget w)
 
int GetGridSize ()
 
void SetGridSize (int size)
 
bool IsValidPos (int index)
 
void ResetItemWidget (Widget item_w, int width, int height)
 
void ResetItem (InventoryItem item)
 
bool HasItem (InventoryItem item)
 
void RemoveItem (InventoryItem item)
 
void CTEvent (int index, int actor, Widget root, bool walk, CameraToolsMenu parent)
 
void ~CTEvent ()
 
void Play ()
 
void Stop ()
 
bool IsTime (float start_time, float end_time)
 
void SetEventTime (float time)
 
void SetEventType (int type)
 
float GetEventTime ()
 
int GetEventType ()
 
int GetEventActor ()
 
bool GetEventWalk ()
 
void Select ()
 
void Unselect ()
 
void CTKeyframe (int index, vector pos, vector orient, float int_value, float fov, float dof, int pin, float time_before, Widget root, CameraToolsMenu parent)
 
void ~CTKeyframe ()
 
float GetInterpTime ()
 
void SetPin (int pin)
 
int GetPin ()
 
void SetFOV (float fov)
 
float GetFOV ()
 
void SetDOF (float dof)
 
float GetDOF ()
 
void SetPosition (vector pos)
 
void SetOrientation (vector orient)
 
vector GetPosition ()
 
vector GetOrientation ()
 
void SetTimeBefore (float time)
 
void SetInterpTime (float time)
 
void Select ()
 
void Unselect ()
 
override bool OnClick (Widget w, int x, int y, int button)
 
override bool OnFocus (Widget w, int x, int y)
 
bool IsFocusable (Widget w)
 
void ~CTObjectFollower ()
 
void CreateFollowedObject (string type)
 
void DestroyFollowedObject ()
 
void Update (float timeslice)
 
EntityAI GetObj ()
 
void SetPosition (vector position)
 
void SetRotation (vector dir)
 
vector GetPosition ()
 
vector GetRotation ()
 
void UpdatePos ()
 Function updating the position of the tracker widget.
 
void Show ()
 
void Hide ()
 
void Fade (bool fade)
 
override bool OnClick (Widget w, int x, int y, int button)
 
override bool OnDoubleClick (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)
 
void ContinuousActionProgress ()
 
void ~ContinuousActionProgress ()
 
void OnWidgetScriptInit (Widget w)
 
void Update ()
 
void PlayerListEntryScriptedWidget (Widget parent, string name, string uid, bool show_permissions, PlayerListScriptedWidget tab)
 
void ~PlayerListEntryScriptedWidget ()
 
Widget GetButtonWidget ()
 
void LoadPermissions (BiosPrivacyPermissionResultArray results)
 
string GetUID ()
 
bool IsMuted ()
 
bool IsGloballyMuted ()
 
void SetMute (bool mute)
 
void ToggleMute ()
 
override bool OnMouseEnter (Widget w, int x, int y)
 
override bool OnMouseLeave (Widget w, Widget enterW, int x, int y)
 
void Focus ()
 
override bool OnFocus (Widget w, int x, int y)
 
override bool OnFocusLost (Widget w, int x, int y)
 
override bool OnDoubleClick (Widget w, int x, int y, int button)
 
override bool OnMouseButtonUp (Widget w, int x, int y, int button)
 
bool IsLocalPlayer ()
 
void Select (bool notify=true)
 
void Deselect ()
 
void PlayerListScriptedWidget (Widget parent, string header_text="")
 
void ~PlayerListScriptedWidget ()
 
void FocusFirst ()
 
void Reload (SyncPlayerList player_list)
 
bool IsEmpty ()
 
void OnLoadServersAsync (ref GetServersResult result_list, EBiosError error, string response)
 
void Reload (BiosFriendInfoArray player_list)
 
void Reload (BiosPrivacyUidResultArray player_list)
 
void ReloadLocal (map< string, bool > player_list)
 
PlayerListEntryScriptedWidget FindEntryByWidget (Widget button)
 
string FindPlayerByWidget (Widget button)
 
void AddPlayer (string name, string UID, bool show_permissions)
 
void RemovePlayer (string UID)
 
bool IsMuted (string UID)
 
bool IsGloballyMuted (string UID)
 
void SetMute (string UID, bool mute)
 
void ToggleMute (string UID)
 
PlayerListEntryScriptedWidget GetSelectedPlayer ()
 
void SelectPlayer (PlayerListEntryScriptedWidget entry)
 
void ScrollToEntry (PlayerListEntryScriptedWidget entry)
 
void UpdateInterval ()
 
void SetLayoutName ()
 
void SetImmedUpdate ()
 
void OnSelectAction (ItemBase item, int actionId)
 
void OnSelectActionEx (EntityAI item, int actionId)
 
void ShowActionMenu (InventoryItem item)
 
void LayoutHolder (LayoutHolder parent)
 
void ~LayoutHolder ()
 
LayoutHolder GetRoot ()
 
void SetParentWidget ()
 
LayoutHolder GetParent ()
 
void SetActive (bool active)
 
void SetLastActive ()
 
void SetFirstActive ()
 
bool IsActive ()
 
Widget GetMainWidget ()
 
Widget GetRootWidget ()
 
bool IsDisplayable ()
 
bool IsVisible ()
 
void OnShow ()
 
void OnHide ()
 
void Refresh ()
 
void InspectItem (EntityAI item)
 
void UpdateSelectionIcons ()
 
void PrepareOwnedTooltip (EntityAI item, int x=0, int y=0)
 
void PrepareOwnedSlotsTooltip (Widget w, string name, string desc, int x=0, int y=0)
 
void HideOwnedTooltip ()
 
void HideOwnedSlotsTooltip ()
 
void ItemActionsWidget ()
 
void ~ItemActionsWidget ()
 
void SetInteractXboxIcon (string imageset_name, string image_name)
 DEPRECATED.
 
void SetContinuousInteractXboxIcon (string imageset_name, string image_name)
 
void SetSingleXboxIcon (string imageset_name, string image_name)
 
void SetContinuousXboxIcon (string imageset_name, string image_name)
 
void SetXboxIcon (string name, string imageset_name, string image_name)
 
void SetControllerIcon (string pWidgetName, string pInputName)
 
void ShowXboxHidePCIcons (string widget, bool show_xbox_icon)
 
void OnWidgetScriptInit (Widget w)
 
void OnInputPresetChanged ()
 
void OnInputDeviceChanged (EInputDeviceType pInputDeviceType)
 
void BuildCursor ()
 
void Update ()
 
void GetPlayer ()
 
void GetActionManager ()
 
void GetActions ()
 
void GetEntityInHands ()
 
string GetActionDesc (ActionBase action)
 
string GetItemDesc (EntityAI entity)
 
int GetItemHealth ()
 
void GetItemQuantity (out int q_type, out float q_cur, out int q_min, out int q_max)
 
string GetRadioFrequency ()
 
void SetItemDesc (EntityAI entity, string descText, string itemWidget, string descWidget)
 
void SetItemHealth (int health, string itemWidget, string healthWidget, bool enabled)
 
void SetItemQuantity (int type, float current, int min, int max, string itemWidget, string quantityPBWidget, string quantityTextWidget, bool enabled)
 
void SetWeaponQuantity (int chamber, int mag, string itemWidget, string quantityPBWidget, string quantityTextWidget, bool enabled)
 
void SetWeaponModeAndZeroing (string itemWidget, string upWidget, string downWidget, bool enabled)
 
string WeaponModeTextTemp ()
 
void SetRadioFrequency (string freq, string itemWidget, string upWidget, string downWidget, bool enabled)
 
void SetActionWidget (ActionBase action, string descText, string actionWidget, string descWidget)
 
void SetMultipleInteractAction (string multiActionsWidget)
 shows arrows near the interact action if there are more than one available
 
void SetMultipleContinuousInteractAction (string multiActionsWidget)
 shows arrows near the interact action if there are more than one available
 
void SetMultipleItemAction (string multiActionsWidget)
 
void SetMultipleContinuousItemAction (string multiActionsWidget)
 shows arrows near the interact action if there are more than one available
 
void SetInteractActionIcon (string actionWidget, string actionIconFrameWidget, string actionIconWidget, string actionIconTextWidget)
 
void CheckRefresherFlagVisibility ()
 
void CheckForActionWidgetOverrides ()
 
IngameHud GetHud ()
 
void TutorialKeybinds (Widget parent, TutorialsMenu menu)
 
bool SetElementTitle (UAInput pInput, int iDeviceFlags, out string output)
 assemble all active bindings at widget element
 
bool SetElementModifier (UAInput pInput, out string output)
 Determine the active limiter of the bindings (currently unreliable, multiple limiters can be active on key combos!)
 
void ~TutorialKeybinds ()
 
string GetLayoutName ()
 
void CreditsElement (int index, Widget parent)
 
void DropdownPrefab (Widget root, string text="")
 
void RefreshContent ()
 
int AddElement (string text, Widget content=null)
 
void RemoveElement (int index)
 
void Close ()
 
void SetText (string text)
 
override bool OnClick (Widget w, int x, int y, int button)
 
override bool OnMouseButtonDown (Widget w, int x, int y, int button)
 
void KeybindingElement (int key_index, Widget parent, KeybindingsGroup group)
 
string GetLayoutName ()
 
bool IsChanged ()
 
bool IsAlternateChanged ()
 
array< intGetChangedBinds ()
 
array< intGetChangedAlternateBinds ()
 
void SetElementTitle (ButtonWidget btnWidget, UAInput pInput, int iDeviceFlags)
 
void Reload ()
 
void Reload (array< int > custom_binds, bool is_alternate)
 
void StartEnteringKeybind ()
 
void CancelEnteringKeybind ()
 
void StartEnteringAlternateKeybind ()
 
void CancelEnteringAlternateKeybind ()
 
override bool OnClick (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)
 
void KeybindingElementNew (int key_index, Widget parent, KeybindingsContainer group)
 
string GetLayoutName ()
 
bool IsChanged ()
 
bool IsAlternateChanged ()
 
array< intGetChangedBinds ()
 
array< intGetChangedAlternateBinds ()
 
void SetElementTitle (ButtonWidget btnWidget, UAInput pInput, int iDeviceFlags)
 
void Reload ()
 
void Reload (array< int > custom_binds, bool is_alternate)
 
void StartEnteringKeybind ()
 
void CancelEnteringKeybind ()
 
void StartEnteringAlternateKeybind ()
 
void CancelEnteringAlternateKeybind ()
 
override bool OnClick (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)
 
void KeybindingsGroup (int index, Input input, Widget parent, KeybindingsMenu menu)
 
string GetLayoutName ()
 
void InitPresets (int index, Widget parent, Input input)
 
void OnSelectKBPreset (int index)
 
void OnSelectConsolePreset (int index)
 
void ReloadProfiles ()
 
void AddSubgroup (Widget parent, Input input)
 
void AddAction (int index, Widget parent, Input input)
 
void ReloadAction (int index)
 
bool IsEnteringKeyBind ()
 
void ClearKeybind (int key_index)
 
void ClearAlternativeKeybind (int key_index)
 
void StartEnteringKeybind (int key_index)
 
void CancelEnteringKeybind ()
 
void StartEnteringAlternateKeybind (int key_index)
 
void CancelEnteringAlternateKeybind ()
 
bool IsChanged ()
 
void Apply ()
 
void Reset ()
 
void ResetEx (bool forced=false)
 
void Update (float timeslice)
 
override bool OnMouseButtonDown (Widget w, int x, int y, int button)
 
void BannerHandlerBase (Widget parent)
 
void SetBannerColor (int argb)
 
void SetBannerText (string text)
 
override bool OnUpdate (Widget w)
 
void MainMenuNewsfeed (Widget root)
 
void ShowNewsfeed ()
 
void HideNewsfeed ()
 
void OpenDLC ()
 
void OpenDiscord ()
 
void OpenFeedback ()
 
void OpenForums ()
 
void OpenTwitter ()
 
void OpenYoutube ()
 
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 ColorRed (Widget w, int x, int y)
 
void ColorWhite (Widget w, Widget enterW, int x, int y)
 
void MainMenuDlcHandlerBase (ModInfo info, Widget parent, JsonDataDLCInfo DlcInfo)
 
void ~MainMenuDlcHandlerBase ()
 
void Init ()
 
void CreateRootWidget (Widget parent)
 
void ShowInfoPanel (bool show)
 
bool IsInfoPanelVisible ()
 
void OnPanelVisibilityChanged ()
 
override bool OnClick (Widget w, int x, int y, int button)
 
bool LoadVideoFile ()
 returns 'true' when video is loaded
 
void StartVideo ()
 
void StopVideo ()
 
void PauseVideo ()
 
void UnloadVideo ()
 
void ColorFocussed (Widget w, int x, int y)
 
void ColorUnfocussed (Widget w, Widget enterW, int x, int y)
 
void UpdateOwnedStatus ()
 
void OnDLCChange ()
 
void SetPlatformSpecifics ()
 
void UpdateAllPromotionInfo ()
 
void UpdateDlcData ()
 
void UpdateIconVisibility ()
 
void OnInputDeviceChanged (EInputDeviceType pInputDeviceType)
 
ModInfo GetModInfo ()
 
string GetDistanceString (float total_distance, bool meters_only=false)
 
string GetValueString (float total_value, bool show_decimals=false)
 
string GetTimeString (float total_time)
 
void ModsMenuDetailed (array< ref ModInfo > data, Widget parent, ModsMenuTooltip tooltip, UIScriptedMenu menu_parent)
 
void ~ModsMenuDetailed ()
 
void Open ()
 
void Close ()
 
bool IsOpen ()
 
ModInfo GetHighlighted ()
 
void HighlightFirst ()
 
void Highlight (ModInfo mod_ref)
 
void ScrollToMod (ModInfo mod_ref)
 
void Select (ModInfo mod_ref, bool show)
 
void PrepareTooltip (ModInfo mod_ref)
 
void ShowTooltip ()
 
void HideTooltip ()
 
void LoadEntries (array< ref ModInfo > data)
 
override bool OnMouseButtonUp (Widget w, int x, int y, int button)
 
void ModsMenuDetailedEntry (ModInfo data, Widget parent, ModsMenuDetailed parent_menu)
 
void ~ModsMenuDetailedEntry ()
 
Widget GetWidget ()
 
void Select ()
 
void Deselect ()
 
void LoadData ()
 
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)
 
void ModsMenuSimple (array< ref ModInfo > data, Widget parent, ModsMenuDetailed detail_menu)
 
void ~ModsMenuSimple ()
 
void LoadEntries (array< ref ModInfo > data)
 
void Select (ModInfo mod)
 
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)
 
void ModsMenuSimpleEntry (ModInfo data, int index, Widget parent, ModsMenuSimple parent_menu)
 
void ~ModsMenuSimpleEntry ()
 
void LoadData ()
 
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)
 
void ModsMenuTooltip (Widget parent)
 
void ~ModsMenuTooltip ()
 
void ShowTooltip (ModInfo mod_ref)
 
void HideTooltip ()
 
void OptionsMenuControls (Widget parent, Widget details_root, GameOptions options, OptionsMenu menu)
 
string GetLayoutName ()
 
void EnterKeybindingMenu ()
 
void Focus ()
 Focuses the first viable item.
 
override bool OnMouseEnter (Widget w, int x, int y)
 
override bool OnMouseLeave (Widget w, Widget enterW, int x, int y)
 
override bool OnMouseButtonUp (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)
 
bool IsFocusable (Widget w)
 
bool TextMapUpdateWidget (int key)
 
bool IsChanged ()
 
void Apply ()
 
void Revert ()
 
void SetToDefaults ()
 
void UpdateMouseInvertView (int index)
 
void UpdateMouseVSensitivity (float value)
 
void UpdateMouseHSensitivity (float value)
 
void UpdateMouseAimModVSensitivity (float value)
 
void UpdateMouseAimModHSensitivity (float value)
 
void ReloadOptions ()
 
void SetOptions (GameOptions options)
 
void ToggleDependentOptions (int mode, bool state)
 
void InitDependentOptionsVisibility ()
 
void FillTextMap ()
 
void ColorRed (Widget w)
 
void ColorWhite (Widget w, Widget enterW)
 
void OptionsMenuGame (Widget parent, Widget details_root, GameOptions options, OptionsMenu menu)
 
void ~OptionsMenuGame ()
 
string GetLayoutName ()
 
void Focus ()
 
bool IsChanged ()
 
void Apply ()
 
void Revert ()
 
void SetToDefaults ()
 
void ReloadOptions ()
 
void SetOptions (GameOptions options)
 
void ToggleDependentOptions (int mode, bool state)
 
void InitDependentOptionsVisibility ()
 
void UpdateLanguageOption (int new_index)
 
void UpdatePauseOption (int new_index)
 
void UpdateFOVOption (float new_value)
 
void UpdateHUDBrightnessOption (float newValue)
 
void UpdateHUDOption (int new_index)
 
void UpdateBleedingIndication (int new_index)
 
void UpdateConnectivityInfo (int newIndex)
 
void UpdateCrosshairOption (int new_index)
 
void UpdateQuickbarOption (int new_index)
 
void UpdateGameOption (int new_index)
 
void UpdateAdminOption (int new_index)
 
void UpdatePlayerOption (int new_index)
 
void UpdateServerInfoOption (int new_index)
 
IngameHud GetHud ()
 
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)
 
void OnBleedingIndicationChanged (bool state)
 
bool TextMapUpdateWidget (int key)
 
void FillTextMap ()
 
void OptionsMenuVideo (Widget parent, Widget details_root, GameOptions options, OptionsMenu menu)
 
void ~OptionsMenuVideo ()
 
void InitSelectors ()
 
string GetLayoutName ()
 
void Focus ()
 
void ReloadOptions ()
 
bool IsChanged ()
 
void Apply ()
 
void Revert ()
 
void SetToDefaults ()
 
void SetOptions (GameOptions options)
 
void ToggleDependentOptions (int mode, bool state)
 
void InitDependentOptionsVisibility ()
 
void RefreshCustom ()
 
override bool OnMouseEnter (Widget w, int x, int y)
 
override bool OnMouseLeave (Widget w, Widget enterW, int x, int y)
 
void OnOptionChanged ()
 
void OnOverallQualityChanged (int value)
 
void OnDisplayModeChanged (int value)
 
void OnResolutionChanged (int value)
 
void OnBrightnessChanged (float value)
 
void OnVSyncChanged (float value)
 
void OnColorDepthChanged (int value)
 
void OnObjectDetailChanged (int value)
 
void OnTerrainDetailChanged (int value)
 
void OnTextureDetailChanged (int value)
 
void OnShadowDetailChanged (int value)
 
void OnTextureFilteringChanged (int value)
 
void OnTerrainSurfaceDetailChanged (int value)
 
void OnPPAAChanged (int value)
 
void OnHWAAChanged (int value)
 
void OnATOCChanged (int value)
 
void OnAOChanged (int value)
 
void OnPPQualityChanged (int value)
 
void OnSSRQualityChanged (int value)
 
override bool OnFocus (Widget w, int x, int y)
 
bool TextMapUpdateWidget (int key)
 
void FillTextMap ()
 
void ~OptionSelectorBase ()
 
Widget GetParent ()
 
bool IsFocusable (Widget w)
 
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)
 
void Focus ()
 
void Enable ()
 
void Disable ()
 
void ColorHighlight (Widget w)
 
void ColorNormal (Widget w)
 
void ColorDisabled (Widget w)
 
void ButtonSetColor (Widget w, int color)
 
void ColorHighlightConsole (Widget w)
 
void ColorNormalConsole (Widget w)
 
void ColorDisabledConsole (Widget w)
 
void ButtonSetColorConsole (Widget w, int color)
 
void ButtonSetAlphaAnimConsole (Widget w)
 
void ButtonSetTextColorConsole (Widget w, int color)
 
void ServerBrowserEntry (Widget parent, int index, ServerBrowserTab tab)
 
void ~ServerBrowserEntry ()
 
Widget GetRoot ()
 
void Show (bool show)
 
override bool OnClick (Widget w, int x, int y, int button)
 
override bool OnDoubleClick (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)
 
void Focus ()
 
void ServerListFocus (bool focus)
 
override bool OnFocus (Widget w, int x, int y)
 
override bool OnFocusLost (Widget w, int x, int y)
 
bool IsOnline ()
 
bool IsFocusable (Widget w)
 
void FillInfo (GetServersResultRow server_info)
 
void UpdateEntry ()
 
void SetName (string name)
 
void SetPasswordLocked (bool locked)
 
void SetPopulation (int population, int slots)
 
void ServerBrowserFilterContainer (Widget root, ServerBrowserTab parent)
 
void OnFilterChanged ()
 
void LoadFilters ()
 
void SaveFilters ()
 
void ResetFilters ()
 
bool PingIsSet ()
 
bool FavoriteIsSet ()
 
bool PreviouslyIsSet ()
 
bool ProcessIntoIPAddress (out string potential_ip)
 Removes all characters from the given string whirh are NOT a number, '.' or ':'. Returns true if any change was done to the input text.
 
bool LimitTextBoxCharacterCount (out string text, int max_length)
 Limits the given text to 'max_length' character count. Returns true if any change was done to the input.
 
string GenerateValidIP (string potential_ip)
 Attempts to generate a valid IP address & port from the given string in format like this: "192.168.0.2:2503". If the process fails, then an empty string is returned.
 
bool GenerateValidFilter (out string potential_filter)
 Turns any given string into a more convenient filter (limits character count, forces lowercase, trims empty spaces).
 
void OnSortChanged (int value)
 
void Focus ()
 
override bool OnChange (Widget w, int x, int y, bool finished)
 
override bool OnFocus (Widget w, int x, int y)
 
override bool OnMouseEnter (Widget w, int x, int y)
 
override bool OnMouseLeave (Widget w, Widget enterW, int x, int y)
 
GetServersInput GetFilterOptionsPC ()
 
GetServersInput GetFilterOptionsConsoles ()
 
void OnInputPresetChanged ()
 
void OnInputDeviceChanged (EInputDeviceType pInputDeviceType)
 
void Init ()
 
void OnWidgetScriptInit (Widget w)
 
void AlignTabbers ()
 
int AddTab (string name)
 
void RemoveTab (int index)
 
Widget GetTab (int index)
 
int GetTabCount ()
 
bool CanSwitchTab ()
 
void SetCanSwitch (bool value)
 
void PerformSwitchTab (int index)
 
override bool OnMouseEnter (Widget w, int x, int y)
 
override bool OnMouseLeave (Widget w, Widget enterW, int x, int y)
 
override bool OnMouseButtonUp (Widget w, int x, int y, int button)
 
override bool OnChildAdd (Widget w, Widget child)
 
override bool OnChildRemove (Widget w, Widget child)
 
void EnableTabControl (int index, bool enable)
 
void SelectTabControl (int index)
 
void SelectTabPanel (int index)
 
void DeselectTabControl (int index)
 
void DeselectTabPanel (int index)
 
void DeselectAll ()
 
void NextTab ()
 
void PreviousTab ()
 
int GetSelectedIndex ()
 
void RefreshTab (bool performInitAlignment=false)
 
void UpdateControlsElements ()
 
void DisableTabs (bool disable)
 useful if we want to disable actual tabs for whatever reason
 
void VideoPlayer (Widget parent)
 
void ~VideoPlayer ()
 
void Show (bool show)
 
void OnPlaybackStart ()
 
void OnPlaybackStop ()
 
void OnBufferingStart ()
 
void OnBufferingEnd ()
 
void ToggleVideoSelection ()
 
void LoadVideo (string videoPath)
 
void PlayVideo ()
 
void PauseVideo ()
 
void StopVideo ()
 
void OnceVideo ()
 
void RepeatVideo ()
 
void KillVideo ()
 
void ObjectFollower ()
 
void ~ObjectFollower ()
 
void OnWidgetScriptInit (Widget w)
 
void SetTarget (Object obj)
 
override bool OnUpdate (Widget w)
 
void Update ()
 
void GetOnScreenPosition (out float x, out float y)
 
void ProjectedCrosshair ()
 
void ~ProjectedCrosshair ()
 
void OnWidgetScriptInit (Widget w)
 
void Update ()
 Update.
 
void GetPlayer ()
 
void GetCrosshairPosition ()
 

Protected Attributes

Widget m_Root
 
Widget m_Child
 
int m_SlideShowDelay = 25000
 
string m_RootPath = "Gui/layouts/new_ui/hints/in_game_hints.layout"
 
const string m_DataPath = "scripts/data/hints.json"
 
Widget m_RootFrame
 
Widget m_SpacerFrame
 
ButtonWidget m_UiLeftButton
 
ButtonWidget m_UiRightButton
 
RichTextWidget m_UiDescLabel
 
TextWidget m_UiHeadlineLabel
 
ImageWidget m_UiHintImage
 
TextWidget m_UiPageingLabel
 
ref array< ref HintPagem_ContentList
 
int m_PageIndex = int.MIN
 
DayZGame m_Game
 
bool m_Initialized
 
Widget m_ParentWidget
 
int m_PreviousRandomIndex = int.MIN
 
ref map< int, Widgetm_BackgroundWidgets
 
ref map< int, Widgetm_ItemWidgets
 
ref TItemsMap m_Items
 
InventoryGridController m_Controller
 
int m_GridSize
 
bool m_IsMouseLeftDown
 
bool m_CanAddItemInHandToInventory
 
Widget m_context_menu_root_widget
 
int m_Index
 
int m_ActorIndex
 
int m_EventType
 
float m_EventTime
 
CameraToolsMenu m_Menu
 
TextWidget m_IndexWidget
 
EditBoxWidget m_EventActorWidget
 
EditBoxWidget m_EventTimeWidget
 
EditBoxWidget m_EventTypeWidget
 
CheckBoxWidget m_EventWalkWidget
 
HumanCommandActionCallback m_Callback
 
float m_InterpTime
 
float m_TotalTimeBefore
 
vector m_Position
 
vector m_Orientation
 
EditBoxWidget m_InterpTimeWidget
 
EditBoxWidget m_FOVWidget
 
EditBoxWidget m_DOFWidget
 
EditBoxWidget m_PinWidget
 
TextWidget m_TotalTimeWidget
 
Widget m_FollowerRoot
 
Widget m_FollowerButton
 
EntityAI m_FollowedObject
 
float m_MaxFade
 
float m_MinFade
 
PlayerBase m_Player
 
ActionBase m_Action
 
int m_ActionState
 
ActionManagerBase m_AM
 
ref WidgetFadeTimer m_FadeTimer
 
bool m_Faded
 
float m_InitProgress
 
float m_Speed
 
Widget m_RadialWidget
 
ImageWidget m_LoaderImage
 
ref RadialProgressBar m_Radial
 
string m_Name
 
string m_UID
 
bool m_Mute
 
bool m_GlobalMute
 
TextWidget m_PlayerName
 
ImageWidget m_PlayerAvatar
 
ImageWidget m_MicrophoneIcon
 
ImageWidget m_MuteIcon
 
ButtonWidget m_PlayerButton
 
PlayerListScriptedWidget m_Tab
 
bool m_Selected
 
ScrollWidget m_ScrollContainer
 
Widget m_Content
 
ref map< string, ref PlayerListEntryScriptedWidgetm_Entries
 
int m_TotalEntries
 
PlayerListEntryScriptedWidget m_SelectedEntry
 
Widget m_MainWidget
 
Widget m_RootWidget
 
LayoutHolder m_Parent
 
string m_LayoutName
 
bool m_IsActive
 
bool m_ImmedUpdate
 
bool m_TooltipOwner
 
EntityAI m_am_entity1
 
EntityAI m_am_entity2
 
EntityAI m_EntityInHands
 
ActionBase m_Interact
 
ActionBase m_ContinuousInteract
 
ActionBase m_Single
 
ActionBase m_Continuous
 
ActionManagerClient m_AM
 
IngameHud m_Hud
 
UAIDWrapper m_UseActionWrapper
 
int m_InteractActionsNum
 
int m_ContinuousInteractActionsNum
 
int m_ItemActionsNum
 
int m_ContinuousItemActionsNum
 
bool m_HealthEnabled
 
bool m_QuantityEnabled
 
bool m_Hidden
 
Widget m_ItemLeft
 
float m_MaxWidthChild
 widget width
 
float m_RootWidth
 
float m_RootHeight
 
Widget m_DetailsRoot
 
TutorialsMenu m_Menu
 
Widget m_Parent
 
ScrollWidget m_Scroller
 
Widget m_ContentContainer
 
ref array< Widgetm_Content = new array<Widget>
 
Widget m_Button
 
Widget m_Holder
 
TextWidget m_Text
 
ImageWidget m_ImageExpand
 
ImageWidget m_ImageCollapse
 
bool m_IsExpanded
 
ref ScriptInvoker m_OnSelectItem = new ScriptInvoker()
 
KeybindingsGroup m_Group
 
TextWidget m_ElementName
 
TextWidget m_ElementModifier
 
ButtonWidget m_PrimaryBindButton
 
ButtonWidget m_AlternativeBindButton
 
Widget m_PrimaryClear
 
Widget m_AlternativeClear
 
int m_ElementIndex
 
bool m_IsEdited
 
bool m_IsAlternateEdited
 
ref array< intm_CustomBind
 
ref array< intm_CustomAlternateBind
 
ref Timer m_EntryTimer = new Timer(CALL_CATEGORY_GUI)
 
KeybindingsContainer m_Container
 
KeybindingsMenu m_Menu
 
ref map< int, ref KeybindingElementm_KeyWidgets
 
int m_CurrentSettingKeyIndex = -1
 
int m_CurrentSettingAlternateKeyIndex = -1
 
ref DropdownPrefab m_KBDropdown
 
Widget m_BannerBody
 
Widget m_BannerWedge
 
TextWidget m_BannerText
 
Widget m_DLDLC
 
Widget m_Discord
 
Widget m_Feedback
 
Widget m_DayZForum
 
Widget m_Twitter
 
Widget m_Youtube
 
TextWidget m_MainText1
 
TextWidget m_MainText2
 
TextWidget m_MainText3
 
TextWidget m_SecText1
 
TextWidget m_SecText2
 
TextWidget m_SecText3
 
const string TEXT_OWNED = "#layout_dlc_owned"
 
const string TEXT_UNOWNED = "#layout_dlc_unowned"
 
int m_ColorBackgroundOriginal
 
Widget m_BannerFrame
 
Widget m_Background
 
Widget m_StoreButton
 
Widget m_GamepadStoreImage
 
ImageWidget m_DlcPromotionImage
 
TextWidget m_TitleTextDlc
 
MultilineTextWidget m_DescriptionTextDlc
 
VideoWidget m_VideoWidget
 
ref ModInfo m_ThisModInfo
 
ref JsonDataDLCInfo m_DlcInfo
 
ref BannerHandlerBase m_BannerHandler
 
Widget m_TimeSurvived
 
TextWidget m_TimeSurvivedValue
 
Widget m_PlayersKilled
 
TextWidget m_PlayersKilledValue
 
Widget m_InfectedKilled
 
TextWidget m_InfectedKilledValue
 
Widget m_DistanceTraveled
 
TextWidget m_DistanceTraveledValue
 
Widget m_LongRangeShot
 
TextWidget m_LongRangeShotValue
 
Widget m_CloseButton
 
ScrollWidget m_Scroll
 
ref map< ref ModInfo, ref ModsMenuDetailedEntrym_Data
 
ModInfo m_Highlighted
 
UIScriptedMenu m_Menu
 
ModsMenuTooltip m_Tooltip
 
ref Timer m_TooltipTimer
 
ModInfo m_TooltipMod
 
Widget m_Detail
 
ImageWidget m_IconSmall
 
ImageWidget m_IconCollapse
 
TextWidget m_Name
 
ImageWidget m_IconBig
 
MultilineTextWidget m_Author
 
TextWidget m_Version
 
RichTextWidget m_ActionWebsite
 
RichTextWidget m_ActionPurchase
 
RichTextWidget m_Description
 
ModInfo m_Data
 
ModsMenuDetailed m_ParentMenu
 
bool m_IsOpen
 
const int MOD_DISPLAY_COUNT_MAX = 3
 
Widget m_MoreButton
 
Widget m_MoreHighlight
 
ref map< ModInfo, ref ModsMenuSimpleEntrym_Data
 
ModsMenuDetailed m_DetailMenu
 
ButtonWidget m_ModButton
 
ImageWidget m_Icon
 
Widget m_Hover
 
bool m_HasLogoOver
 
ModsMenuSimple m_ParentMenu
 
RichTextWidget m_Text
 
Widget m_SettingsRoot
 
Widget m_DetailsBodyDefault
 
Widget m_DetailsBodyConnectivity
 
TextWidget m_DetailsLabel
 
RichTextWidget m_DetailsText
 
GridSpacerWidget m_Keybindings
 
GameOptions m_Options
 
OptionsMenu m_Menu
 
ref SwitchOptionsAccess m_KeyboardOption
 
ref SwitchOptionsAccess m_AimHelperOption
 
ref OptionSelectorMultistate m_KeyboardSelector
 
ref OptionSelectorMultistate m_AimHelperSelector
 
ref SwitchOptionsAccess m_Mouse_InvertOption
 
ref NumericOptionsAccess m_Mouse_VSensitivityOption
 
ref NumericOptionsAccess m_Mouse_HSensitivityOption
 
ref NumericOptionsAccess m_Mouse_AimMod_VSensitivityOption
 
ref NumericOptionsAccess m_Mouse_AimMod_HSensitivityOption
 
ref OptionSelectorMultistate m_Mouse_InvertSelector
 
ref OptionSelectorSlider m_Mouse_VSensitivitySelector
 
ref OptionSelectorSlider m_Mouse_HSensitivitySelector
 
ref OptionSelectorSlider m_Mouse_AimMod_VSensitivitySelector
 
ref OptionSelectorSlider m_Mouse_AimMod_HSensitivitySelector
 
ref NumericOptionsAccess m_ControllerLS_VSensitivityOption
 
ref NumericOptionsAccess m_ControllerLS_HSensitivityOption
 
ref NumericOptionsAccess m_ControllerLS_VehicleMod_HSensitivityOption
 
ref SwitchOptionsAccess m_ControllerRS_InvertOption
 
ref NumericOptionsAccess m_ControllerRS_VSensitivityOption
 
ref NumericOptionsAccess m_ControllerRS_HSensitivityOption
 
ref NumericOptionsAccess m_ControllerRS_CurvatureOption
 
ref NumericOptionsAccess m_ControllerRS_AimMod_VSensitivityOption
 
ref NumericOptionsAccess m_ControllerRS_AimMod_HSensitivityOption
 
ref NumericOptionsAccess m_ControllerRS_AimMod_CurvatureOption
 
ref OptionSelectorSlider m_ControllerLS_VSensitivitySelector
 
ref OptionSelectorSlider m_ControllerLS_HSensitivitySelector
 
ref OptionSelectorSlider m_ControllerLS_VehicleMod_HSensitivitySelector
 
ref OptionSelectorMultistate m_ControllerRS_InvertSelector
 
ref OptionSelectorSlider m_ControllerRS_VSensitivitySelector
 
ref OptionSelectorSlider m_ControllerRS_HSensitivitySelector
 
ref OptionSelectorSlider m_ControllerRS_CurvatureSelector
 
ref OptionSelectorSlider m_ControllerRS_AimMod_VSensitivitySelector
 
ref OptionSelectorSlider m_ControllerRS_AimMod_HSensitivitySelector
 
ref OptionSelectorSlider m_ControllerRS_AimMod_CurvatureSelector
 
ref map< int, ref Param2< string, string > > m_TextMap
 
ButtonWidget m_QuickbarButton
 
ref NumericOptionsAccess m_FOVOption
 
ref ListOptionsAccess m_LanguageOption
 
ref ListOptionsAccess m_PauseOption
 
ref OptionSelectorMultistate m_LanguageSelector
 
ref OptionSelectorSlider m_FOVSelector
 
ref OptionSelectorMultistate m_ShowHUDSelector
 
ref OptionSelectorMultistate m_ShowCrosshairSelector
 
ref OptionSelectorMultistate m_ShowQuickbarSelector
 
ref OptionSelectorMultistate m_ShowGameSelector
 
ref OptionSelectorMultistate m_ShowAdminSelector
 
ref OptionSelectorMultistate m_ShowPlayerSelector
 
ref OptionSelectorMultistate m_ShowServerInfoSelector
 
ref OptionSelectorMultistate m_BleedingIndication
 
ref OptionSelectorMultistate m_ConnectivityInfo
 
ref OptionSelectorSlider m_HUDBrightnessSelector
 
ref OptionSelectorMultistate m_PauseSelector
 
ref NumericOptionsAccess m_MasterOption
 
ref NumericOptionsAccess m_EffectsOption
 
ref NumericOptionsAccess m_VOIPOption
 
ref NumericOptionsAccess m_VOIPThresholdOption
 
ref NumericOptionsAccess m_MusicOption
 
ref ListOptionsAccess m_InputModeOption
 
ref OptionSelectorSlider m_MasterSelector
 
ref OptionSelectorSlider m_EffectsSelector
 
ref OptionSelectorSlider m_VOIPSelector
 
ref OptionSelectorLevelMarker m_VOIPThresholdSelector
 
ref OptionSelectorSlider m_MusicSelector
 
ref OptionSelectorMultistate m_InputModeSelector
 
ref Timer m_AudioLevelTimer
 
MissionGameplay m_MissionGameplay
 
VONManagerBase m_VonManager
 
ref OptionSelectorMultistate m_OverallQualitySelector
 
ref OptionSelectorMultistate m_DisplayModeSelector
 
ref OptionSelectorMultistate m_ResolutionSelector
 
ref OptionSelectorSlider m_BrightnessSelector
 
ref OptionSelectorMultistate m_VSyncSelector
 
ref OptionSelectorMultistate m_ObjectDetailSelector
 
ref OptionSelectorMultistate m_TerrainDetailSelector
 
ref OptionSelectorMultistate m_TextureDetailSelector
 
ref OptionSelectorMultistate m_ShadowDetailSelector
 
ref OptionSelectorMultistate m_TextureFilteringSelector
 
ref OptionSelectorMultistate m_TerrainSurfaceDetailSelector
 
ref OptionSelectorMultistate m_PPAASelector
 
ref OptionSelectorMultistate m_HWAASelector
 
ref OptionSelectorMultistate m_ATOCSelector
 
ref OptionSelectorMultistate m_AOSelector
 
ref OptionSelectorMultistate m_PPQualitySelector
 
ref OptionSelectorMultistate m_SSRQualitySelector
 
ref ListOptionsAccess m_OverallQualityOption
 
ref ListOptionsAccess m_DisplayModeOption
 
ref ListOptionsAccess m_ResolutionOption
 
ref NumericOptionsAccess m_BrightnessOption
 
ref ListOptionsAccess m_VSyncOption
 
ref ListOptionsAccess m_ObjectDetailOption
 
ref ListOptionsAccess m_TerrainDetailOption
 
ref ListOptionsAccess m_TextureDetailOption
 
ref ListOptionsAccess m_ShadowDetailOption
 
ref ListOptionsAccess m_TextureFilteringOption
 
ref ListOptionsAccess m_TerrainSurfaceDetailOption
 
ref ListOptionsAccess m_PPAAOption
 
ref ListOptionsAccess m_HWAAOption
 
ref ListOptionsAccess m_ATOCOption
 
ref ListOptionsAccess m_AOOption
 
ref ListOptionsAccess m_PPQualityOption
 
ref ListOptionsAccess m_SSRQualityOption
 
int m_SelectorType = 0
 
bool m_Enabled
 
ScriptedWidgetEventHandler m_ParentClass
 
ref ScriptInvoker m_OptionFocused = new ScriptInvoker
 
ref ScriptInvoker m_OptionUnfocused = new ScriptInvoker
 
ref ScriptInvoker m_AttemptOptionChange = new ScriptInvoker
 
ref ScriptInvoker m_OptionChanged = new ScriptInvoker
 
Widget m_Favorite
 
Widget m_Expand
 
TextWidget m_ServerName
 
TextWidget m_ServerPopulation
 
TextWidget m_ServerSlots
 
TextWidget m_ServerPing
 
ImageWidget m_ServerTime
 
ImageWidget m_ServerLock
 
ImageWidget m_ServerModIcon
 
ImageWidget m_ServerMaKIcon
 
TextWidget m_ServerShard
 
TextWidget m_ServerCharacterAlive
 
TextWidget m_ServerFriends
 
TextWidget m_ServerMode
 
TextWidget m_ServerBattleye
 
TextWidget m_ServerIP
 
TextWidget m_ServerAcceleration
 
TextWidget m_ServerMap
 
TextWidget m_ServerMods
 
ButtonWidget m_ServerModsExpand
 
ref array< stringm_Mods
 
bool m_IsFavorited
 
bool m_IsOnline
 
ref GetServersResultRow m_ServerData
 
ServerBrowserTab m_Tab
 
bool m_FirstExpand = true
 
EditBoxWidget m_SearchByName
 
EditBoxWidget m_SearchByIP
 
ref OptionSelectorMultistate m_CharacterAliveFilter
 
ref OptionSelectorMultistate m_SortingFilter
 
ref OptionSelectorMultistate m_RegionFilter
 
ref OptionSelectorMultistate m_PingFilter
 
ref OptionSelector m_DLCFilter
 
ref OptionSelector m_FavoritedFilter
 
ref OptionSelector m_FriendsPlayingFilter
 
ref OptionSelector m_BattleyeFilter
 
ref OptionSelector m_PasswordFilter
 
ref OptionSelector m_WhitelistFilter
 
ref OptionSelector m_KeyboardFilter
 
ref OptionSelector m_PreviouslyPlayedFilter
 
ref OptionSelector m_VersionMatchFilter
 
ref OptionSelector m_FullServerFilter
 
ref OptionSelector m_ThirdPersonFilter
 
ref OptionSelector m_PublicFilter
 
ref OptionSelector m_AcceleratedTimeFilter
 
bool m_FirstInit = true
 
Widget m_TabControlsRoot
 
int m_TabsCount
 
ref map< int, Widgetm_TabControls
 
ref map< int, Widgetm_Tabs
 
int m_SelectedIndex
 
float m_ResolutionMultiplier
 
bool m_CanSwitch
 
ref ScriptInvoker m_OnTabSwitch = new ScriptInvoker()
 
ref ScriptInvoker m_OnAttemptTabSwitch = new ScriptInvoker()
 
ref Timer m_InitTimer
 
ButtonWidget m_PlayButton
 
ButtonWidget m_PauseButton
 
ButtonWidget m_StopButton
 
ButtonWidget m_OnceButton
 
ButtonWidget m_RepeatButton
 
ButtonWidget m_LoadButton
 
GridSpacerWidget m_LoadVideo
 
SliderWidget m_Progress
 
TextWidget m_CurrentTime
 
TextWidget m_TotalTime
 
ImageWidget m_Buffering
 
Object m_TargetObject
 
bool m_Visible
 
bool m_Debug
 
Weapon_Base m_Weapon
 

Static Protected Attributes

static bool m_IgnoredBool
 
static ref ContextMenu m_ContextMenuInstance
 
static const float SLIDER_STEP = 0.025
 

Private Member Functions

bool OnClick (Widget w, int x, int y, int button)
 
bool OnModalResult (Widget w, int x, int y, int code, int result)
 
bool OnDoubleClick (Widget w, int x, int y, int button)
 
bool OnSelect (Widget w, int x, int y)
 
bool OnItemSelected (Widget w, int x, int y, int row, int column, int oldRow, int oldColumn)
 
bool OnFocus (Widget w, int x, int y)
 
bool OnFocusLost (Widget w, int x, int y)
 
bool OnMouseEnter (Widget w, int x, int y)
 
bool OnMouseLeave (Widget w, Widget enterW, int x, int y)
 
bool OnMouseWheel (Widget w, int x, int y, int wheel)
 
bool OnMouseButtonDown (Widget w, int x, int y, int button)
 
bool OnMouseButtonUp (Widget w, int x, int y, int button)
 
bool OnController (Widget w, int control, int value)
 control is one of ControlID
 
bool OnKeyDown (Widget w, int x, int y, int key)
 
bool OnKeyUp (Widget w, int x, int y, int key)
 
bool OnKeyPress (Widget w, int x, int y, int key)
 
bool OnChange (Widget w, int x, int y, bool finished)
 
bool OnDrag (Widget w, int x, int y)
 
bool OnDragging (Widget w, int x, int y, Widget reciever)
 
bool OnDraggingOver (Widget w, int x, int y, Widget reciever)
 
bool OnDrop (Widget w, int x, int y, Widget reciever)
 
bool OnDropReceived (Widget w, int x, int y, Widget reciever)
 
bool OnResize (Widget w, int x, int y)
 
bool OnChildAdd (Widget w, Widget child)
 
bool OnChildRemove (Widget w, Widget child)
 
bool OnUpdate (Widget w)
 
bool OnEvent (EventType eventType, Widget target, int parameter0, int parameter1)
 
void OnItemEnter (InventoryGrid grid, Widget w, int row, int col)
 
void OnItemLeave (InventoryGrid grid, Widget w)
 
void OnItemDrag (InventoryGrid grid, Widget w, int row, int col)
 
void OnItemDraggingOver (InventoryGrid grid, Widget w, int row, int col)
 
void OnItemDrop (InventoryGrid grid, Widget w, int row, int col)
 
void OnItemDropReceived (InventoryGrid grid, Widget w, int row, int col)
 
void OnItemClick (InventoryGrid grid, Widget w, int row, int col)
 
void OnItemLeftClick (InventoryGrid grid, Widget w, int row, int col)
 
void OnItemRightClick (InventoryGrid grid, Widget w, int row, int col)
 
void OnItemDoubleClick (InventoryGrid grid, Widget w, int row, int col)
 
int GetItemColor (ScriptedWidgetEventHandler grid, InventoryItem item)
 
int GetQuickbarItemColor (InventoryGrid grid, InventoryItem item)
 
vector GetItemSize (InventoryGrid grid, InventoryItem item)
 
string GetItemQuantityText (InventoryItem item)
 
int HasItemQuantity (InventoryItem item)
 
float GetItemQuantity (InventoryItem item)
 
int GetItemQuantityMax (InventoryItem item)
 
int GetItemCount (InventoryItem item)
 
bool CanAddItemInHandToInventory ()
 
override bool OnDrag (Widget w, int x, int y)
 
override bool OnDraggingOver (Widget w, int x, int y, Widget reciever)
 
override bool OnDropReceived (Widget w, int x, int y, Widget reciever)
 
TItemsMap GetItems ()
 
Widget GetItem (int index)
 
Widget GetItemBackground (int index)
 
Widget GetRoot ()
 
void SetItemColor (InventoryItem item, int color)
 
void SetController (InventoryGridController controller)
 
InventoryGridController GetController ()
 
void GenerateQuickBarBackgroundTiles (int count)
 
void UpdateQuickbarItems (TItemsMap items)
 
void UpdateItems (TItemsMap items, bool show_quantity, bool show_temperature)
 
void UpdateQuantityItems ()
 
void UpdateTemperatureItems ()
 
void RefreshQuickbarItemVariables (InventoryItem item, vector data)
 
void RefreshItemVariables (InventoryItem item, vector data, bool show_quantity, bool show_temperature)
 
void AddItem (InventoryItem item, vector data, vector rotation)
 
void SetItem (InventoryItem item, vector data, vector rotation)
 
void ContextMenu ()
 
void ~ContextMenu ()
 
void Init (Widget layoutRoot, bool builtIn=false)
 
void Show (int x, int y)
 
void SetSize (float x, float y)
 
void ShowBackdrop (bool show)
 
void Hide ()
 
bool IsVisible ()
 
override bool OnMouseLeave (Widget w, Widget enterW, int x, int y)
 
override bool OnMouseButtonDown (Widget w, int x, int y, int button)
 
void Add (string label, Class obj, string fn_name, Param params)
 
void AddEx (string label, int labelColor, Class obj, string funcName, Param params)
 
void Remove (int index)
 
int Count ()
 
void Clear ()
 
void BuildContextMenu (notnull EntityAI entity, notnull Widget rootWidget, Class target)
 
override bool OnClick (Widget w, int x, int y, int button)
 
override bool OnChange (Widget w, int x, int y, bool finished)
 
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)
 
override bool OnMouseButtonDown (Widget w, int x, int y, int button)
 
override bool OnMouseButtonUp (Widget w, int x, int y, int button)
 
void GetPlayer ()
 
void GetActionManager ()
 
void GetActions ()
 
void SetProgress (float progress)
 
void HudDebugEventHandler (HudDebug hud_debug)
 
HudDebug GetHudDebug ()
 
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 bool OnMouseButtonDown (Widget w, int x, int y, int button)
 
override bool OnSelect (Widget w, int x, int y)
 
override bool OnItemSelected (Widget w, int x, int y, int row, int column, int oldRow, int oldColumn)
 
override bool OnModalResult (Widget w, int x, int y, int code, int result)
 
override bool OnChange (Widget w, int x, int y, bool finished)
 
void UpdateControllerInputIcons ()
 Loads icons from the latest keybinds.
 
void UpdatePCIconsVisibility ()
 Contains logic for icon set switching (Gamepad/M&K)
 
void MainMenuStats (Widget root)
 
void ShowStats ()
 
void HideStats ()
 
void UpdateStats ()
 
void RevertHUDBrightness ()
 
void OptionsMenuSounds (Widget parent, Widget details_root, GameOptions options, OptionsMenu menu)
 
void ~OptionsMenuSounds ()
 
string GetLayoutName ()
 
void Focus ()
 
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)
 
bool TextMapUpdateWidget (int key)
 
void OnVonStateEvent ()
 
void OnPartyChatChangedEvent ()
 
void UpdateWasMicCapturing ()
 
bool IsChanged ()
 
void Apply ()
 
void Revert ()
 
void SetToDefaults ()
 
void ReloadOptions ()
 
void SetOptions (GameOptions options)
 
void ToggleDependentOptions (int mode, bool state)
 
void InitDependentOptionsVisibility ()
 
void UpdateMaster (float value)
 
void UpdateEffects (float value)
 
void UpdateVOIP (float value)
 
void UpdateVOIPThreshold (float value)
 
void UpdateMusic (float value)
 
void UpdateInputMode (int newIndex)
 
void UpdateAudioLevel ()
 
void FillTextMap ()
 
void SetPopulationEx (GetServersResultRow serverInfo)
 
void SetSlots (int slots)
 
void SetPing (int ping)
 
void SetTime (string time, float multiplier)
 
void SetShard (int shard)
 
void SetMapName (string mapName)
 
void RefreshDLCIcon ()
 
void SetCharacterAlive (string char_alive)
 
void SetFriends (string friends_text)
 
void SetMode (int mode)
 
void SetBattleye (bool battleye)
 
void SetIP (string ip)
 
string GetIP ()
 
int GetPort ()
 
string GetServerID ()
 
string GetMapToRun ()
 
string GetMapName ()
 
void SetFavorite (bool favorite)
 
void SetAcceleration (float mult)
 
void SetModded (bool is_modded)
 
void SetServerMapName ()
 
void SetMods (array< string > mods)
 
void SetMouseAndKeyboard (bool is_mkenabled)
 
void SetIsOnline (bool isOnline)
 
bool ToggleFavorite ()
 
bool ToggleExpand ()
 
bool SetExpand (bool expand)
 
void Select (bool notify=true)
 
void Deselect ()
 
void UpdateColors ()
 
void Preview (Widget w, int x, int y)
 
void Darken (Widget w, int x, int y)
 
void Lighten (Widget w, Widget enterW, int x, int y)
 
void Init ()
 
void InitVideoLoading ()
 
void CreateVideoLoadingEntry (string entryName)
 
void UpdateCurrentTime ()
 
void UpdateTotalTime ()
 
void UpdateTime (TextWidget widget, int time)
 
override bool OnChange (Widget w, int x, int y, bool finished)
 
override bool OnClick (Widget w, int x, int y, int button)
 
void ~ProfileOptionsUI ()
 
void Attach (int profileOption, array< Widget > widget_array)
 
void Deattach ()
 
void Init ()
 
void SetValue ()
 
override bool OnClick (Widget w, int x, int y, int button)
 
void SetButtonStates (int index)
 
array< WidgetGetWidgetArray ()
 
int GetProfileOption ()
 
- Private Member Functions inherited from Managed
void IntroSceneCharacter ()
 
void ~IntroSceneCharacter ()
 
bool IsDefaultCharacter ()
 
void SetToDefaultCharacter ()
 
void SetCharacterID (int char_id)
 
int GetCharacterID ()
 
PlayerBase GetCharacterObj ()
 
TStringArray GetCharGenderList ()
 
TStringArray GetCharList (ECharGender gender)
 
TStringArray GetCharShirtsList ()
 
TStringArray GetCharPantsList ()
 
TStringArray GetCharShoesList ()
 
void SetCharacterGender (ECharGender gender)
 
bool IsCharacterFemale ()
 
ECharGender GetCharacterGender ()
 
vector GetPosition ()
 
int GetNextCharacterID ()
 
int GetPrevCharacterID ()
 
void CreateNewCharacterRandom ()
 
void CreateNewCharacterById (int character_id)
 
void CreateNewCharacterByName (string character_name, bool randomize_equip=true)
 
void CreateDefaultCharacter ()
 
void GetLastPlayedServer (int characterID, out string address, out string name, out int port)
 
void CreateNewCharacter ()
 
void LoadCharacterData (vector char_pos, vector char_rot, bool default_char=false)
 Generates random equip for the new IntroSceneCharacter, whatever is defined in 'cfgCharacterCreation'.
 
void CharacterUnload ()
 
void CharacterLoad (int character_id, vector char_pos, vector char_rot)
 
void SetupPlayerName (bool new_name)
 
void SetAttachment (string type, int slot)
 
string GetCharacterNameById (int char_id)
 
string GetCharacterName ()
 
void SaveCharName (string name)
 
void SaveDefaultCharacter ()
 
void TransferValues (PlayerBase player)
 
void Init ()
 
void OnScheduledTick (float deltatime)
 
void CheckValues ()
 
float GetBlood ()
 
float GetHealth ()
 
void CheckHealth ()
 
void CheckBlood ()
 
void SendInitValues ()
 Sends values on object creation.
 
void SendValue (int value_type, float value)
 
void ReceiveValue (int value_type, float value)
 
void OnRPC (ParamsReadContext ctx)
 
void ShowDebugValues (bool show)
 
void BleedingIndicator (int source_ID, int severity, GameplayEffectsDataBleeding parent)
 
void InitIndicator (vector position)
 
void StopIndicator (bool instant=false)
 
void StartRunningDrops ()
 
bool IsRunningDrops ()
 Are any drops currently being animated?
 
void TrySpawnNextDrop ()
 
void ResetSequence ()
 
void ResetIndicator ()
 
void Update (float timeSlice)
 
bool GetEndNow ()
 
int GetSeverity ()
 
void GameplayEffectsData (array< ref Widget > input, int type, int user_override=-1)
 
void Init (array< ref Widget > input, int type, Widget layout_root, int user_override=-1)
 
array< ref WidgetGetWidgetSet ()
 
int GetWidgetSetType ()
 
int GetWidgetSetID ()
 
bool HasDefinedHandle ()
 Returns 'true' if this class contains update info.
 
bool DataInitialized ()
 
void UpdateVisibility (bool state)
 
void RegisterData (Param p)
 
void Update (float timeSlice=0, Param p=null, int handle=-1)
 
void ForceStop ()
 

Static Private Member Functions

static void DisplayContextMenu (int x, int y, notnull EntityAI entity, notnull Widget rootWidget, Class target)
 

Private Attributes

reference string m_ChildName
 
reference float m_HorizontalOffset
 
reference float m_VerticalOffset
 
reference bool m_ResizeHorizontal
 
reference bool m_ResizeVertical
 
reference bool m_IsDebugOutput
 
Widget m_on_drag_item
 
int m_col
 
Widget m_context_menu_panel_widget
 
ref array< ref CallQueueContextm_commands
 
int m_max_item_width
 
int m_count
 
bool m_builtIn = false
 
const int ITEMS_COUNT = 27
 
PluginDayZInfectedDebug m_pPluginInfectedDebug
 
PluginItemDiagnostic m_Owner
 
reference string RadialBarWidgetName
 
HudDebug m_HudDebug
 
ref FullTimeData m_TimeSurvivedFull
 
const float HUD_BRIGHTNESS_MIN = -1.0
 
const float HUD_BRIGHTNESS_MAX = 0.0
 
bool m_WasMicCapturing
 
ref map< string, stringm_Options = new map<string, string>
 
reference int m_PivotYOffset
 
int m_profileOption
 
Widget m_widget
 
ref array< Widgetm_widget_array
 
- Private Attributes inherited from Managed
int m_CharacterId
 
string m_CharacterType
 
MenuData m_CharacterDta
 
PlayerBase m_CharacterObj
 
vector m_CharacterPos
 
vector m_CharacterRot
 
ref TStringArray m_CharGenderList = new TStringArray
 
ref TStringArray m_CharShirtList = new TStringArray
 
ref TStringArray m_CharPantsList = new TStringArray
 
ref TStringArray m_CharShoesList = new TStringArray
 
ref map< ECharGender, ref array< string > > m_Characters = new map<ECharGender, ref array<string>>
 
ECharGender m_CharGender
 
bool m_InitialSyncSent
 
bool m_Initialized
 
bool m_Terminating = false
 
bool m_EndNow = false
 
bool m_IsRunning = false
 
int m_DropSpawnsQueued
 
int m_ActiveDropsCount
 
int m_Severity
 
int m_SourceID
 
GameplayEffectsDataBleeding m_ParentMetaData
 
array< floatm_DropProbabilityArray
 
float m_AverageFrequency
 
float m_SequenceTick
 
float m_SequenceDuration
 
float m_TimeElapsedTotal
 
float m_TimeElapsedSequence
 
float m_LastDropSpawnTime
 
float m_DropSpawnMinDelay
 
float m_DropSpawnMaxDelay
 
int m_CurrentDropProbabilityStep
 
int m_DropProbabilityRollsCount
 
vector m_BasePosition
 
ref set< ref BleedingIndicatorDropDatam_ActiveDrops
 
ref set< intm_CleanupQueue
 
ref array< ref Widgetm_WidgetArray
 
int m_Type
 
int m_WidgetSetIdentifier
 
Widget m_LayoutRoot
 

Static Private Attributes

static int ITEM_COLOR_QUICKBAR_NORMAL = 0x0AFFFFFF
 
static int ITEM_COLOR_QUICKBAR_H_GOOD = 0x2A6e980d
 
static int ITEM_COLOR_QUICKBAR_H_BAD = 0x2A980d0d
 
static int ITEM_COLOR_QUICKBAR_I_BAD = 0x2A986e0d
 
static int ITEM_COLOR_NORMAL = 0x0AFFFFFF
 
static int ITEM_COLOR_DRAG = 0x0AFFFFFF
 

Detailed Description

map: item x vector(index, width, height)

base class for promo implementation

Deprecated.

Definition at line 650 of file EnWidgets.c.

Constructor & Destructor Documentation

◆ ~UiHintPanel()

void ScriptedWidgetEventHandler::~UiHintPanel ( )
inlineprotected

Definition at line 42 of file UiHintPanel.c.

43 {
45
46 if (m_RootFrame)
47 m_RootFrame.Unlink();
48 }

References m_RootFrame, and StopSlideShow().

◆ ~ContextMenu()

void ScriptedWidgetEventHandler::~ContextMenu ( )
inlineprivate

Definition at line 21 of file ContextMenu.c.

22 {
23 Clear();
24
26 }

References Clear(), and m_context_menu_root_widget.

◆ ~CTEvent()

void ScriptedWidgetEventHandler::~CTEvent ( )
inlineprotected

Definition at line 38 of file CTEvent.c.

39 {
40 delete m_Root;
41 }

References m_Root.

◆ ~CTKeyframe()

void ScriptedWidgetEventHandler::~CTKeyframe ( )
inlineprotected

Definition at line 45 of file CTKeyframe.c.

46 {
47 delete m_Root;
48 }

References m_Root.

◆ ~CTObjectFollower()

void ScriptedWidgetEventHandler::~CTObjectFollower ( )
inlineprotected

Definition at line 15 of file CTObjectFollower.c.

◆ ~ContinuousActionProgress()

void ScriptedWidgetEventHandler::~ContinuousActionProgress ( )
inlineprotected

Definition at line 38 of file ContinuousActionProgress.c.

39 {
40 GetGame().GetUpdateQueue(CALL_CATEGORY_GUI).Remove(Update);
41 }
proto native CGame GetGame()
const int CALL_CATEGORY_GUI
Definition tools.c:9

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

◆ ~PlayerListEntryScriptedWidget()

void ScriptedWidgetEventHandler::~PlayerListEntryScriptedWidget ( )
inlineprotected

Definition at line 37 of file PlayerListEntryScriptedWidget.c.

38 {
39 delete m_Root;
40 }

References m_Root.

◆ ~PlayerListScriptedWidget()

void ScriptedWidgetEventHandler::~PlayerListScriptedWidget ( )
inlineprotected

Definition at line 22 of file PlayerListScriptedWidget.c.

23 {
24 delete m_Root;
25 }

References m_Root.

◆ ~LayoutHolder()

void ScriptedWidgetEventHandler::~LayoutHolder ( )
inlineprotected

Definition at line 119 of file LayoutHolder.c.

120 {
122 delete m_RootWidget;
123 }

References m_RootWidget.

◆ ~ItemActionsWidget()

void ScriptedWidgetEventHandler::~ItemActionsWidget ( )
inlineprotected

Definition at line 57 of file ItemActionsWidget.c.

58 {
59 GetGame().GetUpdateQueue(CALL_CATEGORY_GUI).Remove(Update);
60 }

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

◆ ~TutorialKeybinds()

void ScriptedWidgetEventHandler::~TutorialKeybinds ( )
inlineprotected

Definition at line 147 of file ControlMappingKeybinds.c.

148 {
149
150 }

◆ ~MainMenuDlcHandlerBase()

void ScriptedWidgetEventHandler::~MainMenuDlcHandlerBase ( )
inlineprotected

Definition at line 38 of file MainMenuPromo.c.

39 {
40#ifdef PLATFORM_CONSOLE
41 if (GetGame().GetContentDLCService())
42 GetGame().GetContentDLCService().m_OnChange.Remove(OnDLCChange);
43#endif
44 }

References GetGame(), and OnDLCChange().

◆ ~ModsMenuDetailed()

void ScriptedWidgetEventHandler::~ModsMenuDetailed ( )
inlineprotected

Definition at line 33 of file ModsMenuDetailed.c.

34 {
35 delete m_Root;
36 }

References m_Root.

◆ ~ModsMenuDetailedEntry()

void ScriptedWidgetEventHandler::~ModsMenuDetailedEntry ( )
inlineprotected

Definition at line 53 of file ModsMenuDetailedEntry.c.

54 {
55 delete m_Root;
56 }

References m_Root.

◆ ~ModsMenuSimple()

void ScriptedWidgetEventHandler::~ModsMenuSimple ( )
inlineprotected

Definition at line 23 of file ModsMenuSimple.c.

24 {
25 delete m_Root;
26 }

References m_Root.

◆ ~ModsMenuSimpleEntry()

void ScriptedWidgetEventHandler::~ModsMenuSimpleEntry ( )
inlineprotected

Definition at line 25 of file ModsMenuSimpleEntry.c.

26 {
27 delete m_ModButton;
28 }

References m_ModButton.

◆ ~ModsMenuTooltip()

void ScriptedWidgetEventHandler::~ModsMenuTooltip ( )
inlineprotected

Definition at line 12 of file ModsMenuTooltip.c.

13 {
14 delete m_Root;
15 }

References m_Root.

◆ ~OptionsMenuGame()

void ScriptedWidgetEventHandler::~OptionsMenuGame ( )
inlineprotected

Definition at line 142 of file OptionsMenuGame.c.

143 {
144 if (m_FOVOption)
145 {
146 m_FOVOption.Revert();
147 g_Game.SetUserFOV(m_FOVOption.ReadValue());
148 }
149
151 }
DayZGame g_Game
Definition DayZGame.c:3528
ref NumericOptionsAccess m_FOVOption

References g_Game, and RevertHUDBrightness().

◆ ~OptionsMenuSounds()

void ScriptedWidgetEventHandler::~OptionsMenuSounds ( )
inlineprivate

Definition at line 109 of file OptionsMenuSounds.c.

110 {
113
115 {
116 // reset mic to previous capturing state
117 GetGame().EnableMicCapture(m_WasMicCapturing);
118 }
119
120 m_AudioLevelTimer.Stop();
121 }
ref ScriptInvoker m_OnVonStateEvent
Definition VONManager.c:4
ref ScriptInvoker m_OnPartyChatChangedEvent
Definition VONManager.c:5

References GetGame(), VONManagerBase::m_OnPartyChatChangedEvent, and VONManagerBase::m_OnVonStateEvent.

◆ ~OptionsMenuVideo()

void ScriptedWidgetEventHandler::~OptionsMenuVideo ( )
inlineprotected

Definition at line 137 of file OptionsMenuVideo.c.

138 {
139 GetGame().EndOptionsVideo();
140 }

References GetGame().

◆ ~OptionSelectorBase()

void ScriptedWidgetEventHandler::~OptionSelectorBase ( )
inlineprotected

Definition at line 16 of file OptionSelectorBase.c.

17 {
18 delete m_Root;
19 }

References m_Root.

◆ ~ServerBrowserEntry()

void ScriptedWidgetEventHandler::~ServerBrowserEntry ( )
inlineprotected

Definition at line 87 of file ServerBrowserEntry.c.

88 {
89 delete m_Root;
90 }

References m_Root.

◆ ~VideoPlayer()

void ScriptedWidgetEventHandler::~VideoPlayer ( )
inlineprotected

Definition at line 32 of file VideoPlayer.c.

33 {
34 }

◆ ~ObjectFollower()

void ScriptedWidgetEventHandler::~ObjectFollower ( )
inlineprotected

Definition at line 15 of file ObjectFollower.c.

16 {
17 //GetGame().GetUpdateQueue(CALL_CATEGORY_GUI).Remove(Update);
18 }

◆ ~ProfileOptionsUI()

void ScriptedWidgetEventHandler::~ProfileOptionsUI ( )
inlineprivate

Definition at line 3 of file ProfileOptionsUI.c.

◆ ~ProjectedCrosshair()

void ScriptedWidgetEventHandler::~ProjectedCrosshair ( )
inlineprotected

Definition at line 21 of file ProjectedCrosshair.c.

22 {
23 GetGame().GetUpdateQueue(CALL_CATEGORY_GUI).Remove(this.Update);
24 }

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

Member Function Documentation

◆ Add()

void ScriptedWidgetEventHandler::Add ( string label,
Class obj,
string fn_name,
Param params )
inlineprivate

Definition at line 164 of file ContextMenu.c.

165 {
166 AddEx(label, FadeColors.LIGHT_GREY, obj, fn_name, params);
167 }
void AddEx(string label, int labelColor, Class obj, string funcName, Param params)

References AddEx().

◆ AddAction()

void ScriptedWidgetEventHandler::AddAction ( int index,
Widget parent,
Input input )
inlineprotected

Definition at line 101 of file KeybindingsGroup.c.

102 {
103 m_KeyWidgets.Insert(index, new KeybindingElement(index, parent, this));
104 }
ref map< int, ref KeybindingElement > m_KeyWidgets
void KeybindingElement(int key_index, Widget parent, KeybindingsGroup group)

References KeybindingElement().

Referenced by AddSubgroup().

◆ AddElement()

int ScriptedWidgetEventHandler::AddElement ( string text,
Widget content = null )
inlineprotected

Definition at line 58 of file DropdownPrefab.c.

59 {
60 ButtonWidget element = ButtonWidget.Cast(GetGame().GetWorkspace().CreateWidgets("gui/layouts/new_ui/dropdown_prefab/dropdown_element.layout", m_ContentContainer));
61 RichTextWidget textWidget = RichTextWidget.Cast(element.FindAnyWidget("dropdown_element_text"));
62 textWidget.SetText(text);
63
64 if (content)
65 element.AddChild(content, false);
66 m_ContentContainer.Update();
67 textWidget.Update();
68 m_Root.Update();
69 element.Update();
70
71 m_Content.Insert(element);
72 return m_Content.Count() - 1;
73 }

References GetGame(), and m_Root.

Referenced by array::AddSubgroup().

◆ AddEx()

void ScriptedWidgetEventHandler::AddEx ( string label,
int labelColor,
Class obj,
string funcName,
Param params )
inlineprivate

Definition at line 169 of file ContextMenu.c.

170 {
171 int count = Count();
172 ButtonWidget menuButton = ButtonWidget.Cast(m_context_menu_root_widget.FindAnyWidget(string.Format("Button%1", count + 1)));
173 if (menuButton)
174 {
175 label.ToUpper();
176 menuButton.SetText(label);
177 menuButton.SetTextColor(labelColor);
178 menuButton.Show(true);
179 if (!funcName)
180 menuButton.SetFlags(menuButton.GetFlags() | WidgetFlags.IGNOREPOINTER);
181
182 int itemWidth = label.Length();
183 if (m_max_item_width < itemWidth)
184 m_max_item_width = itemWidth;
185 }
186
187 m_count++;
188 m_commands.Insert(new CallQueueContext(obj, funcName, params));
189 }
ref array< ref CallQueueContext > m_commands
Definition ContextMenu.c:8
WidgetFlags
Definition EnWidgets.c:58

References Count().

Referenced by Add(), and BuildContextMenu().

◆ AddItem()

void ScriptedWidgetEventHandler::AddItem ( InventoryItem item,
vector data,
vector rotation )
inlineprivate

Definition at line 603 of file InventoryGrid.c.

604 {
605 m_Items.Set(item, data);
606
607 int index = Math.Round(data[0]);
608 int width = Math.Round(data[1]);
609 int height = Math.Round(data[2]);
610
612 Widget item_w_bck = GetGame().GetWorkspace().CreateWidgets("gui/layouts/inventory/inventoryGridItem.layout", bck);
613 Widget item_w = item_w_bck.FindAnyWidget("GridItem");
614
615 bck.FindAnyWidget("LabelTR").Show(true);
616 bck.FindAnyWidget("LabelCC").Show(false);
617
618 m_ItemWidgets.Insert(index, item_w);
619
621
622 if (item)
623 {
624 ItemPreviewWidget item_preview = ItemPreviewWidget.Cast(item_w.FindAnyWidget("Preview"));
625 item_preview.SetItem(item);
626 item_preview.SetModelOrientation(rotation);
627 item_preview.SetView(item_preview.GetItem().GetViewIndex());
628
629 RefreshItemVariables(item, data, true, true);
630 }
631 }
Definition EnMath.c:7
ref map< int, Widget > m_ItemWidgets
void RefreshItemVariables(InventoryItem item, vector data, bool show_quantity, bool show_temperature)
void ResetItemWidget(Widget item_w, int width, int height)
Widget GetItemBackground(int index)
static proto float Round(float f)
Returns mathematical round of value.

References GetGame(), GetItemBackground(), RefreshItemVariables(), ResetItemWidget(), and Math::Round().

Referenced by UpdateItems(), and UpdateQuickbarItems().

◆ AddPlayer()

void ScriptedWidgetEventHandler::AddPlayer ( string name,
string UID,
bool show_permissions )
inlineprotected

Definition at line 159 of file PlayerListScriptedWidget.c.

160 {
161 if (m_Entries)
162 {
165 }
166 }
PlayerSpawnPresetDiscreteItemSetSlotData name
one set for cargo
void PlayerListEntryScriptedWidget(Widget parent, string name, string uid, bool show_permissions, PlayerListScriptedWidget tab)
ref map< string, ref PlayerListEntryScriptedWidget > m_Entries

References name, PlayerListEntryScriptedWidget(), and UID.

Referenced by Reload(), and Reload().

◆ AddSubgroup()

void ScriptedWidgetEventHandler::AddSubgroup ( Widget parent,
Input input )
inlineprotected

Definition at line 85 of file KeybindingsGroup.c.

86 {
87 Widget subgroup = GetGame().GetWorkspace().CreateWidgets("gui/layouts/new_ui/options/keybindings_selectors/keybinding_subgroup.layout", parent);
88 TextWidget subgroup_name = TextWidget.Cast(subgroup.FindAnyWidget("subgroup_text"));
89
90 subgroup_name.SetText("TestSubgroup");
91 Widget subgroup_content = subgroup.FindAnyWidget("subgroup_content");
92
94 GetUApi().GetActiveInputs(actions);
95 for (int i = 0; i < actions.Count(); i++)
97
98 subgroup_content.Update();
99 }
proto native UAInputAPI GetUApi()
void AddAction(int index, Widget parent, Input input)
Result for an object found in CGame.IsBoxCollidingGeometryProxy.
array< int > TIntArray
Definition EnScript.c:668

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

Referenced by array::CreateSubgroups(), and KeybindingsGroup().

◆ AddTab()

int ScriptedWidgetEventHandler::AddTab ( string name)
inlineprotected

Definition at line 157 of file TabberUI.c.

158 {
159 int new_index = m_Tabs.Count();
160 Widget tab = GetGame().GetWorkspace().CreateWidgets("gui/layouts/new_ui/tabber_prefab/tab.layout", m_Root);
161 Widget control = GetGame().GetWorkspace().CreateWidgets("gui/layouts/new_ui/tabber_prefab/tab_control.layout", m_Root.FindAnyWidget("Tab_Control_Container"));
162 TextWidget control_text = TextWidget.Cast(control.FindAnyWidget("Tab_Control_x_Title"));
163
164 tab.SetName("Tab_" + new_index);
165 control.SetName("Tab_Control_" + new_index);
166 control_text.SetName("Tab_Control_" + new_index + "_Title");
167 control.FindAnyWidget("Tab_Control_x_Background").SetName("Tab_Control_" + new_index + "_Background");
168
169 control_text.SetText(name);
170
171 control.SetHandler(this);
173 m_Tabs.Insert(new_index, tab);
174
175 AlignTabbers();
176
177 return new_index;
178 }
ref map< int, Widget > m_Tabs
Definition TabberUI.c:9
ref map< int, Widget > m_TabControls
Definition TabberUI.c:8

References GetGame(), m_Root, and name.

◆ AlignTabbers()

void ScriptedWidgetEventHandler::AlignTabbers ( )
inlineprotected

Definition at line 104 of file TabberUI.c.

105 {
106 float total_size;
107 float x, y;
108
109 Widget tab_controls_container = m_TabControlsRoot.FindAnyWidget("Tab_Control_Container");
110 Widget tab_controls_scroller = m_TabControlsRoot.FindAnyWidget("Tab_Control_Scroller");
111
112 m_TabControlsRoot.Update();
113 tab_controls_container.Update();
114
116 while (tab_child)
117 {
118 if (tab_child.IsVisible())
119 {
120 TextWidget tab_text = TextWidget.Cast(tab_child.FindAnyWidget(tab_child.GetName() + "_Title"));
121 int t_x, t_y;
122 tab_text.Update();
123 tab_text.GetTextSize(t_x, t_y);
124 tab_child.SetSize(t_x + 10 * m_ResolutionMultiplier, 1);
125 tab_controls_container.Update();
126
128 }
129
130 tab_child = tab_child.GetSibling();
131 }
132
133 tab_child = tab_controls_container.GetChildren();
134
135 float x_f_c, y_f_c;
136 tab_controls_container.GetScreenPos(x_f_c, y_f_c);
137
138 while (tab_child)
139 {
140 Widget tab_bg = tab_child.FindAnyWidget(tab_child.GetName() + "_Background");
141 tab_child.GetScreenPos(x, y);
142 tab_bg.SetPos((x_f_c - x), 0);
143 tab_bg.SetSize(total_size, 1);
144
145 tab_child = tab_child.GetSibling();
146 }
147
148 m_TabControlsRoot.GetSize(x, y);
149
151 tab_controls_container.Update();
153 tab_controls_scroller.Update();
154 m_TabControlsRoot.Update();
155 }
Icon x
Icon y

References x, and y.

◆ Apply() [1/5]

void ScriptedWidgetEventHandler::Apply ( )
inlineprotected

Definition at line 169 of file KeybindingsGroup.c.

170 {
173 {
174 UAInput input = ua_api.GetInputByID(index);
175 int i;
176 if (element.IsChanged())
177 {
178 array<int> new_keys = element.GetChangedBinds();
179
180 /* if( input.AlternativeCount() == 0 )
181 {
182 input.AddAlternative();
183 }
184 else*/
185 {
186 input.ClearDeviceBind(EUAINPUT_DEVICE_KEYBOARDMOUSE);
187 // input.SelectAlternative( 0 );
188 // input.ClearAlternative( 0 );
189 }
190
191 if (new_keys.Count() > 0)
192 {
193 input.BindComboByHash(new_keys.Get(0));
194 for (i = 1; i < new_keys.Count(); i++)
195 input.BindComboByHash(new_keys.Get(i));
196 }
197 }
198
199 if (element.IsAlternateChanged())
200 {
201 array<int> new_alt_keys = element.GetChangedAlternateBinds();
202
203 if (input.AlternativeCount() == 0)
204 input.AddAlternative();
205
206 /* if( input.AlternativeCount() < 2 )
207 {
208 input.AddAlternative();
209 }
210 else*/
211 {
212 input.ClearDeviceBind(EUAINPUT_DEVICE_CONTROLLER);
213 // input.SelectAlternative( 1 );
214 // input.ClearAlternative( 1 );
215 }
216
217 if (new_alt_keys.Count() > 0)
218 {
219 input.BindComboByHash(new_alt_keys.Get(0));
220 for (i = 1; i < new_alt_keys.Count(); i++)
221 input.BindComboByHash(new_alt_keys.Get(i));
222 }
223 }
224 element.Reload();
225 }
226 }

References GetUApi(), and m_KeyWidgets.

◆ Apply() [2/5]

void ScriptedWidgetEventHandler::Apply ( )
inlineprotected

Definition at line 343 of file OptionsMenuControls.c.

344 {
345#ifdef PLATFORM_CONSOLE
346 bool changed = false;
348 {
349 //on change
350 if ((m_KeyboardSelector.IsEnabled() && m_KeyboardOption.GetIndex() == 0) || (!m_KeyboardSelector.IsEnabled() && m_KeyboardOption.GetIndex() == 1))
351 {
352 m_KeyboardOption.Switch();
353 changed = true;
354 }
355 }
356
357 Focus();
358 GetGame().GetUIManager().ShowUICursor(m_MaKOptionAvailable && m_KeyboardOption.GetIndex());
359 if (changed)
360 g_Game.UpdateInputDeviceDisconnectWarning();
361
362 m_Menu.Refresh();
363#endif
364 }
ref OptionSelectorMultistate m_KeyboardSelector
CameraToolsMenu m_Menu
Definition CTEvent.c:8
ref SwitchOptionsAccess m_KeyboardOption

References Focus(), g_Game, GetGame(), and m_Menu.

◆ Apply() [3/5]

void ScriptedWidgetEventHandler::Apply ( )
inlineprotected

Definition at line 186 of file OptionsMenuGame.c.

187 {
188 IngameHud hud = GetHud();
189 InGameMenu menu = InGameMenu.Cast(GetGame().GetUIManager().FindMenu(MENU_INGAME));
190 MissionGameplay mission = MissionGameplay.Cast(GetGame().GetMission());
191
192 g_Game.SetProfileOptionBool(EDayZProfilesOptions.HUD, m_ShowHUDSelector.GetValue());
193 g_Game.SetProfileOptionBool(EDayZProfilesOptions.CROSSHAIR, m_ShowCrosshairSelector.GetValue());
194 g_Game.SetProfileOptionBool(EDayZProfilesOptions.GAME_MESSAGES, m_ShowGameSelector.GetValue());
195 g_Game.SetProfileOptionBool(EDayZProfilesOptions.ADMIN_MESSAGES, m_ShowAdminSelector.GetValue());
196 g_Game.SetProfileOptionBool(EDayZProfilesOptions.PLAYER_MESSAGES, m_ShowPlayerSelector.GetValue());
197 g_Game.SetProfileOptionFloat(EDayZProfilesOptions.HUD_BRIGHTNESS, m_HUDBrightnessSelector.GetValue());
198
199#ifndef PLATFORM_CONSOLE
200 g_Game.SetProfileOptionBool(EDayZProfilesOptions.QUICKBAR, m_ShowQuickbarSelector.GetValue());
201 g_Game.SetProfileOptionBool(EDayZProfilesOptions.SERVERINFO_DISPLAY, m_ShowServerInfoSelector.GetValue());
202#endif
203
204 if (hud)
205 {
206#ifndef PLATFORM_CONSOLE
207 hud.ShowQuickBar(m_ShowQuickbarSelector.GetValue());
208#else
209 hud.ShowQuickBar(GetGame().GetInput().IsEnabledMouseAndKeyboardEvenOnServer());
210#endif
211 hud.ShowHud(m_ShowHUDSelector.GetValue());
212 }
213
214 bool bleedingIndicationOld = g_Game.GetProfileOptionBool(EDayZProfilesOptions.BLEEDINGINDICATION);
216 bool connectivityOld = g_Game.GetProfileOptionBool(EDayZProfilesOptions.CONNECTIVITY_INFO);
217 bool connectivityNew = m_ConnectivityInfo.GetValue();
218
219 g_Game.SetProfileOptionBool(EDayZProfilesOptions.BLEEDINGINDICATION, bleedingIndicationNew);
220 g_Game.SetProfileOptionBool(EDayZProfilesOptions.CONNECTIVITY_INFO, connectivityNew);
221
222 if (mission)
223 {
224 //BLEEDINGINDICATION changed
227
228 //CONNECTIVITY_INFO changed
230 mission.GetConnectivityInvoker().Invoke(connectivityNew);
231 }
232
233#ifndef PLATFORM_CONSOLE
234 if (menu)
235 menu.SetServerInfoVisibility(m_ShowServerInfoSelector.GetValue());
236#endif
237
238 if (m_LanguageOption.IsChanged()) //language changed
239 {
240 if (mission)
242 else
243 ErrorEx("mission not found!", ErrorExSeverity.INFO);
244 }
245 }
ActionInput GetInput()
Definition ActionBase.c:989
Mission mission
EDayZProfilesOptions
void ResetGUI()
Definition gameplay.c:698
ref OptionSelectorMultistate m_ShowCrosshairSelector
ref OptionSelectorSlider m_HUDBrightnessSelector
ref OptionSelectorMultistate m_ShowGameSelector
ref OptionSelectorMultistate m_BleedingIndication
ref OptionSelectorMultistate m_ShowQuickbarSelector
void OnBleedingIndicationChanged(bool state)
ref OptionSelectorMultistate m_ShowServerInfoSelector
ref OptionSelectorMultistate m_ShowAdminSelector
ref ListOptionsAccess m_LanguageOption
ref OptionSelectorMultistate m_ShowPlayerSelector
ref OptionSelectorMultistate m_ConnectivityInfo
ref OptionSelectorMultistate m_ShowHUDSelector
ErrorExSeverity
Definition EnDebug.c:62
enum ShapeType ErrorEx
const int MENU_INGAME
Definition constants.c:168

References ErrorEx, g_Game, GetGame(), GetHud(), GetInput(), MENU_INGAME, mission, OnBleedingIndicationChanged(), and Mission::ResetGUI().

◆ Apply() [4/5]

void ScriptedWidgetEventHandler::Apply ( )
inlineprivate

Definition at line 241 of file OptionsMenuSounds.c.

242 {
243
244 }

◆ Apply() [5/5]

void ScriptedWidgetEventHandler::Apply ( )
inlineprotected

Definition at line 258 of file OptionsMenuVideo.c.

259 {
260
261 }

◆ Attach()

void ScriptedWidgetEventHandler::Attach ( int profileOption,
array< Widget > widget_array )
inlineprivate

Definition at line 8 of file ProfileOptionsUI.c.

9 {
13
14 for (int i = 0; i < m_widget_array.Count(); i++)
15 {
17 if (m_widget)
18 {
19 m_widget.SetHandler(this);
20
21 Init();
22 }
23 }
24 }
ref array< Widget > m_widget_array

References Init().

◆ BannerHandlerBase()

void ScriptedWidgetEventHandler::BannerHandlerBase ( Widget parent)
inlineprotected

Definition at line 9 of file BannerHandlerBase.c.

10 {
11 m_Parent = parent;
12 m_Root = GetGame().GetWorkspace().CreateWidgets("gui/layouts/new_ui/dlc_panels/BannerTemplate.layout", m_Parent);
13 m_Root.SetHandler(this);
14
15 m_BannerBody = m_Root.FindAnyWidget("BadgeBody");
16 m_BannerWedge = m_Root.FindAnyWidget("BadgeWedge");
17 m_BannerText = TextWidget.Cast(m_Root.FindAnyWidget("BadgeText"));
18
19 m_BannerBody.SetAlpha(1.0);
20 m_BannerWedge.SetAlpha(1.0);
21 }

References GetGame(), m_Parent, and m_Root.

Referenced by Init().

◆ BuildContextMenu()

void ScriptedWidgetEventHandler::BuildContextMenu ( notnull EntityAI entity,
notnull Widget rootWidget,
Class target )
inlineprivate

Definition at line 233 of file ContextMenu.c.

234 {
235 Clear();
236
238 entity.GetDebugActions(customActions);
239
240 int actionsCount = customActions.Count();
241 for (int i = 0; i < customActions.Count(); i++)
242 {
244 if (actionInfo)
245 {
246 int actionId = actionInfo.param2;
247 int textColor = actionInfo.param4;
248 string actionText = actionInfo.param3;
249
250 if (actionId == EActions.SEPARATOR)
252 else
254 }
255 }
256 }
EActions
Definition EActions.c:2

References AddEx(), and Clear().

◆ BuildCursor()

void ScriptedWidgetEventHandler::BuildCursor ( )
inlineprotected

weapon specific

transmitter/PAS specific

Definition at line 130 of file ItemActionsWidget.c.

131 {
132 int health = -1;
133 int quantityType = 0;
134 int quantityMin = -1;
135 int quantityMax = -1;
136 float quantityCurrent = -1.0;
137
138 // item health
140 SetItemHealth(health, "ia_item", "ia_item_health_mark", m_HealthEnabled);
141
142 // quantity
144 if (m_EntityInHands && m_EntityInHands.IsWeapon())
145 {
146 SetWeaponQuantity(0, 0, "ia_item", "ia_item_quantity_pb", "ia_item_quantity_text", m_QuantityEnabled);
147 SetWeaponModeAndZeroing("ia_item_subdesc", "ia_item_subdesc_up", "ia_item_subdesc_down", true);
148 }
150 else if (m_EntityInHands && m_EntityInHands.IsTransmitter())
151 {
152 SetRadioFrequency(GetRadioFrequency(), "ia_item_subdesc", "ia_item_subdesc_up", "ia_item_subdesc_down", m_QuantityEnabled);
154 SetItemQuantity(quantityType, quantityCurrent, quantityMin, quantityMax, "ia_item", "ia_item_quantity_pb", "ia_item_quantity_text", true);
155 }
156 else
157 {
159 SetItemQuantity(quantityType, quantityCurrent, quantityMin, quantityMax, "ia_item", "ia_item_quantity_pb", "ia_item_quantity_text", m_QuantityEnabled);
160 SetWeaponModeAndZeroing("ia_item_subdesc", "", "", false);
161 }
162
163 SetItemDesc(m_EntityInHands, GetItemDesc(m_EntityInHands), "ia_item", "ia_item_desc");
164 SetInteractActionIcon("ia_interact", "ia_interact_icon_frame", "ia_interact_btn_inner_icon", "ia_interact_btn_text");
165 SetActionWidget(m_Interact, GetActionDesc(m_Interact), "ia_interact", "ia_interact_action_name");
166
167 SetInteractActionIcon("ia_continuous_interact", "ia_continuous_interact_icon_frame", "ia_continuous_interact_btn_inner_icon", "ia_continuous_interact_btn_text");
168 SetActionWidget(m_ContinuousInteract, GetActionDesc(m_ContinuousInteract), "ia_continuous_interact", "ia_continuous_interact_action_name");
169
170 SetActionWidget(m_Single, GetActionDesc(m_Single), "ia_single", "ia_single_action_name");
171 SetActionWidget(m_Continuous, GetActionDesc(m_Continuous), "ia_continuous", "ia_continuous_action_name");
172 SetMultipleInteractAction("ia_interact_mlt_wrapper");
173 SetMultipleContinuousInteractAction("ia_continuous_interact_mlt_wrapper");
174 SetMultipleItemAction("ia_single_mlt_wrapper");
175 SetMultipleContinuousItemAction("ia_continuous_mlt_wrapper");
176 }
float quantityMax
float quantityMin
void SetActionWidget(ActionBase action, string descText, string actionWidget, string descWidget)
void SetMultipleContinuousItemAction(string multiActionsWidget)
shows arrows near the interact action if there are more than one available
void SetWeaponQuantity(int chamber, int mag, string itemWidget, string quantityPBWidget, string quantityTextWidget, bool enabled)
void SetRadioFrequency(string freq, string itemWidget, string upWidget, string downWidget, bool enabled)
void SetMultipleContinuousInteractAction(string multiActionsWidget)
shows arrows near the interact action if there are more than one available
float GetItemQuantity(InventoryItem item)
void SetInteractActionIcon(string actionWidget, string actionIconFrameWidget, string actionIconWidget, string actionIconTextWidget)
void SetItemDesc(EntityAI entity, string descText, string itemWidget, string descWidget)
void SetItemHealth(int health, string itemWidget, string healthWidget, bool enabled)
void SetWeaponModeAndZeroing(string itemWidget, string upWidget, string downWidget, bool enabled)
void SetItemQuantity(int type, float current, int min, int max, string itemWidget, string quantityPBWidget, string quantityTextWidget, bool enabled)
string GetActionDesc(ActionBase action)
void SetMultipleItemAction(string multiActionsWidget)
void SetMultipleInteractAction(string multiActionsWidget)
shows arrows near the interact action if there are more than one available
string GetItemDesc(EntityAI entity)

References GetActionDesc(), GetItemDesc(), GetItemHealth(), GetItemQuantity(), GetRadioFrequency(), quantityMax, quantityMin, SetActionWidget(), SetInteractActionIcon(), SetItemDesc(), SetItemHealth(), SetItemQuantity(), SetMultipleContinuousInteractAction(), SetMultipleContinuousItemAction(), SetMultipleInteractAction(), SetMultipleItemAction(), SetRadioFrequency(), SetWeaponModeAndZeroing(), and SetWeaponQuantity().

Referenced by Update().

◆ BuildLayout()

void ScriptedWidgetEventHandler::BuildLayout ( Widget parent_widget)
inlineprotected

Definition at line 93 of file UiHintPanel.c.

94 {
95 // Create the layout
96 m_RootFrame = m_Game.GetWorkspace().CreateWidgets(m_RootPath, parent_widget);
97
98 if (m_RootFrame)
99 {
100 // Find Widgets
101 m_SpacerFrame = m_RootFrame.FindAnyWidget("GridSpacerWidget1");
102 m_UiLeftButton = ButtonWidget.Cast(m_RootFrame.FindAnyWidget("LeftButton"));
103 m_UiRightButton = ButtonWidget.Cast(m_RootFrame.FindAnyWidget("RightButton"));
104 m_UiHeadlineLabel = TextWidget.Cast(m_RootFrame.FindAnyWidget("HeadlineLabel"));
105 m_UiDescLabel = RichTextWidget.Cast(m_RootFrame.FindAnyWidget("HintDescLabel"));
106 m_UiHintImage = ImageWidget.Cast(m_RootFrame.FindAnyWidget("HintImage"));
107 m_UiPageingLabel = TextWidget.Cast(m_RootFrame.FindAnyWidget("PageInfoLabel"));
108 // Set handler
109 m_RootFrame.SetHandler(this);
110 }
111 }
RichTextWidget m_UiDescLabel
Definition UiHintPanel.c:20

References m_Game, m_RootFrame, m_RootPath, m_SpacerFrame, m_UiDescLabel, m_UiHeadlineLabel, m_UiHintImage, m_UiLeftButton, m_UiPageingLabel, and m_UiRightButton.

Referenced by Init().

◆ ButtonSetAlphaAnimConsole()

void ScriptedWidgetEventHandler::ButtonSetAlphaAnimConsole ( Widget w)
inlineprotected

Definition at line 254 of file OptionSelectorBase.c.

255 {
256 if (!w)
257 return;
258
259 Widget panel = w.FindAnyWidget(w.GetName() + "_panel");
260
261 if (panel)
262 {
263 //m_Root.SetWidgetAnimAlpha(panel);
264 }
265 }

◆ ButtonSetColor()

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

Definition at line 202 of file OptionSelectorBase.c.

203 {
204 Widget option = w.FindAnyWidget(w.GetName() + "_image");
205
206 if (option)
207 option.SetColor(color);
208 }

◆ ButtonSetColorConsole()

void ScriptedWidgetEventHandler::ButtonSetColorConsole ( Widget w,
int color )
inlineprotected

Definition at line 249 of file OptionSelectorBase.c.

250 {
251 w.SetColor(color);
252 }

◆ ButtonSetTextColorConsole()

void ScriptedWidgetEventHandler::ButtonSetTextColorConsole ( Widget w,
int color )
inlineprotected

Definition at line 267 of file OptionSelectorBase.c.

268 {
269 if (!w)
270 return;
271
272 TextWidget label = TextWidget.Cast(w.FindAnyWidget(w.GetName() + "_label"));
273 TextWidget text = TextWidget.Cast(w.FindAnyWidget(w.GetName() + "_text"));
274 TextWidget text2 = TextWidget.Cast(w.FindAnyWidget(w.GetName() + "_text_1"));
275
276 if (label)
277 label.SetColor(color);
278
279 if (text)
280 text.SetColor(color);
281
282 if (text2)
283 text2.SetColor(color);
284 }

◆ CanAddItemInHandToInventory() [1/2]

bool ScriptedWidgetEventHandler::CanAddItemInHandToInventory ( )
inlineprivate

Definition at line 29 of file InventoryGrid.c.

29{}

◆ CanAddItemInHandToInventory() [2/2]

bool ScriptedWidgetEventHandler::CanAddItemInHandToInventory ( )
inlineprotected

Definition at line 73 of file InventoryGrid.c.

References m_CanAddItemInHandToInventory.

◆ CancelEnteringAlternateKeybind() [1/3]

void ScriptedWidgetEventHandler::CancelEnteringAlternateKeybind ( )
inlineprotected

Definition at line 211 of file KeybindingElement.c.

212 {
213 Reload();
214 }

References Reload().

◆ CancelEnteringAlternateKeybind() [2/3]

void ScriptedWidgetEventHandler::CancelEnteringAlternateKeybind ( )
inlineprotected

Definition at line 209 of file KeybindingElementNew.c.

210 {
211 Reload();
212 }

References Reload().

◆ CancelEnteringAlternateKeybind() [3/3]

void ScriptedWidgetEventHandler::CancelEnteringAlternateKeybind ( )
inlineprotected

Definition at line 150 of file KeybindingsGroup.c.

151 {
153 {
154 m_KeyWidgets.Get(m_CurrentSettingAlternateKeyIndex).CancelEnteringAlternateKeybind();
156 }
157 }

◆ CancelEnteringKeybind() [1/3]

void ScriptedWidgetEventHandler::CancelEnteringKeybind ( )
inlineprotected

Definition at line 200 of file KeybindingElement.c.

201 {
202 Reload();
203 }

References Reload().

◆ CancelEnteringKeybind() [2/3]

void ScriptedWidgetEventHandler::CancelEnteringKeybind ( )
inlineprotected

Definition at line 198 of file KeybindingElementNew.c.

199 {
200 Reload();
201 }

References Reload().

◆ CancelEnteringKeybind() [3/3]

void ScriptedWidgetEventHandler::CancelEnteringKeybind ( )
inlineprotected

Definition at line 134 of file KeybindingsGroup.c.

135 {
136 if (m_CurrentSettingKeyIndex != -1)
137 {
138 m_KeyWidgets.Get(m_CurrentSettingKeyIndex).CancelEnteringKeybind();
140 }
141 }

◆ CanSwitchTab()

bool ScriptedWidgetEventHandler::CanSwitchTab ( )
inlineprotected

Definition at line 196 of file TabberUI.c.

197 {
198 return m_CanSwitch;
199 }

◆ CheckForActionWidgetOverrides()

void ScriptedWidgetEventHandler::CheckForActionWidgetOverrides ( )
inlineprotected

Definition at line 675 of file ItemActionsWidget.c.

676 {
678 typename actionName;
679 if (Class.CastTo(item, m_EntityInHands) && item.GetActionWidgetOverride(actionName))
680 {
681 ActionBase action = ActionManagerBase.GetAction(actionName);
682 if (action)
684 }
685 }
Super root of all classes in Enforce script.
Definition EnScript.c:11
static proto bool CastTo(out Class to, Class from)
Try to safely down-cast base class to child class.

References Class::CastTo().

Referenced by Update().

◆ CheckRefresherFlagVisibility()

void ScriptedWidgetEventHandler::CheckRefresherFlagVisibility ( )
inlineprotected

Definition at line 663 of file ItemActionsWidget.c.

664 {
665 Widget w = m_Root.FindAnyWidget("ia_item_flag_icon");
666 if (m_Player && m_Player.GetHologramLocal())
667 {
668 EntityAI entity = m_Player.GetHologramLocal().GetProjectionEntity();
669 w.Show(entity.IsRefresherSignalingViable() && m_Player.IsTargetInActiveRefresherRange(entity));
670 }
671 else if (w.IsVisible())
672 w.Show(false);
673 }

References m_Player, and m_Root.

Referenced by ActionTargetsCursor::Update(), and Update().

◆ Clear()

void ScriptedWidgetEventHandler::Clear ( )
inlineprivate

Definition at line 211 of file ContextMenu.c.

212 {
213 int i;
214
215 m_commands.Clear();
216
218 return;
220 while (child)
221 {
223 if (button)
224 button.Show(false);
225 child = child.GetSibling();
226
227
228 }
229 m_count = 0;
231 }

Referenced by BuildContextMenu(), Hide(), and ~ContextMenu().

◆ ClearAlternativeKeybind()

void ScriptedWidgetEventHandler::ClearAlternativeKeybind ( int key_index)
inlineprotected

Definition at line 122 of file KeybindingsGroup.c.

123 {
124 m_Menu.ClearAlternativeKeybind(key_index);
125 }

References m_Menu.

◆ ClearKeybind()

void ScriptedWidgetEventHandler::ClearKeybind ( int key_index)
inlineprotected

Definition at line 117 of file KeybindingsGroup.c.

118 {
119 m_Menu.ClearKeybind(key_index);
120 }

References m_Menu.

◆ Close() [1/2]

void ScriptedWidgetEventHandler::Close ( )
inlineprotected

Definition at line 86 of file DropdownPrefab.c.

87 {
88 if (m_IsExpanded)
89 {
94
95 m_Root.Update();
96 m_Parent.Update();
97 }
98 }

References m_IsExpanded, m_IsExpanded, m_Parent, and m_Root.

Referenced by OnMouseButtonUp().

◆ Close() [2/2]

void ScriptedWidgetEventHandler::Close ( )
inlineprotected

Definition at line 46 of file ModsMenuDetailed.c.

47 {
49 m_Root.Show(false);
50 GetGame().GetMission().GetOnModMenuVisibilityChanged().Invoke(true);
51 }
void Highlight(ModInfo mod_ref)

References GetGame(), Highlight(), and m_Root.

◆ ColorDisabled()

void ScriptedWidgetEventHandler::ColorDisabled ( Widget w)
inlineprotected

Definition at line 182 of file OptionSelectorBase.c.

183 {
184 if (!w)
185 return;
186
187 int color_pnl = ARGB(0, 0, 0, 0);
188 int color_lbl = ARGB(120, 255, 255, 255);
189
191
192 Widget title_label = w.FindAnyWidget(w.GetName() + "_label");
193 Widget option_label = w.FindAnyWidget("option_label");
194
195 if (title_label)
196 title_label.SetColor(color_lbl);
197
198 if (option_label)
199 option_label.SetColor(color_lbl);
200 }
void ButtonSetColor(Widget w, int color)
int ARGB(int a, int r, int g, int b)
Definition proto.c:322

References ARGB().

◆ ColorDisabledConsole()

void ScriptedWidgetEventHandler::ColorDisabledConsole ( Widget w)
inlineprotected

Definition at line 236 of file OptionSelectorBase.c.

237 {
238 if (!w)
239 return;
240
241 int color_pnl = ARGB(0, 0, 0, 0);
242 int color_lbl = ARGB(120, 255, 255, 255);
243
247 }
void ButtonSetTextColorConsole(Widget w, int color)
void ButtonSetColorConsole(Widget w, int color)

References ARGB().

◆ ColorFocussed()

void ScriptedWidgetEventHandler::ColorFocussed ( Widget w,
int x,
int y )
inlineprotected

Definition at line 135 of file MainMenuPromo.c.

136 {
137 m_Background.SetColor(ARGB(255, 54, 16, 16));
138 }

References ARGB().

◆ ColorHighlight()

void ScriptedWidgetEventHandler::ColorHighlight ( Widget w)
inlineprotected

Definition at line 154 of file OptionSelectorBase.c.

155 {
156 if (!w)
157 return;
158
159 ButtonSetColor(w, ARGB(255, 255, 0, 0));
160 }

References ARGB().

◆ ColorHighlightConsole()

void ScriptedWidgetEventHandler::ColorHighlightConsole ( Widget w)
inlineprotected

Definition at line 210 of file OptionSelectorBase.c.

211 {
212 if (!w)
213 return;
214
215 int color_pnl = ARGB(255, 200, 0, 0);
216 int color_lbl = ARGB(255, 255, 255, 255);
217
221 }

References ARGB().

◆ ColorNormal()

void ScriptedWidgetEventHandler::ColorNormal ( Widget w)
inlineprotected

Definition at line 162 of file OptionSelectorBase.c.

163 {
164 if (!w)
165 return;
166
167 int color_pnl = ARGB(255, 255, 255, 255);
168 int color_lbl = ARGB(255, 255, 255, 255);
169
171
172 Widget title_label = w.FindAnyWidget(w.GetName() + "_label");
173 Widget option_label = w.FindAnyWidget("option_label");
174
175 if (title_label)
176 title_label.SetColor(color_lbl);
177
178 if (option_label)
179 option_label.SetColor(color_lbl);
180 }

References ARGB().

◆ ColorNormalConsole()

void ScriptedWidgetEventHandler::ColorNormalConsole ( Widget w)
inlineprotected

Definition at line 223 of file OptionSelectorBase.c.

224 {
225 if (!w)
226 return;
227
228 int color_pnl = ARGB(0, 0, 0, 0);
229 int color_lbl = ARGB(255, 255, 255, 255);
230
234 }

References ARGB().

◆ ColorRed() [1/2]

void ScriptedWidgetEventHandler::ColorRed ( Widget w)
inlineprotected

Definition at line 645 of file OptionsMenuControls.c.

646 {
647 SetFocus(w);
649 if (Class.CastTo(button, w))
650 {
651 button.SetTextColor(ARGB(255, 255, 0, 0));
652 button.SetAlpha(0.9);
653 }
654 }
proto native void SetFocus(Widget w)

References ARGB(), Class::CastTo(), and SetFocus().

◆ ColorRed() [2/2]

void ScriptedWidgetEventHandler::ColorRed ( Widget w,
int x,
int y )
inlineprotected

Definition at line 180 of file MainMenuNewsfeed.c.

181 {
182 SetFocus(w);
183 if (w.IsInherited(ButtonWidget))
184 {
186 button.SetTextColor(ARGB(255, 255, 0, 0));
187 button.SetAlpha(0.9);
188 }
189
190 TextWidget text = TextWidget.Cast(w.FindWidget(w.GetName() + "_text"));
191 TextWidget text2 = TextWidget.Cast(w.FindWidget(w.GetName() + "_text_1"));
192 ImageWidget image = ImageWidget.Cast(w.FindWidget(w.GetName() + "_image"));
193
194 if (text)
195 text.SetColor(ARGB(255, 255, 0, 0));
196
197 if (text2)
198 text2.SetColor(ARGB(255, 255, 0, 0));
199
200 if (image)
201 image.SetColor(ARGB(255, 255, 0, 0));
202 }

References ARGB(), and SetFocus().

Referenced by OnFocus(), and OnMouseEnter().

◆ ColorUnfocussed()

void ScriptedWidgetEventHandler::ColorUnfocussed ( Widget w,
Widget enterW,
int x,
int y )
inlineprotected

Definition at line 140 of file MainMenuPromo.c.

◆ ColorWhite() [1/2]

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

Definition at line 656 of file OptionsMenuControls.c.

657 {
659 if (Class.CastTo(button, w))
660 {
661 button.SetTextColor(ARGB(255, 255, 255, 255));
662 button.SetAlpha(0.0);
663 }
664 }

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

◆ ColorWhite() [2/2]

void ScriptedWidgetEventHandler::ColorWhite ( Widget w,
Widget enterW,
int x,
int y )
inlineprotected

Definition at line 204 of file MainMenuNewsfeed.c.

205 {
206 if (w.IsInherited(ButtonWidget))
207 {
209 button.SetTextColor(ARGB(255, 255, 255, 255));
210 button.SetAlpha(0.75);
211 }
212
213 TextWidget text = TextWidget.Cast(w.FindWidget(w.GetName() + "_text"));
214 TextWidget text2 = TextWidget.Cast(w.FindWidget(w.GetName() + "_text_1"));
215 ImageWidget image = ImageWidget.Cast(w.FindWidget(w.GetName() + "_image"));
216
217 if (text)
218 text.SetColor(ARGB(255, 255, 255, 255));
219
220 if (text2)
221 text2.SetColor(ARGB(255, 255, 255, 255));
222
223 if (image)
224 image.SetColor(ARGB(255, 255, 255, 255));
225 }

References ARGB().

Referenced by OnFocusLost(), and OnMouseLeave().

◆ ContextMenu()

void ScriptedWidgetEventHandler::ContextMenu ( )
inlineprivate

Definition at line 15 of file ContextMenu.c.

16 {
18 m_count = 0;
19 }

Referenced by DisplayContextMenu().

◆ ContinuousActionProgress()

void ScriptedWidgetEventHandler::ContinuousActionProgress ( )
inlineprotected

◆ Count()

int ScriptedWidgetEventHandler::Count ( )
inlineprivate

Definition at line 205 of file ContextMenu.c.

206 {
207 return m_commands.Count();
208 }

Referenced by AddEx().

◆ CreateFollowedObject()

void ScriptedWidgetEventHandler::CreateFollowedObject ( string type)
inlineprotected

Definition at line 21 of file CTObjectFollower.c.

References GetGame(), m_Orientation, m_Position, SetPosition(), and SetRotation().

◆ CreateRootWidget()

void ScriptedWidgetEventHandler::CreateRootWidget ( Widget parent)
inlineprotected

Definition at line 66 of file MainMenuPromo.c.

67 {
68 m_Root = GetGame().GetWorkspace().CreateWidgets("gui/layouts/new_ui/dlc_panels/DLC_Panel.layout", parent);
69 }

References GetGame(), and m_Root.

Referenced by MainMenuDlcHandlerBase().

◆ CreateVideoLoadingEntry()

void ScriptedWidgetEventHandler::CreateVideoLoadingEntry ( string entryName)
inlineprivate

Definition at line 92 of file VideoPlayer.c.

93 {
94 Widget entry = GetGame().GetWorkspace().CreateWidgets("gui/layouts/new_ui/video_player_entry.layout", m_LoadVideo);
95 ButtonWidget entryButton = ButtonWidget.Cast(entry.GetChildren());
96 entryButton.SetText(entryName);
97 entryButton.SetUserID(333);
98 }
GridSpacerWidget m_LoadVideo
Definition VideoPlayer.c:14

References GetGame().

Referenced by InitVideoLoading().

◆ CreditsElement()

void ScriptedWidgetEventHandler::CreditsElement ( int index,
Widget parent )
inlineprotected

Definition at line 5 of file CreditsElement.c.

6 {
7
8 }

◆ CTEvent()

void ScriptedWidgetEventHandler::CTEvent ( int index,
int actor,
Widget root,
bool walk,
CameraToolsMenu parent )
inlineprotected

Definition at line 19 of file CTEvent.c.

20 {
21 m_Menu = parent;
22 m_Index = index;
24
25 m_Root = GetGame().GetWorkspace().CreateWidgets("gui/layouts/camera_tools/event_entry.layout", root);
26 m_IndexWidget = TextWidget.Cast(m_Root.FindAnyWidget("event_id"));
27 m_EventActorWidget = EditBoxWidget.Cast(m_Root.FindAnyWidget("event_actor_edit"));
28 m_EventTimeWidget = EditBoxWidget.Cast(m_Root.FindAnyWidget("event_time_edit"));
29 m_EventTypeWidget = EditBoxWidget.Cast(m_Root.FindAnyWidget("event_type_edit"));
30 m_EventWalkWidget = CheckBoxWidget.Cast(m_Root.FindAnyWidget("auto_walk"));
31
32 m_EventWalkWidget.SetChecked(walk);
33 m_IndexWidget.SetText(m_Index.ToString());
34 m_EventActorWidget.SetText(m_ActorIndex.ToString());
35 m_Root.SetHandler(this);
36 }
EditBoxWidget m_EventActorWidget
Definition CTEvent.c:12
CheckBoxWidget m_EventWalkWidget
Definition CTEvent.c:15
EditBoxWidget m_EventTypeWidget
Definition CTEvent.c:14
EditBoxWidget m_EventTimeWidget
Definition CTEvent.c:13

References GetGame(), m_Menu, and m_Root.

◆ CTKeyframe()

void ScriptedWidgetEventHandler::CTKeyframe ( int index,
vector pos,
vector orient,
float int_value,
float fov,
float dof,
int pin,
float time_before,
Widget root,
CameraToolsMenu parent )
inlineprotected

Definition at line 19 of file CTKeyframe.c.

20 {
21 m_Menu = parent;
22
23 m_Root = GetGame().GetWorkspace().CreateWidgets("gui/layouts/camera_tools/keyframe_entry.layout", root);
24
25 m_IndexWidget = TextWidget.Cast(m_Root.FindAnyWidget("keyframe_id"));
26 m_InterpTimeWidget = EditBoxWidget.Cast(m_Root.FindAnyWidget("keyframe_time_edit"));
27 m_FOVWidget = EditBoxWidget.Cast(m_Root.FindAnyWidget("keyframe_fov_edit"));
28 m_DOFWidget = EditBoxWidget.Cast(m_Root.FindAnyWidget("keyframe_dof_edit"));
29 m_PinWidget = EditBoxWidget.Cast(m_Root.FindAnyWidget("keyframe_pin_edit"));
30 m_TotalTimeWidget = TextWidget.Cast(m_Root.FindAnyWidget("keyframe_time"));
31
32 m_Index = index;
34 m_Position = pos;
36
38 SetFOV(fov);
39 SetDOF(dof);
40 SetPin(pin);
41 m_IndexWidget.SetText(m_Index.ToString());
42 m_Root.SetHandler(this);
43 }
void SetDOF(float dof)
Definition CTKeyframe.c:77
EditBoxWidget m_FOVWidget
Definition CTKeyframe.c:14
void SetFOV(float fov)
Definition CTKeyframe.c:67
EditBoxWidget m_DOFWidget
Definition CTKeyframe.c:15
EditBoxWidget m_PinWidget
Definition CTKeyframe.c:16
void SetInterpTime(float time)
Definition CTKeyframe.c:113
EditBoxWidget m_InterpTimeWidget
Definition CTKeyframe.c:13

References GetGame(), m_Menu, m_Orientation, m_Position, m_Root, SetDOF(), SetFOV(), SetInterpTime(), and SetPin().

◆ Darken()

void ScriptedWidgetEventHandler::Darken ( Widget w,
int x,
int y )
inlineprivate

Definition at line 759 of file ServerBrowserEntry.c.

760 {
761 if (m_Selected)
762 return;
763
764 if (w == m_Root || w == m_Favorite || w == m_Expand)
765 {
766 m_Root.SetColor(ARGB(255, 200, 0, 0));
768 UpdateColors();
769 }
770 }
void SetPopulationEx(GetServersResultRow serverInfo)
ref GetServersResultRow m_ServerData

References ARGB(), m_Favorite, m_Root, SetPopulationEx(), and UpdateColors().

Referenced by OnFocus(), OnMouseButtonUp(), and UpdateEntry().

◆ Deattach()

void ScriptedWidgetEventHandler::Deattach ( )
inlineprivate

Definition at line 26 of file ProfileOptionsUI.c.

27 {
28 //m_profileOption = NULL;
29 if (m_widget_array && m_widget_array.Count() > 0)
30 {
31 for (int i = 0; i < m_widget_array.Count(); i++)
32 {
34 if (m_widget)
35 {
36 m_widget.SetHandler(NULL);
37 m_widget = NULL;
38 }
39 }
40 }
41 }

◆ Deselect() [1/3]

void ScriptedWidgetEventHandler::Deselect ( )
inlineprotected

Definition at line 199 of file PlayerListEntryScriptedWidget.c.

200 {
201 if (m_Selected)
202 m_Selected = false;
203 }

Referenced by OnFocusLost(), and OnMouseLeave().

◆ Deselect() [2/3]

void ScriptedWidgetEventHandler::Deselect ( )
inlineprotected

Definition at line 76 of file ModsMenuDetailedEntry.c.

77 {
78 m_Root.SetColor(ARGBF(m_Root.GetAlpha(), 0.2, 0.2, 0.2));
79
80 m_Detail.Show(false);
81 m_IconBig.Show(false);
82 m_IconSmall.Show(true);
83 m_IconCollapse.SetImage(0);
84 m_Detail.Update();
85 m_Root.Update();
86 m_IsOpen = false;
87 }
int ARGBF(float fa, float fr, float fg, float fb)
Converts <0.0, 1.0> ARGB into color.
Definition proto.c:332

References ARGBF(), and m_Root.

◆ Deselect() [3/3]

void ScriptedWidgetEventHandler::Deselect ( )
inlineprivate

Definition at line 683 of file ServerBrowserEntry.c.

684 {
685 if (m_Selected)
686 {
687 m_ServerData.m_IsSelected = false;
688 m_Selected = false;
689
690 Lighten(m_Root, null, 0, 0);
691 }
692 }
void Lighten(Widget w, Widget enterW, int x, int y)

References Lighten(), and m_Root.

◆ DeselectAll()

void ScriptedWidgetEventHandler::DeselectAll ( )
inlineprotected

Definition at line 365 of file TabberUI.c.

366 {
367 for (int i = 0; i < m_TabControls.Count(); i++)
368 {
371 }
372 }
void DeselectTabControl(int index)
Definition TabberUI.c:340
void DeselectTabPanel(int index)
Definition TabberUI.c:358

◆ DeselectTabControl()

void ScriptedWidgetEventHandler::DeselectTabControl ( int index)
inlineprotected

Definition at line 340 of file TabberUI.c.

341 {
343 if (tab_control)
344 {
345 /*
346 Widget tab_bg = tab_control.FindAnyWidget( tab_control.GetName() + "_Background" );
347 if( tab_bg )
348 {
349 tab_bg.Show( false );
350 }
351 */
352 Widget tab_title = TextWidget.Cast(tab_control.FindAnyWidget(tab_control.GetName() + "_Title"));
353 tab_title.SetColor(ARGB(255, 255, 255, 255));
354 tab_control.SetColor(ARGB(0, 0, 0, 0));
355 }
356 }

References ARGB().

◆ DeselectTabPanel()

void ScriptedWidgetEventHandler::DeselectTabPanel ( int index)
inlineprotected

Definition at line 358 of file TabberUI.c.

359 {
360 Widget tab = m_Tabs.Get(index);
361 if (tab)
362 tab.Show(false);
363 }

◆ DestroyFollowedObject()

void ScriptedWidgetEventHandler::DestroyFollowedObject ( )
inlineprotected

Definition at line 28 of file CTObjectFollower.c.

29 {
31 GetGame().ObjectDelete(m_FollowedObject);
32 }

References GetGame().

◆ Disable()

void ScriptedWidgetEventHandler::Disable ( )
inlineprotected

Definition at line 141 of file OptionSelectorBase.c.

142 {
143 m_Enabled = false;
144
145 m_Parent.SetFlags(WidgetFlags.IGNOREPOINTER);
146
147#ifdef PLATFORM_CONSOLE
149#else
151#endif
152 }

References OptionSelectorBase::ColorDisabledConsole(), m_Enabled, and m_Parent.

◆ DisableTabs()

void ScriptedWidgetEventHandler::DisableTabs ( bool disable)
inlineprotected

useful if we want to disable actual tabs for whatever reason

Definition at line 452 of file TabberUI.c.

453 {
454 foreach (Widget w : m_Tabs)
455 {
456 if (disable)
457 w.SetFlags(WidgetFlags.IGNOREPOINTER);
458 else
459 w.ClearFlags(WidgetFlags.IGNOREPOINTER);
460 w.Enable(!disable);
461 }
462 }

◆ DisplayContextMenu()

static void ScriptedWidgetEventHandler::DisplayContextMenu ( int x,
int y,
notnull EntityAI entity,
notnull Widget rootWidget,
Class target )
inlinestaticprivate

Definition at line 259 of file ContextMenu.c.

260 {
263 {
265 m_ContextMenuInstance.BuildContextMenu(entity, rootWidget, target);
266
267 m_ContextMenuInstance.SetSize(1, 1);
269 }
270 }
static ref ContextMenu m_ContextMenuInstance
Definition ContextMenu.c:4

References ContextMenu(), x, and y.

◆ DropdownPrefab()

void ScriptedWidgetEventHandler::DropdownPrefab ( Widget root,
string text = "" )
inlineprotected

Definition at line 18 of file DropdownPrefab.c.

19 {
20 m_Parent = root;
21 m_Root = GetGame().GetWorkspace().CreateWidgets("gui/layouts/new_ui/dropdown_prefab/dropdown_prefab.layout", root);
22
23 m_Scroller = ScrollWidget.Cast(m_Root.FindAnyWidget("dropdown_container"));
24 m_ContentContainer = m_Root.FindAnyWidget("dropdown_content");
25 m_Text = TextWidget.Cast(m_Root.FindAnyWidget("dropdown_text"));
26 m_Holder = m_Root.FindAnyWidget("holder");
28
29 m_Button = m_Root.FindAnyWidget("dropdown_selector_button");
30 m_ImageExpand = ImageWidget.Cast(m_Root.FindAnyWidget("expand_image"));
31 m_ImageCollapse = ImageWidget.Cast(m_Root.FindAnyWidget("collapse_image"));
32
33 m_Root.SetHandler(this);
34
36 }

References GetGame(), m_Parent, m_Root, m_Text, RefreshContent(), and SetText().

Referenced by InitPresets().

◆ Enable()

void ScriptedWidgetEventHandler::Enable ( )
inlineprotected

Definition at line 128 of file OptionSelectorBase.c.

129 {
130 m_Enabled = true;
131
132 m_Parent.ClearFlags(WidgetFlags.IGNOREPOINTER);
133
134#ifdef PLATFORM_CONSOLE
136#else
138#endif
139 }

References OptionSelectorBase::ColorNormal(), OptionSelectorBase::ColorNormalConsole(), m_Enabled, and m_Parent.

◆ EnableTabControl()

void ScriptedWidgetEventHandler::EnableTabControl ( int index,
bool enable )
inlineprotected

Definition at line 297 of file TabberUI.c.

298 {
299 Widget tab_control = m_Root.FindAnyWidget("Tab_Control_" + index);
300 if (tab_control)
301 tab_control.Show(enable);
302 AlignTabbers();
303 }

References m_Root.

◆ EnterKeybindingMenu()

void ScriptedWidgetEventHandler::EnterKeybindingMenu ( )
inlineprotected

Definition at line 216 of file OptionsMenuControls.c.

217 {
218 m_Menu.EnterScriptedMenu(MENU_KEYBINDINGS);
219 }
const int MENU_KEYBINDINGS
Definition constants.c:193

References m_Menu, and MENU_KEYBINDINGS.

Referenced by OnMouseButtonUp().

◆ Fade()

void ScriptedWidgetEventHandler::Fade ( bool fade)
inlineprotected

Definition at line 117 of file CTObjectFollower.c.

118 {
119 if (fade)
120 m_FollowerRoot.SetAlpha(m_MinFade);
121 else
122 m_FollowerRoot.SetAlpha(m_MaxFade);
123 }

◆ FavoriteIsSet()

bool ScriptedWidgetEventHandler::FavoriteIsSet ( )
inlineprotected

Definition at line 222 of file ServerBrowserFilterContainer.c.

223 {
224 return (m_Options["m_FavoritedFilter"] != m_FavoritedFilter.GetOptions()[0]);
225 }

◆ FillInfo()

void ScriptedWidgetEventHandler::FillInfo ( GetServersResultRow server_info)
inlineprotected

Definition at line 256 of file ServerBrowserEntry.c.

257 {
259 m_FirstExpand = true;
260
261#ifndef PLATFORM_CONSOLE
262 m_Root.FindAnyWidget("detailed_info").Show(server_info.m_IsExpanded);
263#endif
264
265 SetName(server_info.m_Name);
266 SetPasswordLocked(server_info.m_IsPasswordProtected);
268 SetSlots(server_info.m_MaxPlayers);
269 SetPing(server_info.m_Ping);
270 SetTime(server_info.m_TimeOfDay, server_info.m_EnvironmentTimeMul);
271 SetFavorite(server_info.m_Favorite);
272 SetModded(server_info.m_Modded);
273 SetMapName(server_info.m_MapNameToRun);
274
275#ifdef PLATFORM_CONSOLE
276 SetMouseAndKeyboard(server_info.m_MouseAndKeyboardEnabled);
277#endif
278
279#ifdef PLATFORM_WINDOWS
280#ifndef PLATFORM_CONSOLE
281 SetExpand(server_info.m_IsExpanded);
282
283 int pp = 0; // private
284 if (server_info.m_ShardId.Length() == 3 && server_info.m_ShardId.ToInt() < 200)
285 {
286 pp = 1; // official
287 }
288
289 SetShard(pp);
290 SetCharacterAlive(server_info.m_CharactersAlive);
291 SetFriends(server_info.m_SteamFriends);
292 SetMode(server_info.m_Disable3rdPerson);
293 SetBattleye(server_info.m_AntiCheat);
294 SetIP(server_info.m_Id);
295 SetAcceleration(server_info.m_EnvironmentTimeMul);
297#endif
298#endif
299 }
void SetModded(bool is_modded)
void SetFavorite(bool favorite)
void SetTime(string time, float multiplier)
void SetFriends(string friends_text)
void SetCharacterAlive(string char_alive)
void SetBattleye(bool battleye)
void SetMapName(string mapName)
void SetPasswordLocked(bool locked)
void SetMouseAndKeyboard(bool is_mkenabled)

References m_Root, SetAcceleration(), SetBattleye(), SetCharacterAlive(), SetExpand(), SetFavorite(), SetFriends(), SetIP(), SetMapName(), SetModded(), SetMode(), SetMouseAndKeyboard(), SetName(), SetPasswordLocked(), SetPing(), SetPopulationEx(), SetServerMapName(), SetShard(), SetSlots(), and SetTime().

◆ FillTextMap() [1/4]

void ScriptedWidgetEventHandler::FillTextMap ( )
inlineprotected

Definition at line 618 of file OptionsMenuControls.c.

619 {
621 m_TextMap.Insert(OptionAccessType.AT_OPTIONS_MOUSE_YAXIS_INVERTED, new Param2<string, string>("#STR_Invert_Vertical_tip_header", "#STR_Invert_Vertical_tip"));
622 m_TextMap.Insert(OptionAccessType.AT_OPTIONS_MOUSE_YAXIS, new Param2<string, string>("#STR_Camera_V_Sensitivity_tip_header", "#STR_Camera_V_Sensitivity_tip"));
623 m_TextMap.Insert(OptionAccessType.AT_OPTIONS_MOUSE_XAXIS, new Param2<string, string>("#STR_Camera_H_Sensitivity_tip_header", "#STR_Camera_H_Sensitivity_tip"));
624 m_TextMap.Insert(OptionAccessType.AT_OPTIONS_MOUSE_YAXIS_AIM_MOD, new Param2<string, string>("#STR_Aiming_V_Sensitivity_tip_header", "#STR_Aiming_V_Sensitivity_tip"));
625 m_TextMap.Insert(OptionAccessType.AT_OPTIONS_MOUSE_XAXIS_AIM_MOD, new Param2<string, string>("#STR_Aiming_H_Sensitivity_tip_header", "#STR_Aiming_H_Sensitivity_tip"));
626
627#ifdef PLATFORM_CONSOLE
628 m_TextMap.Insert(OptionAccessType.AT_OPTIONS_MOUSE_AND_KEYBOARD, new Param2<string, string>("#xbox_options_controls_mandk_contr", "#xbox_options_controls_mandk_contr_desc"));
629 m_TextMap.Insert(OptionAccessType.AT_OPTIONS_AIM_HELPER, new Param2<string, string>("#ps4_options_controls_aim_helper_contr", "#ps4_options_controls_aim_helper_contr_desc"));
630
631 m_TextMap.Insert(OptionAccessType.AT_OPTIONS_CONTROLLER_LS_YAXIS, new Param2<string, string>("#STR_Movement_V_Sensitivity_tip_header", "#STR_Movement_V_Sensitivity_tip"));
632 m_TextMap.Insert(OptionAccessType.AT_OPTIONS_CONTROLLER_LS_XAXIS, new Param2<string, string>("#STR_Movement_H_Sensitivity_tip_header", "#STR_Movement_H_Sensitivity_tip"));
633 m_TextMap.Insert(OptionAccessType.AT_OPTIONS_CONTROLLER_LS_XAXIS_VEHICLE_MOD, new Param2<string, string>("#STR_Movement_Vehicle_Sensitivity_tip_header", "#STR_Movement_Vehicle_Sensitivity_tip"));
634 m_TextMap.Insert(OptionAccessType.AT_OPTIONS_CONTROLLER_RS_YAXIS_INVERTED, new Param2<string, string>("#STR_Invert_Vertical_tip_header", "#STR_Invert_Vertical_tip"));
635 m_TextMap.Insert(OptionAccessType.AT_OPTIONS_CONTROLLER_RS_YAXIS, new Param2<string, string>("#STR_Camera_V_Sensitivity_tip_header", "#STR_Camera_V_Sensitivity_tip"));
636 m_TextMap.Insert(OptionAccessType.AT_OPTIONS_CONTROLLER_RS_XAXIS, new Param2<string, string>("#STR_Camera_H_Sensitivity_tip_header", "#STR_Camera_H_Sensitivity_tip"));
637 m_TextMap.Insert(OptionAccessType.AT_OPTIONS_CONTROLLER_RS_CURVATURE, new Param2<string, string>("#STR_Camera_Curvature_tip_header", "#STR_Camera_Curvature_tip"));
638 m_TextMap.Insert(OptionAccessType.AT_OPTIONS_CONTROLLER_RS_YAXIS_AIM_MOD, new Param2<string, string>("#STR_Aiming_V_Sensitivity_tip_header", "#STR_Aiming_V_Sensitivity_tip"));
639 m_TextMap.Insert(OptionAccessType.AT_OPTIONS_CONTROLLER_RS_XAXIS_AIM_MOD, new Param2<string, string>("#STR_Aiming_H_Sensitivity_tip_header", "#STR_Aiming_H_Sensitivity_tip"));
640 m_TextMap.Insert(OptionAccessType.AT_OPTIONS_CONTROLLER_RS_CURVATURE_AIM_MOD, new Param2<string, string>("#STR_Aiming_Curvature_tip_header", "#STR_Camera_Curvature_tip"));
641#endif
642 }
ref map< int, ref Param2< string, string > > m_TextMap
OptionAccessType
C++ OptionAccessType.
Definition gameplay.c:1182

Referenced by OptionsMenuControls(), OptionsMenuGame(), OptionsMenuSounds(), and OptionsMenuVideo().

◆ FillTextMap() [2/4]

void ScriptedWidgetEventHandler::FillTextMap ( )
inlineprotected

Definition at line 540 of file OptionsMenuGame.c.

541 {
543 m_TextMap.Insert(OptionAccessType.AT_OPTIONS_LANGUAGE, new Param2<string, string>("#options_game_select_language", "#options_game_select_language_desc"));
544 m_TextMap.Insert(OptionAccessType.AT_OPTIONS_FIELD_OF_VIEW, new Param2<string, string>("#options_game_field_of_view", "#options_game_field_of_view_desc"));
545 m_TextMap.Insert(OptionIDsScript.OPTION_HUD, new Param2<string, string>("#options_game_show_HUD", "#options_game_show_HUD_desc"));
546 m_TextMap.Insert(OptionIDsScript.OPTION_HUD_BRIGHTNESS, new Param2<string, string>("#options_game_hud_brightness", "#options_game_hud_brightness_desc"));
547 m_TextMap.Insert(OptionIDsScript.OPTION_CROSSHAIR, new Param2<string, string>("#options_game_show_crosshair", "#options_game_show_crosshair_desc"));
548 m_TextMap.Insert(OptionIDsScript.OPTION_QUICKBAR, new Param2<string, string>("#options_game_show_quickbar", "#options_game_show_quickbar_desc"));
549 m_TextMap.Insert(OptionIDsScript.OPTION_SERVER_INFO, new Param2<string, string>("#options_game_show_serverinfo", "#options_game_show_serverinfo_desc"));
550 m_TextMap.Insert(OptionIDsScript.OPTION_BLEEDINGINDICATION, new Param2<string, string>("#options_game_show_bleedingindication", "#options_game_show_bleedingindication_desc"));
551 m_TextMap.Insert(OptionIDsScript.OPTION_CONNECTIVITY_INFO, new Param2<string, string>("#options_game_connectivity", ""));
552
553#ifdef PLATFORM_WINDOWS
554 m_TextMap.Insert(OptionAccessType.AT_OPTIONS_PAUSE, new Param2<string, string>("#layout_options_pc_nopause_title", "#layout_options_pc_nopause_tooltip"));
555 m_TextMap.Insert(OptionIDsScript.OPTION_GAME_MESSAGES, new Param2<string, string>("#options_pc_game_messages", "#options_game_show_game_msg"));
556 m_TextMap.Insert(OptionIDsScript.OPTION_ADMIN_MESSAGES, new Param2<string, string>("#options_pc_admin_mes", "#options_game_show_admin_msg"));
557 m_TextMap.Insert(OptionIDsScript.OPTION_PLAYER_MESSAGES, new Param2<string, string>("#options_pc_player_messages", "#options_game_show_player_msg"));
558#else
559#ifdef PLATFORM_XBOX
560 m_TextMap.Insert(OptionAccessType.AT_OPTIONS_BRIGHT_SLIDER, new Param2<string, string>("#options_video_brightness", "#options_video_brightness_desc"));
561 m_TextMap.Insert(OptionIDsScript.OPTION_GAME_MESSAGES, new Param2<string, string>("#options_xbox_game_messages", "#options_game_show_game_msg"));
562 m_TextMap.Insert(OptionIDsScript.OPTION_ADMIN_MESSAGES, new Param2<string, string>("#options_xbox_admin_mes", "#options_game_show_admin_msg"));
563 m_TextMap.Insert(OptionIDsScript.OPTION_PLAYER_MESSAGES, new Param2<string, string>("#options_xbox_player_messages", "#options_game_show_player_msg"));
564#else
565#ifdef PLATFORM_PS4
566 m_TextMap.Insert(OptionAccessType.AT_OPTIONS_BRIGHT_SLIDER, new Param2<string, string>("#ps4_options_video_brightness", "#ps4_options_video_brightness_desc"));
567 m_TextMap.Insert(OptionIDsScript.OPTION_GAME_MESSAGES, new Param2<string, string>("#ps4_options_game_messages", "#ps4_options_game_show_game_msg"));
568 m_TextMap.Insert(OptionIDsScript.OPTION_ADMIN_MESSAGES, new Param2<string, string>("#ps4_options_admin_mes", "#ps4_options_game_show_admin_msg"));
569 m_TextMap.Insert(OptionIDsScript.OPTION_PLAYER_MESSAGES, new Param2<string, string>("#ps4_options_player_messages", "#ps4_options_game_show_player_msg"));
570#endif
571#endif
572#endif
573 }
OptionIDsScript
Used for script-based game options. For anything C++ based, you would most likely use "Option Access ...
Definition gameplay.c:1246

◆ FillTextMap() [3/4]

void ScriptedWidgetEventHandler::FillTextMap ( )
inlineprivate

Definition at line 350 of file OptionsMenuSounds.c.

351 {
353
354 m_TextMap.Insert(OptionAccessType.AT_OPTIONS_MASTER_VOLUME, new Param2<string, string>("#STR_sound_tab_master_tip_header", "#STR_sound_tab_master_tip"));
355 m_TextMap.Insert(OptionAccessType.AT_OPTIONS_EFFECTS_SLIDER, new Param2<string, string>("#STR_sound_tab_effects_tip_header", "#STR_sound_tab_effects_tip"));
356 m_TextMap.Insert(OptionAccessType.AT_OPTIONS_MUSIC_SLIDER, new Param2<string, string>("#STR_sound_tab_music_tip_header", "#STR_sound_tab_music_tip"));
357
358 m_TextMap.Insert(OptionAccessType.AT_OPTIONS_VON_SLIDER, new Param2<string, string>("#STR_sound_tab_voice_output_tip_header", "#STR_sound_tab_voice_output_tip"));
359 m_TextMap.Insert(OptionAccessType.AT_OPTIONS_VON_THRESHOLD_SLIDER, new Param2<string, string>("#STR_sound_tab_voice_threshold_tip_header", "#STR_sound_tab_voice_threshold_tip"));
360 m_TextMap.Insert(OptionAccessType.AT_OPTIONS_VON_INPUT_MODE, new Param2<string, string>("#STR_sound_tab_voice_mode_tip_header", "#STR_sound_tab_voice_mode_tip"));
361 }

◆ FillTextMap() [4/4]

void ScriptedWidgetEventHandler::FillTextMap ( )
inlineprotected

Definition at line 587 of file OptionsMenuVideo.c.

588 {
590
591#ifdef PLATFORM_CONSOLE
592#ifdef PLATFORM_PS4
593 m_TextMap.Insert(OptionAccessType.AT_OPTIONS_FLIPMODE, new Param2<string, string>("#options_video_V-sync", "#options_video_V-sync_desc"));
594#endif
595#else
596 m_TextMap.Insert(OptionAccessType.AT_QUALITY_PREFERENCE, new Param2<string, string>("#options_video_quality", "#options_video_quality_desc"));
597 m_TextMap.Insert(OptionAccessType.AT_OPTIONS_DISPLAY_MODE, new Param2<string, string>("#options_video_display_mode", "#options_video_display_mode_desc"));
598 m_TextMap.Insert(OptionAccessType.AT_OPTIONS_RESOLUTION, new Param2<string, string>("#options_video_resolution", "#options_video_resolution_desc"));
599 m_TextMap.Insert(OptionAccessType.AT_OPTIONS_BRIGHT_SLIDER, new Param2<string, string>("#options_video_brightness", "#options_video_brightness_desc"));
600 m_TextMap.Insert(OptionAccessType.AT_VSYNC_VALUE, new Param2<string, string>("#options_video_V-sync", "#options_video_V-sync_desc"));
601 m_TextMap.Insert(OptionAccessType.AT_HDR_DETAIL, new Param2<string, string>("#options_video_color_depth", "#options_video_color_depth_desc"));
602 m_TextMap.Insert(OptionAccessType.AT_OBJECTS_DETAIL, new Param2<string, string>("#options_video_object_detail", "#options_video_object_detail_desc"));
603 m_TextMap.Insert(OptionAccessType.AT_OPTIONS_TERRAIN, new Param2<string, string>("#options_video_terrain_detail", "#options_video_terrain_detail_desc"));
604 m_TextMap.Insert(OptionAccessType.AT_TEXTURE_DETAIL, new Param2<string, string>("#options_video_texture_detail", "#options_video_texture_detail_desc"));
605 m_TextMap.Insert(OptionAccessType.AT_SHADOW_DETAIL, new Param2<string, string>("#options_video_shadow_detail", "#options_video_shadow_detail_desc"));
606 m_TextMap.Insert(OptionAccessType.AT_ANISO_DETAIL, new Param2<string, string>("#options_video_texture_filtering", "#options_video_texture_filtering_desc"));
607 m_TextMap.Insert(OptionAccessType.AT_OPTIONS_TERRAIN_SHADER, new Param2<string, string>("#options_video_terrain_surface_detail", "#options_video_terrain_surface_detail_desc"));
608 m_TextMap.Insert(OptionAccessType.AT_OPTIONS_FXAA_VALUE, new Param2<string, string>("#options_video_anti-aliasing", "#options_video_anti-aliasing_desc"));
609 m_TextMap.Insert(OptionAccessType.AT_FSAA_DETAIL, new Param2<string, string>("#options_video_anti-aliasing_hardware", "#options_video_anti-aliasing_hardware_desc"));
610 m_TextMap.Insert(OptionAccessType.AT_ATOC_DETAIL, new Param2<string, string>("#options_video_foliage_smoothing", "#options_video_foliage_smoothing_desc"));
611 m_TextMap.Insert(OptionAccessType.AT_AMBIENT_OCCLUSION, new Param2<string, string>("#options_video_ambient_occlusion", "#options_video_ambient_occlusion_desc"));
612 m_TextMap.Insert(OptionAccessType.AT_POSTPROCESS_EFFECTS, new Param2<string, string>("#options_video_post_process", "#options_video_post_process_desc"));
613 m_TextMap.Insert(OptionAccessType.AT_WATER_DETAIL, new Param2<string, string>("#STR_option_video_ssr_quality_tip_header", "#STR_option_video_ssr_quality_tip"));
614#endif
615 }

◆ FindEntryByWidget()

PlayerListEntryScriptedWidget ScriptedWidgetEventHandler::FindEntryByWidget ( Widget button)
inlineprotected

Definition at line 131 of file PlayerListScriptedWidget.c.

132 {
133 if (button && m_Entries)
134 {
136 {
137 if (widget && widget.GetButtonWidget() == button)
138 return widget;
139 }
140 }
141
142 return null;
143 }

References m_Entries, and UID.

◆ FindPlayerByWidget()

string ScriptedWidgetEventHandler::FindPlayerByWidget ( Widget button)
inlineprotected

Definition at line 145 of file PlayerListScriptedWidget.c.

146 {
147 if (button && m_Entries)
148 {
150 {
151 if (widget && widget.GetButtonWidget() == button)
152 return UID;
153 }
154 }
155
156 return "";
157 }

References m_Entries, and UID.

◆ Focus() [1/8]

void ScriptedWidgetEventHandler::Focus ( )
inlineprotected

Definition at line 131 of file PlayerListEntryScriptedWidget.c.

132 {
133 OnFocus(m_Root, 0, 0);
134 }
bool OnFocus(Widget w, int x, int y)

References m_Root, and OnFocus().

Referenced by Apply(), and SetToDefaults().

◆ Focus() [2/8]

void ScriptedWidgetEventHandler::Focus ( )
inlineprotected

Focuses the first viable item.

Definition at line 222 of file OptionsMenuControls.c.

223 {
224#ifdef PLATFORM_CONSOLE
225 if (m_KeyboardSelector && m_KeyboardSelector.IsSelectorEnabled())
226 m_KeyboardSelector.Focus();
227 else if (m_AimHelperSelector)
228 m_AimHelperSelector.Focus();
229#endif
230 }
ref OptionSelectorMultistate m_AimHelperSelector

◆ Focus() [3/8]

void ScriptedWidgetEventHandler::Focus ( )
inlineprotected

Definition at line 162 of file OptionsMenuGame.c.

163 {
164#ifdef PLATFORM_CONSOLE
165 SetFocus(m_LanguageSelector.GetParent());
166#endif
167 }
ref OptionSelectorMultistate m_LanguageSelector

References SetFocus().

◆ Focus() [4/8]

void ScriptedWidgetEventHandler::Focus ( )
inlineprivate

Definition at line 134 of file OptionsMenuSounds.c.

135 {
136#ifdef PLATFORM_CONSOLE
137 SetFocus(m_MasterSelector.GetParent());
138#endif
139 }
ref OptionSelectorSlider m_MasterSelector

References SetFocus().

◆ Focus() [5/8]

void ScriptedWidgetEventHandler::Focus ( )
inlineprotected

Definition at line 240 of file OptionsMenuVideo.c.

241 {
242#ifdef PLATFORM_PS4
244 SetFocus(m_FlipModeSelector.GetParent());
245#endif
246 }

References SetFocus().

◆ Focus() [6/8]

void ScriptedWidgetEventHandler::Focus ( )
inlineprotected

Definition at line 119 of file OptionSelectorBase.c.

120 {
121#ifndef PLATFORM_CONSOLE
123#else
125#endif
126 }

References m_Parent, m_Root, and SetFocus().

◆ Focus() [7/8]

void ScriptedWidgetEventHandler::Focus ( )
inlineprotected

Definition at line 195 of file ServerBrowserEntry.c.

196 {
198 }

References m_Root, and SetFocus().

◆ Focus() [8/8]

void ScriptedWidgetEventHandler::Focus ( )
inlineprotected

Definition at line 375 of file ServerBrowserFilterContainer.c.

376 {
378 /*
379 #ifdef PLATFORM_CONSOLE
380 m_SortingFilter.Focus();
381 #else
382 #ifdef PLATFORM_WINDOWS
383 SetFocus( m_SearchByName );
384 #endif
385 #endif
386 */

References SetFocus().

◆ FocusFirst()

void ScriptedWidgetEventHandler::FocusFirst ( )
inlineprotected

Definition at line 27 of file PlayerListScriptedWidget.c.

28 {
29 if (m_Content && m_Content.GetChildren())
30 SetFocus(m_Content.GetChildren().FindAnyWidget("Button"));
31 m_ScrollContainer.VScrollToPos01(0);
32 }

References SetFocus().

◆ GenerateQuickBarBackgroundTiles()

void ScriptedWidgetEventHandler::GenerateQuickBarBackgroundTiles ( int count)
inlineprivate

Definition at line 349 of file InventoryGrid.c.

350 {
351 for (int i = 0; i < count; i++)
352 {
353 Widget root_widget = GetGame().GetWorkspace().CreateWidgets("gui/layouts/inventory/inventoryGridBackground.layout", m_Root);
354 TextWidget label_widget = TextWidget.Cast(root_widget.FindAnyWidget("Label1"));
355 TextWidget label_widget2 = TextWidget.Cast(root_widget.FindAnyWidget("Label2"));
356 label_widget.SetText((i + 1).ToString());
357 label_widget2.SetText((i + 1).ToString());
359 }
360 }
proto string ToString()
ref map< int, Widget > m_BackgroundWidgets

References GetGame(), m_Root, and ToString().

◆ GenerateValidFilter()

bool ScriptedWidgetEventHandler::GenerateValidFilter ( out string potential_filter)
inlineprotected

Turns any given string into a more convenient filter (limits character count, forces lowercase, trims empty spaces).

Definition at line 343 of file ServerBrowserFilterContainer.c.

344 {
346 }
bool LimitTextBoxCharacterCount(out string text, int max_length)
Limits the given text to 'max_length' character count. Returns true if any change was done to the inp...

References LimitTextBoxCharacterCount().

Referenced by OnChange().

◆ GenerateValidIP()

string ScriptedWidgetEventHandler::GenerateValidIP ( string potential_ip)
inlineprotected

Attempts to generate a valid IP address & port from the given string in format like this: "192.168.0.2:2503". If the process fails, then an empty string is returned.

Definition at line 271 of file ServerBrowserFilterContainer.c.

272 {
273 string correct_ip_format;
274
277
278 string ip_entries;
279 int port;
280
281 if (array_ip_and_port.Count() > 0)
282 {
285 ip_entries.Split(".", array_ip);
286
287 string ip_string;
288 int ip_entries_count = array_ip.Count();
289
291 return "";
292
293 for (int i = 0; i < 4; i++)
294 {
295 int ip_entry = array_ip.Get(i).ToInt();
296
297 // Check if the entry is a valid number
298 if (ip_entry > 255 || ip_entry < 0)
299 ip_entry = 0;
300
301 ip_string = ip_string + ip_entry.ToString();
302
303 if (i < ip_entries_count - 1)
304 ip_string = ip_string + ".";
305 ;
306 }
307
309 }
310 else
311 {
312 ip_entries = "";
314 }
315
316 if (correct_ip_format == "")
317 return ""; // Input string was not recognized as a valid IP address. Thus return an empty string.
318
319 // The input string was recognized as a valid IP address. Thus continue with port number.
320
321 if (array_ip_and_port.Count() > 1)
322 {
323 port = array_ip_and_port.Get(1).ToInt();
324
325 if (port > 65535 | port < 0) // max port value is 65535
326 port = 2302;
327
328
329 if (port >= 0)
330 correct_ip_format = correct_ip_format + ":" + port.ToString();
331
332 }
333 else
334 {
335 port = 2302;
336 correct_ip_format = correct_ip_format + ":" + port.ToString();
337 }
338
339 return correct_ip_format;
340 }
array< string > TStringArray
Definition EnScript.c:666

◆ GetActionDesc()

string ScriptedWidgetEventHandler::GetActionDesc ( ActionBase action)
inlineprotected

Definition at line 268 of file ItemActionsWidget.c.

269 {
270 if (action && action.GetText())
271 return action.GetText();
272
273 return string.Empty;
274 }

Referenced by BuildCursor().

◆ GetActionManager() [1/2]

void ScriptedWidgetEventHandler::GetActionManager ( )
inlineprivate

Definition at line 116 of file ContinuousActionProgress.c.

117 {
118 if (m_Player && m_Player.IsPlayerSelected())
119 Class.CastTo(m_AM, m_Player.GetActionManager());
120 else
121 m_AM = null;
122 }

References Class::CastTo(), DayZPlayer::IsPlayerSelected(), m_AM, and m_Player.

Referenced by Update(), and Update().

◆ GetActionManager() [2/2]

void ScriptedWidgetEventHandler::GetActionManager ( )
inlineprotected

Definition at line 221 of file ItemActionsWidget.c.

222 {
223 if (m_Player && m_Player.IsPlayerSelected())
224 ActionManagerClient.CastTo(m_AM, m_Player.GetActionManager());
225 else
226 m_AM = null;
227 }

References DayZPlayer::IsPlayerSelected(), m_AM, and m_Player.

◆ GetActions() [1/2]

void ScriptedWidgetEventHandler::GetActions ( )
inlineprivate

Definition at line 124 of file ContinuousActionProgress.c.

125 {
126 if (!m_AM) return;
127
128 m_Action = null;
129 m_ActionState = -1;
130 m_Action = m_AM.GetRunningAction();
131
132 if (m_Action && m_Action.GetInput().GetInputType() == ActionInputType.AIT_CONTINUOUS)
133 m_ActionState = m_AM.GetActionState(m_Action);
134 else
135 m_Action = null;
136 }
ActionInputType
Definition ActionInput.c:2

References m_Action, and m_AM.

Referenced by Update().

◆ GetActions() [2/2]

void ScriptedWidgetEventHandler::GetActions ( )
inlineprotected

Definition at line 229 of file ItemActionsWidget.c.

230 {
233 m_Single = null;
235
236 if (!m_AM)
237 return;
238
239 if (m_Player.IsSprinting())
240 return;
241
242 m_Interact = m_AM.GetPossibleAction(InteractActionInput);
244 m_Single = m_AM.GetPossibleAction(DefaultActionInput);
245 m_Continuous = m_AM.GetPossibleAction(ContinuousDefaultActionInput);
246
248 m_Hidden = false;
249
250 m_InteractActionsNum = m_AM.GetPossibleActionCount(InteractActionInput);
252 m_ItemActionsNum = m_AM.GetPossibleActionCount(DefaultActionInput);
253 m_ContinuousItemActionsNum = m_AM.GetPossibleActionCount(ContinuousDefaultActionInput);
254 }

References m_AM, and m_Player.

◆ GetButtonWidget()

Widget ScriptedWidgetEventHandler::GetButtonWidget ( )
inlineprotected

Definition at line 42 of file PlayerListEntryScriptedWidget.c.

43 {
44 return m_PlayerButton;
45 }

References m_PlayerButton.

◆ GetChangedAlternateBinds() [1/2]

array< int > ScriptedWidgetEventHandler::GetChangedAlternateBinds ( )
inlineprotected

Definition at line 60 of file KeybindingElement.c.

61 {
63 }
ref array< int > m_CustomAlternateBind

References m_CustomAlternateBind.

◆ GetChangedAlternateBinds() [2/2]

array< int > ScriptedWidgetEventHandler::GetChangedAlternateBinds ( )
inlineprotected

Definition at line 59 of file KeybindingElementNew.c.

60 {
62 }

References m_CustomAlternateBind.

◆ GetChangedBinds() [1/2]

array< int > ScriptedWidgetEventHandler::GetChangedBinds ( )
inlineprotected

Definition at line 55 of file KeybindingElement.c.

56 {
57 return m_CustomBind;
58 }

References m_CustomBind.

◆ GetChangedBinds() [2/2]

array< int > ScriptedWidgetEventHandler::GetChangedBinds ( )
inlineprotected

Definition at line 54 of file KeybindingElementNew.c.

55 {
56 return m_CustomBind;
57 }

References m_CustomBind.

◆ GetCol()

int ScriptedWidgetEventHandler::GetCol ( Widget w)
inlineprotected

Definition at line 200 of file InventoryGrid.c.

201 {
202 int index;
203
204 if (m_ItemWidgets.GetKeyByValueChecked(w, index))
205 return index;
206 else if (m_BackgroundWidgets.GetKeyByValueChecked(w, index))
207 return index;
208 else
209 return -1;
210 }

Referenced by OnDoubleClick(), OnDrag(), OnDraggingOver(), OnDropReceived(), OnMouseButtonDown(), OnMouseButtonUp(), and OnMouseEnter().

◆ GetColFromBg()

int ScriptedWidgetEventHandler::GetColFromBg ( Widget w)
inlineprotected

Definition at line 212 of file InventoryGrid.c.

213 {
214 return m_BackgroundWidgets.GetKeyByValue(w);
215 }

◆ GetController()

InventoryGridController ScriptedWidgetEventHandler::GetController ( )
inlineprivate

Definition at line 343 of file InventoryGrid.c.

344 {
345 return m_Controller;
346 }
InventoryGridController m_Controller

References m_Controller.

◆ GetCrosshairPosition()

void ScriptedWidgetEventHandler::GetCrosshairPosition ( )
inlineprotected

Definition at line 69 of file ProjectedCrosshair.c.

70 {
71 m_Visible = false;
73 itemInHands = m_Player.GetItemInHands();
74 if (itemInHands && itemInHands.IsWeapon())
75 {
77 {
78 //m_Visible = MiscGameplayFunctions.GetProjectedCursorPos3d(m_Position, m_Weapon);
79 }
80 }
81 }

References Class::CastTo(), m_Player, m_Visible, and m_Weapon.

Referenced by Update().

◆ GetDistanceString()

string ScriptedWidgetEventHandler::GetDistanceString ( float total_distance,
bool meters_only = false )
inlineprotected

Definition at line 82 of file MainMenuStats.c.

83 {
84 if (total_distance > 0)
85 {
86 string distanceString;
87
88 float kilometers = total_distance * 0.001;
90 if (kilometers >= 10 && !meters_only)
91 distanceString = GetValueString(kilometers, true) + " #STR_distance_unit_abbrev_kilometer_0";
92 else
93 distanceString = GetValueString(total_distance) + " #STR_distance_unit_abbrev_meter_0";
94
95 return distanceString;
96 }
97
98 return "0" + " #STR_distance_unit_abbrev_meter_0";
99 }
string GetValueString(float total_value, bool show_decimals=false)

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

Referenced by UpdateStats().

◆ GetDOF()

float ScriptedWidgetEventHandler::GetDOF ( )
inlineprotected

Definition at line 82 of file CTKeyframe.c.

83 {
84 return m_DOFWidget.GetText().ToFloat();
85 }

◆ GetEntityInHands()

void ScriptedWidgetEventHandler::GetEntityInHands ( )
inlineprotected

Definition at line 256 of file ItemActionsWidget.c.

257 {
258 if (!m_Player) return;
259
260 EntityAI eai = m_Player.GetHumanInventory().GetEntityInHands();
261
262 if (eai && !eai.IsInherited(DummyItem))
264 else
266 }

References m_Player.

Referenced by Update().

◆ GetEventActor()

int ScriptedWidgetEventHandler::GetEventActor ( )
inlineprotected

Definition at line 109 of file CTEvent.c.

110 {
111 return m_EventActorWidget.GetText().ToInt();
112 }

Referenced by Play(), and Stop().

◆ GetEventTime()

float ScriptedWidgetEventHandler::GetEventTime ( )
inlineprotected

Definition at line 98 of file CTEvent.c.

99 {
100 m_EventTime = m_EventTimeWidget.GetText().ToFloat();
101 return m_EventTime;
102 }

References m_EventTime.

◆ GetEventType()

int ScriptedWidgetEventHandler::GetEventType ( )
inlineprotected

Definition at line 104 of file CTEvent.c.

105 {
106 return m_EventTypeWidget.GetText().ToInt();
107 }

Referenced by Play().

◆ GetEventWalk()

bool ScriptedWidgetEventHandler::GetEventWalk ( )
inlineprotected

Definition at line 114 of file CTEvent.c.

115 {
116 return m_EventWalkWidget.IsChecked();
117 }

◆ GetFilterOptionsConsoles()

GetServersInput ScriptedWidgetEventHandler::GetFilterOptionsConsoles ( )
inlineprotected

Definition at line 493 of file ServerBrowserFilterContainer.c.

495 {
497
498 input.m_RowsPerPage = SERVER_BROWSER_PAGE_SIZE;
499
500#ifdef PLATFORM_XBOX
501 input.m_Platform = 2;
502#endif
503#ifdef PLATFORM_PS4
504 input.m_Platform = 3;
505#endif
506
507 if (m_SearchByName)
508 {
509 string name_text = m_SearchByName.GetText();
510 if (name_text != "")
511 input.SetNameFilter(name_text);
512 }
513
514 if (m_RegionFilter.IsSet())
515 input.SetRegionIdFilter(m_RegionFilter.GetValue());
516
517 if (m_DLCFilter.IsSet())
518 input.SetIsDLC(m_DLCFilter.IsEnabled());
519
520 if (m_FullServerFilter.IsSet())
521 {
522 input.SetFullServer(m_FullServerFilter.IsEnabled());
523 if (m_FullServerFilter.IsEnabled())
524 input.SetFreeSlotsMax(1);
525 else
526 input.SetFreeSlotsMin(1);
527 }
528
529 if (m_ThirdPersonFilter.IsSet())
530 {
531 // modeId is used to specify whether third person is allowed on CONSOLE servers
532 // ALLOW third person: modeId = 0
533 // BLOCK third person: modeId = 1
534 input.SetModeIdFilter(!m_ThirdPersonFilter.IsEnabled());
535 }
536
537 if (m_PasswordFilter.IsSet())
538 input.SetIsPasswordProtectedFilter(m_PasswordFilter.IsEnabled());
539
540 if (m_WhitelistFilter.IsSet())
541 input.SetWhitelistEnabled(m_WhitelistFilter.IsEnabled());
542
543 if (m_KeyboardFilter.IsSet())
544 input.SetMouseAndKeyboardEnabled(m_KeyboardFilter.IsEnabled());
545
546 return input;
const int SERVER_BROWSER_PAGE_SIZE
GetServersInput the input structure of the GetServers operation.
ref OptionSelectorMultistate m_RegionFilter

References SERVER_BROWSER_PAGE_SIZE.

◆ GetFilterOptionsPC()

GetServersInput ScriptedWidgetEventHandler::GetFilterOptionsPC ( )
inlineprotected

Definition at line 436 of file ServerBrowserFilterContainer.c.

438 {
440
441 input.m_RowsPerPage = SERVER_BROWSER_PAGE_SIZE;
442 input.m_Platform = 1;
443
444 if (m_SearchByName)
445 {
446 string name_text = m_SearchByName.GetText();
447 if (name_text != "")
448 input.SetNameFilter(name_text);
449 }
450
451 if (m_DLCFilter.IsSet())
452 input.SetIsDLC(m_DLCFilter.IsEnabled());
453
454 if (m_FullServerFilter.IsSet())
455 input.SetFullServer(m_FullServerFilter.IsEnabled());
456
457 if (m_ThirdPersonFilter.IsSet())
458 input.SetThirdPerson(m_ThirdPersonFilter.IsEnabled());
459
460 if (m_PasswordFilter.IsSet())
461 input.SetPassworded(m_PasswordFilter.IsEnabled());
462
463 if (m_WhitelistFilter.IsSet())
464 input.SetWhitelistEnabled(m_WhitelistFilter.IsEnabled());
465
466#ifndef PLATFORM_CONSOLE
467 if (m_SearchByIP)
468 {
469 string ip_text = m_SearchByIP.GetText();
470 if (ip_text != "")
471 input.SetHostIp(ip_text);
472 }
473
474 if (m_PingFilter.IsSet())
475 {
476 string str_ping = m_PingFilter.GetStringValue();
477 int ping = str_ping.Substring(1, str_ping.Length() - 1).ToInt();
478 input.SetPingFilter(ping);
479 }
480
481 if (m_FriendsPlayingFilter.IsSet())
482 input.SetFriendsPlaying(m_FriendsPlayingFilter.IsEnabled());
483
484 if (m_PreviouslyPlayedFilter.IsSet())
485 input.SetPreviouslyPlayed(m_PreviouslyPlayedFilter.IsEnabled());
486
487 if (m_VersionMatchFilter.IsSet())
488 input.SetProperVersionMatch(m_VersionMatchFilter.IsEnabled());
489#endif
490
491 return input;
ref OptionSelectorMultistate m_PingFilter

References SERVER_BROWSER_PAGE_SIZE.

◆ GetFOV()

float ScriptedWidgetEventHandler::GetFOV ( )
inlineprotected

Definition at line 72 of file CTKeyframe.c.

73 {
74 return m_FOVWidget.GetText().ToFloat();
75 }

◆ GetGridSize()

int ScriptedWidgetEventHandler::GetGridSize ( )
inlineprotected

Definition at line 217 of file InventoryGrid.c.

218 {
219 return m_GridSize;
220 }

References m_GridSize.

◆ GetHighlighted()

ModInfo ScriptedWidgetEventHandler::GetHighlighted ( )
inlineprotected

Definition at line 58 of file ModsMenuDetailed.c.

59 {
60 return m_Highlighted;
61 }

References m_Highlighted.

◆ GetHud() [1/2]

IngameHud ScriptedWidgetEventHandler::GetHud ( )
inlineprotected

Definition at line 687 of file ItemActionsWidget.c.

688 {
689 Mission mission = GetGame().GetMission();
690 if (mission)
691 {
692 IngameHud hud = IngameHud.Cast(mission.GetHud());
693 return hud;
694 }
695
696 return null;
697 }
Mission class.
Definition gameplay.c:668
Hud GetHud()
Definition gameplay.c:701

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

Referenced by Apply(), and ItemActionsWidget().

◆ GetHud() [2/2]

IngameHud ScriptedWidgetEventHandler::GetHud ( )
inlineprotected

Definition at line 447 of file OptionsMenuGame.c.

448 {
449 Mission mission = GetGame().GetMission();
450 if (mission)
451 {
452 IngameHud hud = IngameHud.Cast(mission.GetHud());
453 return hud;
454 }
455 return null;
456 }

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

◆ GetHudDebug()

HudDebug ScriptedWidgetEventHandler::GetHudDebug ( )
inlineprivate

Definition at line 13 of file HudDebug.c.

14 {
15 return m_HudDebug;
16 }

References m_HudDebug.

Referenced by OnChange(), and OnClick().

◆ GetInterpTime()

float ScriptedWidgetEventHandler::GetInterpTime ( )
inlineprotected

Definition at line 50 of file CTKeyframe.c.

51 {
52 string time_text = m_InterpTimeWidget.GetText();
53 m_InterpTime = time_text.ToFloat();
54 return m_InterpTime;
55 }

References m_InterpTime.

◆ GetIP()

string ScriptedWidgetEventHandler::GetIP ( )
inlineprivate

Definition at line 523 of file ServerBrowserEntry.c.

524 {
525 return m_ServerData.GetIP();
526 }

◆ GetItem()

Widget ScriptedWidgetEventHandler::GetItem ( int index)
inlineprivate

Definition at line 303 of file InventoryGrid.c.

304 {
305 if (m_ItemWidgets.Contains(index))
306 return m_ItemWidgets.Get(index);
307 else
308 return null;
309 }

◆ GetItemBackground()

Widget ScriptedWidgetEventHandler::GetItemBackground ( int index)
inlineprivate

Definition at line 312 of file InventoryGrid.c.

313 {
314 if (m_BackgroundWidgets.Contains(index))
315 return m_BackgroundWidgets.Get(index);
316 else
317 return null;
318 }

Referenced by AddItem(), RefreshItemVariables(), RefreshQuickbarItemVariables(), RemoveItem(), ResetItem(), and SetItem().

◆ GetItemColor()

int ScriptedWidgetEventHandler::GetItemColor ( ScriptedWidgetEventHandler grid,
InventoryItem item )
inlineprivate

Definition at line 15 of file InventoryGrid.c.

16 {
17 return 0;
18 }

◆ GetItemCount()

int ScriptedWidgetEventHandler::GetItemCount ( InventoryItem item)
inlineprivate

Definition at line 28 of file InventoryGrid.c.

28{}

◆ GetItemDesc()

string ScriptedWidgetEventHandler::GetItemDesc ( EntityAI entity)
inlineprotected

Definition at line 276 of file ItemActionsWidget.c.

277 {
278 if (m_EntityInHands)
279 return m_EntityInHands.GetDisplayName();
280
281 return string.Empty;
282 }

Referenced by BuildCursor().

◆ GetItemHealth()

int ScriptedWidgetEventHandler::GetItemHealth ( )
inlineprotected

Definition at line 284 of file ItemActionsWidget.c.

285 {
286 if (m_EntityInHands)
287 return m_EntityInHands.GetHealthLevel();
288
289 return -1;
290 }

Referenced by BuildCursor().

◆ GetItemQuantity() [1/2]

float ScriptedWidgetEventHandler::GetItemQuantity ( InventoryItem item)
inlineprivate

Definition at line 26 of file InventoryGrid.c.

26{}

Referenced by BuildCursor().

◆ GetItemQuantity() [2/2]

void ScriptedWidgetEventHandler::GetItemQuantity ( out int q_type,
out float q_cur,
out int q_min,
out int q_max )
inlineprotected

Definition at line 292 of file ItemActionsWidget.c.

293 {
294 if (m_EntityInHands)
295 {
298 if (q_type > 0)
299 {
301 {
303
304 q_cur = (q_cur / q_max);
305 // to percents
306 q_min = 0;
307 q_cur = q_cur * 100;
308 q_max = 100;
309 }
310 else
312 }
313 }
314 }
static float GetItemQuantity(InventoryItem item)
static int HasItemQuantity(notnull EntityAI item)
const int QUANTITY_PROGRESS
Definition constants.c:484

References QuantityConversions::GetItemQuantity(), QuantityConversions::HasItemQuantity(), and QUANTITY_PROGRESS.

◆ GetItemQuantityMax()

int ScriptedWidgetEventHandler::GetItemQuantityMax ( InventoryItem item)
inlineprivate

Definition at line 27 of file InventoryGrid.c.

27{}

◆ GetItemQuantityText()

string ScriptedWidgetEventHandler::GetItemQuantityText ( InventoryItem item)
inlineprivate

Definition at line 24 of file InventoryGrid.c.

24{}

◆ GetItems()

TItemsMap ScriptedWidgetEventHandler::GetItems ( )
inlineprivate

Definition at line 297 of file InventoryGrid.c.

298 {
299 return m_Items;
300 }

References m_Items.

◆ GetItemSize()

vector ScriptedWidgetEventHandler::GetItemSize ( InventoryGrid grid,
InventoryItem item )
inlineprivate

Definition at line 20 of file InventoryGrid.c.

21 {
22 return Vector(0, 1, 1);
23 }
proto native vector Vector(float x, float y, float z)
Vector constructor from components.

References Vector().

◆ GetLayoutName() [1/8]

string ScriptedWidgetEventHandler::GetLayoutName ( )
inlineprotected

Definition at line 152 of file ControlMappingKeybinds.c.

153 {
154 return "gui/layouts/new_ui/tutorials/xbox/keybinds_tab.layout";
155 }

Referenced by KeybindingElement(), KeybindingElementNew(), array::KeybindingsContainer(), KeybindingsGroup(), OptionsMenuControls(), OptionsMenuGame(), OptionsMenuSounds(), OptionsMenuVideo(), and TutorialKeybinds().

◆ GetLayoutName() [2/8]

string ScriptedWidgetEventHandler::GetLayoutName ( )
inlineprotected

Definition at line 40 of file KeybindingElement.c.

41 {
42 return "gui/layouts/new_ui/options/keybindings_selectors/keybinding_option.layout";
43 }

◆ GetLayoutName() [3/8]

string ScriptedWidgetEventHandler::GetLayoutName ( )
inlineprotected

Definition at line 39 of file KeybindingElementNew.c.

40 {
41 return "gui/layouts/new_ui/options/keybindings_selectors/keybinding_option.layout";
42 }

◆ GetLayoutName() [4/8]

string ScriptedWidgetEventHandler::GetLayoutName ( )
inlineprotected

Definition at line 36 of file KeybindingsGroup.c.

37 {
38 return "gui/layouts/new_ui/options/keybindings_selectors/keybinding_group.layout";
39 }

◆ GetLayoutName() [5/8]

string ScriptedWidgetEventHandler::GetLayoutName ( )
inlineprotected

Definition at line 207 of file OptionsMenuControls.c.

208 {
209#ifdef PLATFORM_CONSOLE
210 return "gui/layouts/new_ui/options/xbox/controls_tab.layout";
211#else
212 return "gui/layouts/new_ui/options/pc/controls_tab.layout";
213#endif
214 }

◆ GetLayoutName() [6/8]

string ScriptedWidgetEventHandler::GetLayoutName ( )
inlineprotected

Definition at line 153 of file OptionsMenuGame.c.

154 {
155#ifdef PLATFORM_CONSOLE
156 return "gui/layouts/new_ui/options/xbox/game_tab.layout";
157#else
158 return "gui/layouts/new_ui/options/pc/game_tab.layout";
159#endif
160 }

◆ GetLayoutName() [7/8]

string ScriptedWidgetEventHandler::GetLayoutName ( )
inlineprivate

Definition at line 123 of file OptionsMenuSounds.c.

124 {
125#ifdef PLATFORM_CONSOLE
126 return "gui/layouts/new_ui/options/xbox/sound_tab.layout";
127#else
128#ifdef PLATFORM_WINDOWS
129 return "gui/layouts/new_ui/options/pc/sound_tab.layout";
130#endif
131#endif
132 }

◆ GetLayoutName() [8/8]

string ScriptedWidgetEventHandler::GetLayoutName ( )
inlineprotected

Definition at line 229 of file OptionsMenuVideo.c.

230 {
231#ifdef PLATFORM_PS4
232 return "gui/layouts/new_ui/options/ps/video_tab.layout";
233#else
234#ifdef PLATFORM_WINDOWS
235 return "gui/layouts/new_ui/options/pc/video_tab.layout";
236#endif
237#endif
238 }

◆ GetMainWidget()

Widget ScriptedWidgetEventHandler::GetMainWidget ( )
inlineprotected

Definition at line 160 of file LayoutHolder.c.

161 {
162 return m_MainWidget;
163 }

◆ GetMapName()

string ScriptedWidgetEventHandler::GetMapName ( )
inlineprivate

Definition at line 543 of file ServerBrowserEntry.c.

544 {
545 string map_name = m_ServerData.m_MapNameToRun;
546 map_name.ToLower();
547
548 if (map_name == "enoch")
549 return "Livonia";
550 if (map_name == "chernarusplus")
551 return "Chernarus";
552
553 return m_ServerData.m_MapNameToRun;
554 }

Referenced by SetServerMapName().

◆ GetMapToRun()

string ScriptedWidgetEventHandler::GetMapToRun ( )
inlineprivate

Definition at line 538 of file ServerBrowserEntry.c.

539 {
540 return m_ServerData.m_MapNameToRun;
541 }

Referenced by RefreshDLCIcon().

◆ GetModInfo()

ModInfo ScriptedWidgetEventHandler::GetModInfo ( )
inlineprotected

Definition at line 205 of file MainMenuPromo.c.

206 {
207 return m_ThisModInfo;
208 }

References m_ThisModInfo.

◆ GetObj()

EntityAI ScriptedWidgetEventHandler::GetObj ( )
inlineprotected

Definition at line 39 of file CTObjectFollower.c.

40 {
41 return m_FollowedObject;
42 }

◆ GetOnScreenPosition()

void ScriptedWidgetEventHandler::GetOnScreenPosition ( out float x,
out float y )
inlineprotected

Definition at line 57 of file ObjectFollower.c.

58 {
59 const float DEFAULT_HANDLE_OFFSET = 0.2;
60
61 float pivotYOffset = 0.0;
62
63 bool ignorePivot = false;
64 bool traceMatched = false;
65 bool isDefaultPos = false;
66
68
70 {
72
73 traceMatched = true;
74 objectPos = m_TargetObject.GetPosition();
75 if (pivotYOffset != 0.0)
77 else
79 }
80 else
81 {
82 // default position for the action cursor
83 traceMatched = false;
84 isDefaultPos = true;
85 }
86
88 {
89 // hides the widget if we are in situation that the widget will be displayed on pivot point
90 // and we do not want to display it
91 x = 0.0;
92 y = 0.0;
93 }
94 else
95 {
96 // calculate screen position from traced results
97 if (isDefaultPos)
98 {
99 int w, h;
100 GetScreenSize(w, h);
101 x = w / 2;
102 y = h / 2;
103 }
104 else
105 {
106 vector screen_pos = GetGame().GetScreenPos(objectPos);
107 x = screen_pos[0];
108 y = screen_pos[1];
109 }
110 }
111
112 objectPos = "0 0 0";
113 isDefaultPos = false;
114 }
proto void GetScreenSize(out int x, out int y)

References GetGame(), GetScreenSize(), m_PivotYOffset, m_TargetObject, x, and y.

Referenced by Update().

◆ GetOrientation()

vector ScriptedWidgetEventHandler::GetOrientation ( )
inlineprotected

Definition at line 102 of file CTKeyframe.c.

103 {
104 return m_Orientation;
105 }

References m_Orientation.

◆ GetParent() [1/2]

LayoutHolder ScriptedWidgetEventHandler::GetParent ( )
inlineprotected

Definition at line 142 of file LayoutHolder.c.

143 {
144 return m_Parent;
145 }

References m_Parent.

◆ GetParent() [2/2]

Widget ScriptedWidgetEventHandler::GetParent ( )
inlineprotected

Definition at line 21 of file OptionSelectorBase.c.

22 {
23 return m_Parent;
24 }

References m_Parent.

◆ GetPin()

int ScriptedWidgetEventHandler::GetPin ( )
inlineprotected

Definition at line 62 of file CTKeyframe.c.

63 {
64 return m_PinWidget.GetText().ToInt();
65 }

◆ GetPlayer() [1/3]

void ScriptedWidgetEventHandler::GetPlayer ( )
inlineprivate

◆ GetPlayer() [2/3]

void ScriptedWidgetEventHandler::GetPlayer ( )
inlineprotected

Definition at line 216 of file ItemActionsWidget.c.

217 {
219 }

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

◆ GetPlayer() [3/3]

void ScriptedWidgetEventHandler::GetPlayer ( )
inlineprotected

Definition at line 64 of file ProjectedCrosshair.c.

65 {
67 }

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

◆ GetPort()

int ScriptedWidgetEventHandler::GetPort ( )
inlineprivate

Definition at line 528 of file ServerBrowserEntry.c.

529 {
530 return m_ServerData.m_HostPort;
531 }

◆ GetPosition() [1/2]

vector ScriptedWidgetEventHandler::GetPosition ( )
inlineprotected

Definition at line 97 of file CTKeyframe.c.

98 {
99 return m_Position;
100 }

References m_Position.

◆ GetPosition() [2/2]

vector ScriptedWidgetEventHandler::GetPosition ( )
inlineprotected

Definition at line 64 of file CTObjectFollower.c.

65 {
66 if (m_FollowedObject && m_FollowedObject.GetPosition() != m_Position)
67 SetPosition(m_FollowedObject.GetPosition());
68 return m_Position;
69 }

References m_Position, and SetPosition().

◆ GetProfileOption()

int ScriptedWidgetEventHandler::GetProfileOption ( )
inlineprivate

Definition at line 92 of file ProfileOptionsUI.c.

93 {
94 return m_profileOption;
95 }

◆ GetQuickbarItemColor()

int ScriptedWidgetEventHandler::GetQuickbarItemColor ( InventoryGrid grid,
InventoryItem item )
inlineprivate

Definition at line 19 of file InventoryGrid.c.

19{}

◆ GetRadioFrequency()

string ScriptedWidgetEventHandler::GetRadioFrequency ( )
inlineprotected

Definition at line 316 of file ItemActionsWidget.c.

317 {
320 return trans.GetTunedFrequency().ToString();
321
322 return string.Empty;
323 }

References Class::CastTo().

Referenced by BuildCursor().

◆ GetRoot() [1/3]

Widget ScriptedWidgetEventHandler::GetRoot ( )
inlineprivate

Definition at line 320 of file InventoryGrid.c.

321 {
322 return m_Root;
323 }

References m_Root.

◆ GetRoot() [2/3]

LayoutHolder ScriptedWidgetEventHandler::GetRoot ( )
inlineprotected

Definition at line 125 of file LayoutHolder.c.

126 {
127 if (m_Parent)
128 {
130 return container;
131 }
132 else
133 return this;
134 }

References m_Parent.

◆ GetRoot() [3/3]

Widget ScriptedWidgetEventHandler::GetRoot ( )
inlineprotected

Definition at line 92 of file ServerBrowserEntry.c.

93 {
94 return m_Root;
95 }

References m_Root.

◆ GetRootWidget()

Widget ScriptedWidgetEventHandler::GetRootWidget ( )
inlineprotected

Definition at line 165 of file LayoutHolder.c.

166 {
167 return m_RootWidget;
168 }

References m_RootWidget.

◆ GetRotation()

vector ScriptedWidgetEventHandler::GetRotation ( )
inlineprotected

Definition at line 71 of file CTObjectFollower.c.

72 {
74 return m_FollowedObject.GetOrientation();
75 return "0 0 0";
76 }

◆ GetSelectedIndex()

int ScriptedWidgetEventHandler::GetSelectedIndex ( )
inlineprotected

Definition at line 422 of file TabberUI.c.

423 {
424 return m_SelectedIndex;
425 }

◆ GetSelectedPlayer()

PlayerListEntryScriptedWidget ScriptedWidgetEventHandler::GetSelectedPlayer ( )
inlineprotected

Definition at line 216 of file PlayerListScriptedWidget.c.

217 {
218 return m_SelectedEntry;
219 }
PlayerListEntryScriptedWidget m_SelectedEntry

References m_SelectedEntry.

◆ GetServerID()

string ScriptedWidgetEventHandler::GetServerID ( )
inlineprivate

Definition at line 533 of file ServerBrowserEntry.c.

534 {
535 return m_ServerData.m_Id;
536 }

◆ GetTab()

Widget ScriptedWidgetEventHandler::GetTab ( int index)
inlineprotected

Definition at line 186 of file TabberUI.c.

187 {
188 return m_Tabs.Get(index);
189 }

◆ GetTabCount()

int ScriptedWidgetEventHandler::GetTabCount ( )
inlineprotected

Definition at line 191 of file TabberUI.c.

192 {
193 return m_Tabs.Count();
194 }

◆ GetTimeString()

string ScriptedWidgetEventHandler::GetTimeString ( float total_time)
protected

DEPRECATED

◆ GetUID()

string ScriptedWidgetEventHandler::GetUID ( )
inlineprotected

Definition at line 62 of file PlayerListEntryScriptedWidget.c.

References m_UID.

◆ GetValueString()

string ScriptedWidgetEventHandler::GetValueString ( float total_value,
bool show_decimals = false )
inlineprotected

Definition at line 101 of file MainMenuStats.c.

102 {
103 if (total_value > 0)
104 {
105 string out_string;
106
108 string number_str = total_value_int.ToString();
109
110 //number
111 if (total_value >= 1000)
112 {
113 int count;
114 int first_length = number_str.Length() % 3; //calculate position of the first separator
115 if (first_length > 0)
116 count = 3 - first_length;
117
118 for (int i = 0; i < number_str.Length(); ++i)
119 {
120 out_string += number_str.Get(i);
121 count ++;
122
123 if (count >= 3)
124 {
125 out_string += " "; //separator
126 count = 0;
127 }
128 }
129 }
130 else
132
133 //decimals
134 if (show_decimals)
135 {
136 string total_value_str = total_value.ToString();
137 int decimal_idx = total_value_str.IndexOf(".");
138
139 if (decimal_idx > -1)
140 {
141 out_string.TrimInPlace();
143 }
144 }
145
146 return out_string;
147 }
148
149 return "0";
150 }

Referenced by GetDistanceString(), and UpdateStats().

◆ GetWidget()

Widget ScriptedWidgetEventHandler::GetWidget ( )
inlineprotected

Definition at line 58 of file ModsMenuDetailedEntry.c.

59 {
60 return m_Root;
61 }

References m_Root.

◆ GetWidgetArray()

array< Widget > ScriptedWidgetEventHandler::GetWidgetArray ( )
inlineprivate

Definition at line 87 of file ProfileOptionsUI.c.

88 {
89 return m_widget_array;
90 }

◆ HasItem()

bool ScriptedWidgetEventHandler::HasItem ( InventoryItem item)
inlineprotected

Definition at line 695 of file InventoryGrid.c.

696 {
697 return m_Items.Contains(item);
698 }

◆ HasItemQuantity()

int ScriptedWidgetEventHandler::HasItemQuantity ( InventoryItem item)
inlineprivate

Definition at line 25 of file InventoryGrid.c.

25{}

◆ Hide() [1/2]

void ScriptedWidgetEventHandler::Hide ( )
inlineprivate

Definition at line 112 of file ContextMenu.c.

113 {
114 m_context_menu_root_widget.Show(false);
115
116 Clear();
117 }

References Clear().

Referenced by OnMouseButtonDown(), and OnMouseLeave().

◆ Hide() [2/2]

void ScriptedWidgetEventHandler::Hide ( )
inlineprotected

Definition at line 112 of file CTObjectFollower.c.

113 {
114 m_FollowerRoot.Show(false);
115 }

◆ HideNewsfeed()

void ScriptedWidgetEventHandler::HideNewsfeed ( )
inlineprotected

Definition at line 59 of file MainMenuNewsfeed.c.

60 {
61 m_Root.Show(false);
62 }

References m_Root.

◆ HideOwnedSlotsTooltip()

void ScriptedWidgetEventHandler::HideOwnedSlotsTooltip ( )
inlineprotected

Definition at line 236 of file LayoutHolder.c.

237 {
238 if (m_TooltipOwner)
239 {
240 ItemManager.GetInstance().HideTooltipSlot();
241 m_TooltipOwner = false;
242 }
243 }
static ItemManager GetInstance()

References ItemManager::GetInstance().

◆ HideOwnedTooltip()

void ScriptedWidgetEventHandler::HideOwnedTooltip ( )
inlineprotected

Definition at line 227 of file LayoutHolder.c.

228 {
229 if (m_TooltipOwner)
230 {
231 ItemManager.GetInstance().HideTooltip();
232 m_TooltipOwner = false;
233 }
234 }

References ItemManager::GetInstance().

◆ HideStats()

void ScriptedWidgetEventHandler::HideStats ( )
inlineprivate

Definition at line 50 of file MainMenuStats.c.

51 {
52 m_Root.Show(false);
53 }

References m_Root.

◆ HideTooltip() [1/2]

void ScriptedWidgetEventHandler::HideTooltip ( )
inlineprotected

Definition at line 156 of file ModsMenuDetailed.c.

157 {
158 if (m_TooltipTimer)
159 m_TooltipTimer.Stop();
160
162 if (m_Tooltip)
163 m_Tooltip.HideTooltip();
164 }

◆ HideTooltip() [2/2]

void ScriptedWidgetEventHandler::HideTooltip ( )
inlineprotected

Definition at line 30 of file ModsMenuTooltip.c.

31 {
32 m_Root.Show(false);
33 m_Root.SetPos(0, 0);
34 m_Text.SetText("");
35 }

References m_Root, and m_Text.

◆ Highlight()

void ScriptedWidgetEventHandler::Highlight ( ModInfo mod_ref)
inlineprotected

Definition at line 68 of file ModsMenuDetailed.c.

69 {
70 if (m_Highlighted)
71 {
72 m_Data.Get(m_Highlighted).Deselect();
73 m_Content.Update();
74 }
75
77 if (m_Highlighted)
78 {
79 m_Data.Get(m_Highlighted).Select();
80 m_Content.Update();
82 }
83 }
void ScrollToMod(ModInfo mod_ref)
ref map< ref ModInfo, ref ModsMenuDetailedEntry > m_Data

References string::Get(), m_Data, and ScrollToMod().

Referenced by Close(), and HighlightFirst().

◆ HighlightFirst()

void ScriptedWidgetEventHandler::HighlightFirst ( )
inlineprotected

Definition at line 63 of file ModsMenuDetailed.c.

64 {
65 Highlight(m_Data.GetKey(0));
66 }

References Highlight(), and m_Data.

◆ HudDebugEventHandler()

void ScriptedWidgetEventHandler::HudDebugEventHandler ( HudDebug hud_debug)
inlineprivate

Definition at line 8 of file HudDebug.c.

9 {
11 }

◆ Init() [1/6]

void ScriptedWidgetEventHandler::Init ( )
inlineprotected

Definition at line 46 of file MainMenuPromo.c.

47 {
49 m_StoreButton = m_Root.FindAnyWidget("dlc_openStore");
51 m_VideoWidget = VideoWidget.Cast(m_Root.FindAnyWidget("dlc_Video"));
52 m_VideoWidget.Show(false);
53 m_DlcPromotionImage = ImageWidget.Cast(m_Root.FindAnyWidget("dlc_ImageMain"));
54 m_DlcPromotionImage.Show(true);
55 m_BannerFrame = m_Root.FindAnyWidget("dlc_BannerFrame");//dlc_BannerFrame //dlc_BannerFrameVideo
57 m_TitleTextDlc = TextWidget.Cast(m_Root.FindAnyWidget("dlc_title"));
58 m_DescriptionTextDlc = MultilineTextWidget.Cast(m_Root.FindAnyWidget("dlc_Description"));
59 m_DescriptionTextDlc.SetLineBreakingOverride(LinebreakOverrideMode.LINEBREAK_WESTERN);
61
63 //StartVideo();
64 }
void BannerHandlerBase(Widget parent)
MultilineTextWidget m_DescriptionTextDlc
ref BannerHandlerBase m_BannerHandler

References BannerHandlerBase(), m_Root, m_Root, SetPlatformSpecifics(), and UpdateAllPromotionInfo().

Referenced by MainMenuDlcHandlerBase(), OnWidgetScriptInit(), UiHintPanel(), and VideoPlayer().

◆ Init() [2/6]

void ScriptedWidgetEventHandler::Init ( )
inlineprotected

Definition at line 42 of file TabberUI.c.

43 {
44 int x, y;
47 m_CanSwitch = true;
48 m_TabsCount = 0;
49
50 Widget tab_controls = m_Root.FindAnyWidget("Tab_Control_Container");
51 if (tab_controls)
52 {
53 Widget tab_child = tab_controls.GetChildren();
54
55 while (tab_child)
56 {
58 tab_child = tab_child.GetSibling();
59 }
60
61 for (int i = 0; i < m_TabsCount; i++)
62 {
63 Widget tab_control = tab_controls.FindAnyWidget("Tab_Control_" + i);
64 Widget tab_widget = m_Root.FindAnyWidget("Tab_" + i);
66 {
67 tab_control.SetHandler(this);
69 m_Tabs.Insert(i, tab_widget);
70 }
71 else
72 Error("Tabber could not find correctly named tab or control at index " + i);
73 }
74
76#ifdef PLATFORM_CONSOLE
78#endif
79
81
82 m_InitTimer.Run(0.01, this, "AlignTabbers");
83 }
84
85 GetGame().GetMission().GetOnInputPresetChanged().Insert(OnInputPresetChanged);
86 GetGame().GetMission().GetOnInputDeviceChanged().Insert(OnInputDeviceChanged);
87
88 OnInputDeviceChanged(GetGame().GetInput().GetCurrentInputDevice());
89 }
void OnInputDeviceChanged(EInputDeviceType pInputDeviceType)
void SelectTabControl(int index)
Definition TabberUI.c:305
void Error(string err)
Messagebox with error message.
Definition EnDebug.c:90

References Error(), GetGame(), GetInput(), GetScreenSize(), m_Root, OnInputDeviceChanged(), OnInputPresetChanged(), UpdateControlsElements(), x, and y.

◆ Init() [3/6]

void ScriptedWidgetEventHandler::Init ( )
inlineprivate

Definition at line 41 of file VideoPlayer.c.

42 {
43 m_PlayButton = ButtonWidget.Cast(m_Root.FindAnyWidget("vp_PlayButton"));
44 m_PauseButton = ButtonWidget.Cast(m_Root.FindAnyWidget("vp_PauseButton"));
45 m_StopButton = ButtonWidget.Cast(m_Root.FindAnyWidget("vp_StopButton"));
46
47 m_OnceButton = ButtonWidget.Cast(m_Root.FindAnyWidget("vp_OnceButton"));
48 m_RepeatButton = ButtonWidget.Cast(m_Root.FindAnyWidget("vp_RepeatButton"));
49
50 m_LoadButton = ButtonWidget.Cast(m_Root.FindAnyWidget("vp_LoadButton"));
51 m_LoadVideo = GridSpacerWidget.Cast(m_Root.FindAnyWidget("vp_LoadVideo"));
52 m_LoadVideo.Show(false);
53
54 m_Progress = SliderWidget.Cast(m_Root.FindAnyWidget("vp_Progress"));
55 m_Progress.SetCurrent(0);
56
57 m_CurrentTime = TextWidget.Cast(m_Root.FindAnyWidget("vp_CurrentTime"));
58 m_TotalTime = TextWidget.Cast(m_Root.FindAnyWidget("vp_TotalTime"));
59
60 m_Buffering = ImageWidget.Cast(m_Root.FindAnyWidget("vp_Buffering"));
61 m_Buffering.Show(false);
62 m_VideoWidget = VideoWidget.Cast(m_Root.FindAnyWidget("vp_Video"));
63
64 m_VideoWidget.SetCallback(VideoCallback.ON_PLAY, OnPlaybackStart);
65 m_VideoWidget.SetCallback(VideoCallback.ON_PAUSE, OnPlaybackStop);
66 m_VideoWidget.SetCallback(VideoCallback.ON_STOP, OnPlaybackStop);
67 m_VideoWidget.SetCallback(VideoCallback.ON_END, OnPlaybackStop);
68 m_VideoWidget.SetCallback(VideoCallback.ON_LOAD, OnPlaybackStop);
69 m_VideoWidget.SetCallback(VideoCallback.ON_SEEK, UpdateCurrentTime);
70 m_VideoWidget.SetCallback(VideoCallback.ON_BUFFERING_START, OnBufferingStart);
71 m_VideoWidget.SetCallback(VideoCallback.ON_BUFFERING_END, OnBufferingEnd);
72 }
VideoCallback
Definition EnWidgets.c:531

References m_Root.

◆ Init() [4/6]

void ScriptedWidgetEventHandler::Init ( )
inlineprivate

Definition at line 43 of file ProfileOptionsUI.c.

44 {
45 int state;
47
49 {
51 button.SetState(g_Game.GetProfileOption(m_profileOption) == state); //works for bool values only!!!
52 }
53 }

References Class::CastTo(), and g_Game.

◆ Init() [5/6]

void ScriptedWidgetEventHandler::Init ( DayZGame game)
inlineprotected

Definition at line 51 of file UiHintPanel.c.

52 {
53 //as this class is now also being instantiated from within the DayZGame CTOR, where GetGame() does not work yet, we need a way to pass the game instance from DayZGame CTOR
54 //however for modding legacy support purposes, this was done without modifying the CTOR signature with the addition of the Init method,
55 //in order to keep compatibility with existing MODs, there is still a way to instantiate this class properly even without calling Init from the outside
56
57 if (m_Initialized)
58 return;
59 if (!game)//is null when instantiated from DayZGame during loading before calling Init explicitly
60 return;
61 m_Initialized = true;
62
63 m_Game = game;
64 // Load Json File
66 // If load successful
67 if (m_ContentList)
68 {
69 // Build the layout
71 // Get random page index
73 // Populate the layout with data
75 // Start the slideshow
77 }
78 else
79 ErrorEx("Could not create the hint panel. The data are missing!");
80 }
void BuildLayout(Widget parent_widget)
Definition UiHintPanel.c:93
ref array< ref HintPage > m_ContentList
Definition UiHintPanel.c:25

References BuildLayout(), ErrorEx, LoadContentList(), m_ContentList, m_Game, m_Initialized, m_ParentWidget, PopulateLayout(), RandomizePageIndex(), and StartSlideshow().

◆ Init() [6/6]

void ScriptedWidgetEventHandler::Init ( Widget layoutRoot,
bool builtIn = false )
inlineprivate

Definition at line 28 of file ContextMenu.c.

29 {
32 {
33 m_context_menu_root_widget = GetGame().GetWorkspace().CreateWidgets("gui/layouts/day_z_inventory_context_menu.layout", layoutRoot);
34 m_context_menu_panel_widget = m_context_menu_root_widget.FindAnyWidget("PanelWidget");
36 m_context_menu_root_widget.SetHandler(this);
37 }
38 }

References GetGame().

◆ InitDependentOptionsVisibility() [1/4]

void ScriptedWidgetEventHandler::InitDependentOptionsVisibility ( )
inlineprotected

Definition at line 614 of file OptionsMenuControls.c.

615 {
616 }

Referenced by OptionsMenuGame().

◆ InitDependentOptionsVisibility() [2/4]

void ScriptedWidgetEventHandler::InitDependentOptionsVisibility ( )
inlineprotected

Definition at line 368 of file OptionsMenuGame.c.

369 {
370#ifdef PLATFORM_CONSOLE
371 m_QuickbarButton.Show(false);
372#endif
373 }

◆ InitDependentOptionsVisibility() [3/4]

void ScriptedWidgetEventHandler::InitDependentOptionsVisibility ( )
inlineprivate

Definition at line 304 of file OptionsMenuSounds.c.

305 {
306 }

◆ InitDependentOptionsVisibility() [4/4]

void ScriptedWidgetEventHandler::InitDependentOptionsVisibility ( )
inlineprotected

Definition at line 341 of file OptionsMenuVideo.c.

342 {
343 }

◆ InitPresets()

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

Definition at line 41 of file KeybindingsGroup.c.

42 {
43 Widget kb_root = parent.FindAnyWidget("keyboard_dropown");
44
45 string profile_text;
46 input.GetProfileName(input.GetCurrentProfile(), profile_text);
47
49
50 m_KBDropdown.m_OnSelectItem.Insert(OnSelectKBPreset);
51
52 for (int i = 0; i < input.GetProfilesCount(); i++)
53 {
54 input.GetProfileName(i, profile_text);
55 m_KBDropdown.AddElement(profile_text);
56 }
57
58 kb_root.Update();
59 }
void DropdownPrefab(Widget root, string text="")
ref DropdownPrefab m_KBDropdown

References DropdownPrefab().

Referenced by KeybindingsGroup().

◆ InitSelectors()

void ScriptedWidgetEventHandler::InitSelectors ( )
inlineprotected

Definition at line 142 of file OptionsMenuVideo.c.

143 {
144#ifdef PLATFORM_CONSOLE
145#ifdef PLATFORM_PS4
146 array<string> opt1 = { "#STR_ENABLED", "#STR_DISABLED", "#STR_SELECTIVE" };
147 m_FlipModeSelector = new OptionSelectorMultistate(m_Root.FindAnyWidget("vsync_setting_option"), m_FlipModeOption.GetIndex(), this, false, opt1);
148#endif
149#else
150 array<string> opt1 = { "#options_controls_disabled", "#options_controls_enabled" };
151 array<string> opt2 = { "#options_video_fullscreen", "#options_video_windowed" };
152 array<string> opt3 = { "#options_video_low", "#options_video_medium", "#options_video_high" };
153 array<string> opt4 = { "#options_video_poor", "#options_video_low", "#options_video_medium", "#options_video_high", "#options_video_extreme" };
154 array<string> opt41 = { "#options_video_low", "#options_video_medium", "#options_video_high", "#options_video_extreme" };
155 array<string> opt5 = { "#options_video_poor", "#options_video_low", "#options_video_medium", "#options_video_high", "#options_video_extreme", "#options_video_custom" };
156 array<string> opt6 = { "#options_controls_disabled", "#options_video_low", "#options_video_medium", "#options_video_high", "#options_video_extreme" };
157 array<string> opt7 = { "#options_controls_disabled", "#options_video_low", "#options_video_medium", "#options_video_high" };
159 array<string> opt9 = { "#options_controls_disabled", "#options_video_low", "#options_video_high" };
160
161 for (int i = 0; i < m_ResolutionOption.GetItemsCount(); i++)
162 {
163 string opt_text;
164 m_ResolutionOption.GetItemText(i, opt_text);
165 opt8.Insert(opt_text);
166 }
167
168 //Overall
169 m_OverallQualitySelector = new OptionSelectorMultistate(m_Root.FindAnyWidget("overall_quality_setting_option"), m_OverallQualityOption.GetIndex(), this, false, opt5);
170
171 //Screen
172 m_DisplayModeSelector = new OptionSelectorMultistate(m_Root.FindAnyWidget("display_mode_setting_option"), m_DisplayModeOption.GetIndex(), this, false, opt2);
173 m_ResolutionSelector = new OptionSelectorMultistate(m_Root.FindAnyWidget("resolution_setting_option"), m_ResolutionOption.GetIndex(), this, false, opt8);
174 m_BrightnessSelector = new OptionSelectorSlider(m_Root.FindAnyWidget("brightness_setting_option"), m_BrightnessOption.ReadValue(), this, false, m_BrightnessOption.GetMin(), m_BrightnessOption.GetMax());
175 m_VSyncSelector = new OptionSelectorMultistate(m_Root.FindAnyWidget("vsync_setting_option"), m_VSyncOption.GetIndex(), this, false, opt1);
176 //m_ColorDepthSelector = new OptionSelectorMultistate( m_Root.FindAnyWidget( "color_depth_setting_option" ), m_ColorDepthOption.GetIndex(), this, false, opt3 );
177
178 //Scene
179 m_ObjectDetailSelector = new OptionSelectorMultistate(m_Root.FindAnyWidget("object_detail_setting_option"), m_ObjectDetailOption.GetIndex(), this, false, opt4);
180 m_TerrainDetailSelector = new OptionSelectorMultistate(m_Root.FindAnyWidget("terrain_detail_setting_option"), m_TerrainDetailOption.GetIndex(), this, false, opt4);
181 m_TextureDetailSelector = new OptionSelectorMultistate(m_Root.FindAnyWidget("texture_detail_setting_option"), m_TextureDetailOption.GetIndex(), this, false, opt4);
182 m_ShadowDetailSelector = new OptionSelectorMultistate(m_Root.FindAnyWidget("shadow_detail_setting_option"), m_ShadowDetailOption.GetIndex(), this, false, opt4);
183
184 //Rendering
185 m_TextureFilteringSelector = new OptionSelectorMultistate(m_Root.FindAnyWidget("texture_filtering_setting_option"), m_TextureFilteringOption.GetIndex(), this, false, opt3);
186 m_TerrainSurfaceDetailSelector = new OptionSelectorMultistate(m_Root.FindAnyWidget("terrain_surface_detail_setting_option"), m_TerrainSurfaceDetailOption.GetIndex(), this, false, opt41);
187
188 m_PPAASelector = new OptionSelectorMultistate(m_Root.FindAnyWidget("ppaa_setting_option"), m_PPAAOption.GetIndex(), this, false, opt6);
189 m_HWAASelector = new OptionSelectorMultistate(m_Root.FindAnyWidget("hwaa_setting_option"), m_HWAAOption.GetIndex(), this, false, opt7);
190 m_ATOCSelector = new OptionSelectorMultistate(m_Root.FindAnyWidget("atoc_setting_option"), m_ATOCOption.GetIndex(), this, false, opt1);
191 m_AOSelector = new OptionSelectorMultistate(m_Root.FindAnyWidget("ao_setting_option"), m_AOOption.GetIndex(), this, false, opt6);
192 m_PPQualitySelector = new OptionSelectorMultistate(m_Root.FindAnyWidget("pp_setting_option"), m_PPQualityOption.GetIndex(), this, false, opt3);
193 m_SSRQualitySelector = new OptionSelectorMultistate(m_Root.FindAnyWidget("ssr_setting_option"), m_SSRQualityOption.GetIndex(), this, false, opt9);
194#endif
195
196#ifdef PLATFORM_CONSOLE
197#ifdef PLATFORM_PS4
198 m_FlipModeSelector.m_OptionChanged.Insert(OnFlipModeChanged);
199#endif
200#else
201 //Overall
203
204 //Screen
205 m_DisplayModeSelector.m_OptionChanged.Insert(OnDisplayModeChanged);
206 m_ResolutionSelector.m_OptionChanged.Insert(OnResolutionChanged);
207 m_BrightnessSelector.m_OptionChanged.Insert(OnBrightnessChanged);
208 m_VSyncSelector.m_OptionChanged.Insert(OnVSyncChanged);
209 //m_ColorDepthSelector.m_OptionChanged.Insert( OnColorDepthChanged );
210
211 //Scene
212 m_ObjectDetailSelector.m_OptionChanged.Insert(OnObjectDetailChanged);
213 m_TerrainDetailSelector.m_OptionChanged.Insert(OnTerrainDetailChanged);
214 m_TextureDetailSelector.m_OptionChanged.Insert(OnTextureDetailChanged);
215 m_ShadowDetailSelector.m_OptionChanged.Insert(OnShadowDetailChanged);
216
217 //Rendering
220 m_PPAASelector.m_OptionChanged.Insert(OnPPAAChanged);
221 m_HWAASelector.m_OptionChanged.Insert(OnHWAAChanged);
222 m_ATOCSelector.m_OptionChanged.Insert(OnATOCChanged);
223 m_AOSelector.m_OptionChanged.Insert(OnAOChanged);
224 m_PPQualitySelector.m_OptionChanged.Insert(OnPPQualityChanged);
225 m_SSRQualitySelector.m_OptionChanged.Insert(OnSSRQualityChanged);
226#endif
227 }
ref ListOptionsAccess m_TextureDetailOption
void OnTerrainDetailChanged(int value)
ref OptionSelectorMultistate m_TextureFilteringSelector
ref OptionSelectorMultistate m_ResolutionSelector
ref OptionSelectorMultistate m_ObjectDetailSelector
void OnResolutionChanged(int value)
ref OptionSelectorMultistate m_TerrainSurfaceDetailSelector
void OnDisplayModeChanged(int value)
ref OptionSelectorMultistate m_HWAASelector
ref OptionSelectorMultistate m_ShadowDetailSelector
ref ListOptionsAccess m_AOOption
ref ListOptionsAccess m_TerrainSurfaceDetailOption
ref OptionSelectorMultistate m_AOSelector
ref OptionSelectorMultistate m_DisplayModeSelector
void OnBrightnessChanged(float value)
void OnObjectDetailChanged(int value)
ref ListOptionsAccess m_DisplayModeOption
ref ListOptionsAccess m_ObjectDetailOption
ref OptionSelectorMultistate m_ATOCSelector
ref OptionSelectorMultistate m_PPQualitySelector
ref ListOptionsAccess m_PPAAOption
void OnTextureFilteringChanged(int value)
ref OptionSelectorMultistate m_VSyncSelector
ref ListOptionsAccess m_TextureFilteringOption
ref ListOptionsAccess m_SSRQualityOption
ref OptionSelectorMultistate m_SSRQualitySelector
ref OptionSelectorMultistate m_OverallQualitySelector
ref OptionSelectorMultistate m_TerrainDetailSelector
ref ListOptionsAccess m_ResolutionOption
void OnSSRQualityChanged(int value)
ref ListOptionsAccess m_PPQualityOption
ref OptionSelectorMultistate m_TextureDetailSelector
void OnOverallQualityChanged(int value)
void OnShadowDetailChanged(int value)
void OnTerrainSurfaceDetailChanged(int value)
void OnVSyncChanged(float value)
ref OptionSelectorSlider m_BrightnessSelector
ref OptionSelectorMultistate m_PPAASelector
ref ListOptionsAccess m_HWAAOption
ref ListOptionsAccess m_VSyncOption
ref ListOptionsAccess m_ShadowDetailOption
ref ListOptionsAccess m_TerrainDetailOption
ref ListOptionsAccess m_OverallQualityOption
ref ListOptionsAccess m_ATOCOption
void OnTextureDetailChanged(int value)
ref NumericOptionsAccess m_BrightnessOption

References m_Root.

Referenced by OptionsMenuVideo().

◆ InitVideoLoading()

void ScriptedWidgetEventHandler::InitVideoLoading ( )
inlineprivate

Definition at line 74 of file VideoPlayer.c.

75 {
76 string path = "video\\*";
77
78 string fileName;
80
82
83 if (fileName != "")
85
86 while (FindNextFile(handle, fileName, fileAttr))
88
89 CloseFindFile(handle);
90 }
void CreateVideoLoadingEntry(string entryName)
Definition VideoPlayer.c:92
proto native void CloseFindFile(FindFileHandle handle)
enum FindFileFlags FindFile(string pattern, out string fileName, out FileAttr fileAttributes, FindFileFlags flags)
FindFileFlags
Definition EnSystem.c:514
proto bool FindNextFile(FindFileHandle handle, out string fileName, out FileAttr fileAttributes)
FileAttr
Definition EnSystem.c:506

References CloseFindFile(), CreateVideoLoadingEntry(), FindFile(), FindNextFile(), and path.

Referenced by ToggleVideoSelection().

◆ InspectItem()

void ScriptedWidgetEventHandler::InspectItem ( EntityAI item)
inlineprotected

Definition at line 199 of file LayoutHolder.c.

200 {
201 InventoryMenu menu = InventoryMenu.Cast(GetGame().GetUIManager().FindMenu(MENU_INVENTORY));
202 InspectMenuNew inspect_menu = InspectMenuNew.Cast(menu.EnterScriptedMenu(MENU_INSPECT));
203 if (inspect_menu)
204 {
205 GetGame().GetMission().GetHud().ShowHudUI(false);
206 GetGame().GetMission().GetHud().ShowQuickbarUI(false);
207 inspect_menu.SetItem(item);
208 }
209 }
void InventoryMenu()
const int MENU_INSPECT
Definition constants.c:169
const int MENU_INVENTORY
Definition constants.c:170

References GetGame(), InventoryMenu(), MENU_INSPECT, and MENU_INVENTORY.

◆ InventoryGrid()

void ScriptedWidgetEventHandler::InventoryGrid ( )
inlineprotected

Definition at line 59 of file InventoryGrid.c.

◆ IsActive()

bool ScriptedWidgetEventHandler::IsActive ( )
inlineprotected

Definition at line 155 of file LayoutHolder.c.

156 {
157 return m_IsActive;
158 }

References m_IsActive.

◆ IsAlternateChanged() [1/2]

bool ScriptedWidgetEventHandler::IsAlternateChanged ( )
inlineprotected

Definition at line 50 of file KeybindingElement.c.

51 {
53 }

References m_IsAlternateEdited.

◆ IsAlternateChanged() [2/2]

bool ScriptedWidgetEventHandler::IsAlternateChanged ( )
inlineprotected

Definition at line 49 of file KeybindingElementNew.c.

50 {
52 }

References m_IsAlternateEdited.

◆ IsChanged() [1/7]

bool ScriptedWidgetEventHandler::IsChanged ( )
inlineprotected

Definition at line 45 of file KeybindingElement.c.

46 {
47 return m_IsEdited;
48 }

References m_IsEdited.

◆ IsChanged() [2/7]

bool ScriptedWidgetEventHandler::IsChanged ( )
inlineprotected

Definition at line 44 of file KeybindingElementNew.c.

45 {
46 return m_IsEdited;
47 }

References m_IsEdited.

◆ IsChanged() [3/7]

bool ScriptedWidgetEventHandler::IsChanged ( )
inlineprotected

Definition at line 159 of file KeybindingsGroup.c.

160 {
162 {
163 if (element.IsChanged() || element.IsAlternateChanged())
164 return true;
165 }
166 return false;
167 }

References m_KeyWidgets.

◆ IsChanged() [4/7]

bool ScriptedWidgetEventHandler::IsChanged ( )
inlineprotected

Definition at line 334 of file OptionsMenuControls.c.

335 {
336#ifdef PLATFORM_CONSOLE
337 return ((m_KeyboardSelector.IsEnabled() && m_KeyboardOption.GetIndex() == 0) || (!m_KeyboardSelector.IsEnabled() && m_KeyboardOption.GetIndex() == 1));
338#else
339 return false;
340#endif
341 }

◆ IsChanged() [5/7]

bool ScriptedWidgetEventHandler::IsChanged ( )
inlineprotected

Definition at line 169 of file OptionsMenuGame.c.

170 {
171 bool universal = (m_ShowHUDSelector.GetValue() != g_Game.GetProfileOptionBool(EDayZProfilesOptions.HUD) || m_ShowCrosshairSelector.GetValue() != g_Game.GetProfileOptionBool(EDayZProfilesOptions.CROSSHAIR));
172 universal = universal || m_HUDBrightnessSelector.GetValue() != g_Game.GetProfileOptionFloat(EDayZProfilesOptions.HUD_BRIGHTNESS);
173 universal = universal || (m_ShowGameSelector.GetValue() != g_Game.GetProfileOptionBool(EDayZProfilesOptions.GAME_MESSAGES) || m_ShowAdminSelector.GetValue() != g_Game.GetProfileOptionBool(EDayZProfilesOptions.ADMIN_MESSAGES));
174 universal = universal || m_ShowPlayerSelector.GetValue() != g_Game.GetProfileOptionBool(EDayZProfilesOptions.PLAYER_MESSAGES);
175 universal = universal || m_BleedingIndication.GetValue() != g_Game.GetProfileOptionBool(EDayZProfilesOptions.BLEEDINGINDICATION);
176 universal = universal || m_ConnectivityInfo.GetValue() != g_Game.GetProfileOptionBool(EDayZProfilesOptions.CONNECTIVITY_INFO);
177 universal = universal || m_LanguageOption.IsChanged();
178
179#ifdef PLATFORM_CONSOLE
180 return universal;
181#else
182 return (universal || m_ShowQuickbarSelector.GetValue() != g_Game.GetProfileOptionBool(EDayZProfilesOptions.QUICKBAR) || m_ShowServerInfoSelector.GetValue() != g_Game.GetProfileOptionBool(EDayZProfilesOptions.SERVERINFO_DISPLAY));
183#endif
184 }

References g_Game.

◆ IsChanged() [6/7]

bool ScriptedWidgetEventHandler::IsChanged ( )
inlineprivate

Definition at line 236 of file OptionsMenuSounds.c.

237 {
238 return false;
239 }

◆ IsChanged() [7/7]

bool ScriptedWidgetEventHandler::IsChanged ( )
inlineprotected

Definition at line 253 of file OptionsMenuVideo.c.

254 {
255 return false;
256 }

◆ IsDisplayable()

bool ScriptedWidgetEventHandler::IsDisplayable ( )
inlineprotected

Definition at line 170 of file LayoutHolder.c.

171 {
172 return true;
173 }

◆ IsEmpty()

bool ScriptedWidgetEventHandler::IsEmpty ( )
inlineprotected

Definition at line 64 of file PlayerListScriptedWidget.c.

65 {
66 return (m_Entries.Count() == 0);
67 }

◆ IsEnteringKeyBind()

bool ScriptedWidgetEventHandler::IsEnteringKeyBind ( )
inlineprotected

Definition at line 112 of file KeybindingsGroup.c.

113 {
115 }

◆ IsFocusable() [1/5]

bool ScriptedWidgetEventHandler::IsFocusable ( Widget w)
inlineprotected

Definition at line 156 of file CTKeyframe.c.

157 {
158 if (w)
159 return (w == m_InterpTimeWidget || w == m_TotalTimeWidget || w == m_FOVWidget || w == m_DOFWidget);
160 return false;
161 }

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

◆ IsFocusable() [2/5]

bool ScriptedWidgetEventHandler::IsFocusable ( Widget w)
inlineprotected

Definition at line 172 of file MainMenuNewsfeed.c.

◆ IsFocusable() [3/5]

bool ScriptedWidgetEventHandler::IsFocusable ( Widget w)
inlineprotected

Definition at line 304 of file OptionsMenuControls.c.

305 {
306 return w && (w.GetFlags() & ~WidgetFlags.NOFOCUS);
307 }

◆ IsFocusable() [4/5]

bool ScriptedWidgetEventHandler::IsFocusable ( Widget w)
inlineprotected

Definition at line 26 of file OptionSelectorBase.c.

27 {
28 if (w)
29 return w == m_Parent;
30 return false;
31 }

References m_Parent.

◆ IsFocusable() [5/5]

bool ScriptedWidgetEventHandler::IsFocusable ( Widget w)
inlineprotected

Definition at line 248 of file ServerBrowserEntry.c.

249 {
250 if (w)
251 return (w == m_Root || w == m_Favorite || w == m_Expand || w == m_ServerModsExpand);
252
253 return false;
254 }

References m_Favorite, and m_Root.

◆ IsGloballyMuted() [1/2]

bool ScriptedWidgetEventHandler::IsGloballyMuted ( )
inlineprotected

Definition at line 72 of file PlayerListEntryScriptedWidget.c.

References m_GlobalMute.

◆ IsGloballyMuted() [2/2]

bool ScriptedWidgetEventHandler::IsGloballyMuted ( string UID)
inlineprotected

Definition at line 197 of file PlayerListScriptedWidget.c.

198 {
199 if (m_Entries && m_Entries.Get(UID))
200 return m_Entries.Get(UID).IsGloballyMuted();
201 return false;
202 }

References UID.

◆ IsInfoPanelVisible()

bool ScriptedWidgetEventHandler::IsInfoPanelVisible ( )
inlineprotected

Definition at line 77 of file MainMenuPromo.c.

78 {
79 return m_Root.IsVisible();
80 }

References m_Root.

◆ IsLocalPlayer()

bool ScriptedWidgetEventHandler::IsLocalPlayer ( )
inlineprotected

Definition at line 181 of file PlayerListEntryScriptedWidget.c.

182 {
183 string local_uid;
184 if (GetGame().GetUserManager())
185 return GetGame().GetUserManager().GetSelectedUser().GetUid() == m_UID;
186 return false;
187 }

References GetGame(), and m_UID.

Referenced by OnDoubleClick(), PlayerListEntryScriptedWidget(), and ToggleMute().

◆ IsMuted() [1/2]

bool ScriptedWidgetEventHandler::IsMuted ( )
inlineprotected

Definition at line 67 of file PlayerListEntryScriptedWidget.c.

References m_Mute.

◆ IsMuted() [2/2]

bool ScriptedWidgetEventHandler::IsMuted ( string UID)
inlineprotected

Definition at line 190 of file PlayerListScriptedWidget.c.

191 {
192 if (m_Entries && m_Entries.Get(UID))
193 return m_Entries.Get(UID).IsMuted();
194 return false;
195 }

References UID.

◆ IsOnline()

bool ScriptedWidgetEventHandler::IsOnline ( )
inlineprotected

Definition at line 243 of file ServerBrowserEntry.c.

244 {
245 return m_IsOnline;
246 }

References m_IsOnline.

Referenced by OnClick(), OnDoubleClick(), Preview(), SetPing(), SetPopulationEx(), SetSlots(), and UpdateColors().

◆ IsOpen()

bool ScriptedWidgetEventHandler::IsOpen ( )
inlineprotected

Definition at line 53 of file ModsMenuDetailed.c.

54 {
55 return m_Root.IsVisible();
56 }

References m_Root.

◆ IsTime()

bool ScriptedWidgetEventHandler::IsTime ( float start_time,
float end_time )
inlineprotected

Definition at line 77 of file CTEvent.c.

78 {
80 {
81 if (m_EventTime <= end_time)
82 return true;
83 }
84 return false;
85 }

◆ IsValidPos()

bool ScriptedWidgetEventHandler::IsValidPos ( int index)
inlineprotected

Definition at line 234 of file InventoryGrid.c.

235 {
236 return (m_GridSize > index && index > -1);
237 }

Referenced by OnDoubleClick(), OnDrag(), OnDraggingOver(), OnDropReceived(), OnMouseButtonDown(), OnMouseButtonUp(), and OnMouseEnter().

◆ IsVisible() [1/2]

bool ScriptedWidgetEventHandler::IsVisible ( )
inlineprivate

Definition at line 120 of file ContextMenu.c.

121 {
122 return m_context_menu_root_widget.IsVisible();
123 }

◆ IsVisible() [2/2]

bool ScriptedWidgetEventHandler::IsVisible ( )
inlineprotected

Definition at line 175 of file LayoutHolder.c.

176 {
177 if (m_RootWidget)
178 return m_RootWidget.IsVisible();
179 return false;
180 }

References m_RootWidget.

◆ ItemActionsWidget()

void ScriptedWidgetEventHandler::ItemActionsWidget ( )
inlineprotected

Definition at line 33 of file ItemActionsWidget.c.

34 {
37 m_Single = null;
39 m_AM = null;
40
41 m_FadeTimer = new WidgetFadeTimer;
42 m_Faded = true;
43
44 m_HealthEnabled = true;
45 m_QuantityEnabled = true;
46
47 m_Hud = GetHud();
48 m_Hidden = true;
49
50 m_UseActionWrapper = GetUApi().GetInputByID(UAAction).GetPersistentWrapper();
51
52 GetGame().GetUpdateQueue(CALL_CATEGORY_GUI).Insert(Update);
53 GetGame().GetMission().GetOnInputPresetChanged().Insert(OnInputPresetChanged);
54 GetGame().GetMission().GetOnInputDeviceChanged().Insert(OnInputDeviceChanged);
55 }

References CALL_CATEGORY_GUI, GetGame(), GetHud(), GetUApi(), m_AM, m_Hud, OnInputDeviceChanged(), OnInputPresetChanged(), and Update().

◆ KeybindingElement()

void ScriptedWidgetEventHandler::KeybindingElement ( int key_index,
Widget parent,
KeybindingsGroup group )
inlineprotected

Definition at line 23 of file KeybindingElement.c.

24 {
25 m_Root = GetGame().GetWorkspace().CreateWidgets(GetLayoutName(), parent);
26 m_ElementName = TextWidget.Cast(m_Root.FindAnyWidget("setting_label"));
27 m_ElementModifier = TextWidget.Cast(m_Root.FindAnyWidget("modifier_label"));
28 m_PrimaryBindButton = ButtonWidget.Cast(m_Root.FindAnyWidget("primary_bind"));
29 m_AlternativeBindButton = ButtonWidget.Cast(m_Root.FindAnyWidget("alternative_bind"));
30 m_PrimaryClear = m_Root.FindAnyWidget("primary_clear");
31 m_AlternativeClear = m_Root.FindAnyWidget("alternative_clear");
32
33 m_Group = group;
35
36 Reload();
37 m_Root.SetHandler(this);
38 }

References GetGame(), GetLayoutName(), m_Root, and Reload().

Referenced by AddAction().

◆ KeybindingElementNew()

void ScriptedWidgetEventHandler::KeybindingElementNew ( int key_index,
Widget parent,
KeybindingsContainer group )
inlineprotected

Definition at line 22 of file KeybindingElementNew.c.

23 {
24 m_Root = GetGame().GetWorkspace().CreateWidgets(GetLayoutName(), parent);
25 m_ElementName = TextWidget.Cast(m_Root.FindAnyWidget("setting_label"));
26 m_ElementModifier = TextWidget.Cast(m_Root.FindAnyWidget("modifier_label"));
27 m_PrimaryBindButton = ButtonWidget.Cast(m_Root.FindAnyWidget("primary_bind"));
28 m_AlternativeBindButton = ButtonWidget.Cast(m_Root.FindAnyWidget("alternative_bind"));
29 m_PrimaryClear = m_Root.FindAnyWidget("primary_clear");
30 m_AlternativeClear = m_Root.FindAnyWidget("alternative_clear");
31
34
35 Reload();
36 m_Root.SetHandler(this);
37 }
KeybindingsContainer m_Container

References GetGame(), GetLayoutName(), m_Root, and Reload().

Referenced by array::AddElement().

◆ KeybindingsGroup()

void ScriptedWidgetEventHandler::KeybindingsGroup ( int index,
Input input,
Widget parent,
KeybindingsMenu menu )
inlineprotected

Definition at line 13 of file KeybindingsGroup.c.

14 {
16 m_Menu = menu;
17
18 string group_name;
19 input.GetActionGroupName(index, group_name);
20
21 m_Root = GetGame().GetWorkspace().CreateWidgets(GetLayoutName(), parent);
22 Widget subgroup = m_Root.FindAnyWidget("group_content");
23
24 // for( int i = 0; i < 1; i++ )
25 // {
26 AddSubgroup(/*index, */subgroup, input);
27 // }
28
29 InitPresets(index, m_Root.FindAnyWidget("group_header"), input);
30
31 subgroup.Update();
32
33 m_Root.SetHandler(this);
34 }
void InitPresets(int index, Widget parent, Input input)
void AddSubgroup(Widget parent, Input input)

References AddSubgroup(), GetGame(), GetLayoutName(), InitPresets(), m_Menu, and m_Root.

◆ KillVideo()

void ScriptedWidgetEventHandler::KillVideo ( )
inlineprotected

Definition at line 263 of file VideoPlayer.c.

264 {
265 m_VideoWidget.Unload();
266 }

◆ LayoutHolder()

void ScriptedWidgetEventHandler::LayoutHolder ( LayoutHolder parent)
inlineprotected

Definition at line 87 of file LayoutHolder.c.

88 {
89 m_Parent = parent;
90
94
95 m_TooltipOwner = false;
96
97 if (m_LayoutName != "")
98 {
99 m_MainWidget = GetGame().GetWorkspace().CreateWidgets(m_LayoutName, null, false);
100 m_MainWidget.Show(true, false);
101 }
102
104
105 if (m_ParentWidget)
106 {
107 m_ParentWidget.Show(true, false);
108 if (m_MainWidget)
109 m_ParentWidget.AddChild(m_MainWidget, false);
110 }
111
112 if (m_ImmedUpdate)
113 {
114 if (m_MainWidget)
115 m_MainWidget.Update();
116 }
117 }

References GetGame(), m_Parent, m_ParentWidget, m_RootWidget, and LayoutHolder::SetLayoutName().

◆ Lighten()

void ScriptedWidgetEventHandler::Lighten ( Widget w,
Widget enterW,
int x,
int y )
inlineprivate

Definition at line 772 of file ServerBrowserEntry.c.

773 {
774 float alpha = 0.3;
775
776 if (GetFocus() == w || m_Selected)
777 return;
778
779 if (w == m_Root && ((m_Favorite && enterW == m_Favorite) || (m_Expand && enterW == m_Expand)))
780 return;
781
782 m_Root.SetColor(ARGB(255, 0, 0, 0));
784 UpdateColors();
785
786 if (m_Index % 2)
787 alpha = 0;
788
789 m_Root.SetAlpha(alpha);
790 }
proto native Widget GetFocus()

References ARGB(), GetFocus(), m_Favorite, m_Root, SetPopulationEx(), and UpdateColors().

Referenced by Deselect(), OnFocusLost(), OnMouseLeave(), and UpdateEntry().

◆ LimitTextBoxCharacterCount()

bool ScriptedWidgetEventHandler::LimitTextBoxCharacterCount ( out string text,
int max_length )
inlineprotected

Limits the given text to 'max_length' character count. Returns true if any change was done to the input.

Definition at line 256 of file ServerBrowserFilterContainer.c.

257 {
258 int length = text.Length();
259 bool was_text_changed = false;
260
261 if (length > max_length)
262 {
263 text = text.Substring(0, max_length);
264 was_text_changed = true;
265 }
266
267 return was_text_changed;
268 }

Referenced by GenerateValidFilter(), and ProcessIntoIPAddress().

◆ LoadContentList()

void ScriptedWidgetEventHandler::LoadContentList ( )
inlineprotected

Definition at line 85 of file UiHintPanel.c.

References ErrorEx, m_ContentList, and m_DataPath.

Referenced by Init().

◆ LoadData() [1/2]

void ScriptedWidgetEventHandler::LoadData ( )
inlineprotected

Definition at line 89 of file ModsMenuDetailedEntry.c.

90 {
91 string picture = m_Data.GetPicture();
92 string logo = m_Data.GetLogoSmall();
93 string name = m_Data.GetName();
94 string description = m_Data.GetOverview();
95 string author = m_Data.GetAuthor();
96 string version = m_Data.GetVersion();
97 string action = m_Data.GetAction();
98
99 //Load Large Icon
100 if (picture != "")
101 m_IconBig.LoadImageFile(0, picture);
102 else if (logo != "")
103 m_IconBig.LoadImageFile(0, logo);
104 else
105 m_IconBig.LoadImageFile(0, ModInfo.DEFAULT_PICTURE);
106
107 //Load Small Icon
108 if (logo != "")
109 m_IconSmall.LoadImageFile(0, logo);
110 else if (picture != "")
111 m_IconSmall.LoadImageFile(0, picture);
112 else
113 m_IconSmall.LoadImageFile(0, ModInfo.DEFAULT_LOGO_SMALL);
114
115 if (name != "")
116 m_Name.SetText(name);
117
118 if (description != "")
119 m_Description.SetText(description);
120 else
122 m_Description.Update();
123 m_Detail.Update();
124
125 if (author != "")
126 {
127 m_Author.Show(true);
128 m_Author.SetText(author);
129 }
130
131 if (version != "")
132 {
133 m_Version.Show(true);
134 m_Version.SetText(version);
135 }
136
137#ifdef PLATFORM_WINDOWS
138 if (action != "")
139 m_ActionWebsite.Show(true);
140#endif
141
142 if (m_Data.GetIsDLC())
143 {
144 bool isOwned = m_Data.GetIsOwned();
145 m_Root.FindAnyWidget("ModOwnership").Show(true);
146 m_Root.FindAnyWidget("Owned").Show(isOwned);
147 m_Root.FindAnyWidget("Unowned").Show(!isOwned);
148 m_ActionPurchase.Show(true);
149 m_Version.Show(false);
150 }
151 }
static const string DEFAULT_PICTURE
Definition ModInfo.c:18
static const string DEFAULT_OVERVIEW
Definition ModInfo.c:22
static const string DEFAULT_LOGO_SMALL
Definition ModInfo.c:20

References ModInfo::DEFAULT_LOGO_SMALL, ModInfo::DEFAULT_OVERVIEW, ModInfo::DEFAULT_PICTURE, m_Data, m_Description, m_Name, m_Root, and name.

Referenced by LoadFilters(), ModsMenuDetailedEntry(), and ModsMenuSimpleEntry().

◆ LoadData() [2/2]

void ScriptedWidgetEventHandler::LoadData ( )
inlineprotected

Definition at line 30 of file ModsMenuSimpleEntry.c.

31 {
32 string logo = m_Data.GetLogo();
33 string logo_over = m_Data.GetLogoOver();
34
35 if (logo != "")
36 m_Icon.LoadImageFile(0, logo);
37 else
38 m_Icon.LoadImageFile(0, ModInfo.DEFAULT_LOGO);
39
40 if (logo_over != "")
41 m_Icon.LoadImageFile(1, logo_over);
42 else
43 m_Icon.LoadImageFile(1, ModInfo.DEFAULT_LOGO_OVER);
44 m_HasLogoOver = true;
45 }
static const string DEFAULT_LOGO
Definition ModInfo.c:19
static const string DEFAULT_LOGO_OVER
Definition ModInfo.c:21

References ModInfo::DEFAULT_LOGO, ModInfo::DEFAULT_LOGO_OVER, and m_Data.

◆ LoadEntries() [1/2]

void ScriptedWidgetEventHandler::LoadEntries ( array< ref ModInfo > data)
inlineprotected

Definition at line 166 of file ModsMenuDetailed.c.

167 {
168 foreach (ModInfo var : data)
169 {
171 m_Data.Insert(var, entry);
172 }
173
174 m_Content.Update();
175 float y_c = m_Scroll.GetContentHeight();
176 float x, y;
177 m_Content.GetScreenSize(x, y);
178 if (y > y_c)
179 m_Scroll.SetAlpha(1);
180 }
void ModsMenuDetailedEntry(ModInfo data, Widget parent, ModsMenuDetailed parent_menu)

References string::Insert(), m_Data, ModsMenuDetailedEntry(), x, and y.

Referenced by ModsMenuDetailed(), and ModsMenuSimple().

◆ LoadEntries() [2/2]

void ScriptedWidgetEventHandler::LoadEntries ( array< ref ModInfo > data)
inlineprotected

Definition at line 28 of file ModsMenuSimple.c.

29 {
31 int count = Math.Clamp(data.Count(), 0, MOD_DISPLAY_COUNT_MAX);
32
33 for (int i = 0; i < count; i++)
34 {
36 m_Data.Insert(data[i], entry);
37 }
38 }
void ModsMenuSimpleEntry(ModInfo data, int index, Widget parent, ModsMenuSimple parent_menu)
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(), string::Insert(), m_Data, m_Root, and ModsMenuSimpleEntry().

◆ LoadFilters()

void ScriptedWidgetEventHandler::LoadFilters ( )
inlineprotected

Definition at line 101 of file ServerBrowserFilterContainer.c.

102 {
103 string data;
104 if (m_Tab.GetTabType() == TabType.LAN || m_Tab.GetTabType() == TabType.FAVORITE)
105 return;
106
107 GetGame().GetProfileString("SB_Filter_" + m_Tab.GetTabType(), data);
108
109 m_Options.Clear();
110
111 if (data != "")
112 {
113 string errorMessage;
116 }
117
118 if (m_Options && m_Options.Count() >= 6)
119 {
120 m_SearchByName.SetText(m_Options.Get("m_SearchByName"));
121 m_DLCFilter.SetStringOption(m_Options.Get("m_DLCFilter"));
122 m_RegionFilter.SetStringOption(m_Options.Get("m_RegionFilter"), false);
123 m_PingFilter.SetStringOption(m_Options.Get("m_PingFilter"), false);
124 m_FriendsPlayingFilter.SetStringOption(m_Options.Get("m_FriendsPlayingFilter"), false);
125 m_PreviouslyPlayedFilter.SetStringOption(m_Options.Get("m_PreviouslyPlayedFilter"), false);
126 m_FullServerFilter.SetStringOption(m_Options.Get("m_FullServerFilter"), false);
127 m_ThirdPersonFilter.SetStringOption(m_Options.Get("m_ThirdPersonFilter"), false);
128 m_PasswordFilter.SetStringOption(m_Options.Get("m_PasswordFilter"), false);
129 m_WhitelistFilter.SetStringOption(m_Options.Get("m_WhitelistFilter"), false);
130
131#ifdef PLATFORM_CONSOLE
132 m_SortingFilter.SetStringOption(m_Options.Get("m_SortingFilter"), false);
133 m_KeyboardFilter.SetStringOption(m_Options.Get("m_KeyboardFilter"), false);
134#else
135 m_FavoritedFilter.SetStringOption(m_Options.Get("m_FavoritedFilter"), false);
136#endif
137
138 if (m_Options.Count() >= 12)
139 {
140#ifdef PLATFORM_WINDOWS
141#ifndef PLATFORM_CONSOLE
142 m_SearchByIP.SetText(m_Options.Get("m_SearchByIP"));
143 m_CharacterAliveFilter.SetStringOption(m_Options.Get("m_CharacterAliveFilter"), false);
144 m_VersionMatchFilter.SetStringOption(m_Options.Get("m_VersionMatchFilter"), false);
145#endif
146#endif
147 }
148 }
149 }
TabType
ref OptionSelectorMultistate m_SortingFilter
ref OptionSelectorMultistate m_CharacterAliveFilter

References ErrorEx, GetGame(), and LoadData().

Referenced by ServerBrowserFilterContainer().

◆ LoadPermissions()

void ScriptedWidgetEventHandler::LoadPermissions ( BiosPrivacyPermissionResultArray results)
inlineprotected

Definition at line 47 of file PlayerListEntryScriptedWidget.c.

48 {
50 {
51 if (result.m_Permission == EBiosPrivacyPermission.COMMUNICATE_VOICE)
52 {
53 m_GlobalMute = !result.m_IsAllowed;
54 if (result.m_IsAllowed && !m_Mute)
55 m_MuteIcon.Show(false);
56 else if (!result.m_IsAllowed || m_Mute)
57 m_MuteIcon.Show(true);
58 }
59 }
60 }
EBiosPrivacyPermission
EBiosPrivacyPermission represents possible privacy permissions.
BiosPrivacyPermissionResult represents the per permission result of the GetPermissionsAsync reqeust.

◆ LoadVideo()

void ScriptedWidgetEventHandler::LoadVideo ( string videoPath)
inlineprotected

Definition at line 214 of file VideoPlayer.c.

215 {
216 string path;
217#ifdef PLATFORM_WINDOWS
218 path = ".\\video\\";
219#endif
220#ifdef PLATFORM_PS4
221 path = "/app0/video/";
222#endif
223#ifdef PLATFORM_XBOX
224 path = "G:\\video\\";
225#endif
226
227 m_VideoWidget.Load(path + videoPath, m_VideoWidget.IsLooping());
228
229 GetGame().GetCallQueue(CALL_CATEGORY_SYSTEM).CallLater(UpdateTotalTime, 0, true);
230 }
const int CALL_CATEGORY_SYSTEM
Definition tools.c:8

References CALL_CATEGORY_SYSTEM, GetGame(), and path.

Referenced by OnClick().

◆ LoadVideoFile()

bool ScriptedWidgetEventHandler::LoadVideoFile ( )
inlineprotected

returns 'true' when video is loaded

Definition at line 101 of file MainMenuPromo.c.

102 {
103 if (m_VideoWidget.GetState() != VideoState.NONE)
104 return true;
105
106 string path = "video\\" + m_DlcInfo.VideoFileName;
107 if (m_DlcInfo.VideoFileName != "")
108 return m_VideoWidget.Load(path, true);
109
110 return false;
111 }
ref JsonDataDLCInfo m_DlcInfo
VideoState
Definition EnWidgets.c:517

References path.

Referenced by StartVideo().

◆ MainMenuDlcHandlerBase()

void ScriptedWidgetEventHandler::MainMenuDlcHandlerBase ( ModInfo info,
Widget parent,
JsonDataDLCInfo DlcInfo )
inlineprotected

Definition at line 23 of file MainMenuPromo.c.

24 {
25 CreateRootWidget(parent);
26 m_Root.SetHandler(this);
29 Init();
30
31#ifdef PLATFORM_CONSOLE
32 GetGame().GetContentDLCService().m_OnChange.Insert(OnDLCChange);
33 if (GetGame().GetMission())
34 GetGame().GetMission().GetOnInputDeviceChanged().Insert(OnInputDeviceChanged);
35#endif
36 }
void CreateRootWidget(Widget parent)

References CreateRootWidget(), GetGame(), Init(), m_Root, OnDLCChange(), and OnInputDeviceChanged().

◆ MainMenuNewsfeed()

void ScriptedWidgetEventHandler::MainMenuNewsfeed ( Widget root)
inlineprotected

Definition at line 19 of file MainMenuNewsfeed.c.

20 {
21 m_Root = root;
22
23 m_DLDLC = m_Root.FindAnyWidget("downloaddlc");
24 m_Discord = m_Root.FindAnyWidget("discord");
25 m_Feedback = m_Root.FindAnyWidget("feedback_tracker");
26 m_DayZForum = m_Root.FindAnyWidget("dayz_forums");
27 m_Twitter = m_Root.FindAnyWidget("twitter");
28 m_Youtube = m_Root.FindAnyWidget("youtube");
29
30 m_MainText1 = TextWidget.Cast(m_Root.FindAnyWidget("SGInfoT1"));
31 m_MainText2 = TextWidget.Cast(m_Root.FindAnyWidget("SGInfoT2"));
32 m_MainText3 = TextWidget.Cast(m_Root.FindAnyWidget("SGInfoT3"));
33 m_SecText1 = TextWidget.Cast(m_Root.FindAnyWidget("SGInfoC1"));
34 m_SecText2 = TextWidget.Cast(m_Root.FindAnyWidget("SGInfoC2"));
35 m_SecText3 = TextWidget.Cast(m_Root.FindAnyWidget("SGInfoC3"));
36
38
39 m_Root.SetHandler(this);
40 }

References m_Root, and ShowNewsfeed().

◆ MainMenuStats()

void ScriptedWidgetEventHandler::MainMenuStats ( Widget root)
inlineprivate

Definition at line 22 of file MainMenuStats.c.

23 {
24 m_Root = root;
25
27
28 m_TimeSurvived = m_Root.FindAnyWidget("TimeSurvived");
29 m_TimeSurvivedValue = TextWidget.Cast(m_Root.FindAnyWidget("TimeSurvivedValue"));
30
31 m_PlayersKilled = m_Root.FindAnyWidget("PlayersKilled");
32 m_PlayersKilledValue = TextWidget.Cast(m_Root.FindAnyWidget("PlayersKilledValue"));
33
34 m_InfectedKilled = m_Root.FindAnyWidget("InfectedKilled");
35 m_InfectedKilledValue = TextWidget.Cast(m_Root.FindAnyWidget("InfectedKilledValue"));
36
37 m_DistanceTraveled = m_Root.FindAnyWidget("DistanceTraveled");
38 m_DistanceTraveledValue = TextWidget.Cast(m_Root.FindAnyWidget("DistanceTraveledValue"));
39
40 m_LongRangeShot = m_Root.FindAnyWidget("LongRangeShot");
41 m_LongRangeShotValue = TextWidget.Cast(m_Root.FindAnyWidget("LongRangeShotValue"));
42 }
struct that keeps Time relevant information for future formatting
ref FullTimeData m_TimeSurvivedFull

References m_Root.

◆ ModsMenuDetailed()

void ScriptedWidgetEventHandler::ModsMenuDetailed ( array< ref ModInfo > data,
Widget parent,
ModsMenuTooltip tooltip,
UIScriptedMenu menu_parent )
inlineprotected

Definition at line 17 of file ModsMenuDetailed.c.

18 {
19 m_Root = GetGame().GetWorkspace().CreateWidgets("gui/layouts/new_ui/mods_menu/mods_menu_detailed.layout", parent);
20 m_Content = m_Root.FindAnyWidget("ModsDetailedContent");
21 m_Scroll = ScrollWidget.Cast(m_Root.FindAnyWidget("ModsDetailedScroller"));
22 m_CloseButton = m_Root.FindAnyWidget("ModsDetailedHeaderButton");
23
27
28 m_Root.SetHandler(this);
29
31 }
void LoadEntries(array< ref ModInfo > data)

References GetGame(), LoadEntries(), m_CloseButton, m_Data, m_Menu, and m_Root.

◆ ModsMenuDetailedEntry()

void ScriptedWidgetEventHandler::ModsMenuDetailedEntry ( ModInfo data,
Widget parent,
ModsMenuDetailed parent_menu )
inlineprotected

Definition at line 25 of file ModsMenuDetailedEntry.c.

26 {
27 m_Root = GetGame().GetWorkspace().CreateWidgets("gui/layouts/new_ui/mods_menu/mods_menu_detailed_entry.layout", parent);
28 m_Detail = m_Root.FindAnyWidget("DetailContainer");
29
30 m_IconSmall = ImageWidget.Cast(m_Root.FindAnyWidget("IconSmall"));
31 m_IconCollapse = ImageWidget.Cast(m_Root.FindAnyWidget("collapse_button"));
32 m_IconCollapse.LoadImageFile(1, "set:dayz_gui image:icon_open");
33 m_Name = TextWidget.Cast(m_Root.FindAnyWidget("Name"));
34
35 m_IconBig = ImageWidget.Cast(m_Root.FindAnyWidget("IconBig"));
36 m_Author = MultilineTextWidget.Cast(m_Root.FindAnyWidget("Author"));
37 m_Author.SetLineBreakingOverride(LinebreakOverrideMode.LINEBREAK_WESTERN);
38
39 m_Version = TextWidget.Cast(m_Root.FindAnyWidget("Version"));
40 m_ActionWebsite = RichTextWidget.Cast(m_Root.FindAnyWidget("Link"));
41 m_ActionPurchase = RichTextWidget.Cast(m_Root.FindAnyWidget("Purchase"));
42
43 m_Description = RichTextWidget.Cast(m_Root.FindAnyWidget("Description"));
44
45 m_Data = data;
47
48 m_Root.SetHandler(this);
49
50 LoadData();
51 }

References GetGame(), LoadData(), m_Data, m_Description, m_Name, and m_Root.

Referenced by LoadEntries().

◆ ModsMenuSimple()

void ScriptedWidgetEventHandler::ModsMenuSimple ( array< ref ModInfo > data,
Widget parent,
ModsMenuDetailed detail_menu )
inlineprotected

Definition at line 11 of file ModsMenuSimple.c.

12 {
13 m_Root = GetGame().GetWorkspace().CreateWidgets("gui/layouts/new_ui/mods_menu/mods_menu_simple.layout", parent);
14 m_MoreButton = m_Root.FindAnyWidget("ModMore");
15 m_MoreHighlight = m_Root.FindAnyWidget("ModMoreOverlay");
18
19 m_Root.SetHandler(this);
21 }
ModsMenuDetailed m_DetailMenu

References GetGame(), LoadEntries(), m_Data, and m_Root.

◆ ModsMenuSimpleEntry()

void ScriptedWidgetEventHandler::ModsMenuSimpleEntry ( ModInfo data,
int index,
Widget parent,
ModsMenuSimple parent_menu )
inlineprotected

Definition at line 11 of file ModsMenuSimpleEntry.c.

12 {
13 m_ModButton = ButtonWidget.Cast(GetGame().GetWorkspace().CreateWidgets("gui/layouts/new_ui/mods_menu/mods_menu_simple_entry.layout", parent));
14 m_Icon = ImageWidget.Cast(m_ModButton.FindAnyWidget("Icon"));
15 m_Hover = m_ModButton.FindAnyWidget("Overlay");
16 m_Data = data;
18
19 m_ModButton.SetSort(index);
20 m_ModButton.SetHandler(this);
21
22 LoadData();
23 }

References GetGame(), LoadData(), and m_Data.

Referenced by LoadEntries().

◆ ModsMenuTooltip()

void ScriptedWidgetEventHandler::ModsMenuTooltip ( Widget parent)
inlineprotected

Definition at line 6 of file ModsMenuTooltip.c.

7 {
8 m_Root = GetGame().GetWorkspace().CreateWidgets("gui/layouts/new_ui/mods_menu/mods_tooltip.layout", parent);
9 m_Text = RichTextWidget.Cast(m_Root.FindAnyWidget("TooltipText"));
10 }

References GetGame(), m_Root, and m_Text.

◆ NextTab()

void ScriptedWidgetEventHandler::NextTab ( )
inlineprotected

Definition at line 374 of file TabberUI.c.

375 {
376 int next_index = m_SelectedIndex + 1;
377
378 while (next_index < m_Tabs.Count() && !m_TabControls[next_index].IsVisible())
379 next_index++;
380
381 if (next_index >= m_Tabs.Count())
382 next_index = 0;
383
385 {
387 if (CanSwitchTab())
389 }
390
391 if (m_FirstInit)
392 {
393 AlignTabbers();
394 m_FirstInit = false;
395 }
396 }
void PerformSwitchTab(int index)
Definition TabberUI.c:206
ref ScriptInvoker m_OnAttemptTabSwitch
Definition TabberUI.c:16

◆ ObjectFollower()

void ScriptedWidgetEventHandler::ObjectFollower ( )
inlineprotected

Definition at line 9 of file ObjectFollower.c.

10 {
11 m_Visible = false;
12 //GetGame().GetUpdateQueue(CALL_CATEGORY_GUI).Insert(Update);
13 }

References m_Visible.

◆ OnAOChanged()

void ScriptedWidgetEventHandler::OnAOChanged ( int value)
inlineprotected

Definition at line 523 of file OptionsMenuVideo.c.

524 {
525 m_AOOption.SetIndex(value);
527 m_Menu.OnChanged();
528 }

References m_Menu, and OnOptionChanged().

◆ OnATOCChanged()

void ScriptedWidgetEventHandler::OnATOCChanged ( int value)
inlineprotected

Definition at line 516 of file OptionsMenuVideo.c.

517 {
518 m_ATOCOption.SetIndex(value);
520 m_Menu.OnChanged();
521 }

References m_Menu, and OnOptionChanged().

◆ OnBleedingIndicationChanged()

void ScriptedWidgetEventHandler::OnBleedingIndicationChanged ( bool state)
inlineprotected

Definition at line 505 of file OptionsMenuGame.c.

506 {
507 MissionGameplay mission = MissionGameplay.Cast(GetGame().GetMission());
508 if (mission)
509 {
512 }
513 }
override void UpdateWidgets(int type=-1, float timeSlice=0, Param p=null, int handle=-1)
Usually called in course of an OnFrame update, can be manually called from elsewhere with parameters.
GameplayEffectWidgets_base GetEffectWidgets()
Definition gameplay.c:822

References Mission::GetEffectWidgets(), GetGame(), mission, and GameplayEffectWidgets_base::UpdateWidgets().

Referenced by Apply().

◆ OnBrightnessChanged()

void ScriptedWidgetEventHandler::OnBrightnessChanged ( float value)
inlineprotected

Definition at line 438 of file OptionsMenuVideo.c.

439 {
440 m_BrightnessOption.WriteValue(value);
441 m_Menu.OnChanged();
442 }

References m_Menu.

◆ OnBufferingEnd()

void ScriptedWidgetEventHandler::OnBufferingEnd ( )
inlineprotected

Definition at line 190 of file VideoPlayer.c.

191 {
192 m_Buffering.Show(false);
193 }

◆ OnBufferingStart()

void ScriptedWidgetEventHandler::OnBufferingStart ( )
inlineprotected

Definition at line 185 of file VideoPlayer.c.

186 {
187 m_Buffering.Show(true);
188 }

◆ OnceVideo()

void ScriptedWidgetEventHandler::OnceVideo ( )
inlineprotected

Definition at line 249 of file VideoPlayer.c.

250 {
251 m_VideoWidget.SetLooping(false);
252 m_OnceButton.Show(false);
253 m_RepeatButton.Show(true);
254 }

Referenced by OnClick().

◆ OnChange() [1/4]

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

Definition at line 12 of file PluginDayZInfectedDebug.c.

13 {
14 super.OnChange(w, x, y, finished);
15 return m_pPluginInfectedDebug.OnChange(w, x, y, finished);
16 }
PluginDayZInfectedDebug m_pPluginInfectedDebug

References m_pPluginInfectedDebug, x, and y.

◆ OnChange() [2/4]

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

Definition at line 72 of file HudDebug.c.

73 {
74 //Print("OnChange " + finished);
75 super.OnChange(w, x, y, finished);
76 return GetHudDebug().OnChange(w, x, y, finished);
77 }

References GetHudDebug(), x, and y.

◆ OnChange() [3/4]

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

Definition at line 388 of file ServerBrowserFilterContainer.c.

390 {
391 if (w)
392 {
393 if (w == m_SearchByName)
394 {
395 string input_name = m_SearchByName.GetText();
396
398 m_SearchByName.SetText(input_name); // Warning! Using SetText() causes the cursor to move at the end of the text box!
399
402
403 return true;
404 }
405 else if (w == m_SearchByIP)
406 {
407 string input_ip = m_SearchByIP.GetText();
408
410 m_SearchByIP.SetText(input_ip); // Warning! Using SetText() causes the cursor to move at the end of the text box!
411
414
415 return true;
416 }
417 }
418 return false;
bool GenerateValidFilter(out string potential_filter)
Turns any given string into a more convenient filter (limits character count, forces lowercase,...
bool ProcessIntoIPAddress(out string potential_ip)
Removes all characters from the given string whirh are NOT a number, '.' or ':'. Returns true if any ...

References GenerateValidFilter(), OnFilterChanged(), ProcessIntoIPAddress(), and SetFocus().

◆ OnChange() [4/4]

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

Definition at line 128 of file VideoPlayer.c.

129 {
130 if (w == m_Progress)
131 m_VideoWidget.SetTime(m_Progress.GetCurrent(), finished);
132
133 return super.OnChange(w, x, y, finished);
134 }

References x, and y.

◆ OnChildAdd()

override bool ScriptedWidgetEventHandler::OnChildAdd ( Widget w,
Widget child )
inlineprotected

Definition at line 277 of file TabberUI.c.

278 {
279 if (w == m_Root.FindAnyWidget("Tab_Control_Container"))
280 {
281 AlignTabbers();
282 return true;
283 }
284 return false;
285 }

References m_Root.

◆ OnChildRemove()

override bool ScriptedWidgetEventHandler::OnChildRemove ( Widget w,
Widget child )
inlineprotected

Definition at line 287 of file TabberUI.c.

288 {
289 if (w == m_Root.FindAnyWidget("Tab_Control_Container"))
290 {
291 AlignTabbers();
292 return true;
293 }
294 return false;
295 }

References m_Root.

◆ OnClick() [1/15]

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

Definition at line 244 of file UiHintPanel.c.

245 {
246 if (button == MouseState.LEFT)
247 {
248 switch (w)
249 {
250 case m_UiLeftButton:
251 {
253 return true;
254 }
255 case m_UiRightButton:
256 {
257 ShowNextPage();
258 return true;
259 }
260 }
261 }
262 return false;
263 }
MouseState
Definition EnSystem.c:311

References m_UiLeftButton, m_UiRightButton, ShowNextPage(), and ShowPreviousPage().

◆ OnClick() [2/15]

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

Definition at line 6 of file PluginDayZInfectedDebug.c.

7 {
8 super.OnClick(w, x, y, button);
9 return m_pPluginInfectedDebug.OnClick(w, x, y, button);
10 }

References m_pPluginInfectedDebug, x, and y.

◆ OnClick() [3/15]

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

Definition at line 24 of file PluginItemDiagnostic.c.

25 {
26 return m_Owner.OnClick(w, x, y, button);
27 }

References m_Owner, x, and y.

◆ OnClick() [4/15]

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

Definition at line 136 of file CTKeyframe.c.

137 {
138 if (w == m_Root)
139 {
140 m_Menu.SelectKeyframe(this);
141 return true;
142 }
143 return false;
144 }

References m_Menu, and m_Root.

◆ OnClick() [5/15]

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

Definition at line 125 of file CTObjectFollower.c.

126 {
127 return false;
128 }

◆ OnClick() [6/15]

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

Definition at line 18 of file HudDebug.c.

19 {
20 super.OnClick(w, x, y, button);
21 return GetHudDebug().OnClick(w, x, y, button);
22 }

References GetHudDebug(), x, and y.

◆ OnClick() [7/15]

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

Definition at line 105 of file DropdownPrefab.c.

106 {
107 int index = m_Content.Find(w);
108 if (index > -1)
109 {
110 m_OnSelectItem.Invoke(index);
111 m_IsExpanded = false;
115 return true;
116 }
117 return false;
118 }
ref ScriptInvoker m_OnSelectItem

References m_IsExpanded.

◆ OnClick() [8/15]

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

Definition at line 216 of file KeybindingElement.c.

217 {
218 if (!m_Group.IsEnteringKeyBind())
219 {
220 if (w == m_PrimaryBindButton)
221 m_EntryTimer.Run(0.01, this, "StartEnteringKeybind");
223 m_EntryTimer.Run(0.01, this, "StartEnteringAlternateKeybind");
224 }
225 return false;
226 }

◆ OnClick() [9/15]

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

Definition at line 214 of file KeybindingElementNew.c.

215 {
216 if (!m_Container.IsEnteringKeyBind())
217 {
218 if (w == m_PrimaryBindButton)
219 m_EntryTimer.Run(0.01, this, "StartEnteringKeybind");
221 m_EntryTimer.Run(0.01, this, "StartEnteringAlternateKeybind");
222 }
223 return false;
224 }

◆ OnClick() [10/15]

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

Definition at line 94 of file MainMenuNewsfeed.c.

95 {
96 if (button == MouseState.LEFT)
97 {
98 if (w == m_DLDLC)
99 {
100 OpenDLC();
101 return true;
102 }
103 else if (w == m_Discord)
104 {
105 OpenDiscord();
106 return true;
107 }
108 else if (w == m_Feedback)
109 {
110 OpenFeedback();
111 return true;
112 }
113 else if (w == m_DayZForum)
114 {
115 OpenForums();
116 return true;
117 }
118 else if (w == m_Twitter)
119 {
120 OpenTwitter();
121 return true;
122 }
123 else if (w == m_Youtube)
124 {
125 OpenYoutube();
126 return true;
127 }
128 }
129 return false;
130 }

References OpenDiscord(), OpenDLC(), OpenFeedback(), OpenForums(), OpenTwitter(), and OpenYoutube().

◆ OnClick() [11/15]

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

Definition at line 94 of file MainMenuPromo.c.

95 {
96 m_ThisModInfo.GoToStore();
97 return super.OnClick(w, x, y, button);
98 }

References x, and y.

◆ OnClick() [12/15]

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

Definition at line 47 of file ModsMenuSimpleEntry.c.

48 {
49 if (w == m_ModButton)
50 {
51 m_ParentMenu.Select(m_Data);
52 return true;
53 }
54 return false;
55 }

References m_Data.

◆ OnClick() [13/15]

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

Definition at line 102 of file ServerBrowserEntry.c.

103 {
104 if (!IsOnline())
105 return false;
106
107#ifdef PLATFORM_CONSOLE
108 if (w == m_Root)
109 {
110 m_Tab.Connect(this);
111 return true;
112 }
113#endif
114
115 if (w == m_ServerModsExpand)
116 {
117 string mods_text;
118 if (m_Mods && m_Mods.Count() > 0)
119 {
120 mods_text = m_Mods[0];
121 for (int i = 1; i < m_Mods.Count(); i++)
122 mods_text += "\n" + m_Mods[i];
123 }
124
125 GetGame().GetUIManager().ShowDialog("#main_menu_mods", mods_text, 0, 0, 0, 0, GetGame().GetUIManager().GetMenu());
126 }
127
128 return false;
129 }

References GetGame(), IsOnline(), and m_Root.

◆ OnClick() [14/15]

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

Definition at line 136 of file VideoPlayer.c.

137 {
138 if (w == m_PlayButton)
139 PlayVideo();
140 else if (w == m_PauseButton)
141 PauseVideo();
142 else if (w == m_StopButton)
143 StopVideo();
144 else if (w == m_OnceButton)
145 OnceVideo();
146 else if (w == m_RepeatButton)
147 RepeatVideo();
148 else if (w == m_LoadButton)
150 else if (w == m_Progress)
151 {
152 Print(x);
153 Print(y);
154 Print(button);
155 }
156 else if (w.GetUserID() == 333)
157 {
158 string name;
159 ButtonWidget.Cast(w).GetText(name);
162 }
163
164 return super.OnClick(w, x, y, button);
165 }
void LoadVideo(string videoPath)
proto void Print(void var)
Prints content of variable to console/log.

References LoadVideo(), name, OnceVideo(), PauseVideo(), PlayVideo(), Print(), RepeatVideo(), StopVideo(), ToggleVideoSelection(), x, and y.

◆ OnClick() [15/15]

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

Definition at line 67 of file ProfileOptionsUI.c.

68 {
69 super.OnClick(w, x, y, button);
70 m_widget = w;
71 SetValue();
72 return false;
73 }

References SetValue(), x, and y.

◆ OnColorDepthChanged()

void ScriptedWidgetEventHandler::OnColorDepthChanged ( int value)
inlineprotected

Definition at line 450 of file OptionsMenuVideo.c.

451 {
452 //m_ColorDepthOption.SetIndex( value );
453 m_Menu.OnChanged();
454 }

References m_Menu.

◆ OnDisplayModeChanged()

void ScriptedWidgetEventHandler::OnDisplayModeChanged ( int value)
inlineprotected

Definition at line 426 of file OptionsMenuVideo.c.

427 {
428 m_DisplayModeOption.SetIndex(value);
429 m_Menu.OnChanged();
430 }

References m_Menu.

◆ OnDLCChange()

void ScriptedWidgetEventHandler::OnDLCChange ( )
inlineprotected

Definition at line 162 of file MainMenuPromo.c.

163 {
165 }

References UpdateOwnedStatus().

◆ OnDoubleClick() [1/4]

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

Definition at line 164 of file InventoryGrid.c.

165 {
166 if (button != MouseState.LEFT) return false;
167
168 int col = GetCol(w);
169
170 if (!IsValidPos(col))
171 return false;
172
173 if (m_IsDebugOutput)
174 PrintString(m_Root.GetName() + "::OnDoubleClick(" + col.ToString() + ")");
175
176 if (m_Controller) m_Controller.OnItemDoubleClick(this, w, 0, col);
177
178 return true;
179 }
reference bool m_IsDebugOutput
void PrintString(string s)
Helper for printing out string expression. Example: PrintString("Hello " + var);.
Definition EnScript.c:344

References GetCol(), IsValidPos(), m_Root, and PrintString().

◆ OnDoubleClick() [2/4]

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

Definition at line 130 of file CTObjectFollower.c.

131 {
132 return false;
133 }

◆ OnDoubleClick() [3/4]

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

Definition at line 158 of file PlayerListEntryScriptedWidget.c.

159 {
160 if (button == MouseState.LEFT && GetGame().GetInput().IsEnabledMouseAndKeyboardEvenOnServer())
161 {
162 if (!IsLocalPlayer())
164 }
165 return false;
166 }
static void ShowUserProfile(string uid)

References GetGame(), GetInput(), IsLocalPlayer(), and OnlineServices::ShowUserProfile().

◆ OnDoubleClick() [4/4]

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

Definition at line 131 of file ServerBrowserEntry.c.

132 {
133 if (!IsOnline())
134 return false;
135
136 if (button == MouseState.LEFT)
137 {
138 if (w == m_Root)
139 {
140 m_Tab.Connect(this);
141 return true;
142 }
143 }
144
145 return false;
146 }

References IsOnline(), and m_Root.

◆ OnDrag()

override bool ScriptedWidgetEventHandler::OnDrag ( Widget w,
int x,
int y )
inlineprivate

Definition at line 243 of file InventoryGrid.c.

244 {
245 w.SetPos(x, y);
246
247 m_col = GetCol(w);
248
249 if (!IsValidPos(m_col))
250 return false;
251
252 if (m_IsDebugOutput)
253 PrintString(m_Root.GetName() + "::OnDrag(" + m_col.ToString() + ")");
254
256
257 ItemPreviewWidget item_preview = ItemPreviewWidget.Cast(w.FindAnyWidget("Preview"));
258 if (item_preview)
259 item_preview.SetView(item_preview.GetItem().GetViewIndex());
260 return true;
261 }
override void OnItemDrag(InventoryGrid grid, Widget w, int row, int col)

References GetCol(), IsValidPos(), m_Root, InventoryGridController::OnItemDrag(), PrintString(), x, and y.

◆ OnDraggingOver()

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

Definition at line 264 of file InventoryGrid.c.

265 {
266 int col = GetCol(reciever);
267
268 if (!IsValidPos(col))
269 return false;
270
271 if (m_IsDebugOutput)
272 PrintString(m_Root.GetName() + "::OnDraggingOver(" + col.ToString() + ")");
273
275
276
277 return true;
278 }
override void OnItemDraggingOver(InventoryGrid grid, Widget w, int row, int col)

References GetCol(), IsValidPos(), m_Root, InventoryGridController::OnItemDraggingOver(), and PrintString().

◆ OnDrop()

override bool ScriptedWidgetEventHandler::OnDrop ( Widget w,
int x,
int y,
Widget reciever )
inlineprotected

Definition at line 182 of file InventoryGrid.c.

183 {
184 if (m_IsDebugOutput)
185 PrintString(m_Root.GetName() + "::OnDrop()");
186
187 if (m_Controller)
188 m_Controller.OnItemDrop(this, w, 0, m_col);
189
190 if (w)
191 {
192 ItemPreviewWidget item_preview = ItemPreviewWidget.Cast(w.FindAnyWidget("Preview"));
193 if (item_preview)
194 item_preview.SetView(item_preview.GetItem().GetViewIndex());
195 }
196
197 return true;
198 }
override void OnItemDrop(InventoryGrid grid, Widget w, int row, int col)

References m_Root, InventoryGridController::OnItemDrop(), and PrintString().

◆ OnDropReceived()

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

Definition at line 281 of file InventoryGrid.c.

282 {
283 int col = GetCol(reciever);
284
285 if (!IsValidPos(col))
286 return false;
287
288 if (m_IsDebugOutput)
289 PrintString(m_Root.GetName() + "::OnDropReceived(" + col.ToString() + ")");
290
292
293
294 return true;
295 }
override void OnItemDropReceived(InventoryGrid grid, Widget w, int row, int col)

References GetCol(), IsValidPos(), m_Root, InventoryGridController::OnItemDropReceived(), and PrintString().

◆ OnFilterChanged()

void ScriptedWidgetEventHandler::OnFilterChanged ( )
inlineprotected

Definition at line 96 of file ServerBrowserFilterContainer.c.

97 {
98 m_Tab.OnFilterChanged();
99 }

References ServerBrowserTab::OnFilterChanged().

Referenced by OnChange().

◆ OnFocus() [1/13]

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

Definition at line 146 of file CTKeyframe.c.

147 {
148 if (IsFocusable(w))
149 {
150 m_Menu.SelectKeyframe(this);
151 return true;
152 }
153 return false;
154 }
bool IsFocusable(Widget w)
Definition CTKeyframe.c:156

References IsFocusable(), and m_Menu.

◆ OnFocus() [2/13]

override bool ScriptedWidgetEventHandler::OnFocus ( Widget w,
int x,
int y )
inlineprivate

Definition at line 24 of file HudDebug.c.

25 {
26 //Print("OnFocus");
27 return true;
28 }

◆ OnFocus() [3/13]

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

Definition at line 136 of file PlayerListEntryScriptedWidget.c.

137 {
138 if (!m_Selected)
139 {
140#ifdef PLATFORM_CONSOLE
141 if (w == m_PlayerButton)
142 Select();
143#endif
144 return true;
145 }
146 return false;
147 }

References Select().

◆ OnFocus() [4/13]

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

Definition at line 152 of file MainMenuNewsfeed.c.

153 {
154 if (IsFocusable(w))
155 {
156 ColorRed(w, x, y);
157 return true;
158 }
159 return false;
160 }
void ColorRed(Widget w, int x, int y)

References ColorRed(), IsFocusable(), x, and y.

◆ OnFocus() [5/13]

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

Definition at line 79 of file ModsMenuSimple.c.

80 {
81 if (w == m_MoreButton)
82 {
83 m_MoreHighlight.Show(true);
84 return true;
85 }
86 return false;
87 }

◆ OnFocus() [6/13]

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

Definition at line 81 of file ModsMenuSimpleEntry.c.

82 {
83 if (w == m_ModButton)
84 {
85 if (m_HasLogoOver)
86 m_Icon.SetImage(1);
87 m_Hover.Show(true);
88 return true;
89 }
90 return false;
91 }

◆ OnFocus() [7/13]

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

Definition at line 266 of file OptionsMenuControls.c.

267 {
268 OptionsMenu menu = OptionsMenu.Cast(GetGame().GetUIManager().GetMenu());
269 if (menu)
270 menu.OnFocus(w, x, y);
271
272 if (w)
273 {
274 if (TextMapUpdateWidget(w.GetUserID()))
275 return true;
276
277 if (w.IsInherited(SliderWidget))
278 {
279 ColorRed(w);
280 return true;
281 }
282
283 if (IsFocusable(w))
284 {
285 ColorRed(w);
286 return true;
287 }
288 }
289 else
290 m_DetailsRoot.Show(false);
291 return (w != null);
292 }

References ColorRed(), GetGame(), IsFocusable(), TextMapUpdateWidget(), x, and y.

◆ OnFocus() [8/13]

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

Definition at line 488 of file OptionsMenuGame.c.

489 {
490 if (m_Menu)
491 m_Menu.OnFocus(w, x, y);
492
493 if (w)
494 {
495 if (TextMapUpdateWidget(w.GetUserID()))
496 return true;
497
498 if (w.IsInherited(SliderWidget))
499 return true;
500 }
501 m_DetailsRoot.Show(false);
502 return (w != null);
503 }

References m_Menu, TextMapUpdateWidget(), x, and y.

◆ OnFocus() [9/13]

override bool ScriptedWidgetEventHandler::OnFocus ( Widget w,
int x,
int y )
inlineprivate

Definition at line 160 of file OptionsMenuSounds.c.

161 {
162 OptionsMenu menu = OptionsMenu.Cast(GetGame().GetUIManager().GetMenu());
163 if (menu)
164 menu.OnFocus(w, x, y);
165 if (w)
166 {
167 if (TextMapUpdateWidget(w.GetUserID()))
168 return true;
169
170 if (w.IsInherited(SliderWidget))
171 return true;
172 }
173 m_DetailsRoot.Show(false);
174 return (w != null);
175 }

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

◆ OnFocus() [10/13]

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

Definition at line 545 of file OptionsMenuVideo.c.

546 {
547 OptionsMenu menu = OptionsMenu.Cast(GetGame().GetUIManager().GetMenu());
548 if (menu)
549 menu.OnFocus(w, x, y);
550 if (w)
551 {
552 if (TextMapUpdateWidget(w.GetUserID()))
553 return true;
554
555 if (w.IsInherited(SliderWidget))
556 return true;
557 }
558 m_DetailsRoot.Show(false);
559 return (w != null);
560 }

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

◆ OnFocus() [11/13]

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

Definition at line 99 of file OptionSelectorBase.c.

100 {
101 if (IsFocusable(w))
102 {
104 if (m_ParentClass)
105 m_ParentClass.OnFocus(m_Root.GetParent(), -1, m_SelectorType);
106 return true;
107 }
108 return false;
109 }
ScriptedWidgetEventHandler m_ParentClass

References OptionSelectorBase::IsFocusable(), m_Root, and OnFocus().

◆ OnFocus() [12/13]

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

Definition at line 205 of file ServerBrowserEntry.c.

206 {
207 if (!m_Selected)
208 {
209 if (IsFocusable(w))
210 Darken(w, x, y);
211
212#ifdef PLATFORM_CONSOLE
213 if (w == m_Root)
214 {
215 Select();
216 ServerListFocus(true);
217 }
218#endif
219
220 return true;
221 }
222 return false;
223 }
void Darken(Widget w, int x, int y)

References Darken(), IsFocusable(), m_Root, Select(), ServerListFocus(), x, and y.

◆ OnFocus() [13/13]

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

Definition at line 420 of file ServerBrowserFilterContainer.c.

422 {
423 m_Tab.OnFilterFocus(w);
424 return false;

References ServerBrowserTab::OnFilterFocus().

◆ OnFocusLost() [1/8]

override bool ScriptedWidgetEventHandler::OnFocusLost ( Widget w,
int x,
int y )
inlineprivate

Definition at line 30 of file HudDebug.c.

31 {
32 //Print("OnFocusLost");
33 return true;
34 }

◆ OnFocusLost() [2/8]

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

Definition at line 149 of file PlayerListEntryScriptedWidget.c.

150 {
151#ifdef PLATFORM_CONSOLE
152 if (w == m_PlayerButton)
153 Deselect();
154#endif
155 return false;
156 }

References Deselect().

◆ OnFocusLost() [3/8]

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

Definition at line 162 of file MainMenuNewsfeed.c.

163 {
164 if (IsFocusable(w))
165 {
166 ColorWhite(w, null, x, y);
167 return true;
168 }
169 return false;
170 }
void ColorWhite(Widget w, Widget enterW, int x, int y)

References ColorWhite(), IsFocusable(), x, and y.

◆ OnFocusLost() [4/8]

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

Definition at line 89 of file ModsMenuSimple.c.

90 {
91 if (w == m_MoreButton)
92 {
93 m_MoreHighlight.Show(false);
94 return true;
95 }
96 return false;
97 }

◆ OnFocusLost() [5/8]

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

Definition at line 93 of file ModsMenuSimpleEntry.c.

94 {
95 if (w == m_ModButton)
96 {
97 if (m_HasLogoOver)
98 m_Icon.SetImage(0);
99 m_Hover.Show(false);
100 return true;
101 }
102 return false;
103 }

◆ OnFocusLost() [6/8]

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

Definition at line 294 of file OptionsMenuControls.c.

295 {
296 if (IsFocusable(w))
297 {
298 ColorWhite(w, null);
299 return true;
300 }
301 return false;
302 }

References ColorWhite(), and IsFocusable().

◆ OnFocusLost() [7/8]

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

Definition at line 111 of file OptionSelectorBase.c.

112 {
114 if (m_ParentClass)
116 return true;
117 }
bool OnFocusLost(Widget w, int x, int y)

References OptionSelectorBase::ColorNormalConsole(), OnFocusLost(), x, and y.

◆ OnFocusLost() [8/8]

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

Definition at line 225 of file ServerBrowserEntry.c.

226 {
227#ifdef PLATFORM_CONSOLE
228
229 if (w == m_Root)
230 {
231 Deselect();
232 ServerListFocus(false);
233 }
234#endif
235
236 if (IsFocusable(w))
237 Lighten(w, null, x, y);
238
239 return true;
240 return false;
241 }

References Deselect(), IsFocusable(), Lighten(), m_Root, ServerListFocus(), x, and y.

◆ OnHide()

void ScriptedWidgetEventHandler::OnHide ( )
inlineprotected

Definition at line 189 of file LayoutHolder.c.

190 {
191 m_RootWidget.Show(false);
192 }

References m_RootWidget.

◆ OnHWAAChanged()

void ScriptedWidgetEventHandler::OnHWAAChanged ( int value)
inlineprotected

Definition at line 505 of file OptionsMenuVideo.c.

506 {
507 m_HWAAOption.SetIndex(value);
508 if (value == 0)
509 m_ATOCSelector.Disable();
510 else
511 m_ATOCSelector.Enable();
513 m_Menu.OnChanged();
514 }

References m_Menu, and OnOptionChanged().

◆ OnInputDeviceChanged() [1/3]

void ScriptedWidgetEventHandler::OnInputDeviceChanged ( EInputDeviceType pInputDeviceType)
inlineprotected

Definition at line 102 of file ItemActionsWidget.c.

103 {
105 }
void UpdatePCIconsVisibility()
Contains logic for icon set switching (Gamepad/M&K)

References UpdatePCIconsVisibility().

◆ OnInputDeviceChanged() [2/3]

void ScriptedWidgetEventHandler::OnInputDeviceChanged ( EInputDeviceType pInputDeviceType)
inlineprotected

Definition at line 200 of file MainMenuPromo.c.

201 {
203 }

References UpdateIconVisibility().

◆ OnInputDeviceChanged() [3/3]

void ScriptedWidgetEventHandler::OnInputDeviceChanged ( EInputDeviceType pInputDeviceType)
inlineprotected

Definition at line 26 of file TabberUI.c.

27 {
28 switch (pInputDeviceType)
29 {
30 case EInputDeviceType.CONTROLLER:
32 m_TabControlsRoot.FindAnyWidget("ConsoleControls").Show(true);
33 break;
34
35 default:
36 if (GetGame().GetInput().IsEnabledMouseAndKeyboardEvenOnServer())
37 m_TabControlsRoot.FindAnyWidget("ConsoleControls").Show(false);
38 break;
39 }
40 }
EInputDeviceType
Definition input.c:3

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

◆ OnInputPresetChanged() [1/2]

void ScriptedWidgetEventHandler::OnInputPresetChanged ( )
inlineprotected

Definition at line 95 of file ItemActionsWidget.c.

96 {
97#ifdef PLATFORM_CONSOLE
99#endif
100 }
void UpdateControllerInputIcons()
Loads icons from the latest keybinds.

References UpdateControllerInputIcons().

◆ OnInputPresetChanged() [2/2]

void ScriptedWidgetEventHandler::OnInputPresetChanged ( )
inlineprotected

Definition at line 19 of file TabberUI.c.

20 {
21#ifdef PLATFORM_CONSOLE
23#endif
24 }

References UpdateControlsElements().

◆ OnItemClick()

void ScriptedWidgetEventHandler::OnItemClick ( InventoryGrid grid,
Widget w,
int row,
int col )
inlineprivate

Definition at line 10 of file InventoryGrid.c.

10{}

◆ OnItemDoubleClick()

void ScriptedWidgetEventHandler::OnItemDoubleClick ( InventoryGrid grid,
Widget w,
int row,
int col )
inlineprivate

Definition at line 13 of file InventoryGrid.c.

13{}

◆ OnItemDrag()

void ScriptedWidgetEventHandler::OnItemDrag ( InventoryGrid grid,
Widget w,
int row,
int col )
inlineprivate

Definition at line 6 of file InventoryGrid.c.

6{}

◆ OnItemDraggingOver()

void ScriptedWidgetEventHandler::OnItemDraggingOver ( InventoryGrid grid,
Widget w,
int row,
int col )
inlineprivate

Definition at line 7 of file InventoryGrid.c.

7{}

◆ OnItemDrop()

void ScriptedWidgetEventHandler::OnItemDrop ( InventoryGrid grid,
Widget w,
int row,
int col )
inlineprivate

Definition at line 8 of file InventoryGrid.c.

8{}

◆ OnItemDropReceived()

void ScriptedWidgetEventHandler::OnItemDropReceived ( InventoryGrid grid,
Widget w,
int row,
int col )
inlineprivate

Definition at line 9 of file InventoryGrid.c.

9{}

◆ OnItemEnter()

void ScriptedWidgetEventHandler::OnItemEnter ( InventoryGrid grid,
Widget w,
int row,
int col )
inlineprivate

Definition at line 4 of file InventoryGrid.c.

4{}

◆ OnItemLeave()

void ScriptedWidgetEventHandler::OnItemLeave ( InventoryGrid grid,
Widget w )
inlineprivate

Definition at line 5 of file InventoryGrid.c.

5{}

◆ OnItemLeftClick()

void ScriptedWidgetEventHandler::OnItemLeftClick ( InventoryGrid grid,
Widget w,
int row,
int col )
inlineprivate

Definition at line 11 of file InventoryGrid.c.

11{}

◆ OnItemRightClick()

void ScriptedWidgetEventHandler::OnItemRightClick ( InventoryGrid grid,
Widget w,
int row,
int col )
inlineprivate

Definition at line 12 of file InventoryGrid.c.

12{}

◆ OnItemSelected()

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

Definition at line 60 of file HudDebug.c.

61 {
62 //Print("OnItemSelected");
63 return true;
64 }

◆ OnLoadServersAsync()

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

Definition at line 69 of file PlayerListScriptedWidget.c.

70 {
71
72 }

◆ OnModalResult()

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

Definition at line 66 of file HudDebug.c.

67 {
68 //Print("OnModalResult");
69 return true;
70 }

◆ OnMouseButtonDown() [1/7]

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

Definition at line 109 of file InventoryGrid.c.

110 {
111 if (button == MouseState.RIGHT || button == MouseState.LEFT)
112 {
113 int col = GetCol(w);
114
115 if (!IsValidPos(col))
116 return false;
117
118 if (m_IsDebugOutput)
119 PrintString(m_Root.GetName() + "::OnMouseButtonDown(" + col.ToString() + ")");
120
121 if (m_Controller)
122 {
123 if (button == MouseState.RIGHT)
124 m_Controller.OnItemRightClick(this, w, 0, col);
125
126 if (button == MouseState.LEFT)
127 m_IsMouseLeftDown = true;
128 }
129 return true;
130 }
131 else
132 return false;
133 }

References GetCol(), IsValidPos(), m_Root, and PrintString().

◆ OnMouseButtonDown() [2/7]

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

Definition at line 139 of file ContextMenu.c.

140 {
141 super.OnMouseButtonDown(w, x, y, button);
142
143 if (button == MouseState.LEFT && w.GetUserID() > -1 && w.GetUserID() < m_commands.Count())
144 {
145 CallQueueContext ctx = m_commands.Get(w.GetUserID());
146
147 int actionId = Param3<EntityAI, int, int>.Cast(ctx.m_params).param2;
148 if (actionId == EActions.DELETE)
149 Hide();
150
151 UIScriptedMenu menu = GetGame().GetUIManager().GetMenu();
152 if (menu)
153 GetGame().GetCallQueue(CALL_CATEGORY_GUI).Call(menu.Refresh);
154
155 ctx.Call();
156
157 return true;
158 }
159
160 return false;
161 }

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

◆ OnMouseButtonDown() [3/7]

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

Definition at line 29 of file PluginItemDiagnostic.c.

30 {
31 return m_Owner.OnMouseButtonDown(w, x, y, button);
32 }

References m_Owner, x, and y.

◆ OnMouseButtonDown() [4/7]

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

Definition at line 135 of file CTObjectFollower.c.

136 {
137 if (w == m_FollowerButton && button == MouseState.LEFT)
138 {
139 if (m_Menu)
140 m_Menu.SelectActor(CTActor.Cast(this));
141 return true;
142 }
143 return false;
144 }

References CTObjectFollower::CTActor(), and m_Menu.

◆ OnMouseButtonDown() [5/7]

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

Definition at line 48 of file HudDebug.c.

49 {
50 //Print("OnMouseButtonDown");
51 return true;
52 }

◆ OnMouseButtonDown() [6/7]

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

Definition at line 120 of file DropdownPrefab.c.

121 {
122 if ((w == m_Button || w == m_Text || w == m_Holder) && button == MouseState.LEFT)
123 {
128
129 m_Root.Update();
130 m_Parent.Update();
131 m_ContentContainer.Update();
132
133 return true;
134 }
135 return false;
136 }

References m_IsExpanded, m_IsExpanded, m_Parent, m_Root, and m_Text.

◆ OnMouseButtonDown() [7/7]

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

Definition at line 282 of file KeybindingsGroup.c.

283 {
284 if (!ButtonWidget.Cast(w))
285 m_KBDropdown.Close();
286 return false;
287 }

◆ OnMouseButtonUp() [1/12]

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

Definition at line 136 of file InventoryGrid.c.

137 {
138 if (button == MouseState.LEFT)
139 {
141 {
142 m_Controller.OnItemLeftClick(this, w, 0, m_col);
143 m_IsMouseLeftDown = false;
144 }
145 }
146
147 if (button == MouseState.RIGHT || button == MouseState.LEFT)
148 {
149 int col = GetCol(w);
150
151 if (!IsValidPos(col))
152 return false;
153
154 if (m_IsDebugOutput)
155 PrintString(m_Root.GetName() + "::OnMouseButtonUp(" + col.ToString() + ")");
156
157 return true;
158 }
159 else
160 return false;
161 }

References GetCol(), IsValidPos(), m_Root, and PrintString().

◆ OnMouseButtonUp() [2/12]

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

Definition at line 33 of file PluginItemDiagnostic.c.

34 {
35 return m_Owner.OnMouseButtonUp(w, x, y, button);
36 }

References m_Owner, x, and y.

◆ OnMouseButtonUp() [3/12]

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

Definition at line 146 of file CTObjectFollower.c.

147 {
148 if (w == m_FollowerButton && button == MouseState.LEFT)
149 {
150 if (m_Menu)
151 m_Menu.SelectActor(null);
152 return true;
153 }
154 return false;
155 }

References m_Menu.

◆ OnMouseButtonUp() [4/12]

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

Definition at line 168 of file PlayerListEntryScriptedWidget.c.

169 {
170 if (button == MouseState.LEFT && GetGame().GetInput().IsEnabledMouseAndKeyboardEvenOnServer())
171 {
173 {
174 ToggleMute();
175 return true;
176 }
177 }
178 return false;
179 }

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

◆ OnMouseButtonUp() [5/12]

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

Definition at line 228 of file KeybindingElement.c.

229 {
230 if (w == m_PrimaryClear)
231 {
232 m_IsEdited = true;
234 m_PrimaryBindButton.SetText("");
235 m_Group.ClearKeybind(m_ElementIndex);
236 }
237 if (w == m_AlternativeClear)
238 {
239 m_IsAlternateEdited = true;
241 m_AlternativeBindButton.SetText("");
242 m_Group.ClearAlternativeKeybind(m_ElementIndex);
243 }
244 return false;
245 }

◆ OnMouseButtonUp() [6/12]

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

Definition at line 226 of file KeybindingElementNew.c.

227 {
228 if (w == m_PrimaryClear)
229 {
230 m_IsEdited = true;
232 m_PrimaryBindButton.SetText("");
233 m_Container.ClearKeybind(m_ElementIndex);
234 }
235 if (w == m_AlternativeClear)
236 {
237 m_IsAlternateEdited = true;
239 m_AlternativeBindButton.SetText("");
240 m_Container.ClearAlternativeKeybind(m_ElementIndex);
241 }
242 return false;
243 }

◆ OnMouseButtonUp() [7/12]

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

Definition at line 182 of file ModsMenuDetailed.c.

183 {
184 if (w == m_CloseButton)
185 {
186 Close();
187 return true;
188 }
189 return false;
190 }

References Close(), and m_CloseButton.

◆ OnMouseButtonUp() [8/12]

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

Definition at line 153 of file ModsMenuDetailedEntry.c.

154 {
155 if (w == m_IconCollapse)
156 {
157 m_ParentMenu.Select(m_Data, !m_IsOpen);
158 return true;
159 }
160 else if (w == m_ActionWebsite)
161 GetGame().OpenURL(m_Data.GetAction());
162 else if (w == m_ActionPurchase)
163 m_Data.GoToStore();
164 return false;
165 }

References GetGame(), and m_Data.

◆ OnMouseButtonUp() [9/12]

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

Definition at line 46 of file ModsMenuSimple.c.

47 {
48 if (w == m_MoreButton)
49 {
50 if (m_DetailMenu.IsOpen())
51 m_DetailMenu.Close();
52 else
53 m_DetailMenu.Open();
54 return true;
55 }
56 return false;
57 }

◆ OnMouseButtonUp() [10/12]

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

Definition at line 251 of file OptionsMenuControls.c.

252 {
253 if (button == MouseState.LEFT)
254 {
255#ifndef PLATFORM_CONSOLE
256 if (w == m_Keybindings)
257 {
259 return true;
260 }
261#endif
262 }
263 return false;
264 }

References EnterKeybindingMenu().

◆ OnMouseButtonUp() [11/12]

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

Definition at line 148 of file ServerBrowserEntry.c.

149 {
150 if (button == MouseState.LEFT)
151 {
152 if (w == m_Favorite)
153 {
155 return true;
156 }
157 else if (w == m_Expand)
158 {
159 ToggleExpand();
160 return true;
161 }
162 else if (w == m_Root)
163 {
164 Darken(w, x, y);
165 Select();
167 return true;
168 }
169 }
170 return false;
171 }

References Darken(), m_Favorite, m_Root, Select(), SetFocus(), ToggleExpand(), ToggleFavorite(), x, and y.

◆ OnMouseButtonUp() [12/12]

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

Definition at line 257 of file TabberUI.c.

258 {
259 if (button == MouseState.LEFT)
260 {
261 int index = m_TabControls.GetKeyByValue(w);
262 if (m_SelectedIndex != index)
263 {
265 if (CanSwitchTab())
266 {
268
269 return true;
270 }
271 }
272 }
273
274 return false;
275 }

◆ OnMouseEnter() [1/18]

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

Definition at line 264 of file UiHintPanel.c.

265 {
266 if (w == m_RootPath || w == m_UiLeftButton || w == m_UiRightButton)
267 {
269 return true;
270 }
271 return false;
272 }

References m_RootPath, m_UiLeftButton, m_UiRightButton, and StopSlideShow().

◆ OnMouseEnter() [2/18]

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

Definition at line 85 of file InventoryGrid.c.

86 {
87 int col = GetCol(w);
88
89 if (!IsValidPos(col))
90 return false;
91
93 PrintString(m_Root.GetName() + "::OnMouseEnter(" + col.ToString() + ")");
94
96
97 return true;
98 }
override void OnItemEnter(InventoryGrid grid, Widget w, int row, int col)

References GetCol(), IsValidPos(), m_Root, InventoryGridController::OnItemEnter(), and PrintString().

◆ OnMouseEnter() [3/18]

override bool ScriptedWidgetEventHandler::OnMouseEnter ( Widget w,
int x,
int y )
inlineprivate

Definition at line 4 of file PluginItemDiagnostic.c.

5 {
6 if (ButtonWidget.Cast(w))
7 {
8 GetGame().GetMission().AddActiveInputExcludes({"menu"});
9 }
10 return true;
11
12 }

References GetGame().

◆ OnMouseEnter() [4/18]

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

Definition at line 103 of file PlayerListEntryScriptedWidget.c.

104 {
105 if (!m_Selected)
106 {
107#ifdef PLATFORM_CONSOLE
108 if (w == m_PlayerButton)
109 {
110 Select();
112 }
113#endif
114 return true;
115 }
116 return false;
117 }

References Select(), and SetFocus().

◆ OnMouseEnter() [5/18]

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

Definition at line 247 of file KeybindingElement.c.

248 {
250 {
251 m_PrimaryBindButton.SetColor(ARGBF(1, 1, 0, 0));
252 m_PrimaryClear.Show(true);
253 m_PrimaryClear.Update();
254 m_AlternativeClear.Show(false);
255 return true;
256 }
258 {
259 m_AlternativeBindButton.SetColor(ARGBF(1, 1, 0, 0));
260 m_PrimaryClear.Show(false);
261 m_AlternativeClear.Show(true);
262 m_AlternativeClear.Update();
263 return true;
264 }
265 else
266 {
267 m_PrimaryBindButton.SetColor(ARGBF(0, 0, 0, 0));
268 m_AlternativeBindButton.SetColor(ARGBF(1, 0, 0, 0));
269 m_PrimaryClear.Show(false);
270 m_AlternativeClear.Show(false);
271 }
272 return false;
273 }

References ARGBF().

◆ OnMouseEnter() [6/18]

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

Definition at line 245 of file KeybindingElementNew.c.

246 {
248 {
249 m_PrimaryBindButton.SetColor(ARGBF(1, 1, 0, 0));
250 m_PrimaryClear.Show(true);
251 m_PrimaryClear.Update();
252 m_AlternativeClear.Show(false);
253 return true;
254 }
256 {
257 m_AlternativeBindButton.SetColor(ARGBF(1, 1, 0, 0));
258 m_PrimaryClear.Show(false);
259 m_AlternativeClear.Show(true);
260 m_AlternativeClear.Update();
261 return true;
262 }
263 else
264 {
265 m_PrimaryBindButton.SetColor(ARGBF(0, 0, 0, 0));
266 m_AlternativeBindButton.SetColor(ARGBF(1, 0, 0, 0));
267 m_PrimaryClear.Show(false);
268 m_AlternativeClear.Show(false);
269 }
270 return false;
271 }

References ARGBF().

◆ OnMouseEnter() [7/18]

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

Definition at line 132 of file MainMenuNewsfeed.c.

133 {
134 if (IsFocusable(w))
135 {
136 ColorRed(w, x, y);
137 return true;
138 }
139 return false;
140 }

References ColorRed(), IsFocusable(), x, and y.

◆ OnMouseEnter() [8/18]

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

Definition at line 167 of file ModsMenuDetailedEntry.c.

168 {
169 if (w == m_ActionWebsite)
170 {
171 m_ActionWebsite.SetBold(true);
172 m_ActionWebsite.SetText("#mod_detail_info_website");
173 }
174
175 if (w == m_ActionPurchase)
176 {
177 m_ActionPurchase.SetBold(true);
178 m_ActionPurchase.SetText("#mod_detail_info_store");
179 }
180
181 if (w == m_Root)
182 {
183 if (m_Data.GetTooltip() != "")
184 m_ParentMenu.PrepareTooltip(m_Data);
185 return true;
186 }
187
188 return false;
189 }

References m_Data, and m_Root.

◆ OnMouseEnter() [9/18]

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

Definition at line 59 of file ModsMenuSimple.c.

60 {
61 if (w == m_MoreButton)
62 {
63 m_MoreHighlight.Show(true);
64 return true;
65 }
66 return false;
67 }

◆ OnMouseEnter() [10/18]

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

Definition at line 57 of file ModsMenuSimpleEntry.c.

58 {
59 if (w == m_ModButton)
60 {
61 if (m_HasLogoOver)
62 m_Icon.SetImage(1);
63 m_Hover.Show(true);
64 return true;
65 }
66 return false;
67 }

◆ OnMouseEnter() [11/18]

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

Definition at line 232 of file OptionsMenuControls.c.

233 {
234 if (w && w.IsInherited(ScrollWidget))
235 return false;
236
237 m_Menu.ColorHighlight(w);
238
239 return true;
240 }

References m_Menu.

◆ OnMouseEnter() [12/18]

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

Definition at line 466 of file OptionsMenuGame.c.

467 {
468 if (w && w.IsInherited(ScrollWidget))
469 return false;
470
471 if (w && w.IsInherited(SliderWidget))
472 return false;
473
474 m_Menu.ColorHighlight(w);
475
476 return true;
477 }

References m_Menu.

◆ OnMouseEnter() [13/18]

override bool ScriptedWidgetEventHandler::OnMouseEnter ( Widget w,
int x,
int y )
inlineprivate

Definition at line 141 of file OptionsMenuSounds.c.

142 {
143 if (w && w.IsInherited(ScrollWidget))
144 return false;
145
146 m_Menu.ColorHighlight(w);
147
148 return true;
149 }

References m_Menu.

◆ OnMouseEnter() [14/18]

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

Definition at line 374 of file OptionsMenuVideo.c.

375 {
376 if (w && w.IsInherited(ScrollWidget))
377 return false;
378
379 m_Menu.ColorHighlight(w);
380
381 return true;
382 }

References m_Menu.

◆ OnMouseEnter() [15/18]

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

Definition at line 33 of file OptionSelectorBase.c.

34 {
35 if (!IsFocusable(w))
36 return true;
37
38 if (m_ParentClass)
39 {
41#ifndef PLATFORM_CONSOLE
42 m_ParentClass.OnMouseEnter(m_Root.GetParent().GetParent(), x, y);
43#endif
44 }
45
46 UIScriptedMenu menu = GetGame().GetUIManager().GetMenu();
47
48 if (menu && menu.IsInherited(CharacterCreationMenu))
49 {
50 menu.OnFocus(m_Root.GetParent(), -1, m_SelectorType);
51 menu.OnMouseEnter(m_Root.GetParent().GetParent(), x, y);
52 }
53
54#ifndef PLATFORM_CONSOLE
56#else
58 if (m_ParentClass)
60#endif
61
62 return true;
63 }
bool OnMouseEnter(Widget w, int x, int y)

References OptionSelectorBase::ColorHighlight(), GetGame(), OptionSelectorBase::IsFocusable(), m_Root, OnFocus(), OnMouseEnter(), x, and y.

◆ OnMouseEnter() [16/18]

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

Definition at line 173 of file ServerBrowserEntry.c.

174 {
175 if (IsFocusable(w))
176 {
177 Preview(w, x, y);
178 return true;
179 }
180
181 return false;
182 }
void Preview(Widget w, int x, int y)

References IsFocusable(), Preview(), x, and y.

◆ OnMouseEnter() [17/18]

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

Definition at line 426 of file ServerBrowserFilterContainer.c.

428 {
429 return m_Tab.OnMouseEnter(w, x, y);

References ServerBrowserTab::OnMouseEnter(), x, and y.

◆ OnMouseEnter() [18/18]

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

Definition at line 224 of file TabberUI.c.

225 {
226 int index = m_TabControls.GetKeyByValue(w);
227 if (m_SelectedIndex == index)
228 return false;
229
231 if (tab_control)
232 {
233 Widget tab_title = TextWidget.Cast(tab_control.FindAnyWidget(tab_control.GetName() + "_Title"));
234 tab_title.SetColor(ARGB(255, 255, 0, 0));
235 tab_control.SetColor(ARGB(255, 0, 0, 0));
236 }
237
238 return false;
239 }

References ARGB().

◆ OnMouseLeave() [1/19]

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

Definition at line 273 of file UiHintPanel.c.

274 {
275 if (w == m_RootPath || w == m_UiLeftButton || w == m_UiRightButton)
276 {
278 return true;
279 }
280 return false;
281 }

References m_RootPath, m_UiLeftButton, m_UiRightButton, and RestartSlideShow().

◆ OnMouseLeave() [2/19]

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

Definition at line 101 of file InventoryGrid.c.

102 {
104
105 return true;
106 }
override void OnItemLeave(InventoryGrid grid, Widget w)

References InventoryGridController::OnItemLeave().

◆ OnMouseLeave() [3/19]

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

Definition at line 126 of file ContextMenu.c.

127 {
128 super.OnMouseLeave(w, enterW, x, y);
129
131 {
132 Hide();
133 return true;
134 }
135 return false;
136 }

References Hide(), x, and y.

◆ OnMouseLeave() [4/19]

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

Definition at line 14 of file PluginItemDiagnostic.c.

15 {
16 if (ButtonWidget.Cast(w))
17 {
18 GetGame().GetMission().RemoveActiveInputExcludes({"menu"}, true);
19 }
20
21 return true;
22 }

References GetGame().

◆ OnMouseLeave() [5/19]

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

Definition at line 119 of file PlayerListEntryScriptedWidget.c.

120 {
121#ifdef PLATFORM_CONSOLE
122 if (w == m_PlayerButton)
123 {
124 Deselect();
125 return true;
126 }
127#endif
128 return false;
129 }

References Deselect().

◆ OnMouseLeave() [6/19]

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

Definition at line 275 of file KeybindingElement.c.

276 {
278 {
280 {
281 m_PrimaryClear.Show(false);
282 m_PrimaryBindButton.SetColor(ARGBF(1, 0, 0, 0));
283 }
284 }
286 {
288 {
289 m_AlternativeClear.Show(false);
290 m_AlternativeBindButton.SetColor(ARGBF(1, 0, 0, 0));
291 }
292 }
293 return false;
294 }

References ARGBF().

◆ OnMouseLeave() [7/19]

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

Definition at line 273 of file KeybindingElementNew.c.

274 {
276 {
278 {
279 m_PrimaryClear.Show(false);
280 m_PrimaryBindButton.SetColor(ARGBF(1, 0, 0, 0));
281 }
282 }
284 {
286 {
287 m_AlternativeClear.Show(false);
288 m_AlternativeBindButton.SetColor(ARGBF(1, 0, 0, 0));
289 }
290 }
291 return false;
292 }

References ARGBF().

◆ OnMouseLeave() [8/19]

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

Definition at line 142 of file MainMenuNewsfeed.c.

143 {
144 if (IsFocusable(w))
145 {
146 ColorWhite(w, enterW, x, y);
147 return true;
148 }
149 return false;
150 }

References ColorWhite(), IsFocusable(), x, and y.

◆ OnMouseLeave() [9/19]

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

Definition at line 191 of file ModsMenuDetailedEntry.c.

192 {
193 if (w == m_ActionWebsite)
194 {
195 m_ActionWebsite.SetBold(false);
196 m_ActionWebsite.SetText("#mod_detail_info_website");
197 }
198
199 if (w == m_ActionPurchase)
200 {
201 m_ActionPurchase.SetBold(false);
202 m_ActionPurchase.SetText("#mod_detail_info_store");
203 }
204
205 if (enterW != m_Root)
206 {
207 m_ParentMenu.HideTooltip();
208 return true;
209 }
210
211 return false;
212 }

References m_Root.

◆ OnMouseLeave() [10/19]

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

Definition at line 69 of file ModsMenuSimple.c.

70 {
71 if (enterW != m_MoreButton)
72 {
73 m_MoreHighlight.Show(false);
74 return true;
75 }
76 return false;
77 }

◆ OnMouseLeave() [11/19]

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

Definition at line 69 of file ModsMenuSimpleEntry.c.

70 {
71 if (enterW != m_ModButton)
72 {
73 if (m_HasLogoOver)
74 m_Icon.SetImage(0);
75 m_Hover.Show(false);
76 return true;
77 }
78 return false;
79 }

◆ OnMouseLeave() [12/19]

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

Definition at line 242 of file OptionsMenuControls.c.

243 {
244 if (w && w.IsInherited(ScrollWidget))
245 return false;
246
247 m_Menu.ColorNormal(w);
248 return true;
249 }

References m_Menu.

◆ OnMouseLeave() [13/19]

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

Definition at line 479 of file OptionsMenuGame.c.

480 {
481 if (w && w.IsInherited(ScrollWidget))
482 return false;
483
484 m_Menu.ColorNormal(w);
485 return true;
486 }

References m_Menu.

◆ OnMouseLeave() [14/19]

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

Definition at line 151 of file OptionsMenuSounds.c.

152 {
153 if (w && w.IsInherited(ScrollWidget))
154 return false;
155
156 m_Menu.ColorNormal(w);
157 return true;
158 }

References m_Menu.

◆ OnMouseLeave() [15/19]

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

Definition at line 384 of file OptionsMenuVideo.c.

385 {
386 if (w && w.IsInherited(ScrollWidget))
387 return false;
388
389 m_Menu.ColorNormal(w);
390 return true;
391 }

References m_Menu.

◆ OnMouseLeave() [16/19]

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

Definition at line 65 of file OptionSelectorBase.c.

66 {
67#ifdef PLATFORM_CONSOLE
69 return true;
70#endif
71
72 if (m_ParentClass)
73 {
75#ifndef PLATFORM_CONSOLE
76 m_ParentClass.OnMouseLeave(m_Root.GetParent().GetParent(), enterW, x, y);
77#endif
78 }
79
80 UIScriptedMenu menu = GetGame().GetUIManager().GetMenu();
81
82 if (menu && menu.IsInherited(CharacterCreationMenu))
83 {
84 menu.OnFocus(null, x, y);
85 menu.OnMouseLeave(m_Root.GetParent().GetParent(), enterW, x, y);
86 }
87
88#ifndef PLATFORM_CONSOLE
90#else
92 if (m_ParentClass)
94#endif
95
96 return true;
97 }
bool OnMouseLeave(Widget w, Widget enterW, int x, int y)

References OptionSelectorBase::ColorNormal(), OptionSelectorBase::ColorNormalConsole(), GetGame(), OptionSelectorBase::IsFocusable(), m_Root, OnFocus(), OnFocusLost(), OnMouseLeave(), x, and y.

◆ OnMouseLeave() [17/19]

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

Definition at line 184 of file ServerBrowserEntry.c.

185 {
187 {
188 Lighten(w, enterW, x, y);
189 return true;
190 }
191
192 return false;
193 }

References IsFocusable(), Lighten(), x, and y.

◆ OnMouseLeave() [18/19]

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

Definition at line 431 of file ServerBrowserFilterContainer.c.

433 {
434 return m_Tab.OnMouseLeave(w, enterW, x, y);

References ServerBrowserTab::OnMouseLeave(), x, and y.

◆ OnMouseLeave() [19/19]

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

Definition at line 241 of file TabberUI.c.

242 {
243 int index = m_TabControls.GetKeyByValue(w);
244 if (m_SelectedIndex == index)
245 return false;
246
248 if (tab_control)
249 {
250 Widget tab_title = TextWidget.Cast(tab_control.FindAnyWidget(tab_control.GetName() + "_Title"));
251 tab_title.SetColor(ARGB(255, 255, 255, 255));
252 tab_control.SetColor(ARGB(0, 0, 0, 0));
253 }
254 return false;
255 }

References ARGB().

◆ OnObjectDetailChanged()

void ScriptedWidgetEventHandler::OnObjectDetailChanged ( int value)
inlineprotected

Definition at line 456 of file OptionsMenuVideo.c.

457 {
458 m_ObjectDetailOption.SetIndex(value);
460 m_Menu.OnChanged();
461 }

References m_Menu, and OnOptionChanged().

◆ OnOptionChanged()

void ScriptedWidgetEventHandler::OnOptionChanged ( )
inlineprotected

◆ OnOverallQualityChanged()

void ScriptedWidgetEventHandler::OnOverallQualityChanged ( int value)
inlineprotected

Definition at line 411 of file OptionsMenuVideo.c.

412 {
414 m_OverallQualityOption.Test(); //here's the bastard!
415 m_Options.Test();
416 //SetOptions(m_Options);
417
419
420 //InitSelectors();
423 m_Menu.OnChanged();
424 }
proto native void Test()
Tests every option, see OptionsAccess::Test.

References m_Menu, RefreshCustom(), ReloadOptions(), and GameOptions::Test().

◆ OnPanelVisibilityChanged()

void ScriptedWidgetEventHandler::OnPanelVisibilityChanged ( )
inlineprotected

Definition at line 82 of file MainMenuPromo.c.

83 {
85 return;
86
87 /*if (IsInfoPanelVisible())
88 StartVideo();
89 else
90 PauseVideo();*/
91 }

References UpdateAllPromotionInfo().

Referenced by ShowInfoPanel().

◆ OnPartyChatChangedEvent()

void ScriptedWidgetEventHandler::OnPartyChatChangedEvent ( )
inlineprivate

Definition at line 215 of file OptionsMenuSounds.c.

216 {
217 auto game = GetGame();
218 if (!game.IsInPartyChat())
219 game.EnableMicCapture(true);
220
222 }

References GetGame(), and UpdateWasMicCapturing().

◆ OnPlaybackStart()

void ScriptedWidgetEventHandler::OnPlaybackStart ( )
inlineprotected

Definition at line 167 of file VideoPlayer.c.

168 {
169 m_PlayButton.Show(false);
170 m_PauseButton.Show(true);
171
172 GetGame().GetCallQueue(CALL_CATEGORY_SYSTEM).CallLater(UpdateCurrentTime, 0, true);
173 }

References CALL_CATEGORY_SYSTEM, and GetGame().

◆ OnPlaybackStop()

void ScriptedWidgetEventHandler::OnPlaybackStop ( )
inlineprotected

Definition at line 175 of file VideoPlayer.c.

176 {
177 m_PlayButton.Show(true);
178 m_PauseButton.Show(false);
179
181
182 GetGame().GetCallQueue(CALL_CATEGORY_SYSTEM).Remove(UpdateCurrentTime);
183 }

References CALL_CATEGORY_SYSTEM, GetGame(), and UpdateCurrentTime().

◆ OnPPAAChanged()

void ScriptedWidgetEventHandler::OnPPAAChanged ( int value)
inlineprotected

Definition at line 498 of file OptionsMenuVideo.c.

499 {
500 m_PPAAOption.SetIndex(value);
502 m_Menu.OnChanged();
503 }

References m_Menu, and OnOptionChanged().

◆ OnPPQualityChanged()

void ScriptedWidgetEventHandler::OnPPQualityChanged ( int value)
inlineprotected

Definition at line 530 of file OptionsMenuVideo.c.

531 {
532 m_PPQualityOption.SetIndex(value);
534 m_Menu.OnChanged();
535 }

References m_Menu, and OnOptionChanged().

◆ OnResolutionChanged()

void ScriptedWidgetEventHandler::OnResolutionChanged ( int value)
inlineprotected

Definition at line 432 of file OptionsMenuVideo.c.

433 {
434 m_ResolutionOption.SetIndex(value);
435 m_Menu.OnChanged();
436 }

References m_Menu.

◆ OnSelect()

override bool ScriptedWidgetEventHandler::OnSelect ( Widget w,
int x,
int y )
inlineprivate

Definition at line 55 of file HudDebug.c.

56 {
57 //Print("OnSelect");
58 return true;
59 }

◆ OnSelectAction()

void ScriptedWidgetEventHandler::OnSelectAction ( ItemBase item,
int actionId )
inlineprotected

Definition at line 25 of file LayoutHolder.c.

26 {
27#ifdef DIAG_DEVELOPER
29 m_player.GetActionManager().OnInstantAction(ActionDebug, new Param2<ItemBase, int>(item, actionId));
30#endif
31 }
DayZPlayer m_player

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

◆ OnSelectActionEx()

void ScriptedWidgetEventHandler::OnSelectActionEx ( EntityAI item,
int actionId )
inlineprotected

Definition at line 33 of file LayoutHolder.c.

34 {
35#ifdef DIAG_DEVELOPER
37 m_player.GetActionManager().OnInstantAction(ActionDebug, new Param2<EntityAI, int>(item, actionId));
38#endif
39 }

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

◆ OnSelectConsolePreset()

void ScriptedWidgetEventHandler::OnSelectConsolePreset ( int index)
inlineprotected

Definition at line 71 of file KeybindingsGroup.c.

72 {
73 string profile_text;
74 GetGame().GetInput().GetProfileName(index, profile_text);
75 GetGame().GetInput().SetProfile(index);
77 }

References GetGame(), and ReloadProfiles().

◆ OnSelectKBPreset()

void ScriptedWidgetEventHandler::OnSelectKBPreset ( int index)
inlineprotected

Definition at line 61 of file KeybindingsGroup.c.

62 {
63 string profile_text;
64 GetGame().GetInput().GetProfileName(index, profile_text);
66 GetGame().GetInput().SetProfile(index);
68 m_KBDropdown.Close();
69 }

References GetGame(), and ReloadProfiles().

◆ OnShadowDetailChanged()

void ScriptedWidgetEventHandler::OnShadowDetailChanged ( int value)
inlineprotected

Definition at line 477 of file OptionsMenuVideo.c.

478 {
479 m_ShadowDetailOption.SetIndex(value);
481 m_Menu.OnChanged();
482 }

References m_Menu, and OnOptionChanged().

◆ OnShow()

void ScriptedWidgetEventHandler::OnShow ( )
inlineprotected

Definition at line 182 of file LayoutHolder.c.

183 {
184 m_RootWidget.Show(true);
185 if (m_ParentWidget)
186 m_ParentWidget.Show(true);
187 }

References m_ParentWidget, and m_RootWidget.

◆ OnSortChanged()

void ScriptedWidgetEventHandler::OnSortChanged ( int value)
inlineprotected

Definition at line 348 of file ServerBrowserFilterContainer.c.

349 {
350 switch (value)
351 {
352 case 0:
353 {
354 m_Tab.SetSort(ESortType.HOST, ESortOrder.ASCENDING);
355 break;
356 }
357 case 1:
358 {
359 m_Tab.SetSort(ESortType.HOST, ESortOrder.DESCENDING);
360 break;
361 }
362 case 2:
363 {
364 m_Tab.SetSort(ESortType.POPULATION, ESortOrder.DESCENDING);
365 break;
366 }
367 case 3:
368 {
369 m_Tab.SetSort(ESortType.POPULATION, ESortOrder.ASCENDING);
370 break;
371 }
372 }
373 }
ESortOrder
ESortType

References ServerBrowserTab::SetSort().

◆ OnSSRQualityChanged()

void ScriptedWidgetEventHandler::OnSSRQualityChanged ( int value)
inlineprotected

Definition at line 537 of file OptionsMenuVideo.c.

538 {
539 m_SSRQualityOption.SetIndex(value);
541 m_Menu.OnChanged();
542 }

References m_Menu, and OnOptionChanged().

◆ OnTerrainDetailChanged()

void ScriptedWidgetEventHandler::OnTerrainDetailChanged ( int value)
inlineprotected

Definition at line 463 of file OptionsMenuVideo.c.

464 {
467 m_Menu.OnChanged();
468 }

References m_Menu, and OnOptionChanged().

◆ OnTerrainSurfaceDetailChanged()

void ScriptedWidgetEventHandler::OnTerrainSurfaceDetailChanged ( int value)
inlineprotected

Definition at line 491 of file OptionsMenuVideo.c.

492 {
495 m_Menu.OnChanged();
496 }

References m_Menu, and OnOptionChanged().

◆ OnTextureDetailChanged()

void ScriptedWidgetEventHandler::OnTextureDetailChanged ( int value)
inlineprotected

Definition at line 470 of file OptionsMenuVideo.c.

471 {
474 m_Menu.OnChanged();
475 }

References m_Menu, and OnOptionChanged().

◆ OnTextureFilteringChanged()

void ScriptedWidgetEventHandler::OnTextureFilteringChanged ( int value)
inlineprotected

Definition at line 484 of file OptionsMenuVideo.c.

485 {
488 m_Menu.OnChanged();
489 }

References m_Menu, and OnOptionChanged().

◆ OnUpdate() [1/3]

override bool ScriptedWidgetEventHandler::OnUpdate ( Widget w)
inlineprotected

Definition at line 79 of file InventoryGrid.c.

80 {
81 return false;
82 }

◆ OnUpdate() [2/3]

override bool ScriptedWidgetEventHandler::OnUpdate ( Widget w)
inlineprotected

Definition at line 34 of file BannerHandlerBase.c.

35 {
36 if (w == m_BannerText)
37 {
38 float w0, h0, x0, y0;
39 m_BannerText.GetScreenSize(w0, h0);
40 float bannerBodyWidth = w0 + 20;
41
42 m_BannerBody.SetScreenSize(bannerBodyWidth, h0);
43 m_BannerBody.GetScreenPos(x0, y0);
44
45 m_BannerWedge.GetScreenSize(w0, h0);
46 m_BannerWedge.SetScreenPos(Math.Ceil(x0 - w0), y0);
47 }
48
49 return super.OnUpdate(w);
50 }
static proto float Ceil(float f)
Returns ceil of value.

References Math::Ceil().

◆ OnUpdate() [3/3]

override bool ScriptedWidgetEventHandler::OnUpdate ( Widget w)
inlineprotected

Definition at line 31 of file ObjectFollower.c.

32 {
33 if (m_Root == w)
34 {
35 Update();
36 return true;
37 }
38
39 return false;
40 }

References m_Root, and Update().

◆ OnVonStateEvent()

void ScriptedWidgetEventHandler::OnVonStateEvent ( )
inlineprivate

Definition at line 202 of file OptionsMenuSounds.c.

203 {
204 // changing VON mode may disable mic capture,
205 // but mic should capture the entire time this menu is open (unless user in party chat)
206 if (!GetGame().IsInPartyChat())
207 {
208 // force enable mic capture
209 GetGame().EnableMicCapture(true);
210 }
211
213 }

References GetGame(), and UpdateWasMicCapturing().

◆ OnVSyncChanged()

void ScriptedWidgetEventHandler::OnVSyncChanged ( float value)
inlineprotected

Definition at line 444 of file OptionsMenuVideo.c.

445 {
446 m_VSyncOption.SetIndex(value);
447 m_Menu.OnChanged();
448 }

References m_Menu.

◆ OnWidgetScriptInit() [1/7]

void ScriptedWidgetEventHandler::OnWidgetScriptInit ( Widget w)
inlineprotected

Definition at line 14 of file SizeToChild.c.

15 {
16 m_Root = w;
17
18 m_Child = m_Root.FindAnyWidget(m_ChildName);
19 if (m_Child)
21 }
reference string m_ChildName
Definition SizeToChild.c:3

References m_Root.

◆ OnWidgetScriptInit() [2/7]

void ScriptedWidgetEventHandler::OnWidgetScriptInit ( Widget w)
inlineprotected

Definition at line 66 of file InventoryGrid.c.

67 {
68 m_Root = w;
69 m_Root.SetHandler(this);
70 }

References m_Root.

◆ OnWidgetScriptInit() [3/7]

void ScriptedWidgetEventHandler::OnWidgetScriptInit ( Widget w)
inlineprotected

Definition at line 43 of file ContinuousActionProgress.c.

44 {
45 m_Root = w;
46 m_Root.SetHandler(this);
47 m_Root.Show(false);
48
49 m_RadialWidget = m_Root.FindAnyWidget("PBRadial1");
50 m_LoaderImage = ImageWidget.Cast(m_Root.FindAnyWidget("cap_init_loader"));
52 m_RadialWidget.GetScript(m_Radial);
53 m_Root.Update();
54 }

References m_Root.

◆ OnWidgetScriptInit() [4/7]

void ScriptedWidgetEventHandler::OnWidgetScriptInit ( Widget w)
inlineprotected

UA -> widget icon

Definition at line 82 of file ItemActionsWidget.c.

83 {
84 m_Root = w;
85 m_Root.SetHandler(this);
86 m_Root.Show(false);
87
88 m_ItemLeft = w.FindAnyWidget("ia_item_left");
89
93 }

References m_Root, UpdateControllerInputIcons(), and UpdatePCIconsVisibility().

◆ OnWidgetScriptInit() [5/7]

void ScriptedWidgetEventHandler::OnWidgetScriptInit ( Widget w)
inlineprotected

Definition at line 91 of file TabberUI.c.

92 {
93 m_TabsCount = 0;
96
97 m_Root = w;
98 m_InitTimer = new Timer();
99 m_TabControlsRoot = m_Root.FindAnyWidget("TabControls");
100
101 Init();
102 }

References Init(), and m_Root.

◆ OnWidgetScriptInit() [6/7]

void ScriptedWidgetEventHandler::OnWidgetScriptInit ( Widget w)
inlineprotected

Definition at line 20 of file ObjectFollower.c.

21 {
22 m_Root = w;
23 m_Root.SetHandler(this);
24 }

References m_Root.

◆ OnWidgetScriptInit() [7/7]

void ScriptedWidgetEventHandler::OnWidgetScriptInit ( Widget w)
inlineprotected

Definition at line 26 of file ProjectedCrosshair.c.

27 {
28 m_Root = w;
29 m_Root.SetHandler(this);
30 m_Root.Update();
31 }

References m_Root.

◆ Open()

void ScriptedWidgetEventHandler::Open ( )
inlineprotected

Definition at line 38 of file ModsMenuDetailed.c.

39 {
40 if (!m_Root.IsVisible())
41 m_Scroll.VScrollToPos(0);
42 m_Root.Show(true);
43 GetGame().GetMission().GetOnModMenuVisibilityChanged().Invoke(false);
44 }

References GetGame(), and m_Root.

◆ OpenDiscord()

void ScriptedWidgetEventHandler::OpenDiscord ( )
inlineprotected

Definition at line 69 of file MainMenuNewsfeed.c.

70 {
71 GetGame().OpenURL("https://discord.gg/bXkyMNm");
72 }

References GetGame().

Referenced by OnClick().

◆ OpenDLC()

void ScriptedWidgetEventHandler::OpenDLC ( )
inlineprotected

Definition at line 64 of file MainMenuNewsfeed.c.

65 {
66 GetGame().OpenURL("https://store.steampowered.com/app/830660/Survivor_GameZ/");
67 }

References GetGame().

Referenced by OnClick().

◆ OpenFeedback()

void ScriptedWidgetEventHandler::OpenFeedback ( )
inlineprotected

Definition at line 74 of file MainMenuNewsfeed.c.

75 {
76 GetGame().OpenURL("https://feedback.bistudio.com/tag/dayz");
77 }

References GetGame().

Referenced by OnClick().

◆ OpenForums()

void ScriptedWidgetEventHandler::OpenForums ( )
inlineprotected

Definition at line 79 of file MainMenuNewsfeed.c.

80 {
81 GetGame().OpenURL("https://forums.dayz.com");
82 }

References GetGame().

Referenced by OnClick().

◆ OpenTwitter()

void ScriptedWidgetEventHandler::OpenTwitter ( )
inlineprotected

Definition at line 84 of file MainMenuNewsfeed.c.

85 {
86 GetGame().OpenURL("https://twitter.com/DayZ");
87 }

References GetGame().

Referenced by OnClick().

◆ OpenYoutube()

void ScriptedWidgetEventHandler::OpenYoutube ( )
inlineprotected

Definition at line 89 of file MainMenuNewsfeed.c.

90 {
91 GetGame().OpenURL("https://www.youtube.com/user/DayZDevTeam");
92 }

References GetGame().

Referenced by OnClick().

◆ OptionsMenuControls()

void ScriptedWidgetEventHandler::OptionsMenuControls ( Widget parent,
Widget details_root,
GameOptions options,
OptionsMenu menu )
inlineprotected

Definition at line 71 of file OptionsMenuControls.c.

72 {
73 array<string> opt = { "#options_controls_disabled", "#options_controls_enabled" };
74
75 m_Root = GetGame().GetWorkspace().CreateWidgets(GetLayoutName(), parent);
77 m_Menu = menu;
78
80 m_DetailsBodyDefault = m_DetailsRoot.FindAnyWidget("settings_details_body");
81 m_DetailsBodyConnectivity = m_DetailsRoot.FindAnyWidget("settings_details_body_connectivity");
82 m_DetailsLabel = TextWidget.Cast(m_DetailsRoot.FindAnyWidget("details_label"));
83 m_DetailsText = RichTextWidget.Cast(m_DetailsRoot.FindAnyWidget("details_content"));
84 m_Keybindings = GridSpacerWidget.Cast(m_Root.FindAnyWidget("keyboard_settings_content"));
85 if (m_Keybindings)
86 m_Keybindings.SetUserID(777);
87
89
90 // mouse (PC & consoles)
91 Widget mouse_InvertSettingOption = m_Root.FindAnyWidget("mouse_invert_setting_option");
92 Widget mouse_VSensitivitySettingOption = m_Root.FindAnyWidget("mouse_vsensitivity_setting_option");
93 Widget mouse_HSensitivitySettingOption = m_Root.FindAnyWidget("mouse_hsensitivity_setting_option");
94 Widget mouse_AimMod_VSensitivitySettingOption = m_Root.FindAnyWidget("mouse_aimmod_vsensitivity_setting_option");
95 Widget mouse_AimMod_HSensitivitySettingOption = m_Root.FindAnyWidget("mouse_aimmod_hsensitivity_setting_option");
96
97 mouse_InvertSettingOption.SetUserID(OptionAccessType.AT_OPTIONS_MOUSE_YAXIS_INVERTED);
98 mouse_VSensitivitySettingOption.SetUserID(OptionAccessType.AT_OPTIONS_MOUSE_YAXIS);
99 mouse_HSensitivitySettingOption.SetUserID(OptionAccessType.AT_OPTIONS_MOUSE_XAXIS);
100 mouse_AimMod_VSensitivitySettingOption.SetUserID(OptionAccessType.AT_OPTIONS_MOUSE_YAXIS_AIM_MOD);
101 mouse_AimMod_HSensitivitySettingOption.SetUserID(OptionAccessType.AT_OPTIONS_MOUSE_XAXIS_AIM_MOD);
102
103 m_Mouse_InvertSelector = new OptionSelectorMultistate(mouse_InvertSettingOption, m_Mouse_InvertOption.GetIndex(), this, false, opt);
112
113 m_Mouse_InvertSelector.m_OptionChanged.Insert(UpdateMouseInvertView);
118
119 // controller (consoles only)
120#ifdef PLATFORM_CONSOLE
121 m_MaKOptionAvailable = g_Game.GetGameState() != DayZGameState.IN_GAME || GetGame().GetWorld().IsMouseAndKeyboardEnabledOnServer();
122 m_ConsoleControllerSensitivityWidget = m_Root.FindAnyWidget("controller_settings_root");
123 m_ConsoleMouseSensitivityWidget = m_Root.FindAnyWidget("mouse_settings_root");
124
125 Widget keyboardSettingOption = m_Root.FindAnyWidget("keyboard_setting_option");
126 Widget aimHelperSettingOption = m_Root.FindAnyWidget("aimhelper_setting_option");
127
128 Widget controllerLS_VSensitivitySettingOption = m_Root.FindAnyWidget("controller_ls_vsensitivity_setting_option");
129 Widget controllerLS_HSensitivitySettingOption = m_Root.FindAnyWidget("controller_ls_hsensitivity_setting_option");
130 Widget controllerLS_VehicleMod_HSensitivitySettingOption = m_Root.FindAnyWidget("controller_ls_vehicle_sensitivity_setting_option");
131 Widget controllerRS_InvertSettingOption = m_Root.FindAnyWidget("controller_rs_invert_setting_option");
132 Widget controllerRS_VSensitivitySettingOption = m_Root.FindAnyWidget("controller_rs_vsensitivity_setting_option");
133 Widget controllerRS_HSensitivitySettingOption = m_Root.FindAnyWidget("controller_rs_hsensitivity_setting_option");
134 Widget controllerRS_CurvatureSettingOption = m_Root.FindAnyWidget("controller_rs_curvature_setting_option");
135 Widget controllerRS_AimMod_VSensitivitySettingOption = m_Root.FindAnyWidget("controller_rs_aimmod_vsensitivity_setting_option");
136 Widget controllerRS_AimMod_HSensitivitySettingOption = m_Root.FindAnyWidget("controller_rs_aimmod_hsensitivity_setting_option");
137 Widget controllerRS_AimMod_CurvatureSettingOption = m_Root.FindAnyWidget("controller_rs_aimmod_curvature_setting_option");
138
139 keyboardSettingOption.SetUserID(OptionAccessType.AT_OPTIONS_MOUSE_AND_KEYBOARD);
140 aimHelperSettingOption.SetUserID(OptionAccessType.AT_OPTIONS_AIM_HELPER);
141
142 controllerLS_VSensitivitySettingOption.SetUserID(OptionAccessType.AT_OPTIONS_CONTROLLER_LS_YAXIS);
143 controllerLS_HSensitivitySettingOption.SetUserID(OptionAccessType.AT_OPTIONS_CONTROLLER_LS_XAXIS);
144 controllerLS_VehicleMod_HSensitivitySettingOption.SetUserID(OptionAccessType.AT_OPTIONS_CONTROLLER_LS_XAXIS_VEHICLE_MOD);
145 controllerRS_InvertSettingOption.SetUserID(OptionAccessType.AT_OPTIONS_CONTROLLER_RS_YAXIS_INVERTED);
146 controllerRS_VSensitivitySettingOption.SetUserID(OptionAccessType.AT_OPTIONS_CONTROLLER_RS_YAXIS);
147 controllerRS_HSensitivitySettingOption.SetUserID(OptionAccessType.AT_OPTIONS_CONTROLLER_RS_XAXIS);
148 controllerRS_CurvatureSettingOption.SetUserID(OptionAccessType.AT_OPTIONS_CONTROLLER_RS_CURVATURE);
149 controllerRS_AimMod_VSensitivitySettingOption.SetUserID(OptionAccessType.AT_OPTIONS_CONTROLLER_RS_YAXIS_AIM_MOD);
150 controllerRS_AimMod_HSensitivitySettingOption.SetUserID(OptionAccessType.AT_OPTIONS_CONTROLLER_RS_XAXIS_AIM_MOD);
151 controllerRS_AimMod_CurvatureSettingOption.SetUserID(OptionAccessType.AT_OPTIONS_CONTROLLER_RS_CURVATURE_AIM_MOD);
152
153 m_KeyboardSelector = new OptionSelectorMultistate(keyboardSettingOption, m_KeyboardOption.GetIndex(), this, !m_MaKOptionAvailable, opt);
154 m_AimHelperSelector = new OptionSelectorMultistate(aimHelperSettingOption, m_AimHelperOption.GetIndex(), this, false, opt);
155
162 m_ControllerRS_InvertSelector = new OptionSelectorMultistate(controllerRS_InvertSettingOption, m_ControllerRS_InvertOption.GetIndex(), this, false, opt);
175
176 m_KeyboardSelector.m_OptionChanged.Insert(UpdateKeyboard);
177 m_AimHelperSelector.m_OptionChanged.Insert(UpdateAimHelper);
178
189
191
192 bool MaKState = m_KeyboardSelector.IsEnabled() && GetGame().GetInput().IsEnabledMouseAndKeyboardEvenOnServer();
193 GetGame().GetCallQueue(CALL_CATEGORY_GUI).Call(m_Menu.ToggleDependentOptions, EDependentOptions.MOUSEANDKEYBOARD_QUICKBAR, MaKState);
194#endif
195
196 FillTextMap();
197
198 float x, y, y2;
199 m_Root.FindAnyWidget("controls_settings_scroll").GetScreenSize(x, y);
200 m_Root.FindAnyWidget("controls_settings_root").GetScreenSize(x, y2);
201 int f = (y2 > y);
202 m_Root.FindAnyWidget("controls_settings_scroll").SetAlpha(f);
203
204 m_Root.SetHandler(this);
205 }
EDependentOptions
ref NumericOptionsAccess m_Mouse_AimMod_VSensitivityOption
ref OptionSelectorSlider m_ControllerLS_VehicleMod_HSensitivitySelector
void UpdateMouseAimModHSensitivity(float value)
ref OptionSelectorSlider m_ControllerRS_HSensitivitySelector
ref NumericOptionsAccess m_Mouse_VSensitivityOption
ref NumericOptionsAccess m_ControllerRS_CurvatureOption
ref NumericOptionsAccess m_ControllerRS_AimMod_VSensitivityOption
void UpdateMouseVSensitivity(float value)
ref NumericOptionsAccess m_ControllerLS_VSensitivityOption
ref NumericOptionsAccess m_ControllerRS_VSensitivityOption
ref OptionSelectorSlider m_Mouse_AimMod_VSensitivitySelector
ref OptionSelectorMultistate m_Mouse_InvertSelector
ref NumericOptionsAccess m_ControllerRS_AimMod_HSensitivityOption
void UpdateMouseAimModVSensitivity(float value)
ref OptionSelectorSlider m_ControllerRS_AimMod_VSensitivitySelector
ref NumericOptionsAccess m_ControllerRS_AimMod_CurvatureOption
ref NumericOptionsAccess m_ControllerRS_HSensitivityOption
void SetOptions(GameOptions options)
ref OptionSelectorSlider m_ControllerRS_AimMod_HSensitivitySelector
ref NumericOptionsAccess m_ControllerLS_VehicleMod_HSensitivityOption
ref SwitchOptionsAccess m_ControllerRS_InvertOption
ref SwitchOptionsAccess m_AimHelperOption
ref OptionSelectorSlider m_ControllerLS_HSensitivitySelector
ref OptionSelectorSlider m_Mouse_AimMod_HSensitivitySelector
ref OptionSelectorSlider m_Mouse_HSensitivitySelector
ref OptionSelectorSlider m_ControllerRS_AimMod_CurvatureSelector
ref NumericOptionsAccess m_Mouse_AimMod_HSensitivityOption
ref OptionSelectorSlider m_Mouse_VSensitivitySelector
ref OptionSelectorSlider m_ControllerRS_VSensitivitySelector
ref OptionSelectorSlider m_ControllerRS_CurvatureSelector
void UpdateMouseHSensitivity(float value)
ref OptionSelectorMultistate m_ControllerRS_InvertSelector
ref SwitchOptionsAccess m_Mouse_InvertOption
ref NumericOptionsAccess m_ControllerLS_HSensitivityOption
ref NumericOptionsAccess m_Mouse_HSensitivityOption
ref OptionSelectorSlider m_ControllerLS_VSensitivitySelector

References CALL_CATEGORY_GUI, FillTextMap(), g_Game, GetGame(), GetLayoutName(), m_Menu, m_Root, SetOptions(), x, and y.

◆ OptionsMenuGame()

void ScriptedWidgetEventHandler::OptionsMenuGame ( Widget parent,
Widget details_root,
GameOptions options,
OptionsMenu menu )
inlineprotected

Definition at line 43 of file OptionsMenuGame.c.

44 {
45 m_Root = GetGame().GetWorkspace().CreateWidgets(GetLayoutName(), parent);
46
48 m_DetailsBodyDefault = m_DetailsRoot.FindAnyWidget("settings_details_body");
49 m_DetailsBodyConnectivity = m_DetailsRoot.FindAnyWidget("settings_details_body_connectivity");
50 m_DetailsLabel = TextWidget.Cast(m_DetailsRoot.FindAnyWidget("details_label"));
51 m_DetailsText = RichTextWidget.Cast(m_DetailsRoot.FindAnyWidget("details_content"));
52
54 m_Menu = menu;
55
59
60 m_Root.FindAnyWidget("fov_setting_option").SetUserID(OptionAccessType.AT_OPTIONS_FIELD_OF_VIEW);
61 m_Root.FindAnyWidget("hud_setting_option").SetUserID(OptionIDsScript.OPTION_HUD);
62 m_Root.FindAnyWidget("hud_brightness_setting_option").SetUserID(OptionIDsScript.OPTION_HUD_BRIGHTNESS);
63 m_Root.FindAnyWidget("crosshair_setting_option").SetUserID(OptionIDsScript.OPTION_CROSSHAIR);
64 m_Root.FindAnyWidget("game_setting_option").SetUserID(OptionIDsScript.OPTION_GAME_MESSAGES);
65 m_Root.FindAnyWidget("admin_setting_option").SetUserID(OptionIDsScript.OPTION_ADMIN_MESSAGES);
66 m_Root.FindAnyWidget("player_setting_option").SetUserID(OptionIDsScript.OPTION_PLAYER_MESSAGES);
67 m_Root.FindAnyWidget("language_setting_option").SetUserID(OptionAccessType.AT_OPTIONS_LANGUAGE);
68 m_Root.FindAnyWidget("bleeding_indication_setting_option").SetUserID(OptionIDsScript.OPTION_BLEEDINGINDICATION);
69 m_Root.FindAnyWidget("connectivity_setting_option").SetUserID(OptionIDsScript.OPTION_CONNECTIVITY_INFO);
70 m_Root.FindAnyWidget("quickbar_setting_option").SetUserID(OptionIDsScript.OPTION_QUICKBAR);
71
72#ifdef PLATFORM_CONSOLE
73 m_QuickbarButton = ButtonWidget.Cast(m_Root.FindAnyWidget("quickbar_button"));
74 m_Root.FindAnyWidget("brightness_setting_option").SetUserID(OptionAccessType.AT_OPTIONS_BRIGHT_SLIDER);
75#else
76 m_Root.FindAnyWidget("serverinfo_setting_option").SetUserID(OptionIDsScript.OPTION_SERVER_INFO);
77 m_Root.FindAnyWidget("pause_setting_option").SetUserID(OptionAccessType.AT_OPTIONS_PAUSE);
78#endif
79
81
82 array<string> opt = { "#options_controls_disabled", "#options_controls_enabled" };
83 array<string> opt2 = { "#options_controls_enabled", "#options_controls_disabled" };
85 for (int i = 0; i < m_LanguageOption.GetItemsCount(); ++i)
86 {
87 string text;
88 m_LanguageOption.GetItemText(i, text);
89 opt3.Insert(text);
90 }
91
92 array<string> opt4 = { "#options_pc_nopause_0", "#options_pc_nopause_1", "#options_pc_nopause_2" }; // Pause options menu strings
93
94 m_LanguageSelector = new OptionSelectorMultistate(m_Root.FindAnyWidget("language_setting_option"), m_LanguageOption.GetIndex(), this, false, opt3);
95 m_FOVSelector = new OptionSelectorSlider(m_Root.FindAnyWidget("fov_setting_option"), m_FOVOption.ReadValue(), this, false, m_FOVOption.GetMin(), m_FOVOption.GetMax());
96 m_ShowHUDSelector = new OptionSelectorMultistate(m_Root.FindAnyWidget("hud_setting_option"), g_Game.GetProfileOptionBool(EDayZProfilesOptions.HUD), this, false, opt);
97 m_HUDBrightnessSelector = new OptionSelectorSlider(m_Root.FindAnyWidget("hud_brightness_setting_option"), g_Game.GetProfileOptionFloat(EDayZProfilesOptions.HUD_BRIGHTNESS), this, false, HUD_BRIGHTNESS_MIN, HUD_BRIGHTNESS_MAX);
98 m_ShowCrosshairSelector = new OptionSelectorMultistate(m_Root.FindAnyWidget("crosshair_setting_option"), g_Game.GetProfileOptionBool(EDayZProfilesOptions.CROSSHAIR), this, false, opt);
99 m_ShowGameSelector = new OptionSelectorMultistate(m_Root.FindAnyWidget("game_setting_option"), g_Game.GetProfileOptionBool(EDayZProfilesOptions.GAME_MESSAGES), this, false, opt2);
100 m_ShowAdminSelector = new OptionSelectorMultistate(m_Root.FindAnyWidget("admin_setting_option"), g_Game.GetProfileOptionBool(EDayZProfilesOptions.ADMIN_MESSAGES), this, false, opt2);
101 m_ShowPlayerSelector = new OptionSelectorMultistate(m_Root.FindAnyWidget("player_setting_option"), g_Game.GetProfileOptionBool(EDayZProfilesOptions.PLAYER_MESSAGES), this, false, opt2);
102 m_BleedingIndication = new OptionSelectorMultistate(m_Root.FindAnyWidget("bleeding_indication_setting_option"), g_Game.GetProfileOptionBool(EDayZProfilesOptions.BLEEDINGINDICATION), this, false, opt);
103 m_ConnectivityInfo = new OptionSelectorMultistate(m_Root.FindAnyWidget("connectivity_setting_option"), g_Game.GetProfileOptionBool(EDayZProfilesOptions.CONNECTIVITY_INFO), this, false, opt);
104 m_ShowQuickbarSelector = new OptionSelectorMultistate(m_Root.FindAnyWidget("quickbar_setting_option"), g_Game.GetProfileOptionBool(EDayZProfilesOptions.QUICKBAR), this, false, opt);
105
106 m_LanguageSelector.m_OptionChanged.Insert(UpdateLanguageOption);
107 m_FOVSelector.m_OptionChanged.Insert(UpdateFOVOption);
108 m_ShowHUDSelector.m_OptionChanged.Insert(UpdateHUDOption);
110 m_ShowCrosshairSelector.m_OptionChanged.Insert(UpdateCrosshairOption);
111 m_ShowGameSelector.m_OptionChanged.Insert(UpdateGameOption);
112 m_ShowAdminSelector.m_OptionChanged.Insert(UpdateAdminOption);
113 m_ShowPlayerSelector.m_OptionChanged.Insert(UpdatePlayerOption);
114 m_BleedingIndication.m_OptionChanged.Insert(UpdateBleedingIndication);
115 m_ConnectivityInfo.m_OptionChanged.Insert(UpdateConnectivityInfo);
116 m_ShowQuickbarSelector.m_OptionChanged.Insert(UpdateQuickbarOption);
117
118#ifdef PLATFORM_CONSOLE
120 m_BrightnessSelector = new OptionSelectorSlider(m_Root.FindAnyWidget("brightness_setting_option"), m_BrightnessOption.ReadValue(), this, false, m_BrightnessOption.GetMin(), m_BrightnessOption.GetMax());
121 m_BrightnessSelector.m_OptionChanged.Insert(UpdateBrightnessOption);
122#else
123 m_ShowServerInfoSelector = new OptionSelectorMultistate(m_Root.FindAnyWidget("serverinfo_setting_option"), g_Game.GetProfileOptionBool(EDayZProfilesOptions.SERVERINFO_DISPLAY), this, false, opt);
124 m_PauseSelector = new OptionSelectorMultistate(m_Root.FindAnyWidget("pause_setting_option"), m_PauseOption.GetIndex(), this, false, opt4);
125
126 m_ShowServerInfoSelector.m_OptionChanged.Insert(UpdateServerInfoOption);
127 m_PauseSelector.m_OptionChanged.Insert(UpdatePauseOption);
128#endif
129
130 float x, y, y2;
131 m_Root.FindAnyWidget("game_settings_scroll").GetScreenSize(x, y);
132 m_Root.FindAnyWidget("game_settings_root").GetScreenSize(x, y2);
133 int f = (y2 > y);
134 m_Root.FindAnyWidget("game_settings_scroll").SetAlpha(f);
135
136 m_Root.SetHandler(this);
137 m_DetailsRoot.Show(false);
138
140 }
proto native OptionsAccess GetOptionByType(int accessType)
Get option by AccessType.
void UpdateCrosshairOption(int new_index)
void UpdateConnectivityInfo(int newIndex)
void UpdateBleedingIndication(int new_index)
void UpdateHUDBrightnessOption(float newValue)
void UpdateQuickbarOption(int new_index)
void UpdatePauseOption(int new_index)
ref OptionSelectorSlider m_FOVSelector
void UpdateGameOption(int new_index)
ref OptionSelectorMultistate m_PauseSelector
void UpdateHUDOption(int new_index)
void UpdateLanguageOption(int new_index)
ref ListOptionsAccess m_PauseOption
void UpdateServerInfoOption(int new_index)
void UpdatePlayerOption(int new_index)
void UpdateFOVOption(float new_value)
void UpdateAdminOption(int new_index)

References FillTextMap(), g_Game, GetGame(), GetLayoutName(), GameOptions::GetOptionByType(), InitDependentOptionsVisibility(), m_Menu, m_Root, x, and y.

◆ OptionsMenuSounds()

void ScriptedWidgetEventHandler::OptionsMenuSounds ( Widget parent,
Widget details_root,
GameOptions options,
OptionsMenu menu )
inlineprivate

Definition at line 36 of file OptionsMenuSounds.c.

37 {
38 m_Root = GetGame().GetWorkspace().CreateWidgets(GetLayoutName(), parent);
40 m_DetailsBodyDefault = m_DetailsRoot.FindAnyWidget("settings_details_body");
41 m_DetailsBodyConnectivity = m_DetailsRoot.FindAnyWidget("settings_details_body_connectivity");
42 m_DetailsLabel = TextWidget.Cast(m_DetailsRoot.FindAnyWidget("details_label"));
43 m_DetailsText = RichTextWidget.Cast(m_DetailsRoot.FindAnyWidget("details_content"));
45 m_Menu = menu;
46
53
54 m_MissionGameplay = MissionGameplay.Cast(GetGame().GetMission());
57 m_AudioLevelTimer.Run(0.1, this, "UpdateAudioLevel", NULL, true);
58
59 m_Root.FindAnyWidget("master_setting_option").SetUserID(OptionAccessType.AT_OPTIONS_MASTER_VOLUME);
60 m_Root.FindAnyWidget("effects_setting_option").SetUserID(OptionAccessType.AT_OPTIONS_EFFECTS_SLIDER);
61 m_Root.FindAnyWidget("music_setting_option").SetUserID(OptionAccessType.AT_OPTIONS_MUSIC_SLIDER);
62 m_Root.FindAnyWidget("voip_output_setting_option").SetUserID(OptionAccessType.AT_OPTIONS_VON_SLIDER);
63 m_Root.FindAnyWidget("voip_threshold_setting_option").SetUserID(OptionAccessType.AT_OPTIONS_VON_THRESHOLD_SLIDER);
64 m_Root.FindAnyWidget("voip_selection_setting_option").SetUserID(OptionAccessType.AT_OPTIONS_VON_INPUT_MODE);
65
67
68 array<string> inputModeValues = { "#STR_Controls_PushToTalk", "#STR_USRACT_UAVOICEOVERNETTOGGLE" };
69
70 m_MasterSelector = new OptionSelectorSlider(m_Root.FindAnyWidget("master_setting_option"), m_MasterOption.ReadValue(), this, false, m_MasterOption.GetMin(), m_MasterOption.GetMax());
71 m_EffectsSelector = new OptionSelectorSlider(m_Root.FindAnyWidget("effects_setting_option"), m_EffectsOption.ReadValue(), this, false, m_EffectsOption.GetMin(), m_EffectsOption.GetMax());
72 m_VOIPSelector = new OptionSelectorSlider(m_Root.FindAnyWidget("voip_output_setting_option"), m_VOIPOption.ReadValue(), this, false, m_VOIPOption.GetMin(), m_VOIPOption.GetMax());
73 m_VOIPThresholdSelector = new OptionSelectorLevelMarker(m_Root.FindAnyWidget("voip_threshold_setting_option"), m_VOIPThresholdOption.ReadValue(), this, false, m_VOIPThresholdOption.GetMin(), m_VOIPThresholdOption.GetMax());
74 m_MusicSelector = new OptionSelectorSlider(m_Root.FindAnyWidget("music_setting_option"), m_MusicOption.ReadValue(), this, false, m_MusicOption.GetMin(), m_MusicOption.GetMax());
75 m_InputModeSelector = new OptionSelectorMultistate(m_Root.FindAnyWidget("voip_selection_setting_option"), m_InputModeOption.GetIndex(), this, false, inputModeValues);
76
77 m_MasterSelector.m_OptionChanged.Insert(UpdateMaster);
78 m_EffectsSelector.m_OptionChanged.Insert(UpdateEffects);
79 m_VOIPSelector.m_OptionChanged.Insert(UpdateVOIP);
80 m_VOIPThresholdSelector.m_OptionChanged.Insert(UpdateVOIPThreshold);
81 m_MusicSelector.m_OptionChanged.Insert(UpdateMusic);
82 m_InputModeSelector.m_OptionChanged.Insert(UpdateInputMode);
83
85 {
86 // event to monitor when options get reverted directly from C++
87 m_VOIPThresholdOption.GetEvents().Event_OnRevert.Insert(m_VonManager.OnVOIPThresholdChanged);
91 }
92
93 float x, y, y2;
94 m_Root.FindAnyWidget("sound_settings_scroll").GetScreenSize(x, y);
95 m_Root.FindAnyWidget("sound_settings_root").GetScreenSize(x, y2);
96 int f = (y2 > y);
97 m_Root.FindAnyWidget("sound_settings_scroll").SetAlpha(f);
98
99 m_Root.SetHandler(this);
100
101 CGame game = GetGame();
102 m_WasMicCapturing = game.IsMicCapturing();
103
104 // do not enable mic capture if user in party chat
105 if (!game.IsInPartyChat())
106 game.EnableMicCapture(true);
107 }
void UpdateMusic()
ref NumericOptionsAccess m_MusicOption
ref NumericOptionsAccess m_MasterOption
ref NumericOptionsAccess m_VOIPThresholdOption
ref NumericOptionsAccess m_VOIPOption
ref OptionSelectorSlider m_VOIPSelector
ref OptionSelectorLevelMarker m_VOIPThresholdSelector
ref OptionSelectorSlider m_MusicSelector
ref NumericOptionsAccess m_EffectsOption
void UpdateInputMode(int newIndex)
ref OptionSelectorMultistate m_InputModeSelector
void UpdateVOIPThreshold(float value)
ref OptionSelectorSlider m_EffectsSelector
ref ListOptionsAccess m_InputModeOption
void OnVOIPThresholdChanged()
Manager class which handles Voice-over-network functionality while player is connected to a server.
Definition VONManager.c:242
static VONManagerBase GetInstance()
Main way to access VONManager functionality from script.
Definition VONManager.c:249

References FillTextMap(), GetGame(), VONManager::GetInstance(), GetLayoutName(), GameOptions::GetOptionByType(), m_Menu, VONManagerBase::m_OnPartyChatChangedEvent, VONManagerBase::m_OnVonStateEvent, m_Root, VONManagerBase::OnVOIPThresholdChanged(), UpdateMusic(), x, and y.

◆ OptionsMenuVideo()

void ScriptedWidgetEventHandler::OptionsMenuVideo ( Widget parent,
Widget details_root,
GameOptions options,
OptionsMenu menu )
inlineprotected

Definition at line 81 of file OptionsMenuVideo.c.

82 {
83 m_Root = GetGame().GetWorkspace().CreateWidgets(GetLayoutName(), parent);
84
86 m_DetailsBodyDefault = m_DetailsRoot.FindAnyWidget("settings_details_body");
87 m_DetailsBodyConnectivity = m_DetailsRoot.FindAnyWidget("settings_details_body_connectivity");
88 m_DetailsLabel = TextWidget.Cast(m_DetailsRoot.FindAnyWidget("details_label"));
89 m_DetailsText = RichTextWidget.Cast(m_DetailsRoot.FindAnyWidget("details_content"));
90
92 m_Menu = menu;
93
94#ifdef PLATFORM_CONSOLE
95#ifdef PLATFORM_PS4
96 m_Root.FindAnyWidget("vsync_setting_option").SetUserID(OptionAccessType.AT_OPTIONS_FLIPMODE);
97#endif
98#else
99 m_Root.FindAnyWidget("overall_quality_setting_option").SetUserID(OptionAccessType.AT_QUALITY_PREFERENCE);
100 m_Root.FindAnyWidget("display_mode_setting_option").SetUserID(OptionAccessType.AT_OPTIONS_DISPLAY_MODE);
101 m_Root.FindAnyWidget("resolution_setting_option").SetUserID(OptionAccessType.AT_OPTIONS_RESOLUTION);
102 m_Root.FindAnyWidget("brightness_setting_option").SetUserID(OptionAccessType.AT_OPTIONS_BRIGHT_SLIDER);
103 m_Root.FindAnyWidget("vsync_setting_option").SetUserID(OptionAccessType.AT_VSYNC_VALUE);
104 //m_Root.FindAnyWidget( "color_depth_setting_option" ).SetUserID( OptionAccessType.AT_HDR_DETAIL );
105
106 //Scene
107 m_Root.FindAnyWidget("object_detail_setting_option").SetUserID(OptionAccessType.AT_OBJECTS_DETAIL);
108 m_Root.FindAnyWidget("terrain_detail_setting_option").SetUserID(OptionAccessType.AT_OPTIONS_TERRAIN);
109 m_Root.FindAnyWidget("texture_detail_setting_option").SetUserID(OptionAccessType.AT_TEXTURE_DETAIL);
110 m_Root.FindAnyWidget("shadow_detail_setting_option").SetUserID(OptionAccessType.AT_SHADOW_DETAIL);
111
112 //Rendering
113 m_Root.FindAnyWidget("texture_filtering_setting_option").SetUserID(OptionAccessType.AT_ANISO_DETAIL);
114 m_Root.FindAnyWidget("terrain_surface_detail_setting_option").SetUserID(OptionAccessType.AT_OPTIONS_TERRAIN_SHADER);
115 m_Root.FindAnyWidget("ppaa_setting_option").SetUserID(OptionAccessType.AT_OPTIONS_FXAA_VALUE);
116 m_Root.FindAnyWidget("hwaa_setting_option").SetUserID(OptionAccessType.AT_FSAA_DETAIL);
117 m_Root.FindAnyWidget("atoc_setting_option").SetUserID(OptionAccessType.AT_ATOC_DETAIL);
118 m_Root.FindAnyWidget("ao_setting_option").SetUserID(OptionAccessType.AT_AMBIENT_OCCLUSION);
119 m_Root.FindAnyWidget("pp_setting_option").SetUserID(OptionAccessType.AT_POSTPROCESS_EFFECTS);
120 m_Root.FindAnyWidget("ssr_setting_option").SetUserID(OptionAccessType.AT_WATER_DETAIL);
121#endif
122
123 FillTextMap();
126 GetGame().BeginOptionsVideo();
127
128 float x, y, y2;
129 m_Root.FindAnyWidget("video_settings_scroll").GetScreenSize(x, y);
130 m_Root.FindAnyWidget("video_settings_root").GetScreenSize(x, y2);
131 int f = (y2 > y);
132 m_Root.FindAnyWidget("video_settings_scroll").SetAlpha(f);
133
134 m_Root.SetHandler(this);
135 }

References FillTextMap(), GetGame(), GetLayoutName(), InitSelectors(), m_Menu, m_Root, RefreshCustom(), SetOptions(), x, and y.

◆ PauseVideo() [1/2]

void ScriptedWidgetEventHandler::PauseVideo ( )
inlineprotected

Definition at line 124 of file MainMenuPromo.c.

125 {
126 m_VideoWidget.Pause();
127 }

Referenced by OnClick().

◆ PauseVideo() [2/2]

void ScriptedWidgetEventHandler::PauseVideo ( )
inlineprotected

Definition at line 237 of file VideoPlayer.c.

238 {
239 m_VideoWidget.Pause();
240 }

◆ PerformSwitchTab()

void ScriptedWidgetEventHandler::PerformSwitchTab ( int index)
inlineprotected

Definition at line 206 of file TabberUI.c.

207 {
210
213
216
217 if (m_FirstInit)
218 {
219 AlignTabbers();
220 m_FirstInit = false;
221 }
222 }
void SelectTabPanel(int index)
Definition TabberUI.c:333
ref ScriptInvoker m_OnTabSwitch
Definition TabberUI.c:15

◆ PingIsSet()

bool ScriptedWidgetEventHandler::PingIsSet ( )
inlineprotected

Definition at line 217 of file ServerBrowserFilterContainer.c.

218 {
219 return (m_Options["m_PingFilter"] != m_PingFilter.GetOptions()[0]);
220 }

◆ Play()

void ScriptedWidgetEventHandler::Play ( )
inlineprotected

Definition at line 43 of file CTEvent.c.

44 {
46 if (player)
47 {
48 if (m_EventWalkWidget.IsChecked())
49 {
50 player.GetInputController().OverrideMovementAngle(true, 1);
51 player.GetInputController().OverrideMovementSpeed(true, 1);
52 }
53 else
54 {
55 if (player.GetCommand_Action())
56 {
57 //player.GetCommand_Action().Cancel();
58 }
59 m_Callback = player.StartCommand_Action(GetEventType(), EmoteCB, DayZPlayerConstants.STANCEMASK_ALL);
60 m_Callback.EnableCancelCondition(true);
61 }
62 }
63 }
HumanCommandActionCallback m_Callback
Definition CTEvent.c:17
DayZPlayerConstants
defined in C++
Definition dayzplayer.c:597

References GetEventActor(), GetEventType(), m_Callback, and m_Menu.

◆ PlayerListEntryScriptedWidget()

void ScriptedWidgetEventHandler::PlayerListEntryScriptedWidget ( Widget parent,
string name,
string uid,
bool show_permissions,
PlayerListScriptedWidget tab )
inlineprotected

Definition at line 18 of file PlayerListEntryScriptedWidget.c.

19 {
20 m_Name = name;
21 m_UID = uid;
22 m_Tab = tab;
23
24 m_Root = GetGame().GetWorkspace().CreateWidgets("gui/layouts/xbox/ingamemenu_xbox/player_info_entry.layout", parent);
25 m_PlayerName = TextWidget.Cast(m_Root.FindAnyWidget("Name"));
26 m_PlayerAvatar = ImageWidget.Cast(m_Root.FindAnyWidget("Avatar"));
27 m_MicrophoneIcon = ImageWidget.Cast(m_Root.FindAnyWidget("Microphone"));
28 m_MuteIcon = ImageWidget.Cast(m_Root.FindAnyWidget("Muted"));
29 m_PlayerButton = ButtonWidget.Cast(m_Root.FindAnyWidget("Button"));
30
32
33 m_PlayerName.SetText(name);
34 m_Root.SetHandler(this);
35 }

References GetGame(), IsLocalPlayer(), m_Name, m_Root, and name.

Referenced by AddPlayer().

◆ PlayerListScriptedWidget()

void ScriptedWidgetEventHandler::PlayerListScriptedWidget ( Widget parent,
string header_text = "" )
inlineprotected

Definition at line 11 of file PlayerListScriptedWidget.c.

12 {
13 m_Root = GetGame().GetWorkspace().CreateWidgets("gui/layouts/xbox/ingamemenu_xbox/players_info_panel.layout", parent);
14 m_ScrollContainer = ScrollWidget.Cast(m_Root.FindAnyWidget("ScrollFrame"));
15 m_Content = m_Root.FindAnyWidget("Content");
16
18
19 m_ScrollContainer.VScrollToPos01(0);
20 }

References GetGame(), and m_Root.

◆ PlayVideo()

void ScriptedWidgetEventHandler::PlayVideo ( )
inlineprotected

Definition at line 232 of file VideoPlayer.c.

233 {
234 m_VideoWidget.Play();
235 }

Referenced by OnClick().

◆ PopulateLayout()

void ScriptedWidgetEventHandler::PopulateLayout ( )
inlineprotected

◆ PrepareOwnedSlotsTooltip()

void ScriptedWidgetEventHandler::PrepareOwnedSlotsTooltip ( Widget w,
string name,
string desc,
int x = 0,
int y = 0 )
inlineprotected

Definition at line 220 of file LayoutHolder.c.

221 {
222 ItemManager.GetInstance().SetTooltipWidget(w);
223 ItemManager.GetInstance().PrepareSlotsTooltip(name, desc, x, y);
224 m_TooltipOwner = true;
225 }

References ItemManager::GetInstance(), name, x, and y.

◆ PrepareOwnedTooltip()

void ScriptedWidgetEventHandler::PrepareOwnedTooltip ( EntityAI item,
int x = 0,
int y = 0 )
inlineprotected

Definition at line 214 of file LayoutHolder.c.

215 {
216 ItemManager.GetInstance().PrepareTooltip(item, x, y);
217 m_TooltipOwner = true;
218 }

References ItemManager::GetInstance(), x, and y.

◆ PrepareTooltip()

void ScriptedWidgetEventHandler::PrepareTooltip ( ModInfo mod_ref)
inlineprotected

Definition at line 138 of file ModsMenuDetailed.c.

139 {
140 if (m_Tooltip)
141 {
143 if (!m_TooltipTimer)
145
146 m_TooltipTimer.Run(1, this, "ShowTooltip");
147 }
148 }

References CALL_CATEGORY_GUI.

◆ Preview()

void ScriptedWidgetEventHandler::Preview ( Widget w,
int x,
int y )
inlineprivate

Definition at line 741 of file ServerBrowserEntry.c.

742 {
743 if (m_Selected)
744 return;
745
746 if (w == m_Root || w == m_Favorite || w == m_Expand)
747 {
748 m_Root.SetColor(ARGB(255, 0, 0, 0));
749 m_Root.SetAlpha(1);
750 UpdateColors();
751
752 m_ServerName.SetColor(ARGB(255, 255, 0, 0));
753 if (!IsOnline())
754 m_ServerName.SetAlpha(0.5);
755 }
756 }

References ARGB(), IsOnline(), m_Favorite, m_Root, and UpdateColors().

Referenced by OnMouseEnter().

◆ PreviouslyIsSet()

bool ScriptedWidgetEventHandler::PreviouslyIsSet ( )
inlineprotected

Definition at line 227 of file ServerBrowserFilterContainer.c.

228 {
229 return (m_Options["m_PreviouslyPlayedFilter"] != m_PreviouslyPlayedFilter.GetOptions()[0]);
230 }

◆ PreviousTab()

void ScriptedWidgetEventHandler::PreviousTab ( )
inlineprotected

Definition at line 398 of file TabberUI.c.

399 {
400 int next_index = m_SelectedIndex - 1;
401
402 if (next_index < 0)
403 next_index = m_TabControls.Count() - 1;
404
406 next_index--;
407
409 {
411 if (CanSwitchTab())
413 }
414
415 if (m_FirstInit)
416 {
417 AlignTabbers();
418 m_FirstInit = false;
419 }
420 }

References IsVisible().

◆ ProcessIntoIPAddress()

bool ScriptedWidgetEventHandler::ProcessIntoIPAddress ( out string potential_ip)
inlineprotected

Removes all characters from the given string whirh are NOT a number, '.' or ':'. Returns true if any change was done to the input text.

Definition at line 233 of file ServerBrowserFilterContainer.c.

234 {
235 bool was_text_changed = false;
236 int length = potential_ip.Length();
237
238 // Filter out incompatible characters
239 for (int i = length - 1 ; i >= 0; --i)
240 {
241 string character = potential_ip.Get(i);
242
243 if (character.ToInt() == 0 && character != "0" && character != "." && character != ":")
244 {
245 potential_ip = potential_ip.SubstringInverted(potential_ip, i, i + 1);
246 was_text_changed = true;
247 }
248 }
249
251
253 }

References LimitTextBoxCharacterCount().

Referenced by OnChange().

◆ ProjectedCrosshair()

void ScriptedWidgetEventHandler::ProjectedCrosshair ( )
inlineprotected

Definition at line 11 of file ProjectedCrosshair.c.

12 {
13 m_Player = NULL;
14 m_Weapon = NULL;
15 m_Visible = false;
16 m_Debug = false;
17
18 GetGame().GetUpdateQueue(CALL_CATEGORY_GUI).Insert(this.Update);
19 }

References CALL_CATEGORY_GUI, GetGame(), m_Player, m_Visible, m_Weapon, and Update().

◆ RandomizePageIndex()

void ScriptedWidgetEventHandler::RandomizePageIndex ( )
inlineprotected

Definition at line 171 of file UiHintPanel.c.

172 {
173#ifdef DIAG_DEVELOPER
175 {
176 if (m_ForcedIndex != -1)
177 {
179 return;
180 }
181 }
182#endif
183
184 Math.Randomize(m_Game.GetTime());
185 Math.RandomFloat01();//throw-away value, without calling this, the next random number is always the same, calling Math.Randomize(-1) makes no difference
189
190 }
static proto bool IsInitialized()
Checks if DiagMenu is initialized.
static float RandomFloat01()
Returns a random float number between and min [inclusive] and max [inclusive].
Definition EnMath.c:126
static proto int Randomize(int seed)
Sets the seed for the random number generator.
static int RandomIntInclusive(int min, int max)
Returns a random int number between and min [inclusive] and max [inclusive].
Definition EnMath.c:54

References Math::Clamp(), DiagMenu::IsInitialized(), m_ContentList, m_Game, m_PageIndex, m_PageIndex, m_PreviousRandomIndex, Math::RandomFloat01(), Math::RandomIntInclusive(), and Math::Randomize().

Referenced by Init(), and ShowRandomPage().

◆ Refresh()

void ScriptedWidgetEventHandler::Refresh ( )
inlineprotected

Definition at line 194 of file LayoutHolder.c.

195 {
196 m_RootWidget.Update();
197 }

References m_RootWidget.

◆ RefreshContent()

void ScriptedWidgetEventHandler::RefreshContent ( )
inlineprotected

Definition at line 38 of file DropdownPrefab.c.

39 {
40 Widget child = m_ContentContainer.GetChildren();
41 while (child)
42 {
43 if (m_Content.Find(child) > -1)
44 m_Content.Insert(child);
45 }
46
47 m_ContentContainer.Update();
48 m_Root.Update();
49
50 float x, y;
51 m_ContentContainer.GetScreenSize(x, y);
52 if (y > m_Scroller.GetContentHeight())
53 m_Scroller.SetAlpha(1);
54 else
55 m_Scroller.SetAlpha(0);
56 }

References m_Root, x, and y.

Referenced by DropdownPrefab().

◆ RefreshCustom()

void ScriptedWidgetEventHandler::RefreshCustom ( )
inlineprotected

Definition at line 345 of file OptionsMenuVideo.c.

346 {
347#ifdef PLATFORM_CONSOLE
348#ifdef PLATFORM_PS4
349 m_FlipModeSelector.SetValue(m_FlipModeOption.GetIndex(), false);
350#endif
351#else
352 //Scene
353 m_ObjectDetailSelector.SetValue(m_ObjectDetailOption.GetIndex(), false);
354 m_TerrainDetailSelector.SetValue(m_TerrainDetailOption.GetIndex(), false);
355 m_TextureDetailSelector.SetValue(m_TextureDetailOption.GetIndex(), false);
356 m_ShadowDetailSelector.SetValue(m_ShadowDetailOption.GetIndex(), false);
357
358 //Rendering
359 m_TextureFilteringSelector.SetValue(m_TextureFilteringOption.GetIndex(), false);
361 m_PPAASelector.SetValue(m_PPAAOption.GetIndex(), false);
362 m_HWAASelector.SetValue(m_HWAAOption.GetIndex(), false);
363 if (m_HWAAOption.GetIndex() == 0)
364 m_ATOCSelector.Disable();
365 else
366 m_ATOCSelector.Enable();
367 m_ATOCSelector.SetValue(m_ATOCOption.GetIndex(), false);
368 m_AOSelector.SetValue(m_AOOption.GetIndex(), false);
369 m_PPQualitySelector.SetValue(m_PPQualityOption.GetIndex(), false);
370 m_SSRQualitySelector.SetValue(m_SSRQualityOption.GetIndex(), false);
371#endif
372 }

Referenced by OnOverallQualityChanged(), OptionsMenuVideo(), Revert(), and SetToDefaults().

◆ RefreshDLCIcon()

void ScriptedWidgetEventHandler::RefreshDLCIcon ( )
inlineprivate

Definition at line 456 of file ServerBrowserEntry.c.

457 {
458 if (m_ServerData.m_IsDLC)
459 {
460 bool own = GetGame().VerifyWorldOwnership(GetMapToRun());
461 m_ServerModIcon.Show(true);
462 m_ServerModIcon.FindWidget("Owned").Show(own);
463 m_ServerModIcon.FindWidget("Unowned").Show(!own);
464 }
465 else
466 {
467 m_ServerModIcon.FindWidget("Owned").Show(false);
468 m_ServerModIcon.FindWidget("Unowned").Show(false);
469 }
470 }

References GetGame(), and GetMapToRun().

Referenced by SetMapName().

◆ RefreshItemVariables()

void ScriptedWidgetEventHandler::RefreshItemVariables ( InventoryItem item,
vector data,
bool show_quantity,
bool show_temperature )
inlineprivate

Definition at line 543 of file InventoryGrid.c.

544 {
545 int index = Math.Round(data[0]);
548
549 if (bck)
550 {
551 item_w = bck.FindAnyWidget("GridItem");
552 if (item_w)
553 {
555 Widget quantity_panel = bck.FindAnyWidget("QuantityPanel");
556 TextWidget item_quantity = TextWidget.Cast(bck.FindAnyWidget("Quantity"));
557 ProgressBarWidget quantity_progress = ProgressBarWidget.Cast(bck.FindAnyWidget("QuantityBar"));
558 Widget quantity_stack = bck.FindAnyWidget("QuantityStackPanel");
560 quantity_panel.Show(false);
561 else
562 {
563 quantity_panel.Show(true);
565 {
567 quantity_stack.Show(true);
568 quantity_progress.Show(false);
569 }
571 {
572 float progress_max = quantity_progress.GetMax();
576 if (count > 0)
577 max = count;
578 if (max > 0)
579 {
580
581 float value = Math.Round((quantity / max) * 100);
582 quantity_progress.SetCurrent(value);
583 }
584 quantity_stack.Show(false);
585 quantity_progress.Show(true);
586 }
587 }
588
590 {
591 if (item && item.IsInherited(InventoryItem))
592 {
593 int color = m_Controller.GetItemColor(this, item); // !!!!!
594 if (color)
595 item_w.SetColor(color);
596 }
597 }
598 }
599 }
600 }
override int GetItemQuantityMax(InventoryItem item)
override int GetItemCount(InventoryItem item)
override int HasItemQuantity(InventoryItem item)
override float GetItemQuantity(InventoryItem item)
override string GetItemQuantityText(InventoryItem item)
const int QUANTITY_COUNT
Definition constants.c:483
const int QUANTITY_HIDDEN
Definition constants.c:482

References GetItemBackground(), InventoryGridController::GetItemCount(), InventoryGridController::GetItemQuantity(), InventoryGridController::GetItemQuantityMax(), InventoryGridController::GetItemQuantityText(), InventoryGridController::HasItemQuantity(), QUANTITY_COUNT, QUANTITY_HIDDEN, QUANTITY_PROGRESS, and Math::Round().

Referenced by AddItem(), RefreshQuickbarItemVariables(), ResetItem(), SetItem(), UpdateItems(), UpdateQuantityItems(), and UpdateTemperatureItems().

◆ RefreshQuickbarItemVariables()

void ScriptedWidgetEventHandler::RefreshQuickbarItemVariables ( InventoryItem item,
vector data )
inlineprivate

Definition at line 526 of file InventoryGrid.c.

527 {
528 int index = Math.Round(data[0]);
530 if (bck)
531 {
532 Widget item_w = bck.FindAnyWidget("GridItem");
533 if (item_w)
534 {
535 int color = m_Controller.GetQuickbarItemColor(this, item); // !!!!!
536 item_w.SetColor(color);
537 }
538 }
539 RefreshItemVariables(item, data, true, false);
540 }
override int GetQuickbarItemColor(InventoryGrid grid, InventoryItem item)

References GetItemBackground(), InventoryGridController::GetQuickbarItemColor(), RefreshItemVariables(), and Math::Round().

Referenced by UpdateQuickbarItems().

◆ RefreshTab()

void ScriptedWidgetEventHandler::RefreshTab ( bool performInitAlignment = false)
inlineprotected

Definition at line 427 of file TabberUI.c.

◆ Reload() [1/7]

void ScriptedWidgetEventHandler::Reload ( )
inlineprotected

Definition at line 122 of file KeybindingElement.c.

123 {
124 UAInput input = GetUApi().GetInputByID(m_ElementIndex);
125 m_IsEdited = false;
126 m_IsAlternateEdited = false;
129
130 if (input.IsLimited())
131 {
132 if (input.IsPressLimit())
133 m_ElementModifier.SetText("#keybind_press");
134 if (input.IsReleaseLimit())
135 m_ElementModifier.SetText("#keybind_release");
136 if (input.IsHoldLimit())
137 m_ElementModifier.SetText("#keybind_hold");
138 if (input.IsHoldBeginLimit())
139 m_ElementModifier.SetText("#keybind_holdbegin");
140 if (input.IsClickLimit())
141 m_ElementModifier.SetText("#keybind_click");
142 if (input.IsDoubleClickLimit())
143 m_ElementModifier.SetText("#keybind_doubletap");
144 }
145 else
146 m_ElementModifier.SetText("");
147
148 string option_text;
149 string name;
150
151 GetGame().GetInput().GetActionDesc(m_ElementIndex, option_text);
152 m_ElementName.SetText(option_text);
153
154 // column #1 :: keyboard + mouse
156
157 // column #2 :: controller
159 }
bool SetElementTitle(UAInput pInput, int iDeviceFlags, out string output)
assemble all active bindings at widget element

References GetGame(), GetUApi(), name, and SetElementTitle().

Referenced by CancelEnteringAlternateKeybind(), CancelEnteringKeybind(), KeybindingElement(), and KeybindingElementNew().

◆ Reload() [2/7]

void ScriptedWidgetEventHandler::Reload ( )
inlineprotected

Definition at line 120 of file KeybindingElementNew.c.

121 {
122 UAInput input = GetUApi().GetInputByID(m_ElementIndex);
123 m_IsEdited = false;
124 m_IsAlternateEdited = false;
127
128 if (input.IsLimited())
129 {
130 if (input.IsPressLimit())
131 m_ElementModifier.SetText("#keybind_press");
132 if (input.IsReleaseLimit())
133 m_ElementModifier.SetText("#keybind_release");
134 if (input.IsHoldLimit())
135 m_ElementModifier.SetText("#keybind_hold");
136 if (input.IsHoldBeginLimit())
137 m_ElementModifier.SetText("#keybind_holdbegin");
138 if (input.IsClickLimit())
139 m_ElementModifier.SetText("#keybind_click");
140 if (input.IsDoubleClickLimit())
141 m_ElementModifier.SetText("#keybind_doubletap");
142 }
143 else
144 m_ElementModifier.SetText("");
145
146 string option_text;
147 string name;
148
149 GetGame().GetInput().GetActionDesc(m_ElementIndex, option_text);
150 m_ElementName.SetText(option_text);
151
152 // column #1 :: keyboard + mouse
154
155 // column #2 :: controller
157 }

References GetGame(), GetUApi(), name, and SetElementTitle().

◆ Reload() [3/7]

void ScriptedWidgetEventHandler::Reload ( array< int > custom_binds,
bool is_alternate )
inlineprotected

Definition at line 161 of file KeybindingElement.c.

162 {
163 string output;
164 if (custom_binds.Count() > 1)
165 {
166 if (custom_binds.Get(0) != 0)
167 output = GetUApi().GetButtonName(custom_binds.Get(0));
168 for (int i = 1; i < custom_binds.Count(); i++)
169 {
170 if (custom_binds.Get(i) != 0)
171 output += " + " + GetUApi().GetButtonName(custom_binds.Get(i));
172 }
173 }
174 else if (custom_binds.Count() > 0)
175 {
176 if (custom_binds.Get(0) != 0)
177 output = GetUApi().GetButtonName(custom_binds.Get(0));
178 }
179
180 if (is_alternate)
181 {
183 m_IsAlternateEdited = true;
185 }
186 else
187 {
189 m_IsEdited = true;
191 }
192 }

References GetUApi().

◆ Reload() [4/7]

void ScriptedWidgetEventHandler::Reload ( array< int > custom_binds,
bool is_alternate )
inlineprotected

Definition at line 159 of file KeybindingElementNew.c.

160 {
161 string output;
162 if (custom_binds.Count() > 1)
163 {
164 if (custom_binds.Get(0) != 0)
165 output = GetUApi().GetButtonName(custom_binds.Get(0));
166 for (int i = 1; i < custom_binds.Count(); i++)
167 {
168 if (custom_binds.Get(i) != 0)
169 output += " + " + GetUApi().GetButtonName(custom_binds.Get(i));
170 }
171 }
172 else if (custom_binds.Count() > 0)
173 {
174 if (custom_binds.Get(0) != 0)
175 output = GetUApi().GetButtonName(custom_binds.Get(0));
176 }
177
178 if (is_alternate)
179 {
181 m_IsAlternateEdited = true;
183 }
184 else
185 {
187 m_IsEdited = true;
189 }
190 }

References GetUApi().

◆ Reload() [5/7]

void ScriptedWidgetEventHandler::Reload ( BiosFriendInfoArray player_list)
inlineprotected

Definition at line 74 of file PlayerListScriptedWidget.c.

75 {
77 {
79 {
81 int j = 0;
82 while (!player_found && j < player_list.Count())
83 {
84 if (player_list[j].m_Uid == UID)
86 j++;
87 }
88
89 if (!player_found)
91 }
92
93 for (int i = 0; i < player_list.Count(); i++)
94 {
97 m_Entries.Find(player2.m_Uid, player_widget);
98 if (!player_widget)
99 AddPlayer(player2.m_DisplayName, player2.m_Uid, false);
100 }
101 }
102 }
BiosFriendInfo represents friend information.
void AddPlayer(string name, string UID, bool show_permissions)

References AddPlayer(), m_Entries, RemovePlayer(), and UID.

◆ Reload() [6/7]

void ScriptedWidgetEventHandler::Reload ( BiosPrivacyUidResultArray player_list)
inlineprotected

Definition at line 104 of file PlayerListScriptedWidget.c.

105 {
107 {
109 m_Entries.Find(result.m_Uid, player_widget);
110 if (player_widget)
111 player_widget.LoadPermissions(result.m_Results);
112 }
113 }
BiosPrivacyUidResult represents the per user result of the GetPermissionsAsync request.

◆ Reload() [7/7]

void ScriptedWidgetEventHandler::Reload ( SyncPlayerList player_list)
inlineprotected

Definition at line 34 of file PlayerListScriptedWidget.c.

35 {
36 if (player_list && player_list.m_PlayerList && m_Entries)
37 {
39 {
41 foreach (SyncPlayer player : player_list.m_PlayerList)
42 {
43 if (player && player.m_UID == UID)
44 {
46 break;
47 }
48 }
49 if (!player_found)
51 }
52
53 for (int i = 0; i < player_list.m_PlayerList.Count(); i++)
54 {
55 SyncPlayer player2 = player_list.m_PlayerList.Get(i);
57 m_Entries.Find(player2.m_UID, player_widget);
58 if (!player_widget)
59 AddPlayer(player2.m_PlayerName, player2.m_UID, true);
60 }
61 }
62 }

References AddPlayer(), m_Entries, RemovePlayer(), and UID.

◆ ReloadAction()

void ScriptedWidgetEventHandler::ReloadAction ( int index)
inlineprotected

Definition at line 106 of file KeybindingsGroup.c.

107 {
108 if (m_KeyWidgets.Contains(index))
109 m_KeyWidgets.Get(index).Reload();
110 }

◆ ReloadLocal()

void ScriptedWidgetEventHandler::ReloadLocal ( map< string, bool > player_list)
inlineprotected

Definition at line 115 of file PlayerListScriptedWidget.c.

116 {
117 if (player_list)
118 {
119 for (int i = 0; i < player_list.Count(); i++)
120 {
121 string uid = player_list.GetKey(i);
125 if (player_widget)
126 player_widget.SetMute(muted);
127 }
128 }
129 }
static bool IsPlayerMuted(string id)

References OnlineServices::IsPlayerMuted().

◆ ReloadOptions() [1/4]

void ScriptedWidgetEventHandler::ReloadOptions ( )
inlineprotected

Definition at line 574 of file OptionsMenuControls.c.

575 {
576 m_Menu.ReloadOptions();
577 }

References m_Menu.

Referenced by OnOverallQualityChanged().

◆ ReloadOptions() [2/4]

void ScriptedWidgetEventHandler::ReloadOptions ( )
inlineprotected

Definition at line 339 of file OptionsMenuGame.c.

340 {
341 m_Menu.ReloadOptions();
342 }

References m_Menu.

◆ ReloadOptions() [3/4]

void ScriptedWidgetEventHandler::ReloadOptions ( )
inlineprivate

Definition at line 281 of file OptionsMenuSounds.c.

282 {
283 m_Menu.ReloadOptions();
284 }

References m_Menu.

◆ ReloadOptions() [4/4]

void ScriptedWidgetEventHandler::ReloadOptions ( )
inlineprotected

Definition at line 248 of file OptionsMenuVideo.c.

249 {
250 m_Menu.ReloadOptions();
251 }

References m_Menu.

◆ ReloadProfiles()

void ScriptedWidgetEventHandler::ReloadProfiles ( )
inlineprotected

Definition at line 79 of file KeybindingsGroup.c.

80 {
83 }

References m_KeyWidgets.

Referenced by OnSelectConsolePreset(), and OnSelectKBPreset().

◆ Remove()

void ScriptedWidgetEventHandler::Remove ( int index)
inlineprivate

Definition at line 192 of file ContextMenu.c.

193 {
194 if (index < m_commands.Count())
195 {
196 m_commands.RemoveOrdered(index);
197 ButtonWidget menu_button = ButtonWidget.Cast(m_context_menu_root_widget.FindAnyWidget(String("Button" + (index + 1).ToString())));
198 menu_button.Show(false);
199 menu_button.SetText("");
200 m_count--;
201 }
202 }
string String(string s)
Helper for passing string expression to functions with void parameter. Example: Print(String("Hello "...
Definition EnScript.c:338

References String(), and ToString().

◆ RemoveElement()

void ScriptedWidgetEventHandler::RemoveElement ( int index)
inlineprotected

Definition at line 75 of file DropdownPrefab.c.

76 {
77 if (0 < index && index < m_Content.Count())
78 {
79 delete m_Content.Get(index);
80 m_ContentContainer.Update();
81 m_Root.Update();
82 m_Parent.Update();
83 }
84 }

References m_Parent, and m_Root.

◆ RemoveItem()

void ScriptedWidgetEventHandler::RemoveItem ( InventoryItem item)
inlineprotected

Definition at line 701 of file InventoryGrid.c.

702 {
703 Widget bck;
705 if (item && m_Items.Contains(item))
706 {
707 vector data = m_Items.Get(item);
708 int index = Math.Round(data[0]);
709 int width = Math.Round(data[1]);
710 int height = Math.Round(data[2]);
712 if (bck)
713 {
714 itemW = bck.FindAnyWidget("GridCell");
715 if (itemW)
716 delete itemW;
717 bck.FindAnyWidget("LabelTR").Show(false);
718 bck.FindAnyWidget("LabelCC").Show(true);
719 }
720
721 m_Items.Remove(item);
722 m_ItemWidgets.Remove(index);
723 }
724 }

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

Referenced by UpdateItems(), and UpdateQuickbarItems().

◆ RemovePlayer()

void ScriptedWidgetEventHandler::RemovePlayer ( string UID)
inlineprotected

Definition at line 168 of file PlayerListScriptedWidget.c.

169 {
170 if (m_Entries)
171 {
173
174 if (m_Entries.Get(UID) == m_SelectedEntry)
175 {
176 for (int i = 0; i < m_Entries.Count() - 1; i++)
177 {
178 if (m_Entries.GetElement(i) == m_Entries.Get(UID))
179 next_entry = m_Entries.GetElement(i + 1);
180 }
181 }
182
183 m_Entries.Remove(UID);
186 m_Content.Update();
187 }
188 }
void SelectPlayer(PlayerListEntryScriptedWidget entry)

References SelectPlayer(), and UID.

Referenced by Reload(), and Reload().

◆ RemoveTab()

void ScriptedWidgetEventHandler::RemoveTab ( int index)
inlineprotected

Definition at line 180 of file TabberUI.c.

181 {
182
183 }

◆ RepeatVideo()

void ScriptedWidgetEventHandler::RepeatVideo ( )
inlineprotected

Definition at line 256 of file VideoPlayer.c.

257 {
258 m_VideoWidget.SetLooping(true);
259 m_RepeatButton.Show(false);
260 m_OnceButton.Show(true);
261 }

Referenced by OnClick().

◆ Reset()

void ScriptedWidgetEventHandler::Reset ( )
inlineprotected

Definition at line 229 of file KeybindingsGroup.c.

230 {
231 ResetEx();
232 }
void ResetEx(bool forced=false)

References ResetEx().

◆ ResetEx()

void ScriptedWidgetEventHandler::ResetEx ( bool forced = false)
inlineprotected

Definition at line 234 of file KeybindingsGroup.c.

235 {
237 {
238 if (element.IsChanged() || element.IsAlternateChanged() || forced)
239 element.Reload();
240 }
241 }

References m_KeyWidgets.

Referenced by Reset().

◆ ResetFilters()

void ScriptedWidgetEventHandler::ResetFilters ( )
inlineprotected

Definition at line 188 of file ServerBrowserFilterContainer.c.

189 {
190 m_SearchByName.SetText("");
191 m_RegionFilter.Reset();
192 m_DLCFilter.Reset();
193 m_PingFilter.Reset();
194 m_FavoritedFilter.Reset();
197 m_FullServerFilter.Reset();
198 m_ThirdPersonFilter.Reset();
199 m_PasswordFilter.Reset();
200 m_WhitelistFilter.Reset();
201
202#ifdef PLATFORM_CONSOLE
203 m_SortingFilter.Reset();
204 m_KeyboardFilter.Reset();
205#endif
206
207#ifdef PLATFORM_WINDOWS
208#ifndef PLATFORM_CONSOLE
209 m_SearchByIP.SetText("");
211 m_VersionMatchFilter.Reset();
212#endif
213#endif
214 SaveFilters();
215 }

References SaveFilters().

◆ ResetItem()

void ScriptedWidgetEventHandler::ResetItem ( InventoryItem item)
inlineprotected

Definition at line 679 of file InventoryGrid.c.

680 {
681 if (m_Items.Contains(item))
682 {
683 vector data = m_Items.Get(item);
684 int index = Math.Round(data[0]);
685 int width = Math.Round(data[1]);
686 int height = Math.Round(data[2]);
688 Widget item_w = bck.FindAnyWidget("GridItem");
690 RefreshItemVariables(item, data, true, true);
691 }
692 }

References GetItemBackground(), RefreshItemVariables(), ResetItemWidget(), and Math::Round().

◆ ResetItemWidget()

void ScriptedWidgetEventHandler::ResetItemWidget ( Widget item_w,
int width,
int height )
inlineprotected

Definition at line 672 of file InventoryGrid.c.

673 {
674 if (item_w)
675 item_w.SetColor(ITEM_COLOR_NORMAL);
676 }

Referenced by AddItem(), ResetItem(), and SetItem().

◆ ResizeParentToChild() [1/2]

bool ScriptedWidgetEventHandler::ResizeParentToChild ( )
inlineprotected

Definition at line 23 of file SizeToChild.c.

24 {
25 return ResizeParentToChild(m_IgnoredBool, -1, true);
26 }

◆ ResizeParentToChild() [2/2]

bool ScriptedWidgetEventHandler::ResizeParentToChild ( out bool changed_size,
int limit = -1,
bool immedUpdate = true )
inlineprotected

Definition at line 28 of file SizeToChild.c.

29 {
30 float x, y, o_x, o_y, new_x, new_y;
31 if (m_Child)
32 {
33 m_Child.Update();
34 m_Child.GetScreenSize(x, y);
35 m_Root.GetScreenSize(new_x, new_y);
36 m_Root.GetSize(o_x, o_y);
37
38 bool changed = false;
39 bool hit_limit = false;
40
41 if (m_ResizeHorizontal && (x > new_x + 0.01 || x < new_x - 0.01))
42 {
44 changed = true;
45 }
46 else
47 new_x = o_x;
48
49 if (m_ResizeVertical && (y > new_y + 0.01 || y < new_y - 0.01))
50 {
52 changed = true;
53 }
54 else
55 new_y = o_y;
56
57 if (limit > 0 && new_y > limit)
58 {
59 new_y = limit;
60 hit_limit = true;
61 }
62
63 if (changed)
64 m_Root.SetSize(new_x, new_y, immedUpdate);
65
67 return hit_limit;
68 }
69 else
70 {
71 m_Child = m_Root.FindAnyWidget(m_ChildName);
72 if (!m_Child)
73 Print("Error in size to child, " + m_Root.GetName() + " has no child named " + m_ChildName);
74 }
75
76 return false;
77 }
reference bool m_ResizeHorizontal
Definition SizeToChild.c:6
reference float m_VerticalOffset
Definition SizeToChild.c:5
reference float m_HorizontalOffset
Definition SizeToChild.c:4
reference bool m_ResizeVertical
Definition SizeToChild.c:7

References m_ResizeHorizontal, m_ResizeVertical, m_Root, Print(), x, and y.

◆ RestartSlideShow()

void ScriptedWidgetEventHandler::RestartSlideShow ( )
inlineprotected

Definition at line 235 of file UiHintPanel.c.

236 {
239 }

References StartSlideshow(), and StopSlideShow().

Referenced by OnMouseLeave().

◆ Revert() [1/4]

void ScriptedWidgetEventHandler::Revert ( )
inlineprotected

Definition at line 366 of file OptionsMenuControls.c.

367 {
369 m_Mouse_InvertSelector.SetValue(m_Mouse_InvertOption.GetIndex(), true);
378
379
380#ifdef PLATFORM_CONSOLE
382 m_KeyboardSelector.SetValue(m_KeyboardOption.GetIndex(), true);
384 m_AimHelperSelector.SetValue(m_AimHelperOption.GetIndex(), true);
385
406#endif
407 }

Referenced by SetOptions().

◆ Revert() [2/4]

void ScriptedWidgetEventHandler::Revert ( )
inlineprotected

Definition at line 247 of file OptionsMenuGame.c.

248 {
250 m_ShowHUDSelector.SetValue(g_Game.GetProfileOptionBool(EDayZProfilesOptions.HUD), false);
251
253
255 m_ShowCrosshairSelector.SetValue(g_Game.GetProfileOptionBool(EDayZProfilesOptions.CROSSHAIR), false);
256 if (m_FOVOption)
257 {
258 m_FOVSelector.SetValue(m_FOVOption.ReadValue(), false);
259 g_Game.SetUserFOV(m_FOVOption.ReadValue());
260 }
262 m_LanguageSelector.SetValue(m_LanguageOption.GetIndex(), false);
264 m_ShowGameSelector.SetValue(g_Game.GetProfileOptionBool(EDayZProfilesOptions.GAME_MESSAGES), false);
266 m_ShowAdminSelector.SetValue(g_Game.GetProfileOptionBool(EDayZProfilesOptions.ADMIN_MESSAGES), false);
268 m_ShowPlayerSelector.SetValue(g_Game.GetProfileOptionBool(EDayZProfilesOptions.PLAYER_MESSAGES), false);
270 m_BleedingIndication.SetValue(g_Game.GetProfileOptionBool(EDayZProfilesOptions.BLEEDINGINDICATION), false);
272 m_ConnectivityInfo.SetValue(g_Game.GetProfileOptionBool(EDayZProfilesOptions.CONNECTIVITY_INFO), false);
273
274#ifdef PLATFORM_CONSOLE
276 m_BrightnessSelector.SetValue(m_BrightnessOption.ReadValue(), false);
277#else
279 m_ShowQuickbarSelector.SetValue(g_Game.GetProfileOptionBool(EDayZProfilesOptions.QUICKBAR), false);
281 m_ShowServerInfoSelector.SetValue(g_Game.GetProfileOptionBool(EDayZProfilesOptions.SERVERINFO_DISPLAY), false);
282 if (m_PauseOption)
283 m_PauseSelector.SetValue(m_PauseOption.GetIndex(), false);
284#endif
285 }

References g_Game, and RevertHUDBrightness().

◆ Revert() [3/4]

void ScriptedWidgetEventHandler::Revert ( )
inlineprivate

Definition at line 246 of file OptionsMenuSounds.c.

247 {
248 if (m_MasterOption)
249 m_MasterSelector.SetValue(m_MasterOption.ReadValue(), true);
250 if (m_EffectsOption)
251 m_EffectsSelector.SetValue(m_EffectsOption.ReadValue(), true);
252 if (m_VOIPOption)
253 m_VOIPSelector.SetValue(m_VOIPOption.ReadValue(), true);
255 m_VOIPThresholdSelector.SetValue(m_VOIPThresholdOption.ReadValue(), true);
256 if (m_MusicOption)
257 m_MusicSelector.SetValue(m_MusicOption.ReadValue(), true);
259 m_InputModeSelector.SetValue(m_InputModeOption.GetIndex(), false);
260 }

◆ Revert() [4/4]

void ScriptedWidgetEventHandler::Revert ( )
inlineprotected

Definition at line 263 of file OptionsMenuVideo.c.

264 {
265#ifndef PLATFORM_CONSOLE
266 m_DisplayModeSelector.SetValue(m_DisplayModeOption.GetIndex(), false);
267 m_ResolutionSelector.SetValue(m_ResolutionOption.GetIndex(), false);
268 m_BrightnessSelector.SetValue(m_BrightnessOption.ReadValue(), false);
269 m_VSyncSelector.SetValue(m_VSyncOption.GetIndex(), false);
270 //m_ColorDepthSelector.SetValue( m_ColorDepthOption.GetIndex(), false );
271 m_OverallQualitySelector.SetValue(m_OverallQualityOption.GetIndex(), false);
272#endif
273
275#ifndef PLATFORM_CONSOLE
276 m_OverallQualitySelector.SetValue(m_OverallQualityOption.GetIndex(), false);
277#endif
278 }

References RefreshCustom().

◆ RevertHUDBrightness()

void ScriptedWidgetEventHandler::RevertHUDBrightness ( )
inlineprivate

Definition at line 575 of file OptionsMenuGame.c.

576 {
578 {
579 m_HUDBrightnessSelector.SetValue(g_Game.GetProfileOptionFloat(EDayZProfilesOptions.HUD_BRIGHTNESS), false);
580 g_Game.SetHudBrightness(m_HUDBrightnessSelector.GetValue());
581 }
582 }

References g_Game.

Referenced by Revert(), and ~OptionsMenuGame().

◆ SaveFilters()

void ScriptedWidgetEventHandler::SaveFilters ( )
inlineprotected

Definition at line 151 of file ServerBrowserFilterContainer.c.

152 {
153 m_Options.Clear();
154
155 m_Options.Insert("m_SearchByName", m_SearchByName.GetText());
156 m_Options.Insert("m_DLCFilter", m_DLCFilter.GetStringValue());
157 m_Options.Insert("m_RegionFilter", m_RegionFilter.GetStringValue());
158 m_Options.Insert("m_PingFilter", m_PingFilter.GetStringValue());
159 m_Options.Insert("m_FriendsPlayingFilter", m_FriendsPlayingFilter.GetStringValue());
160 m_Options.Insert("m_PreviouslyPlayedFilter", m_PreviouslyPlayedFilter.GetStringValue());
161 m_Options.Insert("m_FullServerFilter", m_FullServerFilter.GetStringValue());
162 m_Options.Insert("m_ThirdPersonFilter", m_ThirdPersonFilter.GetStringValue());
163 m_Options.Insert("m_PasswordFilter", m_PasswordFilter.GetStringValue());
164 m_Options.Insert("m_WhitelistFilter", m_WhitelistFilter.GetStringValue());
165
166#ifdef PLATFORM_CONSOLE
167 m_Options.Insert("m_SortingFilter", m_SortingFilter.GetStringValue());
168 m_Options.Insert("m_KeyboardFilter", m_KeyboardFilter.GetStringValue());
169#else
170 m_Options.Insert("m_FavoritedFilter", m_FavoritedFilter.GetStringValue());
171#endif
172
173#ifdef PLATFORM_WINDOWS
174#ifndef PLATFORM_CONSOLE
175 m_Options.Insert("m_SearchByIP", m_SearchByIP.GetText());
176 m_Options.Insert("m_CharacterAliveFilter", m_CharacterAliveFilter.GetStringValue());
177 m_Options.Insert("m_VersionMatchFilter", m_VersionMatchFilter.GetStringValue());
178#endif
179#endif
180
181 string data, errorMessage;
184
185 GetGame().SetProfileString("SB_Filter_" + m_Tab.GetTabType(), data);
186 }

References ErrorEx, and GetGame().

Referenced by ResetFilters().

◆ ScrollToEntry()

void ScriptedWidgetEventHandler::ScrollToEntry ( PlayerListEntryScriptedWidget entry)
inlineprotected

Definition at line 231 of file PlayerListScriptedWidget.c.

232 {
233 if (entry)
234 {
235 float x, y;
236 float x_s, y_s;
237 float x_l, y_l;
238
239 Widget root = entry.GetButtonWidget().GetParent();
240 Widget first_child = root.GetParent().GetChildren();
242 while (last_child)
243 {
244 if (last_child.GetSibling())
245 last_child = last_child.GetSibling();
246 else
247 break;
248 }
249
250 root.GetParent().Update();
251 root.Update();
252
253 m_ScrollContainer.GetScreenPos(x, y);
254 m_ScrollContainer.GetScreenSize(x_s, y_s);
255
256 float bottom_pos = y + y_s;
257
258 root.GetScreenPos(x_l, y_l);
259 root.GetScreenSize(x_s, y_s);
260
261 if (root == first_child)
262 m_ScrollContainer.VScrollToPos01(0);
263 else if (root == last_child)
264 m_ScrollContainer.VScrollToPos01(1);
265 else if (y_l + y_s >= bottom_pos)
266 m_ScrollContainer.VScrollToPos(m_ScrollContainer.GetVScrollPos() + y_s);
267 else if (y_l <= y)
268 m_ScrollContainer.VScrollToPos(m_ScrollContainer.GetVScrollPos() - y_s);
269 }
270 }

References x, and y.

Referenced by SelectPlayer().

◆ ScrollToMod()

void ScriptedWidgetEventHandler::ScrollToMod ( ModInfo mod_ref)
inlineprotected

Definition at line 85 of file ModsMenuDetailed.c.

86 {
87 /*
88 if( mod_ref )
89 {
90 float scroll_pos_x, scroll_pos_y;
91 float scroll_size_x, scroll_size_y;
92 float mod_pos_x, mod_pos_y;
93 float mod_size_x, mod_size_y;
94
95 Widget mod_widget = m_Data.Get( mod_ref ).GetWidget();
96 if( mod_widget )
97 {
98 m_Content.Update();
99 m_Scroll.Update();
100 m_Scroll.GetScreenPos( scroll_pos_x, scroll_pos_y );
101 m_Scroll.GetScreenSize( scroll_size_x, scroll_size_y );
102 mod_widget.GetScreenPos( mod_pos_x, mod_pos_y );
103 mod_widget.GetScreenSize( mod_size_x, mod_size_y );
104 if( mod_pos_y + mod_size_y >= scroll_pos_y + scroll_size_y )
105 {
106 m_Scroll.VScrollToPos( mod_pos_y + mod_size_y - scroll_pos_y );
107 }
108 else if( mod_pos_y <= scroll_pos_y )
109 {
110 m_Scroll.VScrollToPos( mod_pos_y - scroll_pos_y );
111 }
112 m_Scroll.VScrollToPos( mod_pos_y - scroll_pos_y );
113 }
114 }
115 */
116 }

Referenced by Highlight(), and Select().

◆ Select() [1/7]

void ScriptedWidgetEventHandler::Select ( )
inlineprotected

Definition at line 119 of file CTEvent.c.

120 {
121 m_Root.FindAnyWidget("spacer").SetAlpha(1);
122 m_IndexWidget.SetColor(ARGBF(1, 1, 0, 0));
123 m_EventTypeWidget.SetColor(ARGBF(1, 1, 0, 0));
124 m_EventTypeWidget.SetColor(ARGBF(1, 1, 0, 0));
125 }

References ARGBF(), and m_Root.

Referenced by OnFocus(), OnMouseButtonUp(), OnMouseEnter(), and UpdateEntry().

◆ Select() [2/7]

void ScriptedWidgetEventHandler::Select ( )
inlineprotected

Definition at line 120 of file CTKeyframe.c.

121 {
122 m_Root.FindAnyWidget("spacer").SetAlpha(1);
123 m_IndexWidget.SetColor(ARGBF(1, 1, 0, 0));
124 m_InterpTimeWidget.SetColor(ARGBF(1, 1, 0, 0));
125 m_TotalTimeWidget.SetColor(ARGBF(1, 1, 0, 0));
126 }

References ARGBF(), and m_Root.

◆ Select() [3/7]

void ScriptedWidgetEventHandler::Select ( )
inlineprotected

Definition at line 63 of file ModsMenuDetailedEntry.c.

64 {
65 m_Root.SetColor(ARGBF(m_Root.GetAlpha(), 0.3, 0, 0));
66
67 m_Detail.Show(true);
68 m_IconBig.Show(true);
69 m_IconSmall.Show(false);
70 m_IconCollapse.SetImage(1);
71 m_Detail.Update();
72 m_Root.Update();
73 m_IsOpen = true;
74 }

References ARGBF(), and m_Root.

◆ Select() [4/7]

void ScriptedWidgetEventHandler::Select ( bool notify = true)
inlineprotected

Definition at line 189 of file PlayerListEntryScriptedWidget.c.

190 {
191 if (!m_Selected)
192 {
193 if (notify)
194 m_Tab.SelectPlayer(this);
195 m_Selected = true;
196 }
197 }

◆ Select() [5/7]

void ScriptedWidgetEventHandler::Select ( bool notify = true)
inlineprivate

Definition at line 667 of file ServerBrowserEntry.c.

668 {
669 if (!m_Selected)
670 {
671 if (notify)
672 m_Tab.SelectServer(this);
673
674 m_ServerData.m_IsSelected = true;
675
676 m_Selected = true;
677#ifdef PLATFROM_XBOX
678 m_Root.SetColor(ARGB(1, 50, 50, 50));
679#endif
680 }
681 }

References ARGB(), m_Root, and ServerBrowserTab::SelectServer().

◆ Select() [6/7]

void ScriptedWidgetEventHandler::Select ( ModInfo mod)
inlineprotected

Definition at line 40 of file ModsMenuSimple.c.

41 {
42 m_DetailMenu.Open();
43 m_DetailMenu.Highlight(mod);
44 }

◆ Select() [7/7]

void ScriptedWidgetEventHandler::Select ( ModInfo mod_ref,
bool show )
inlineprotected

Definition at line 118 of file ModsMenuDetailed.c.

119 {
120 if (mod_ref)
121 {
122 if (show)
123 {
125 m_Data.Get(mod_ref).Select();
126 }
127 else
128 {
129 m_Data.Get(mod_ref).Deselect();
130 if (m_Highlighted == mod_ref)
132 }
133 }
134
136 }

References string::Get(), m_Data, and ScrollToMod().

◆ SelectPlayer()

void ScriptedWidgetEventHandler::SelectPlayer ( PlayerListEntryScriptedWidget entry)
inlineprotected

Definition at line 221 of file PlayerListScriptedWidget.c.

222 {
223 if (m_SelectedEntry)
224 m_SelectedEntry.Deselect();
225 m_SelectedEntry = entry;
226 if (GetGame().GetUIManager().GetMenu())
227 GetGame().GetUIManager().GetMenu().Refresh();
228 ScrollToEntry(entry);
229 }
void ScrollToEntry(PlayerListEntryScriptedWidget entry)

References GetGame(), and ScrollToEntry().

Referenced by RemovePlayer().

◆ SelectTabControl()

void ScriptedWidgetEventHandler::SelectTabControl ( int index)
inlineprotected

Definition at line 305 of file TabberUI.c.

306 {
308 if (tab_control)
309 {
310 /*
311 Widget tab_bg = tab_control.FindAnyWidget( tab_control.GetName() + "_Background" );
312 if( tab_bg )
313 {
314 tab_bg.Show( true );
315 }
316 */
317
318 Widget tab_title = TextWidget.Cast(tab_control.FindAnyWidget(tab_control.GetName() + "_Title"));
319
320 int color_title = ARGB(255, 255, 0, 0);
321 int color_backg = ARGB(255, 0, 0, 0);
322
323#ifdef PLATFORM_CONSOLE
324 color_title = ARGB(255, 255, 255, 255);
325 color_backg = ARGB(255, 200, 0, 0);
326#endif
327
328 tab_title.SetColor(color_title);
329 tab_control.SetColor(color_backg);
330 }
331 }

References ARGB().

◆ SelectTabPanel()

void ScriptedWidgetEventHandler::SelectTabPanel ( int index)
inlineprotected

Definition at line 333 of file TabberUI.c.

334 {
335 Widget tab = m_Tabs.Get(index);
336 if (tab)
337 tab.Show(true);
338 }

◆ ServerBrowserEntry()

void ScriptedWidgetEventHandler::ServerBrowserEntry ( Widget parent,
int index,
ServerBrowserTab tab )
inlineprotected

Definition at line 40 of file ServerBrowserEntry.c.

41 {
42#ifdef PLATFORM_CONSOLE
43 m_Root = GetGame().GetWorkspace().CreateWidgets("gui/layouts/new_ui/server_browser/xbox/server_browser_list_entry.layout", parent);
44#else
45 m_Root = GetGame().GetWorkspace().CreateWidgets("gui/layouts/new_ui/server_browser/pc/server_browser_list_entry_pages.layout", parent);
46#endif
47
48 m_Root.Enable(true);
49 m_Favorite = m_Root.FindAnyWidget("favorite_button");
50 m_Expand = m_Root.FindAnyWidget("expand_button");
51 m_ServerName = TextWidget.Cast(m_Root.FindAnyWidget("server_name"));
52 m_ServerPopulation = TextWidget.Cast(m_Root.FindAnyWidget("server_population"));
53 m_ServerSlots = TextWidget.Cast(m_Root.FindAnyWidget("server_slots"));
54 m_ServerPing = TextWidget.Cast(m_Root.FindAnyWidget("server_ping"));
55 m_ServerTime = ImageWidget.Cast(m_Root.FindAnyWidget("server_time"));
56 m_ServerLock = ImageWidget.Cast(m_Root.FindAnyWidget("lock_icon"));
57 m_ServerModIcon = ImageWidget.Cast(m_Root.FindAnyWidget("modded_icon"));
58 m_ServerMaKIcon = ImageWidget.Cast(m_Root.FindAnyWidget("mandk_icon"));
59
60 m_ServerShard = TextWidget.Cast(m_Root.FindAnyWidget("shard_text"));
61 m_ServerCharacterAlive = TextWidget.Cast(m_Root.FindAnyWidget("character_alive_text"));
62 m_ServerFriends = TextWidget.Cast(m_Root.FindAnyWidget("steam_friends_text"));
63 m_ServerMode = TextWidget.Cast(m_Root.FindAnyWidget("mode_text"));
64 m_ServerBattleye = TextWidget.Cast(m_Root.FindAnyWidget("battlleye_text"));
65 m_ServerIP = TextWidget.Cast(m_Root.FindAnyWidget("ip_text"));
66 m_ServerAcceleration = TextWidget.Cast(m_Root.FindAnyWidget("server_acceleration_text"));
67 m_ServerMap = TextWidget.Cast(m_Root.FindAnyWidget("map_text"));
68 m_ServerMods = TextWidget.Cast(m_Root.FindAnyWidget("mods_text"));
69 m_ServerModsExpand = ButtonWidget.Cast(m_Root.FindAnyWidget("mods_expand"));
70
71 m_Root.FindAnyWidget("basic_info").Show(true);
72 m_Root.FindAnyWidget("favorite_image").Update();
73 m_Root.FindAnyWidget("unfavorite_image").Update();
74
75 m_Index = index;
76 m_Tab = tab;
77 m_IsOnline = true;
78
79 m_ServerTime.LoadImageFile(0, "set:dayz_gui image:icon_sun");
80 m_ServerTime.LoadImageFile(1, "set:dayz_gui image:icon_sun_accel");
81 m_ServerTime.LoadImageFile(2, "set:dayz_gui image:icon_moon");
82 m_ServerTime.LoadImageFile(3, "set:dayz_gui image:icon_moon_accel");
83
84 m_Root.SetHandler(this);
85 }

References GetGame(), m_Favorite, and m_Root.

◆ ServerBrowserFilterContainer()

void ScriptedWidgetEventHandler::ServerBrowserFilterContainer ( Widget root,
ServerBrowserTab parent )
inlineprotected

Definition at line 26 of file ServerBrowserFilterContainer.c.

27 {
28 string player_name;
29 GetGame().GetPlayerName(player_name);
30 m_Tab = parent;
31
32 array<string> character_name_options = { "#server_browser_disabled", player_name };
33 array<string> region_options = { "#server_browser_all", "#server_browser_americas", "#server_browser_europe", "#server_browser_asia" };
34 array<string> sort_options = { "#server_browser_column_host A-Z", "#server_browser_column_host Z-A", "#players_title >", "#players_title <" };
35 array<string> ping_options = { "#server_browser_disabled", "<30", "<50", "<100", "<200", "<300", "<500" };
36 array<string> two_options = { "#server_browser_disabled", "#server_browser_show" };
37
38 m_SearchByName = EditBoxWidget.Cast(root.FindAnyWidget("search_name_setting_option"));
39
40 m_RegionFilter = new OptionSelectorMultistate(root.FindAnyWidget("region_setting_option"), 0, this, false, region_options);
41 m_PingFilter = new OptionSelectorMultistate(root.FindAnyWidget("ping_setting_option"), 0, this, false, ping_options);
42#ifdef PLATFORM_CONSOLE
43 m_FavoritedFilter = new OptionSelectorMultistate(root.FindAnyWidget("favorites_setting_option"), 0, this, false, two_options);
44#else
45 m_FavoritedFilter = new OptionSelector(root.FindAnyWidget("favorites_setting_option"), 0, this, false);
46#endif
47
48 m_DLCFilter = new OptionSelector(root.FindAnyWidget("dlc_setting_option"), 0, this, false);
49 m_FriendsPlayingFilter = new OptionSelector(root.FindAnyWidget("friends_setting_option"), 0, this, false);
50 m_PreviouslyPlayedFilter = new OptionSelector(root.FindAnyWidget("prev_played_setting_option"), 0, this, false);
51 m_FullServerFilter = new OptionSelector(root.FindAnyWidget("full_server_setting_option"), 0, this, false);
52 m_ThirdPersonFilter = new OptionSelector(root.FindAnyWidget("tps_setting_option"), 0, this, false);
53 m_PasswordFilter = new OptionSelector(root.FindAnyWidget("password_setting_option"), 0, this, false);
54 m_WhitelistFilter = new OptionSelector(root.FindAnyWidget("whitelist_setting_option"), 0, this, false);
55
56 m_DLCFilter.m_OptionChanged.Insert(OnFilterChanged);
57 m_RegionFilter.m_OptionChanged.Insert(OnFilterChanged);
58 m_PingFilter.m_OptionChanged.Insert(OnFilterChanged);
59 m_FavoritedFilter.m_OptionChanged.Insert(OnFilterChanged);
60 m_FriendsPlayingFilter.m_OptionChanged.Insert(OnFilterChanged);
61 m_PreviouslyPlayedFilter.m_OptionChanged.Insert(OnFilterChanged);
62 m_FullServerFilter.m_OptionChanged.Insert(OnFilterChanged);
63 m_ThirdPersonFilter.m_OptionChanged.Insert(OnFilterChanged);
64 m_PasswordFilter.m_OptionChanged.Insert(OnFilterChanged);
65 m_WhitelistFilter.m_OptionChanged.Insert(OnFilterChanged);
66
67#ifdef PLATFORM_CONSOLE
68 m_SortingFilter = new OptionSelectorMultistate(root.FindAnyWidget("sort_setting_option"), 0, this, false, sort_options);
69 m_KeyboardFilter = new OptionSelector(root.FindAnyWidget("keyboard_setting_option"), 0, this, false);
70
71 m_SortingFilter.m_OptionChanged.Insert(OnSortChanged);
72 m_SortingFilter.m_OptionChanged.Insert(OnFilterChanged);
73 m_KeyboardFilter.m_OptionChanged.Insert(OnFilterChanged);
74
75 m_PingFilter.Disable();
76 m_FriendsPlayingFilter.Disable();
77#endif
78
79#ifdef PLATFORM_WINDOWS
80#ifndef PLATFORM_CONSOLE
81 m_SearchByIP = EditBoxWidget.Cast(root.FindAnyWidget("search_ip_setting_option"));
82
83 m_SearchByName.SetHandler(this);
84 m_SearchByIP.SetHandler(this);
85
86 m_CharacterAliveFilter = new OptionSelectorMultistate(root.FindAnyWidget("restrict_char_setting_option"), 0, this, false, character_name_options);
87 m_VersionMatchFilter = new OptionSelector(root.FindAnyWidget("ver_match_setting_option"), 0, this, false);
88
89 m_CharacterAliveFilter.m_OptionChanged.Insert(OnFilterChanged);
90 m_VersionMatchFilter.m_OptionChanged.Insert(OnFilterChanged);
91#endif
92#endif
94 }

References GetGame(), LoadFilters(), and OnFilterChanged().

◆ ServerListFocus()

void ScriptedWidgetEventHandler::ServerListFocus ( bool focus)
inlineprotected

Definition at line 200 of file ServerBrowserEntry.c.

201 {
202 m_Tab.ServerListFocus(focus, m_IsFavorited);
203 }

Referenced by OnFocus(), and OnFocusLost().

◆ SetAcceleration()

void ScriptedWidgetEventHandler::SetAcceleration ( float mult)
inlineprivate

Definition at line 563 of file ServerBrowserEntry.c.

564 {
565 if (mult > 1)
566 {
567 m_ServerAcceleration.Show(true);
568 m_ServerAcceleration.SetText(mult.ToString() + "x");
569 }
570 else
571 m_ServerAcceleration.Show(false);
572 }

Referenced by FillInfo().

◆ SetActionWidget()

void ScriptedWidgetEventHandler::SetActionWidget ( ActionBase action,
string descText,
string actionWidget,
string descWidget )
inlineprotected

Definition at line 579 of file ItemActionsWidget.c.

580 {
581 Widget widget = m_Root.FindAnyWidget(actionWidget);
582
583 if (action && (!action.HasTarget() || (m_Player && m_Player.GetCommand_Vehicle())))
584 {
586 Class.CastTo(actionName, widget.FindAnyWidget(descWidget));
587
588
589 if (action.GetInput().GetInputType() == ActionInputType.AIT_CONTINUOUS)
590 {
591 descText = descText + " " + "#action_target_cursor_hold";
592 actionName.SetText(descText);
593 }
594 else
595 actionName.SetText(descText);
596
597 widget.Show(true);
598 }
599 else
600 widget.Show(false);
601 }

References Class::CastTo(), m_Player, and m_Root.

Referenced by BuildCursor().

◆ SetActive()

void ScriptedWidgetEventHandler::SetActive ( bool active)
inlineprotected

Definition at line 147 of file LayoutHolder.c.

148 {
150 }

References m_IsActive.

◆ SetBannerColor()

void ScriptedWidgetEventHandler::SetBannerColor ( int argb)
inlineprotected

Definition at line 23 of file BannerHandlerBase.c.

24 {
25 m_BannerBody.SetColor(argb);
26 m_BannerWedge.SetColor(argb);
27 }

◆ SetBannerText()

void ScriptedWidgetEventHandler::SetBannerText ( string text)
inlineprotected

Definition at line 29 of file BannerHandlerBase.c.

30 {
31 m_BannerText.SetText(text);
32 }

◆ SetBattleye()

void ScriptedWidgetEventHandler::SetBattleye ( bool battleye)
inlineprivate

Definition at line 504 of file ServerBrowserEntry.c.

505 {
506 if (battleye)
507 {
508 m_ServerBattleye.SetText("#server_browser_entry_enabled");
509 m_ServerBattleye.SetColor(ARGBF(1, 0, 1, 0));
510 }
511 else
512 {
513 m_ServerBattleye.SetText("#server_browser_entry_disabled");
514 m_ServerBattleye.SetColor(ARGBF(1, 1, 0, 0));
515 }
516 }

References ARGBF().

Referenced by FillInfo().

◆ SetButtonStates()

void ScriptedWidgetEventHandler::SetButtonStates ( int index)
inlineprivate

Definition at line 76 of file ProfileOptionsUI.c.

77 {
79 for (int i = 0; i < m_widget_array.Count(); i++)
80 {
82 if (button)
83 button.SetState(i == index);
84 }
85 }

◆ SetCanSwitch()

void ScriptedWidgetEventHandler::SetCanSwitch ( bool value)
inlineprotected

Definition at line 201 of file TabberUI.c.

202 {
204 }

◆ SetCharacterAlive()

void ScriptedWidgetEventHandler::SetCharacterAlive ( string char_alive)
inlineprivate

Definition at line 472 of file ServerBrowserEntry.c.

473 {
474 if (char_alive == "")
475 m_ServerCharacterAlive.SetText("#STR_server_browser_char_not_alive");
476 else
478 }

Referenced by FillInfo().

◆ SetContinuousInteractXboxIcon()

void ScriptedWidgetEventHandler::SetContinuousInteractXboxIcon ( string imageset_name,
string image_name )
inlineprotected

Definition at line 64 of file ItemActionsWidget.c.

64{};

◆ SetContinuousXboxIcon()

void ScriptedWidgetEventHandler::SetContinuousXboxIcon ( string imageset_name,
string image_name )
inlineprotected

Definition at line 66 of file ItemActionsWidget.c.

66{};

◆ SetController()

void ScriptedWidgetEventHandler::SetController ( InventoryGridController controller)
inlineprivate

Definition at line 338 of file InventoryGrid.c.

339 {
341 }

◆ SetControllerIcon()

void ScriptedWidgetEventHandler::SetControllerIcon ( string pWidgetName,
string pInputName )
inlineprotected

Definition at line 70 of file ItemActionsWidget.c.

71 {
72 RichTextWidget w = RichTextWidget.Cast(m_Root.FindAnyWidget(pWidgetName + "_btn_icon_xbox"));
74 }
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

References InputUtils::GetRichtextButtonIconFromInputAction(), and m_Root.

Referenced by UpdateControllerInputIcons().

◆ SetDOF()

void ScriptedWidgetEventHandler::SetDOF ( float dof)
inlineprotected

Definition at line 77 of file CTKeyframe.c.

78 {
79 m_DOFWidget.SetText(dof.ToString());
80 }

Referenced by CTKeyframe().

◆ SetElementModifier()

bool ScriptedWidgetEventHandler::SetElementModifier ( UAInput pInput,
out string output )
inlineprotected

Determine the active limiter of the bindings (currently unreliable, multiple limiters can be active on key combos!)

Definition at line 124 of file ControlMappingKeybinds.c.

125 {
126 if (pInput.IsLimited())
127 {
128 if (pInput.IsPressLimit())
129 output = "#keybind_press";
130 if (pInput.IsReleaseLimit())
131 output = "#keybind_release";
132 if (pInput.IsHoldLimit())
133 output = "#keybind_hold";
134 if (pInput.IsHoldBeginLimit())
135 output = "#keybind_holdbegin";
136 if (pInput.IsClickLimit())
137 output = "#keybind_click";
138 if (pInput.IsDoubleClickLimit())
139 output = "#keybind_doubletap";
140
141 return true;
142 }
143 else
144 return false;
145 }

Referenced by TutorialKeybinds().

◆ SetElementTitle() [1/3]

void ScriptedWidgetEventHandler::SetElementTitle ( ButtonWidget btnWidget,
UAInput pInput,
int iDeviceFlags )
inlineprotected

Definition at line 66 of file KeybindingElement.c.

67 {
68 string output;
69 int a, i, countbind = 0;
70
71 for (a = 0; a < pInput.AlternativeCount(); a++)
72 {
73 pInput.SelectAlternative(a);
74 if (pInput.IsCombo())
75 {
76 if (pInput.BindingCount() > 0)
77 {
78 if (pInput.Binding(0) != 0 && pInput.CheckBindDevice(0, iDeviceFlags))
79 {
80 if (countbind > 0)
81 output += ", ";
82
83 output += GetUApi().GetButtonName(pInput.Binding(0));
84 countbind++;
85
86 for (i = 1; i < pInput.BindingCount(); i++)
87 {
88 if (pInput.Binding(i) != 0)
89 {
90 output += " + " + GetUApi().GetButtonName(pInput.Binding(i));
91 countbind++;
92 }
93 }
94
95 }
96 }
97 }
98 else
99 {
100 if (pInput.BindingCount() > 0)
101 {
102 if (pInput.Binding(0) != 0 && pInput.CheckBindDevice(0, iDeviceFlags))
103 {
104 if (countbind > 0)
105 output += ", ";
106
107 output += GetUApi().GetButtonName(pInput.Binding(0));
108 countbind++;
109 }
110 }
111 }
112
113 }
114
115 // nothing may be available - we do not want "null" or "0" in string
116 if (countbind > 0)
117 btnWidget.SetText(output);
118 else
119 btnWidget.SetText("");
120 }

References GetUApi().

◆ SetElementTitle() [2/3]

void ScriptedWidgetEventHandler::SetElementTitle ( ButtonWidget btnWidget,
UAInput pInput,
int iDeviceFlags )
inlineprotected

Definition at line 65 of file KeybindingElementNew.c.

66 {
67 string output;
68 int a, i, countbind = 0;
69
70 for (a = 0; a < pInput.AlternativeCount(); a++)
71 {
72 pInput.SelectAlternative(a);
73 if (pInput.IsCombo())
74 {
75 if (pInput.BindingCount() > 0)
76 {
77 if (pInput.Binding(0) != 0 && pInput.CheckBindDevice(0, iDeviceFlags))
78 {
79 if (countbind > 0)
80 output += ", ";
81
82 output += GetUApi().GetButtonName(pInput.Binding(0));
83 countbind++;
84
85 for (i = 1; i < pInput.BindingCount(); i++)
86 {
87 if (pInput.Binding(i) != 0)
88 {
89 output += " + " + GetUApi().GetButtonName(pInput.Binding(i));
90 countbind++;
91 }
92 }
93
94 }
95 }
96 }
97 else
98 {
99 if (pInput.BindingCount() > 0)
100 {
101 if (pInput.Binding(0) != 0 && pInput.CheckBindDevice(0, iDeviceFlags))
102 {
103 if (countbind > 0)
104 output += ", ";
105
106 output += GetUApi().GetButtonName(pInput.Binding(0));
107 countbind++;
108 }
109 }
110 }
111 }
112
113 // nothing may be available - we do not want "null" or "0" in string
114 if (countbind > 0)
115 btnWidget.SetText(output);
116 else
117 btnWidget.SetText("");
118 }

References GetUApi().

◆ SetElementTitle() [3/3]

bool ScriptedWidgetEventHandler::SetElementTitle ( UAInput pInput,
int iDeviceFlags,
out string output )
inlineprotected

assemble all active bindings at widget element

Definition at line 72 of file ControlMappingKeybinds.c.

73 {
74 int a, i, countbind = 0;
75
76 for (a = 0; a < pInput.AlternativeCount(); a++)
77 {
78 pInput.SelectAlternative(a);
79 if (pInput.IsCombo())
80 {
81 if (pInput.BindingCount() > 0)
82 {
83 if (pInput.Binding(0) != 0 && pInput.CheckBindDevice(0, iDeviceFlags))
84 {
85 if (countbind > 0)
86 output += ", ";
87
88 output += GetUApi().GetButtonName(pInput.Binding(0));
89 countbind++;
90
91 for (i = 1; i < pInput.BindingCount(); i++)
92 {
93 if (pInput.Binding(i) != 0)
94 {
95 output += " + " + GetUApi().GetButtonName(pInput.Binding(i));
96 countbind++;
97 }
98 }
99
100 }
101 }
102 }
103 else
104 {
105 if (pInput.BindingCount() > 0)
106 {
107 if (pInput.Binding(0) != 0 && pInput.CheckBindDevice(0, iDeviceFlags))
108 {
109 if (countbind > 0)
110 output += ", ";
111
112 output += GetUApi().GetButtonName(pInput.Binding(0));
113 countbind++;
114 }
115 }
116 }
117
118 }
119
120 return (countbind > 0);
121 }

References GetUApi().

Referenced by Reload(), and TutorialKeybinds().

◆ SetEventTime()

void ScriptedWidgetEventHandler::SetEventTime ( float time)
inlineprotected

Definition at line 87 of file CTEvent.c.

88 {
90 m_EventTimeWidget.SetText(time.ToString());
91 }

◆ SetEventType()

void ScriptedWidgetEventHandler::SetEventType ( int type)
inlineprotected

Definition at line 93 of file CTEvent.c.

94 {
95 m_EventTypeWidget.SetText(type.ToString());
96 }

◆ SetExpand()

bool ScriptedWidgetEventHandler::SetExpand ( bool expand)
inlineprivate

Definition at line 642 of file ServerBrowserEntry.c.

643 {
645 m_Root.FindAnyWidget("collapse_image").Show(m_IsExpanded);
646 m_Root.FindAnyWidget("expand_image").Show(!m_IsExpanded);
647 m_Root.FindAnyWidget("detailed_info").Show(m_IsExpanded);
648
649 if (m_ServerData)
650 m_ServerData.m_IsExpanded = m_IsExpanded;
651
652 if (expand && m_FirstExpand)
653 {
654 if (m_ServerData.m_Modded)
656 /*
657 else
658 m_ServerMods.SetText( "#STR_USRACT_MAP" + ": " + GetMapName() );
659 */
660
661 m_FirstExpand = false;
662 }
663
664 return m_IsExpanded;
665 }
static void GetServerModList(string server_id)

References OnlineServices::GetServerModList(), m_IsExpanded, m_IsExpanded, and m_Root.

Referenced by FillInfo(), and ToggleExpand().

◆ SetFavorite()

void ScriptedWidgetEventHandler::SetFavorite ( bool favorite)
inlineprivate

Definition at line 556 of file ServerBrowserEntry.c.

557 {
559 m_Root.FindAnyWidget("favorite_image").Show(favorite);
560 m_Root.FindAnyWidget("unfavorite_image").Show(!favorite);
561 }

References m_Root.

Referenced by FillInfo().

◆ SetFirstActive()

void ScriptedWidgetEventHandler::SetFirstActive ( )
protected

◆ SetFOV()

void ScriptedWidgetEventHandler::SetFOV ( float fov)
inlineprotected

Definition at line 67 of file CTKeyframe.c.

68 {
69 m_FOVWidget.SetText(fov.ToString());
70 }

Referenced by CTKeyframe().

◆ SetFriends()

void ScriptedWidgetEventHandler::SetFriends ( string friends_text)
inlineprivate

Definition at line 480 of file ServerBrowserEntry.c.

481 {
483 }

Referenced by FillInfo().

◆ SetGridSize()

void ScriptedWidgetEventHandler::SetGridSize ( int size)
inlineprotected

Definition at line 222 of file InventoryGrid.c.

223 {
225 for (int i = 0; i < m_BackgroundWidgets.Count(); i++)
226 {
227 if (i < size)
228 m_BackgroundWidgets.Get(i).Show(true);
229 else
230 m_BackgroundWidgets.Get(i).Show(false);
231 }
232 }

◆ SetHintDescription()

void ScriptedWidgetEventHandler::SetHintDescription ( )
inlineprotected

Definition at line 131 of file UiHintPanel.c.

132 {
133#ifdef DEVELOPER
134 //Print("showing contents for page "+m_PageIndex);
135#endif
136 m_UiDescLabel.SetText(m_ContentList.Get(m_PageIndex).GetDescriptionText());
137 m_UiDescLabel.Update();
138 m_SpacerFrame.Update();
139 }

References m_ContentList, m_PageIndex, m_SpacerFrame, and m_UiDescLabel.

Referenced by PopulateLayout().

◆ SetHintHeadline()

void ScriptedWidgetEventHandler::SetHintHeadline ( )
inlineprotected

Definition at line 127 of file UiHintPanel.c.

128 {
129 m_UiHeadlineLabel.SetText(m_ContentList.Get(m_PageIndex).GetHeadlineText());
130 }

References m_ContentList, m_PageIndex, and m_UiHeadlineLabel.

Referenced by PopulateLayout().

◆ SetHintImage()

void ScriptedWidgetEventHandler::SetHintImage ( )
inlineprotected

Definition at line 140 of file UiHintPanel.c.

141 {
142 string image_path = m_ContentList.Get(m_PageIndex).GetImagePath();
143
144 // If there is an image
145 if (image_path)
146 {
147 // Show the widget
148 m_UiHintImage.Show(true);
149 // Set the image path
150 m_UiHintImage.LoadImageFile(0, image_path);
151 }
152 else
153 {
154 // Hide the widget
155 m_UiHintImage.Show(false);
156 }
157 }

References m_ContentList, m_PageIndex, and m_UiHintImage.

Referenced by PopulateLayout().

◆ SetHintPaging()

void ScriptedWidgetEventHandler::SetHintPaging ( )
inlineprotected

Definition at line 158 of file UiHintPanel.c.

159 {
161 m_UiPageingLabel.SetText(string.Format("%1 / %2", m_PageIndex + 1, m_ContentList.Count()));
162 }

References m_ContentList, m_PageIndex, and m_UiPageingLabel.

Referenced by PopulateLayout().

◆ SetImmedUpdate()

void ScriptedWidgetEventHandler::SetImmedUpdate ( )
inlineprotected

Definition at line 20 of file LayoutHolder.c.

21 {
22 m_ImmedUpdate = false;
23 }

◆ SetInteractActionIcon()

void ScriptedWidgetEventHandler::SetInteractActionIcon ( string actionWidget,
string actionIconFrameWidget,
string actionIconWidget,
string actionIconTextWidget )
inlineprotected

select first alternative (which is the primary bind)

Definition at line 638 of file ItemActionsWidget.c.

639 {
640 string keyName = string.Empty;
644
645 widget = m_Root.FindAnyWidget(actionWidget);
649
650 m_UseActionWrapper.InputP().SelectAlternative(0);
651 for (int c = 0; c < m_UseActionWrapper.InputP().BindKeyCount(); c++)
652 {
653 int _hc = m_UseActionWrapper.InputP().GetBindKey(0);
654 keyName = GetUApi().GetButtonName(_hc);
655 }
656
657 // uses text in floating widget
658 iconWidget.Show(false);
659 textWidget.SetText(keyName);
660 textWidget.Show(true);
661 }
proto native UAInput InputP()

References Class::CastTo(), GetUApi(), UAIDWrapper::InputP(), and m_Root.

Referenced by BuildCursor().

◆ SetInteractXboxIcon()

void ScriptedWidgetEventHandler::SetInteractXboxIcon ( string imageset_name,
string image_name )
inlineprotected

DEPRECATED.

Definition at line 63 of file ItemActionsWidget.c.

63{};

◆ SetInterpTime()

void ScriptedWidgetEventHandler::SetInterpTime ( float time)
inlineprotected

Definition at line 113 of file CTKeyframe.c.

114 {
118 }
proto string ToString()

References ToString(), and float::ToString().

Referenced by CTKeyframe().

◆ SetIP()

void ScriptedWidgetEventHandler::SetIP ( string ip)
inlineprivate

Definition at line 518 of file ServerBrowserEntry.c.

519 {
520 m_ServerIP.SetText(ip);
521 }

Referenced by FillInfo().

◆ SetIsOnline()

void ScriptedWidgetEventHandler::SetIsOnline ( bool isOnline)
inlineprivate

Definition at line 608 of file ServerBrowserEntry.c.

609 {
611 }

◆ SetItem()

void ScriptedWidgetEventHandler::SetItem ( InventoryItem item,
vector data,
vector rotation )
inlineprivate

Definition at line 634 of file InventoryGrid.c.

635 {
636 m_Items.Set(item, data);
637
638 int index = Math.Round(data[0]);
639 int width = Math.Round(data[1]);
640 int height = Math.Round(data[2]);
641
643 Widget item_w_bck = bck.FindAnyWidget("GridItemBck");
644
645 if (item_w_bck)
646 {
647 bck.FindAnyWidget("LabelTR").Show(true);
648 bck.FindAnyWidget("LabelCC").Show(false);
649
650 Widget item_w = item_w_bck.FindAnyWidget("GridItem");
652
653 if (item)
654 {
655 ItemPreviewWidget item_preview = ItemPreviewWidget.Cast(item_w.FindAnyWidget("Preview"));
656 item_preview.SetItem(item);
657 item_preview.Show(true);
658 item_preview.SetModelOrientation(rotation);
659 item_preview.SetView(item_preview.GetItem().GetViewIndex());
660
661 RefreshItemVariables(item, data, true, true);
662 }
663 else
664 {
665 item_preview = ItemPreviewWidget.Cast(item_w.FindAnyWidget("Preview"));
666 item_preview.Show(false);
667 }
668 }
669 }

References GetItemBackground(), RefreshItemVariables(), ResetItemWidget(), and Math::Round().

◆ SetItemColor()

void ScriptedWidgetEventHandler::SetItemColor ( InventoryItem item,
int color )
inlineprivate

Definition at line 325 of file InventoryGrid.c.

326 {
327 if (m_Items.Contains(item))
328 {
329 vector data = m_Items.Get(item);
330 int index = Math.Round(data[0]);
331
333 if (w)
334 w.SetColor(color);
335 }
336 }
EntityAI GetItem()

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

◆ SetItemDesc()

void ScriptedWidgetEventHandler::SetItemDesc ( EntityAI entity,
string descText,
string itemWidget,
string descWidget )
inlineprotected

Definition at line 326 of file ItemActionsWidget.c.

327 {
329
330 widget = m_Root.FindAnyWidget(itemWidget);
331
332 if (entity && m_Player && !m_Player.GetItemAccessor().IsItemInHandsHidden())
333 {
334 descText.ToUpper();
336 Class.CastTo(itemName, widget.FindAnyWidget(descWidget));
337 itemName.SetText(descText);
338 widget.Show(true);
339 }
340 else
341 widget.Show(false);
342 }

References Class::CastTo(), m_Player, and m_Root.

Referenced by BuildCursor().

◆ SetItemHealth()

void ScriptedWidgetEventHandler::SetItemHealth ( int health,
string itemWidget,
string healthWidget,
bool enabled )
inlineprotected

Definition at line 344 of file ItemActionsWidget.c.

345 {
347
348 widget = m_Root.FindAnyWidget(itemWidget);
349
350 if (enabled)
351 {
353 Class.CastTo(healthMark, widget.FindAnyWidget(healthWidget));
354
355 switch (health)
356 {
357 case -1 :
358 healthMark.GetParent().Show(false);
359 break;
362 healthMark.SetAlpha(0.5);
363 healthMark.GetParent().Show(true);
364 break;
366 healthMark.SetColor(Colors.COLOR_WORN);
367 healthMark.SetAlpha(0.5);
368 healthMark.GetParent().Show(true);
369 break;
372 healthMark.SetAlpha(0.5);
373 healthMark.GetParent().Show(true);
374 break;
377 healthMark.SetAlpha(0.5);
378 healthMark.GetParent().Show(true);
379 break;
382 healthMark.SetAlpha(0.5);
383 healthMark.GetParent().Show(true);
384 break;
385 default :
386 healthMark.SetColor(0x00FFFFFF);
387 healthMark.SetAlpha(0.5);
388 healthMark.GetParent().Show(true);
389 break;
390 }
391
392 widget.Show(true);
393 }
394 else
395 widget.Show(false);
396 }
Definition Colors.c:4
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 Class::CastTo(), Colors::COLOR_BADLY_DAMAGED, Colors::COLOR_DAMAGED, Colors::COLOR_PRISTINE, Colors::COLOR_RUINED, Colors::COLOR_WORN, m_Root, GameConstants::STATE_BADLY_DAMAGED, GameConstants::STATE_DAMAGED, GameConstants::STATE_PRISTINE, GameConstants::STATE_RUINED, and GameConstants::STATE_WORN.

Referenced by BuildCursor().

◆ SetItemQuantity()

void ScriptedWidgetEventHandler::SetItemQuantity ( int type,
float current,
int min,
int max,
string itemWidget,
string quantityPBWidget,
string quantityTextWidget,
bool enabled )
inlineprotected

Definition at line 398 of file ItemActionsWidget.c.

399 {
401
402 widget = m_Root.FindAnyWidget(itemWidget);
403
404 if (enabled)
405 {
410
411 //check for volume vs. count and display progressbar or "bubble" with exact count/max text
412 switch (type)
413 {
414 case QUANTITY_HIDDEN :
415 progressBar.Show(false);
416 textWidget.Show(false);
417 textWidget.GetParent().Show(false);
418 break;
419 case QUANTITY_COUNT :
420 if (max > 1 || current > 1)
421 {
422 string qty_text = string.Format("%1/%2", Math.Round(current).ToString(), max.ToString());
423 progressBar.Show(false);
424 textWidget.SetText(qty_text);
425 textWidget.Show(true);
426 textWidget.GetParent().Show(true);
427 break;
428 }
429 else
430 {
431 progressBar.Show(false);
432 textWidget.Show(false);
433 textWidget.GetParent().Show(false);
434 break;
435 }
436 case QUANTITY_PROGRESS :
437 textWidget.Show(false);
438 progressBar.SetCurrent(current);
439 progressBar.Show(true);
440 textWidget.GetParent().Show(true);
441 break;
442 }
443 widget.Show(true);
444 }
445 else
446 widget.Show(false);
447 }

References Class::CastTo(), m_Root, QUANTITY_COUNT, QUANTITY_HIDDEN, QUANTITY_PROGRESS, and Math::Round().

Referenced by BuildCursor().

◆ SetLastActive()

void ScriptedWidgetEventHandler::SetLastActive ( )
protected

◆ SetLayoutName()

void ScriptedWidgetEventHandler::SetLayoutName ( )
protected

◆ SetMapName()

void ScriptedWidgetEventHandler::SetMapName ( string mapName)
inlineprivate

Definition at line 451 of file ServerBrowserEntry.c.

452 {
454 }

References RefreshDLCIcon().

Referenced by FillInfo().

◆ SetModded()

void ScriptedWidgetEventHandler::SetModded ( bool is_modded)
inlineprivate

Definition at line 574 of file ServerBrowserEntry.c.

575 {
577 }

Referenced by FillInfo().

◆ SetMode()

void ScriptedWidgetEventHandler::SetMode ( int mode)
inlineprivate

Definition at line 485 of file ServerBrowserEntry.c.

486 {
487 string text;
488 switch (mode)
489 {
490 case 0:
491 {
492 text = "#server_browser_entry_person_both";
493 break;
494 }
495 case 1:
496 {
497 text = "#server_browser_entry_person_first";
498 break;
499 }
500 }
501 m_ServerMode.SetText(text);
502 }

Referenced by FillInfo().

◆ SetMods()

void ScriptedWidgetEventHandler::SetMods ( array< string > mods)
inlineprivate

Definition at line 584 of file ServerBrowserEntry.c.

585 {
586 m_Mods = mods;
587
588 //string mods_text = "#STR_USRACT_MAP" + ": " + GetMapName() + " | ";
589 if (mods && mods.Count() > 0)
590 {
591 string mods_text = mods[0];
592 for (int i = 1; i < mods.Count(); i++)
593 mods_text += ", " + mods[i];
594
595 m_ServerMods.SetText(mods_text);
596 }
597
598#ifdef PLATFORM_WINDOWS
599 m_ServerModsExpand.Show((mods && mods.Count() > 0));
600#endif
601 }

◆ SetMouseAndKeyboard()

void ScriptedWidgetEventHandler::SetMouseAndKeyboard ( bool is_mkenabled)
inlineprivate

Definition at line 603 of file ServerBrowserEntry.c.

604 {
606 }

Referenced by FillInfo().

◆ SetMultipleContinuousInteractAction()

void ScriptedWidgetEventHandler::SetMultipleContinuousInteractAction ( string multiActionsWidget)
inlineprotected

shows arrows near the interact action if there are more than one available

Definition at line 613 of file ItemActionsWidget.c.

614 {
616
617 widget = m_Root.FindAnyWidget(multiActionsWidget);
619 }

References m_Root.

Referenced by BuildCursor().

◆ SetMultipleContinuousItemAction()

void ScriptedWidgetEventHandler::SetMultipleContinuousItemAction ( string multiActionsWidget)
inlineprotected

shows arrows near the interact action if there are more than one available

Definition at line 630 of file ItemActionsWidget.c.

631 {
633
634 widget = m_Root.FindAnyWidget(multiActionsWidget);
636 }

References m_Root.

Referenced by BuildCursor().

◆ SetMultipleInteractAction()

void ScriptedWidgetEventHandler::SetMultipleInteractAction ( string multiActionsWidget)
inlineprotected

shows arrows near the interact action if there are more than one available

Definition at line 604 of file ItemActionsWidget.c.

605 {
607
608 widget = m_Root.FindAnyWidget(multiActionsWidget);
610 }

References m_Root.

Referenced by BuildCursor().

◆ SetMultipleItemAction()

void ScriptedWidgetEventHandler::SetMultipleItemAction ( string multiActionsWidget)
inlineprotected

Definition at line 621 of file ItemActionsWidget.c.

622 {
624
625 widget = m_Root.FindAnyWidget(multiActionsWidget);
626 widget.Show(m_ItemActionsNum > 1);
627 }

References m_Root.

Referenced by BuildCursor().

◆ SetMute() [1/2]

void ScriptedWidgetEventHandler::SetMute ( bool mute)
inlineprotected

Definition at line 77 of file PlayerListEntryScriptedWidget.c.

78 {
79 m_Mute = mute;
80 m_MuteIcon.Show(mute);
81 }

◆ SetMute() [2/2]

void ScriptedWidgetEventHandler::SetMute ( string UID,
bool mute )
inlineprotected

Definition at line 204 of file PlayerListScriptedWidget.c.

205 {
206 if (m_Entries && m_Entries.Get(UID))
207 m_Entries.Get(UID).SetMute(mute);
208 }

References UID.

◆ SetName()

void ScriptedWidgetEventHandler::SetName ( string name)
inlineprotected

Definition at line 313 of file ServerBrowserEntry.c.

314 {
315 m_ServerName.SetText(name);
316 }

References name.

Referenced by FillInfo().

◆ SetOptions() [1/4]

void ScriptedWidgetEventHandler::SetOptions ( GameOptions options)
inlineprotected

Definition at line 579 of file OptionsMenuControls.c.

580 {
582
583 // mouse (PC & consoles)
589
590 // controller (consoles only)
591#ifdef PLATFORM_CONSOLE
594
598 m_ControllerRS_InvertOption = SwitchOptionsAccess.Cast(m_Options.GetOptionByType(OptionAccessType.AT_OPTIONS_CONTROLLER_RS_YAXIS_INVERTED));
605#endif
606
607 Revert();
608 }

References GameOptions::GetOptionByType(), and Revert().

Referenced by OptionsMenuControls(), and OptionsMenuVideo().

◆ SetOptions() [2/4]

void ScriptedWidgetEventHandler::SetOptions ( GameOptions options)
inlineprotected

Definition at line 344 of file OptionsMenuGame.c.

345 {
347
350
351 if (m_FOVSelector)
352 m_FOVSelector.SetValue(m_FOVOption.ReadValue(), false);
353
355 m_LanguageSelector.SetValue(m_LanguageOption.GetIndex(), false);
356
357#ifdef PLATFORM_CONSOLE
360 m_BrightnessSelector.SetValue(m_BrightnessOption.ReadValue(), false);
361#endif
362 }

References GameOptions::GetOptionByType().

◆ SetOptions() [3/4]

void ScriptedWidgetEventHandler::SetOptions ( GameOptions options)
inlineprivate

Definition at line 286 of file OptionsMenuSounds.c.

References GameOptions::GetOptionByType(), and Revert().

◆ SetOptions() [4/4]

void ScriptedWidgetEventHandler::SetOptions ( GameOptions options)
inlineprotected

Definition at line 299 of file OptionsMenuVideo.c.

300 {
302
303#ifdef PLATFORM_CONSOLE
304#ifdef PLATFORM_PS4
306#endif
307#else
308 //Overall
310
311 //Screen
316 //m_ColorDepthOption = ListOptionsAccess.Cast( m_Options.GetOptionByType( OptionAccessType.AT_HDR_DETAIL ) );
317
318 //Scene
323
324 //Rendering
327
334#endif
335 }

References GameOptions::GetOptionByType().

◆ SetOrientation()

void ScriptedWidgetEventHandler::SetOrientation ( vector orient)
inlineprotected

Definition at line 92 of file CTKeyframe.c.

93 {
95 }

References m_Orientation.

◆ SetParentWidget()

void ScriptedWidgetEventHandler::SetParentWidget ( )
inlineprotected

Definition at line 136 of file LayoutHolder.c.

137 {
138 if (m_Parent)
139 m_ParentWidget = m_Parent.GetMainWidget();
140 }

References m_Parent, and m_ParentWidget.

◆ SetPasswordLocked()

void ScriptedWidgetEventHandler::SetPasswordLocked ( bool locked)
inlineprotected

Definition at line 318 of file ServerBrowserEntry.c.

319 {
320 m_ServerLock.Show(locked);
321 }

Referenced by FillInfo().

◆ SetPin()

void ScriptedWidgetEventHandler::SetPin ( int pin)
inlineprotected

Definition at line 57 of file CTKeyframe.c.

58 {
59 m_PinWidget.SetText(pin.ToString());
60 }

Referenced by CTKeyframe().

◆ SetPing()

void ScriptedWidgetEventHandler::SetPing ( int ping)
inlineprivate

Definition at line 377 of file ServerBrowserEntry.c.

378 {
379 int color;
380 string displayValue;
381
382 if (ping < 50)
383 color = ARGBF(1, 0, 1, 0);
384 else if (ping < 100)
385 color = ARGBF(1, 0.8, 0.8, 0);
386 else if (ping < 200)
387 color = ARGBF(1, 1, 0.5, 0);
388 else
389 color = ARGBF(1, 1, 0, 0);
390
391 if (IsOnline())
392 displayValue = ping.ToString();
393
394 else
395 displayValue = "-";
396
397 m_ServerPing.SetColor(color);
398 m_ServerPing.SetText(displayValue);
399 }

References ARGBF(), and IsOnline().

Referenced by FillInfo().

◆ SetPlatformSpecifics()

void ScriptedWidgetEventHandler::SetPlatformSpecifics ( )
inlineprotected

Definition at line 167 of file MainMenuPromo.c.

168 {
169 TextWidget desc = TextWidget.Cast(m_StoreButton.FindAnyWidget("dlc_openStore_label"));
170#ifdef PLATFORM_PS4
171 m_GamepadStoreImage = m_Root.FindAnyWidget("image_button_ps");
172 desc.SetText("#dlc_open_store_PS");
173#else
174 m_GamepadStoreImage = m_Root.FindAnyWidget("image_button_xbox");
175 desc.SetText("#dlc_open_store");
176#endif
177 }

References m_Root.

Referenced by Init().

◆ SetPopulation()

void ScriptedWidgetEventHandler::SetPopulation ( int population,
int slots )
inlineprotected

Definition at line 324 of file ServerBrowserEntry.c.

325 {
326 int color = ARGBF(1, 1, 1, 1);
327 string pop_text = population.ToString() + "/" + slots.ToString();
328
329 if (slots > 0)
330 {
332
333 if (pop_percentage >= 1)
334 color = ARGBF(1, 1, 0, 0);
335 else if (pop_percentage >= 0.8)
336 color = ARGBF(1, 1, 0.5, 0);
337 }
338
340 m_ServerPopulation.SetColor(color);
341 m_ServerPopulation.SetBold(true);
342 m_ServerPopulation.SetOutline(1);
343
344 }

References ARGBF().

◆ SetPopulationEx()

void ScriptedWidgetEventHandler::SetPopulationEx ( GetServersResultRow serverInfo)
inlineprivate

Definition at line 346 of file ServerBrowserEntry.c.

347 {
348 string popText = "";
349 int population = serverInfo.m_CurrentNumberPlayers;
350 int maxPlayers = serverInfo.m_MaxPlayers;
351 int playersInQueue = serverInfo.m_PlayersInQueue;
352
353 if (IsOnline())
354 {
355 // sometimes servers report a queue size even though server isn't full,
356 // in which case we ignore queue size
358 popText = population.ToString() + "+" + playersInQueue.ToString() + "/" + maxPlayers.ToString();
359 else
360 popText = population.ToString() + "/" + maxPlayers.ToString();
361 }
362
363 else
364 popText = "-";
365
367 }

References IsOnline().

Referenced by Darken(), FillInfo(), and Lighten().

◆ SetPosition() [1/2]

void ScriptedWidgetEventHandler::SetPosition ( vector pos)
inlineprotected

Definition at line 87 of file CTKeyframe.c.

88 {
89 m_Position = pos;
90 }

References m_Position.

◆ SetPosition() [2/2]

void ScriptedWidgetEventHandler::SetPosition ( vector position)
inlineprotected

Definition at line 44 of file CTObjectFollower.c.

45 {
48 {
49 m_FollowedObject.SetPosition(position);
50 m_Position = m_FollowedObject.GetPosition();
51 }
52 UpdatePos();
53 }
void UpdatePos()
Function updating the position of the tracker widget.

References m_Position.

◆ SetProgress()

void ScriptedWidgetEventHandler::SetProgress ( float progress)
inlineprivate

Definition at line 138 of file ContinuousActionProgress.c.

139 {
140 if (m_Radial)
141 m_Radial.SetProgress(progress);
142 }

Referenced by Update().

◆ SetRadioFrequency()

void ScriptedWidgetEventHandler::SetRadioFrequency ( string freq,
string itemWidget,
string upWidget,
string downWidget,
bool enabled )
inlineprotected

Definition at line 558 of file ItemActionsWidget.c.

559 {
561
562 widget = m_Root.FindAnyWidget(itemWidget);
563
564 if (enabled)
565 {
568 Class.CastTo(txtUpWidget, widget.FindAnyWidget(upWidget));
569 Class.CastTo(txtDownWidget, widget.FindAnyWidget(downWidget));
570
571 txtUpWidget.SetText(freq);
572 txtDownWidget.SetText("MHz");
573 widget.Show(true);
574 }
575 else
576 widget.Show(false);
577 }

References Class::CastTo(), and m_Root.

Referenced by BuildCursor().

◆ SetRotation()

void ScriptedWidgetEventHandler::SetRotation ( vector dir)
inlineprotected

Definition at line 55 of file CTObjectFollower.c.

56 {
57 m_Orientation = dir;
59 if (player)
60 player.SetOrientation(m_Orientation);
61 UpdatePos();
62 }

References m_Orientation.

◆ SetServerMapName()

void ScriptedWidgetEventHandler::SetServerMapName ( )
inlineprivate

Definition at line 579 of file ServerBrowserEntry.c.

580 {
581 m_ServerMap.SetText(GetMapName());
582 }

References GetMapName().

Referenced by FillInfo().

◆ SetShard()

void ScriptedWidgetEventHandler::SetShard ( int shard)
inlineprivate

Definition at line 432 of file ServerBrowserEntry.c.

433 {
434 string text;
435 switch (shard)
436 {
437 case 0:
438 {
439 text = "#server_browser_entry_private";
440 break;
441 }
442 case 1:
443 {
444 text = "#server_browser_entry_official";
445 break;
446 }
447 }
448 m_ServerShard.SetText(text);
449 }

Referenced by FillInfo().

◆ SetSingleXboxIcon()

void ScriptedWidgetEventHandler::SetSingleXboxIcon ( string imageset_name,
string image_name )
inlineprotected

Definition at line 65 of file ItemActionsWidget.c.

65{};

◆ SetSize()

void ScriptedWidgetEventHandler::SetSize ( float x,
float y )
inlineprivate

Definition at line 97 of file ContextMenu.c.

98 {
100 }

References x, and y.

◆ SetSlots()

void ScriptedWidgetEventHandler::SetSlots ( int slots)
inlineprivate

Definition at line 369 of file ServerBrowserEntry.c.

370 {
371 if (IsOnline())
372 m_ServerSlots.SetText(slots.ToString());
373 else
374 m_ServerSlots.SetText("-");
375 }

References IsOnline().

Referenced by FillInfo().

◆ SetTarget()

void ScriptedWidgetEventHandler::SetTarget ( Object obj)
inlineprotected

Definition at line 26 of file ObjectFollower.c.

27 {
28 m_TargetObject = obj;
29 }

References m_TargetObject.

◆ SetText()

void ScriptedWidgetEventHandler::SetText ( string text)
inlineprotected

Definition at line 100 of file DropdownPrefab.c.

101 {
102 m_Text.SetText(text);
103 }

References m_Text.

Referenced by DropdownPrefab().

◆ SetTime()

void ScriptedWidgetEventHandler::SetTime ( string time,
float multiplier )
inlineprivate

Definition at line 401 of file ServerBrowserEntry.c.

402 {
403 if (time != "")
404 {
406
407 time.Split(":", arr);
408
409 if (arr.Count() == 2)
410 {
411 int hour = arr.Get(0).ToInt();
412 int minute = arr.Get(1).ToInt();
413
414 if (hour >= 19 || hour <= 5) //Night
415 {
416 if (multiplier > 1)
417 m_ServerTime.SetImage(3);
418 else
419 m_ServerTime.SetImage(2);
420 }
421 else //Day
422 {
423 if (multiplier > 1)
424 m_ServerTime.SetImage(1);
425 else
426 m_ServerTime.SetImage(0);
427 }
428 }
429 }
430 }

Referenced by FillInfo().

◆ SetTimeBefore()

void ScriptedWidgetEventHandler::SetTimeBefore ( float time)
inlineprotected

Definition at line 107 of file CTKeyframe.c.

References ToString().

◆ SetToDefaults() [1/4]

void ScriptedWidgetEventHandler::SetToDefaults ( )
inlineprotected

Definition at line 409 of file OptionsMenuControls.c.

410 {
412 m_Mouse_InvertSelector.SetValue(m_Mouse_InvertOption.GetDefaultIndex(), true);
414 m_Mouse_VSensitivitySelector.SetValue(m_Mouse_VSensitivityOption.GetDefault(), true);
416 m_Mouse_HSensitivitySelector.SetValue(m_Mouse_HSensitivityOption.GetDefault(), true);
421
422#ifdef PLATFORM_CONSOLE
424 m_KeyboardSelector.SetValue(m_KeyboardOption.GetDefaultIndex(), true);
426 m_AimHelperSelector.SetValue(m_AimHelperOption.GetDefaultIndex(), true);
427
435 m_ControllerRS_InvertSelector.SetValue(m_ControllerRS_InvertOption.GetDefaultIndex(), true);
448
449 Focus();
450#endif
451
452 }

References Focus().

◆ SetToDefaults() [2/4]

void ScriptedWidgetEventHandler::SetToDefaults ( )
inlineprotected

Definition at line 287 of file OptionsMenuGame.c.

288 {
289 g_Game.ResetProfileOptions();
290
292 m_ShowHUDSelector.SetValue(g_Game.GetProfileOptionDefaultBool(EDayZProfilesOptions.HUD), false);
293
295 {
296 m_HUDBrightnessSelector.SetValue(g_Game.GetProfileOptionDefaultFloat(EDayZProfilesOptions.HUD_BRIGHTNESS), false);
297 g_Game.SetHudBrightness(m_HUDBrightnessSelector.GetValue());
298 }
299
301 m_ShowCrosshairSelector.SetValue(g_Game.GetProfileOptionDefaultBool(EDayZProfilesOptions.CROSSHAIR), false);
302
303 if (m_FOVOption)
304 {
305 m_FOVOption.WriteValue(m_FOVOption.GetDefault());
306 m_FOVSelector.SetValue(m_FOVOption.ReadValue(), false);
307 g_Game.SetUserFOV(m_FOVOption.GetDefault());
308 }
310 m_ShowGameSelector.SetValue(g_Game.GetProfileOptionDefaultBool(EDayZProfilesOptions.GAME_MESSAGES), false);
312 m_ShowAdminSelector.SetValue(g_Game.GetProfileOptionDefaultBool(EDayZProfilesOptions.ADMIN_MESSAGES), false);
314 m_ShowPlayerSelector.SetValue(g_Game.GetProfileOptionDefaultBool(EDayZProfilesOptions.PLAYER_MESSAGES), false);
316 m_BleedingIndication.SetValue(g_Game.GetProfileOptionDefaultBool(EDayZProfilesOptions.BLEEDINGINDICATION), false);
318 m_ConnectivityInfo.SetValue(g_Game.GetProfileOptionDefaultBool(EDayZProfilesOptions.CONNECTIVITY_INFO), false);
319
320#ifdef PLATFORM_CONSOLE
322 {
323 m_BrightnessOption.WriteValue(m_BrightnessOption.GetDefault());
324 m_BrightnessSelector.SetValue(m_BrightnessOption.GetDefault(), false);
325 }
326#else
328 m_ShowQuickbarSelector.SetValue(g_Game.GetProfileOptionDefaultBool(EDayZProfilesOptions.QUICKBAR), false);
330 m_ShowServerInfoSelector.SetValue(g_Game.GetProfileOptionDefaultBool(EDayZProfilesOptions.SERVERINFO_DISPLAY), false);
331 if (m_PauseOption)
332 {
333 m_PauseOption.SetIndex(m_PauseOption.GetDefaultIndex());
334 m_PauseSelector.SetValue(m_PauseOption.GetIndex(), false);
335 }
336#endif
337 }

References g_Game.

◆ SetToDefaults() [3/4]

void ScriptedWidgetEventHandler::SetToDefaults ( )
inlineprivate

Definition at line 262 of file OptionsMenuSounds.c.

263 {
264 if (m_MasterOption)
265 m_MasterSelector.SetValue(m_MasterOption.GetDefault(), true);
266 if (m_EffectsOption)
267 m_EffectsSelector.SetValue(m_EffectsOption.GetDefault(), true);
268 if (m_VOIPOption)
269 m_VOIPSelector.SetValue(m_VOIPOption.GetDefault(), true);
271 m_VOIPThresholdSelector.SetValue(m_VOIPThresholdOption.GetDefault(), true);
272 if (m_MusicOption)
273 m_MusicSelector.SetValue(m_MusicOption.GetDefault(), true);
275 {
276 m_InputModeOption.SetIndex(m_InputModeOption.GetDefaultIndex());
277 m_InputModeSelector.SetValue(m_InputModeOption.GetIndex(), false);
278 }
279 }

◆ SetToDefaults() [4/4]

void ScriptedWidgetEventHandler::SetToDefaults ( )
inlineprotected

Definition at line 280 of file OptionsMenuVideo.c.

281 {
282#ifdef PLATFORM_CONSOLE
283#ifdef PLATFORM_PS4
284 m_FlipModeSelector.SetValue(m_FlipModeOption.GetDefaultIndex(), false);
285#endif
286#else
287 m_DisplayModeSelector.SetValue(m_DisplayModeOption.GetDefaultIndex(), false);
288 m_ResolutionSelector.SetValue(m_ResolutionOption.GetDefaultIndex(), false);
289 m_BrightnessSelector.SetValue(m_BrightnessOption.GetDefault(), false);
290 m_VSyncSelector.SetValue(m_VSyncOption.GetDefaultIndex(), false);
291 int idx = m_OverallQualityOption.GetDefaultIndex();
292 m_OverallQualitySelector.SetValue(m_OverallQualityOption.GetDefaultIndex(), true);
293#endif
294
296 //DefaultValuesToCustom();
297 }

References RefreshCustom().

◆ SetValue()

void ScriptedWidgetEventHandler::SetValue ( )
inlineprivate

Definition at line 55 of file ProfileOptionsUI.c.

56 {
57 int state;
59
61 {
64 }
65 }

References Class::CastTo().

◆ SetWeaponModeAndZeroing()

void ScriptedWidgetEventHandler::SetWeaponModeAndZeroing ( string itemWidget,
string upWidget,
string downWidget,
bool enabled )
inlineprotected

Definition at line 525 of file ItemActionsWidget.c.

526 {
528
529 widget = m_Root.FindAnyWidget(itemWidget);
530
531 if (enabled && m_Player)
532 {
535
536 Class.CastTo(txtModeWidget, widget.FindAnyWidget(upWidget));
538
539 Weapon w = Weapon.Cast(m_Player.GetHumanInventory().GetEntityInHands());
540 string zeroing = string.Empty;
541 if (w)
542 zeroing = string.Format("%1 m", w.GetCurrentZeroing(w.GetCurrentMuzzle()));
543
544 txtModeWidget.SetText(m_Player.GetWeaponManager().GetCurrentModeName());
545 txtZeroingWidget.SetText(zeroing);
546 widget.Show(true);
547 }
548 else
549 widget.Show(false);
550 }
script counterpart to engine's class Weapon

References Class::CastTo(), WeaponManager::GetCurrentModeName(), DayZPlayer::GetWeaponManager(), m_Player, and m_Root.

Referenced by BuildCursor().

◆ SetWeaponQuantity()

void ScriptedWidgetEventHandler::SetWeaponQuantity ( int chamber,
int mag,
string itemWidget,
string quantityPBWidget,
string quantityTextWidget,
bool enabled )
inlineprotected

Definition at line 449 of file ItemActionsWidget.c.

450 {
452
453 widget = m_Root.FindAnyWidget(itemWidget);
454
455 if (enabled)
456 {
457 string wpn_qty = "";
458
463
466 int mag_quantity = -1;
467
469 {
470 if (Magnum_Base.Cast(wpn))
471 {
472 mag_quantity = 0;
473 for (int j = 0; j < wpn.GetMuzzleCount(); j++)
474 {
475 if (wpn.IsChamberFull(j) && !wpn.IsChamberFiredOut(j))
476 mag_quantity++;
477 }
478 wpn_qty = mag_quantity.ToString();
479 }
480 else
481 {
482 for (int i = 0; i < wpn.GetMuzzleCount(); i++)
483 {
484 if (i > 0 && (wpn.GetMuzzleCount() < 3 || i % 2 == 0))
485 wpn_qty = wpn_qty + " ";
486 if (wpn.IsChamberEmpty(i))
487 wpn_qty = wpn_qty + "0";
488 else if (wpn.IsChamberFiredOut(i))
489 wpn_qty = wpn_qty + "F";
490 else
491 wpn_qty = wpn_qty + "1";
492
493 maga = wpn.GetMagazine(i);
494 if (maga)
495 mag_quantity = maga.GetAmmoCount();
496 else if (wpn.GetInternalMagazineMaxCartridgeCount(i) > 0)
497 mag_quantity = wpn.GetInternalMagazineCartridgeCount(i);
498
499 }
500
501 if (wpn.IsJammed())
502 {
503 if (mag_quantity != -1)
504 wpn_qty = string.Format("X (+%1)", mag_quantity);
505 else
506 wpn_qty = "X";
507 }
508 else
509 {
510 if (mag_quantity != -1)
511 wpn_qty = wpn_qty + " (" + mag_quantity.ToString() + ")";
512 }
513 }
514 }
515
516 progressBar.Show(false);
517 textWidget.SetText(wpn_qty);
518 textWidget.Show(true);
519 textWidget.GetParent().Show(true);
520 }
521 else
522 widget.Show(false);
523 }

References Class::CastTo(), and m_Root.

Referenced by BuildCursor().

◆ SetXboxIcon()

void ScriptedWidgetEventHandler::SetXboxIcon ( string name,
string imageset_name,
string image_name )
inlineprotected

Definition at line 67 of file ItemActionsWidget.c.

67{};

◆ Show() [1/4]

void ScriptedWidgetEventHandler::Show ( )
inlineprotected

Definition at line 107 of file CTObjectFollower.c.

108 {
109 m_FollowerRoot.Show(true);
110 }

◆ Show() [2/4]

void ScriptedWidgetEventHandler::Show ( bool show)
inlineprotected

Definition at line 97 of file ServerBrowserEntry.c.

98 {
99 m_Root.Show(show);
100 }

References m_Root.

◆ Show() [3/4]

void ScriptedWidgetEventHandler::Show ( bool show)
inlineprotected

Definition at line 36 of file VideoPlayer.c.

37 {
38 m_Root.Show(show);
39 }

References m_Root.

◆ Show() [4/4]

void ScriptedWidgetEventHandler::Show ( int x,
int y )
inlineprivate

Definition at line 41 of file ContextMenu.c.

42 {
43 if (m_count == 0) return;
44 int screen_w, screen_h;
45 float w, h;
46 float sx, sy;
47 int offset_x;// = -20;
48 int offset_y;// = -10;
49
51
52 // align buttons
53 float button_height_percent = 0.02; // button height is 4% of screen height
55
56 for (int i = 0; i < m_count; i++)
57 {
58 ButtonWidget menu_button = ButtonWidget.Cast(m_context_menu_root_widget.FindAnyWidget(String("Button" + (i + 1).ToString())));
59 if (menu_button)
60 {
61 menu_button.SetSize(0.90, button_height);
62 menu_button.Show(true);
63 }
64 }
65
66
69 if (spacer)
70 spacer.Update();
71
75
76 // set position
77 m_context_menu_root_widget.GetScreenSize(w, h);
78 screen_w -= 10;
79 screen_h -= 10;
80
81 int right_edge = x + w - offset_x;
82 if (right_edge > screen_w)
83 x = screen_w - w - offset_x;
84 else
85 x = x + offset_x;
86
87 int bottom_edge = y + h - offset_y;
89 y = y - h - offset_y;
90 else
91 y = y + offset_y;
92
95 }

References GetScreenSize(), m_count, String(), ToString(), x, and y.

◆ ShowActionMenu()

void ScriptedWidgetEventHandler::ShowActionMenu ( InventoryItem item)
inlineprotected

Definition at line 41 of file LayoutHolder.c.

42 {
47 ContextMenu cmenu = ContextMenu.Cast(GetGame().GetUIManager().GetMenu().GetContextMenu());
48
49 cmenu.Hide();
50 cmenu.Clear();
51
52 if (m_am_entity1 == null)
53 return;
54
57 itemBase.GetDebugActions(customActions);
58
59 if (ItemBase.GetDebugActionsMask() & DebugActionType.PLAYER_AGENTS)
60 m_player.GetDebugActions(customActions);
61
62 int actionsCount = customActions.Count();
63 for (int i = 0; i < customActions.Count(); i++)
64 {
66 if (actionInfo)
67 {
68 int actionId = actionInfo.param2;
69 int textColor = actionInfo.param4;
70 string actionText = actionInfo.param3;
71
72 if (actionId == EActions.SEPARATOR)
73 cmenu.AddEx(actionText, textColor, this, "", null);
74 else
75 cmenu.AddEx(actionText, textColor, this, "OnSelectActionEx", new Param3<EntityAI, int, int>(itemBase, actionId, textColor));
76 }
77 }
78
81 actionMenuPosX -= 5;
82 actionMenuPosY -= 5;
84 }
override ContextMenu GetContextMenu()
DebugActionType
proto void GetMousePos(out int x, out int y)

References GetContextMenu(), GetGame(), GetMousePos(), GetPlayer(), and m_player.

◆ ShowBackdrop()

void ScriptedWidgetEventHandler::ShowBackdrop ( bool show)
inlineprivate

Definition at line 103 of file ContextMenu.c.

104 {
105 if (show == true)
106 m_context_menu_root_widget.FindAnyWidget("BackdropImageWidget").Show(true);
107 else
108 m_context_menu_root_widget.FindAnyWidget("BackdropImageWidget").Show(false);
109 }

◆ ShowInfoPanel()

void ScriptedWidgetEventHandler::ShowInfoPanel ( bool show)
inlineprotected

Definition at line 71 of file MainMenuPromo.c.

72 {
73 m_Root.Show(show);
75 }

References m_Root, and OnPanelVisibilityChanged().

◆ ShowNewsfeed()

void ScriptedWidgetEventHandler::ShowNewsfeed ( )
inlineprotected

Definition at line 42 of file MainMenuNewsfeed.c.

43 {
44 //m_Root.Show( true );
45 m_MainText1.SetText("#layout_mainmenu_newsfeed_sgz_title_1");
46 m_MainText1.Update();
47 m_MainText2.SetText("#layout_mainmenu_newsfeed_sgz_title_2");
48 m_MainText2.Update();
49 m_MainText3.SetText("#layout_mainmenu_newsfeed_sgz_title_3");
50 m_MainText3.Update();
51 m_SecText1.SetText("#layout_mainmenu_newsfeed_sgz_text_1");
52 m_SecText1.Update();
53 m_SecText2.SetText("#layout_mainmenu_newsfeed_sgz_text_2");
54 m_SecText2.Update();
55 m_SecText3.SetText("#layout_mainmenu_newsfeed_sgz_text_3");
56 m_SecText3.Update();
57 }

Referenced by MainMenuNewsfeed().

◆ ShowNextPage()

void ScriptedWidgetEventHandler::ShowNextPage ( )
inlineprotected

Definition at line 192 of file UiHintPanel.c.

193 {
194 // Update the page index
195 if (m_PageIndex < m_ContentList.Count() - 1)
196 m_PageIndex++;
197 else
198 m_PageIndex = 0;
199
200 //Update the hint page
202 }

References m_ContentList, m_PageIndex, and PopulateLayout().

Referenced by OnClick(), and SlideshowThread().

◆ ShowPreviousPage()

void ScriptedWidgetEventHandler::ShowPreviousPage ( )
inlineprotected

Definition at line 204 of file UiHintPanel.c.

205 {
206 // Update the page index
207 if (m_PageIndex == 0)
208 m_PageIndex = m_ContentList.Count() - 1;
209 else
210 m_PageIndex--;
211
212 //Update the hint page
214 }

References m_ContentList, m_PageIndex, and PopulateLayout().

Referenced by OnClick().

◆ ShowRandomPage()

void ScriptedWidgetEventHandler::ShowRandomPage ( )
inlineprotected

Definition at line 164 of file UiHintPanel.c.

165 {
168 }

References PopulateLayout(), and RandomizePageIndex().

◆ ShowStats()

void ScriptedWidgetEventHandler::ShowStats ( )
inlineprivate

Definition at line 44 of file MainMenuStats.c.

45 {
46 m_Root.Show(true);
48 }

References m_Root, and UpdateStats().

◆ ShowTooltip() [1/2]

void ScriptedWidgetEventHandler::ShowTooltip ( )
inlineprotected

Definition at line 150 of file ModsMenuDetailed.c.

151 {
152 if (m_Tooltip)
153 m_Tooltip.ShowTooltip(m_TooltipMod);
154 }

◆ ShowTooltip() [2/2]

void ScriptedWidgetEventHandler::ShowTooltip ( ModInfo mod_ref)
inlineprotected

Definition at line 17 of file ModsMenuTooltip.c.

18 {
19 m_Root.Show(true);
20 m_Text.SetText(mod_ref.GetTooltip());
21
22 int x, y;
23 GetMousePos(x, y);
24 m_Root.SetPos(x, y);
25
26 m_Text.Update();
27 m_Root.Update();
28 }

References GetMousePos(), m_Root, m_Text, x, and y.

◆ ShowXboxHidePCIcons()

void ScriptedWidgetEventHandler::ShowXboxHidePCIcons ( string widget,
bool show_xbox_icon )
inlineprotected

Definition at line 76 of file ItemActionsWidget.c.

77 {
78 m_Root.FindAnyWidget(widget + "_btn_icon_xbox").Show(show_xbox_icon);
79 m_Root.FindAnyWidget(widget + "_btn_icon").Show(!show_xbox_icon);
80 }

References m_Root.

Referenced by UpdatePCIconsVisibility().

◆ SlideshowThread()

void ScriptedWidgetEventHandler::SlideshowThread ( )
inlineprotected

Definition at line 225 of file UiHintPanel.c.

226 {
227 ShowNextPage();
228 }

References ShowNextPage().

◆ StartEnteringAlternateKeybind() [1/3]

void ScriptedWidgetEventHandler::StartEnteringAlternateKeybind ( )
inlineprotected

Definition at line 205 of file KeybindingElement.c.

206 {
207 m_Group.StartEnteringAlternateKeybind(m_ElementIndex);
208 m_AlternativeBindButton.SetText("#layout_keybinding_new_keybind");
209 }

◆ StartEnteringAlternateKeybind() [2/3]

void ScriptedWidgetEventHandler::StartEnteringAlternateKeybind ( )
inlineprotected

Definition at line 203 of file KeybindingElementNew.c.

204 {
205 m_Container.StartEnteringAlternateKeybind(m_ElementIndex);
206 m_AlternativeBindButton.SetText("#layout_keybinding_new_keybind");
207 }

◆ StartEnteringAlternateKeybind() [3/3]

void ScriptedWidgetEventHandler::StartEnteringAlternateKeybind ( int key_index)
inlineprotected

Definition at line 143 of file KeybindingsGroup.c.

144 {
147 m_Menu.StartEnteringAlternateKeybind(key_index);
148 }

References m_Menu.

◆ StartEnteringKeybind() [1/3]

void ScriptedWidgetEventHandler::StartEnteringKeybind ( )
inlineprotected

Definition at line 194 of file KeybindingElement.c.

195 {
196 m_Group.StartEnteringKeybind(m_ElementIndex);
197 m_PrimaryBindButton.SetText("#layout_keybinding_new_keybind");
198 }

◆ StartEnteringKeybind() [2/3]

void ScriptedWidgetEventHandler::StartEnteringKeybind ( )
inlineprotected

Definition at line 192 of file KeybindingElementNew.c.

193 {
194 m_Container.StartEnteringKeybind(m_ElementIndex);
195 m_PrimaryBindButton.SetText("#layout_keybinding_new_keybind");
196 }

◆ StartEnteringKeybind() [3/3]

void ScriptedWidgetEventHandler::StartEnteringKeybind ( int key_index)
inlineprotected

Definition at line 127 of file KeybindingsGroup.c.

128 {
131 m_Menu.StartEnteringKeybind(key_index);
132 }

References m_Menu.

◆ StartSlideshow()

void ScriptedWidgetEventHandler::StartSlideshow ( )
inlineprotected

Definition at line 220 of file UiHintPanel.c.

References CALL_CATEGORY_GUI, m_Game, m_SlideShowDelay, and SlideshowThread().

Referenced by Init(), and RestartSlideShow().

◆ StartVideo()

void ScriptedWidgetEventHandler::StartVideo ( )
inlineprotected

Definition at line 113 of file MainMenuPromo.c.

114 {
115 if (LoadVideoFile())
116 m_VideoWidget.Play();
117 }
bool LoadVideoFile()
returns 'true' when video is loaded

References LoadVideoFile().

◆ Stop()

void ScriptedWidgetEventHandler::Stop ( )
inlineprotected

Definition at line 65 of file CTEvent.c.

66 {
67 if (m_Callback)
68 {
69 m_Callback.Cancel();
71 }
73 if (player)
74 player.GetInputController().OverrideMovementSpeed(true, 0);
75 }

References GetEventActor(), m_Callback, and m_Menu.

◆ StopSlideShow()

void ScriptedWidgetEventHandler::StopSlideShow ( )
inlineprotected

Definition at line 230 of file UiHintPanel.c.

231 {
232 m_Game.GetCallQueue(CALL_CATEGORY_GUI).Remove(SlideshowThread);
233 }

References CALL_CATEGORY_GUI, m_Game, and SlideshowThread().

Referenced by OnMouseEnter(), RestartSlideShow(), and ~UiHintPanel().

◆ StopVideo() [1/2]

void ScriptedWidgetEventHandler::StopVideo ( )
inlineprotected

Definition at line 119 of file MainMenuPromo.c.

120 {
121 m_VideoWidget.Stop();
122 }

Referenced by OnClick().

◆ StopVideo() [2/2]

void ScriptedWidgetEventHandler::StopVideo ( )
inlineprotected

Definition at line 242 of file VideoPlayer.c.

243 {
244 m_VideoWidget.Stop();
245 m_PlayButton.Show(true);
246 m_PauseButton.Show(false);
247 }

◆ TextMapUpdateWidget() [1/4]

bool ScriptedWidgetEventHandler::TextMapUpdateWidget ( int key)
inlineprotected

Definition at line 309 of file OptionsMenuControls.c.

310 {
311 bool connectivityInfoShown = key == OptionIDsScript.OPTION_CONNECTIVITY_INFO;
313 Param tmp = m_TextMap.Get(key);
314
317
318 if (Class.CastTo(p, tmp))
319 {
320 m_DetailsRoot.Show(true);
321 m_DetailsText.Show(true);
322 m_DetailsLabel.SetText(p.param1);
323 m_DetailsText.SetText(p.param2);
324
325 m_DetailsText.Update();
326 m_DetailsLabel.Update();
327 m_DetailsRoot.Update();
328 m_DetailsBodyConnectivity.Update(); //...
329 return true;
330 }
331 return false;
332 }
Base Param Class with no parameters. Used as general purpose parameter overloaded with Param1 to Para...
Definition param.c:12

References Class::CastTo().

Referenced by OnFocus(), and UpdateLanguageOption().

◆ TextMapUpdateWidget() [2/4]

bool ScriptedWidgetEventHandler::TextMapUpdateWidget ( int key)
inlineprotected

Definition at line 515 of file OptionsMenuGame.c.

516 {
517 bool connectivityInfoShown = key == OptionIDsScript.OPTION_CONNECTIVITY_INFO;
519 Param tmp = m_TextMap.Get(key);
520
523
524 if (Class.CastTo(p, tmp))
525 {
526 m_DetailsRoot.Show(true);
527 m_DetailsText.Show(true);
528 m_DetailsLabel.SetText(p.param1);
529 m_DetailsText.SetText(p.param2);
530
531 m_DetailsText.Update();
532 m_DetailsLabel.Update();
533 m_DetailsRoot.Update();
534 m_DetailsBodyConnectivity.Update(); //...
535 return true;
536 }
537 return false;
538 }

References Class::CastTo().

◆ TextMapUpdateWidget() [3/4]

bool ScriptedWidgetEventHandler::TextMapUpdateWidget ( int key)
inlineprivate

Definition at line 177 of file OptionsMenuSounds.c.

178 {
179 bool connectivityInfoShown = key == OptionIDsScript.OPTION_CONNECTIVITY_INFO;
181 Param tmp = m_TextMap.Get(key);
182
185
186 if (Class.CastTo(p, tmp))
187 {
188 m_DetailsRoot.Show(true);
189 m_DetailsText.Show(true);
190 m_DetailsLabel.SetText(p.param1);
191 m_DetailsText.SetText(p.param2);
192
193 m_DetailsText.Update();
194 m_DetailsLabel.Update();
195 m_DetailsRoot.Update();
196 m_DetailsBodyConnectivity.Update(); //...
197 return true;
198 }
199 return false;
200 }

References Class::CastTo().

◆ TextMapUpdateWidget() [4/4]

bool ScriptedWidgetEventHandler::TextMapUpdateWidget ( int key)
inlineprotected

Definition at line 562 of file OptionsMenuVideo.c.

563 {
564 bool connectivityInfoShown = key == OptionIDsScript.OPTION_CONNECTIVITY_INFO;
566 Param tmp = m_TextMap.Get(key);
567
570
571 if (Class.CastTo(p, tmp))
572 {
573 m_DetailsRoot.Show(true);
574 m_DetailsText.Show(true);
575 m_DetailsLabel.SetText(p.param1);
576 m_DetailsText.SetText(p.param2);
577
578 m_DetailsText.Update();
579 m_DetailsLabel.Update();
580 m_DetailsRoot.Update();
581 m_DetailsBodyConnectivity.Update(); //...
582 return true;
583 }
584 return false;
585 }

References Class::CastTo().

◆ ToggleDependentOptions() [1/4]

void ScriptedWidgetEventHandler::ToggleDependentOptions ( int mode,
bool state )
inlineprotected

Definition at line 610 of file OptionsMenuControls.c.

611 {
612 }

◆ ToggleDependentOptions() [2/4]

void ScriptedWidgetEventHandler::ToggleDependentOptions ( int mode,
bool state )
inlineprotected

Definition at line 364 of file OptionsMenuGame.c.

365 {
366 }

◆ ToggleDependentOptions() [3/4]

void ScriptedWidgetEventHandler::ToggleDependentOptions ( int mode,
bool state )
inlineprivate

Definition at line 300 of file OptionsMenuSounds.c.

301 {
302 }

◆ ToggleDependentOptions() [4/4]

void ScriptedWidgetEventHandler::ToggleDependentOptions ( int mode,
bool state )
inlineprotected

Definition at line 337 of file OptionsMenuVideo.c.

338 {
339 }

◆ ToggleExpand()

bool ScriptedWidgetEventHandler::ToggleExpand ( )
inlineprivate

Definition at line 637 of file ServerBrowserEntry.c.

638 {
639 return SetExpand(!m_IsExpanded);
640 }

References m_IsExpanded, and SetExpand().

Referenced by OnMouseButtonUp().

◆ ToggleFavorite()

bool ScriptedWidgetEventHandler::ToggleFavorite ( )
inlineprivate

Definition at line 613 of file ServerBrowserEntry.c.

614 {
616 string ip = m_ServerData.GetIP();
617#ifdef PLATFORM_WINDOWS
618 //Save Data PC
619 m_Tab.GetRootMenu().AddFavorite(ip, m_ServerData.m_SteamQueryPort, m_IsFavorited);
620
621#ifdef PLATFORM_CONSOLE
623#else
625#endif
626#else
627 //Save Data Console
628 m_IsFavorited = m_Tab.GetRootMenu().SetFavoriteConsoles(ip, m_ServerData.m_HostPort, m_IsFavorited);
629#endif
630
631 m_Root.FindAnyWidget("unfavorite_image").Show(!m_IsFavorited);
632 m_Root.FindAnyWidget("favorite_image").Show(m_IsFavorited);
633
634 return m_IsFavorited;
635 }
static void SetServerFavorited(string ipAddress, int port, int steamQueryPort, bool is_favorited)

References m_IsFavorited, m_Root, and OnlineServices::SetServerFavorited().

Referenced by OnMouseButtonUp().

◆ ToggleMute() [1/2]

void ScriptedWidgetEventHandler::ToggleMute ( )
inlineprotected

Definition at line 83 of file PlayerListEntryScriptedWidget.c.

84 {
85 if (!IsLocalPlayer() && !GetGame().GetWorld().IsDisabledReceivingVoN())
86 {
87 m_Mute = !m_Mute;
89 {
91 m_MuteIcon.Show(m_Mute);
92 }
93 else
94 m_MuteIcon.Show(true);
95 }
96 else
97 {
98 m_MicrophoneIcon.Show(false);
99 m_MuteIcon.Show(false);
100 }
101 }
static bool MutePlayer(string id, bool mute)
proto static native bool CanStoreInputUserData()

References ScriptInputUserData::CanStoreInputUserData(), GetGame(), IsLocalPlayer(), m_Mute, and OnlineServices::MutePlayer().

Referenced by OnMouseButtonUp().

◆ ToggleMute() [2/2]

void ScriptedWidgetEventHandler::ToggleMute ( string UID)
inlineprotected

Definition at line 210 of file PlayerListScriptedWidget.c.

211 {
212 if (m_Entries && m_Entries.Get(UID))
213 m_Entries.Get(UID).ToggleMute();
214 }

References UID.

◆ ToggleVideoSelection()

void ScriptedWidgetEventHandler::ToggleVideoSelection ( )
inlineprotected

Definition at line 195 of file VideoPlayer.c.

196 {
197 if (!m_LoadVideo.IsVisible())
199 else
200 {
201 Widget child = m_LoadVideo.GetChildren();
202
203 while (child)
204 {
205 Widget c = child;
206 child = child.GetSibling();
207 c.Unlink();
208 }
209 }
210
211 m_LoadVideo.Show(!m_LoadVideo.IsVisible());
212 }

References InitVideoLoading().

Referenced by OnClick().

◆ TutorialKeybinds()

void ScriptedWidgetEventHandler::TutorialKeybinds ( Widget parent,
TutorialsMenu menu )
inlineprotected

Definition at line 8 of file ControlMappingKeybinds.c.

9 {
10 m_Root = GetGame().GetWorkspace().CreateWidgets(GetLayoutName(), parent);
11
12 m_Menu = menu;
13
14 int actionCount;
15 int actionMax = 80;
16
17 int column_index = 0;
18 int item_index;
19 string output = "";
20 string option_text = "";
22 GetUApi().GetActiveInputs(actions);
23
24 actionCount = actions.Count();
25 for (int i = 0; i < actionCount; i++)
26 {
27 UAInput input = GetUApi().GetInputByID(actions.Get(i));
28 if (input)
29 {
31 {
32 output = "";
33 option_text = "";
34 GetGame().GetInput().GetActionDesc(actions.Get(i), option_text);
36 {
38 Widget w = GetGame().GetWorkspace().CreateWidgets("gui/layouts/new_ui/tutorials/xbox/keybindings_panels/keybinding_panel.layout", m_Root.FindAnyWidget("container" + column_index));
39 Widget spacer = w.FindWidget("Spacer");
40 TextWidget name = TextWidget.Cast(w.FindWidget("KeybindName"));
41 TextWidget mod = TextWidget.Cast(spacer.FindWidget("KeybindModifier"));
42 TextWidget value = TextWidget.Cast(spacer.FindWidget("KeybindButton"));
43
44 string modifier_text = "";
45 name.SetText(option_text);
46 value.SetText(output);
47
49 mod.SetText(modifier_text);
50
51 name.Update();
52 mod.Update();
53 value.Update();
54 spacer.Update();
55
56 item_index++;
57 }
58 }
59 else
60 {
61 option_text = "";
62 GetGame().GetInput().GetActionDesc(actions[i], option_text);
63 ErrorEx("input action " + option_text + " index out of bounds!", ErrorExSeverity.INFO);
64 }
65 }
66 }
67
68 m_Root.SetHandler(this);
69 }
bool SetElementModifier(UAInput pInput, out string output)
Determine the active limiter of the bindings (currently unreliable, multiple limiters can be active o...
static proto float Floor(float f)
Returns floor of value.

References ErrorEx, Math::Floor(), GetGame(), GetLayoutName(), GetUApi(), m_Menu, m_Root, name, SetElementModifier(), and SetElementTitle().

◆ UiHintPanel()

void ScriptedWidgetEventHandler::UiHintPanel ( Widget parent_widget)
inlineprotected

Definition at line 35 of file UiHintPanel.c.

36 {
37 DayZGame game = DayZGame.Cast(GetGame());
39 Init(game);
40 }

References GetGame(), Init(), and m_ParentWidget.

◆ UnloadVideo()

void ScriptedWidgetEventHandler::UnloadVideo ( )
inlineprotected

Definition at line 129 of file MainMenuPromo.c.

130 {
131 m_VideoWidget.Stop();
132 m_VideoWidget.Unload();
133 }

◆ Unselect() [1/2]

void ScriptedWidgetEventHandler::Unselect ( )
inlineprotected

Definition at line 127 of file CTEvent.c.

128 {
129 m_Root.FindAnyWidget("spacer").SetAlpha(0.625);
130 m_IndexWidget.SetColor(ARGBF(1, 1, 1, 1));
131 m_EventTypeWidget.SetColor(ARGBF(1, 1, 1, 1));
132 m_EventTypeWidget.SetColor(ARGBF(1, 1, 1, 1));
133 }

References ARGBF(), and m_Root.

◆ Unselect() [2/2]

void ScriptedWidgetEventHandler::Unselect ( )
inlineprotected

Definition at line 128 of file CTKeyframe.c.

129 {
130 m_Root.FindAnyWidget("spacer").SetAlpha(0.625);
131 m_IndexWidget.SetColor(ARGBF(1, 1, 1, 1));
132 m_InterpTimeWidget.SetColor(ARGBF(1, 1, 1, 1));
133 m_TotalTimeWidget.SetColor(ARGBF(1, 1, 1, 1));
134 }

References ARGBF(), and m_Root.

◆ Update() [1/6]

void ScriptedWidgetEventHandler::Update ( )
inlineprotected

don't show continuous action progressif it's disabled in profile OR soft-disabled by the '~' keyhold

Definition at line 56 of file ContinuousActionProgress.c.

57 {
59 Mission mission = GetGame().GetMission();
60 IngameHud hud;
61 if (mission && Class.CastTo(hud, mission.GetHud()) && (hud.IsHideHudPlayer() || !hud.GetHudState()))
62 {
63 m_Root.Show(false);
64 return;
65 }
66
67 if (m_Player && !m_Player.IsAlive()) // handle respawn
68 {
69 m_Player = null;
70 m_AM = null;
71 }
72 if (!m_Player) GetPlayer();
73 if (!m_AM) GetActionManager();
74
75 GetActions();
76
77 if (m_Action && m_Action.HasProgress() && m_ActionState != UA_NONE && GetGame().GetUIManager().GetMenu() == null)
78 {
80 {
81 m_Speed += 0.02;
82 m_LoaderImage.SetRotation(0, 0, m_Speed * Math.RAD2DEG);
83 m_LoaderImage.Show(true);
84 }
85 else
86 {
87 m_Speed = 0.0;
88 m_LoaderImage.SetRotation(0, 0, 0);
89 m_LoaderImage.Show(false);
90 }
91
93 {
94 m_InitProgress = 100;
95 m_LoaderImage.SetRotation(0, 0, 0);
96 SetProgress(Math.AbsFloat(m_AM.GetActionComponentProgress() * 100));
97 }
98 m_Root.Show(true);
99 }
100 else
101 {
102 m_Speed = 0.0;
103 m_Root.Show(false);
104 m_LoaderImage.Show(false);
105 SetProgress(0.0);
106 m_LoaderImage.SetRotation(0, 0, 0);
107 }
108 }
static const float RAD2DEG
Definition EnMath.c:16
static proto float AbsFloat(float f)
Returns absolute value.
const int UA_INITIALIZE
Definition constants.c:444
const int UA_NONE
Definition constants.c:432
const int UA_AM_PENDING
Definition constants.c:446
const int UA_PROCESSING
Definition constants.c:434

References Math::AbsFloat(), Class::CastTo(), GetActionManager(), GetActions(), GetGame(), Mission::GetHud(), GetPlayer(), m_Action, m_AM, m_Player, m_Root, mission, Math::RAD2DEG, SetProgress(), UA_AM_PENDING, UA_INITIALIZE, UA_NONE, and UA_PROCESSING.

Referenced by MainMenuButtonEffect::MainMenuButtonEffect(), OnUpdate(), and MainMenuButtonEffect::~MainMenuButtonEffect().

◆ Update() [2/6]

void ScriptedWidgetEventHandler::Update ( )
inlineprotected

don't show when disabled in profile

Definition at line 178 of file ItemActionsWidget.c.

179 {
181 if (!g_Game.GetProfileOption(EDayZProfilesOptions.HUD) || !m_Hud.IsHudVisible())
182 {
183 m_Root.Show(false);
184 return;
185 }
186
187 if (m_Player && !m_Player.IsAlive()) // handle respawn
188 {
189 m_Player = null;
190 m_AM = null;
191 }
192
193 if (!m_Player)
194 GetPlayer();
195
196 if (!m_AM)
198
199 GetActions();
201
202 if ((m_EntityInHands || !m_Hidden) && GetGame().GetUIManager().GetMenu() == null)
203 {
205 BuildCursor();
207 m_Root.Show(true);
208 }
209 else
210 m_Root.Show(false);
211
212 m_MaxWidthChild = 200;
213 }
float m_MaxWidthChild
widget width

References BuildCursor(), CheckForActionWidgetOverrides(), CheckRefresherFlagVisibility(), g_Game, GetActionManager(), GetActions(), GetEntityInHands(), GetGame(), GetPlayer(), Hud::IsHudVisible(), m_AM, m_Hud, m_Player, and m_Root.

◆ Update() [3/6]

void ScriptedWidgetEventHandler::Update ( )
inlineprotected

Definition at line 42 of file ObjectFollower.c.

43 {
44 float x, y;
45
46 if (m_Visible)
47 {
50
51 m_Root.Show(true);
52 }
53 else
54 m_Root.Show(false);
55 }
void GetOnScreenPosition(out float x, out float y)

References GetOnScreenPosition(), m_Root, m_TargetObject, m_Visible, x, and y.

◆ Update() [4/6]

void ScriptedWidgetEventHandler::Update ( )
inlineprotected

Update.

Definition at line 34 of file ProjectedCrosshair.c.

35 {
36#ifdef DIAG_DEVELOPER
37 m_Debug = DiagMenu.GetBool(DiagMenuIDs.WEAPON_DEBUG);
38#endif
39 if (!m_Debug) return;
40 if (!m_Player) GetPlayer();
41
42 if (m_Player && m_Player.IsPlayerSelected() && m_Player.IsRaised() && !m_Player.IsInIronsights() && !GetGame().IsInventoryOpen())
43 {
44 float sx, sy;
45
47 vector screenSpace = GetGame().GetScreenPos(m_Position);
48
49 m_Root.GetSize(sx, sy);
50 screenSpace[0] = screenSpace[0] - sx / 2;
51 screenSpace[1] = screenSpace[1] - sy / 2;
52
53 m_Root.SetPos(screenSpace[0], screenSpace[1]);
54 m_Root.Show(m_Visible);
55 }
56 else
57 {
58 m_Root.Show(false);
60 }
61 }
DiagMenuIDs
Definition EDiagMenuIDs.c:2
static const vector Zero
Definition EnConvert.c:110
static proto bool GetBool(int id, bool reverse=false)
Get value as bool from the given script id.

References DiagMenu::GetBool(), GetCrosshairPosition(), GetGame(), GetPlayer(), DayZPlayer::IsInIronsights(), DayZPlayer::IsPlayerSelected(), DayZPlayer::IsRaised(), m_Player, m_Position, m_Root, m_Visible, and vector::Zero.

◆ Update() [5/6]

void ScriptedWidgetEventHandler::Update ( float timeslice)
inlineprotected

Definition at line 34 of file CTObjectFollower.c.

35 {
36 UpdatePos();
37 }

◆ Update() [6/6]

void ScriptedWidgetEventHandler::Update ( float timeslice)
inlineprotected

Definition at line 243 of file KeybindingsGroup.c.

244 {
246 {
248 if (ua_api.DeterminePressedButton() != 0)
249 {
250 string name;
251 string text;
253
254 // remove previous backlit
255 GetDayZGame().GetBacklit().KeybindingClear();
256
257 for (int i = 0; i < ua_api.DeterminedCount(); ++i)
258 {
259 int kb_id = ua_api.GetDetermined(i);
260 new_keybinds.Insert(kb_id);
261
262 // light up specific key
263 GetDayZGame().GetBacklit().KeybindingShow(kb_id);
264 }
265
266 if (m_CurrentSettingKeyIndex != -1)
267 {
268 m_Menu.ConfirmKeybindEntry(new_keybinds);
271 }
273 {
274 m_Menu.ConfirmAlternateKeybindEntry(new_keybinds);
277 }
278 }
279 }
280 }
DayZGame GetDayZGame()
Definition DayZGame.c:3530

References GetDayZGame(), GetUApi(), m_Menu, and name.

◆ UpdateAdminOption()

void ScriptedWidgetEventHandler::UpdateAdminOption ( int new_index)
inlineprotected

Definition at line 432 of file OptionsMenuGame.c.

433 {
434 m_Menu.OnChanged();
435 }

References m_Menu.

◆ UpdateAllPromotionInfo()

void ScriptedWidgetEventHandler::UpdateAllPromotionInfo ( )
inlineprotected

◆ UpdateAudioLevel()

void ScriptedWidgetEventHandler::UpdateAudioLevel ( )
inlineprivate

Definition at line 344 of file OptionsMenuSounds.c.

345 {
346 m_VOIPThresholdSelector.SetSlider2Value(GetGame().GetSoundScene().GetAudioLevel());
347 }
proto native float GetAudioLevel()

References GetAudioLevel(), and GetGame().

◆ UpdateBleedingIndication()

void ScriptedWidgetEventHandler::UpdateBleedingIndication ( int new_index)
inlineprotected

Definition at line 407 of file OptionsMenuGame.c.

408 {
409 m_Menu.OnChanged();
410 }

References m_Menu.

◆ UpdateColors()

void ScriptedWidgetEventHandler::UpdateColors ( )
inlineprivate

Definition at line 694 of file ServerBrowserEntry.c.

695 {
696 float alpha = 1;
697 int maxPlayers = m_ServerData.m_MaxPlayers;
698 int whiteColor = ARGBF(1, 1, 1, 1);
700 int populationOutline = 1;
701
702 if (IsOnline())
703 {
704 if (maxPlayers > 0)
705 {
706 int population = m_ServerData.m_CurrentNumberPlayers;
708
709 if (pop_percentage >= 1)
710 populationColor = ARGBF(1, 1, 0, 0);
711 else if (pop_percentage >= 0.8)
712 populationColor = ARGBF(1, 1, 0.5, 0);
713 }
714 }
715
716 else
717 {
718 alpha = 0.5;
720
721 m_ServerPing.SetColor(whiteColor);
722 }
723
724 m_ServerTime.Show(IsOnline());
725 m_ServerName.SetColor(whiteColor);
726 m_ServerName.SetAlpha(alpha);
727 m_ServerPopulation.SetBold(IsOnline());
730 m_ServerPopulation.SetAlpha(alpha);
731 m_ServerSlots.SetAlpha(alpha);
732 m_ServerPing.SetAlpha(alpha);
733 m_Root.SetAlpha(alpha);
734
735#ifndef PLATFORM_CONSOLE
736 m_Expand.Show(IsOnline());
737#endif
738 }

References ARGBF(), IsOnline(), and m_Root.

Referenced by Darken(), Lighten(), and Preview().

◆ UpdateConnectivityInfo()

void ScriptedWidgetEventHandler::UpdateConnectivityInfo ( int newIndex)
inlineprotected

Definition at line 412 of file OptionsMenuGame.c.

413 {
414 m_Menu.OnChanged();
415 }

References m_Menu.

◆ UpdateControllerInputIcons()

void ScriptedWidgetEventHandler::UpdateControllerInputIcons ( )
inlineprivate

Loads icons from the latest keybinds.

Definition at line 108 of file ItemActionsWidget.c.

109 {
110 SetControllerIcon("ia_interact", "UAAction");
111 SetControllerIcon("ia_continuous_interact", "UAAction");
112 SetControllerIcon("ia_single", "UADefaultAction");
113 SetControllerIcon("ia_continuous", "UADefaultAction");
114 }
void SetControllerIcon(string pWidgetName, string pInputName)

References SetControllerIcon().

Referenced by OnInputPresetChanged(), and OnWidgetScriptInit().

◆ UpdateControlsElements()

void ScriptedWidgetEventHandler::UpdateControlsElements ( )
inlineprotected

◆ UpdateCrosshairOption()

void ScriptedWidgetEventHandler::UpdateCrosshairOption ( int new_index)
inlineprotected

Definition at line 417 of file OptionsMenuGame.c.

418 {
419 m_Menu.OnChanged();
420 }

References m_Menu.

◆ UpdateCurrentTime()

void ScriptedWidgetEventHandler::UpdateCurrentTime ( )
inlineprivate

Definition at line 100 of file VideoPlayer.c.

101 {
102 int time = m_VideoWidget.GetTime();
104
105 m_Progress.SetCurrent(time);
106 }
void UpdateTime(TextWidget widget, int time)

References UpdateTime().

Referenced by OnPlaybackStop().

◆ UpdateDlcData()

void ScriptedWidgetEventHandler::UpdateDlcData ( )
inlineprotected

Definition at line 187 of file MainMenuPromo.c.

188 {
189 m_TitleTextDlc.SetText(m_DlcInfo.HeaderText);
190 m_DescriptionTextDlc.SetText(m_DlcInfo.DescriptionText);
191 }

Referenced by UpdateAllPromotionInfo().

◆ UpdateEffects()

void ScriptedWidgetEventHandler::UpdateEffects ( float value)
inlineprivate

Definition at line 314 of file OptionsMenuSounds.c.

315 {
316 m_EffectsOption.WriteValue(value);
317 m_Menu.OnChanged();
318 }

References m_Menu.

◆ UpdateEntry()

void ScriptedWidgetEventHandler::UpdateEntry ( )
inlineprotected

Definition at line 301 of file ServerBrowserEntry.c.

302 {
303 if (m_ServerData.m_IsSelected)
304 {
305 Darken(m_Root, 0, 0);
306 Select();
308 }
309 else
310 Lighten(m_Root, null, 0, 0);
311 }

References Darken(), Lighten(), m_Root, Select(), and SetFocus().

◆ UpdateFOVOption()

void ScriptedWidgetEventHandler::UpdateFOVOption ( float new_value)
inlineprotected

Definition at line 389 of file OptionsMenuGame.c.

390 {
391 m_FOVOption.WriteValue(new_value);
392 g_Game.SetUserFOV(new_value);
393 m_Menu.OnChanged();
394 }

References g_Game, and m_Menu.

◆ UpdateGameOption()

void ScriptedWidgetEventHandler::UpdateGameOption ( int new_index)
inlineprotected

Definition at line 427 of file OptionsMenuGame.c.

428 {
429 m_Menu.OnChanged();
430 }

References m_Menu.

◆ UpdateHUDBrightnessOption()

void ScriptedWidgetEventHandler::UpdateHUDBrightnessOption ( float newValue)
inlineprotected

Definition at line 396 of file OptionsMenuGame.c.

397 {
398 g_Game.SetHudBrightness(newValue);
399 m_Menu.OnChanged();
400 }

References g_Game, and m_Menu.

◆ UpdateHUDOption()

void ScriptedWidgetEventHandler::UpdateHUDOption ( int new_index)
inlineprotected

Definition at line 402 of file OptionsMenuGame.c.

403 {
404 m_Menu.OnChanged();
405 }

References m_Menu.

◆ UpdateIconVisibility()

void ScriptedWidgetEventHandler::UpdateIconVisibility ( )
inlineprotected

Definition at line 193 of file MainMenuPromo.c.

194 {
195#ifdef PLATFORM_CONSOLE
196 m_GamepadStoreImage.Show(!GetGame().GetInput().IsEnabledMouseAndKeyboard() || GetGame().GetInput().GetCurrentInputDevice() == EInputDeviceType.CONTROLLER);
197#endif
198 }

References GetGame(), and GetInput().

Referenced by OnInputDeviceChanged(), and UpdateAllPromotionInfo().

◆ UpdateInputMode()

void ScriptedWidgetEventHandler::UpdateInputMode ( int newIndex)
inlineprivate

Definition at line 338 of file OptionsMenuSounds.c.

339 {
340 m_InputModeOption.SetIndex(newIndex);
341 m_Menu.OnChanged();
342 }

References m_Menu.

◆ UpdateInterval()

void ScriptedWidgetEventHandler::UpdateInterval ( )
protected

◆ UpdateItems()

void ScriptedWidgetEventHandler::UpdateItems ( TItemsMap items,
bool show_quantity,
bool show_temperature )
inlineprivate

Definition at line 431 of file InventoryGrid.c.

432 {
433 int i;
434 int c;
435 int index;
436 int width;
437 int height;
438 int row;
439 int col;
441 vector data;
442 Widget bck;
444
445 // remove not actual items
446 c = m_Items.Count();
447 for (i = 0; i < c; i++)
448 {
449 item = m_Items.GetKey(i);
450
451 bool remove_item = false;
452
453 if (items.Contains(item) == false)
454 remove_item = true;
455 else
456 {
457 // check items position actual
458 if ((m_Items.Get(item) - items.Get(item)).LengthSq() > 0.01)
459 {
460 // item has different position or size
461 remove_item = true;
462 }
463 }
464
465 if (remove_item)
466 {
468 c--;
469 i--;
470 }
471 }
472
473 // add new items
474 for (i = 0; i < items.Count(); i++)
475 {
476 item = items.GetKey(i);
477 data = items.Get(item);
478
479 if (m_Items.Contains(item) == false)
480 AddItem(item, data, Vector(0, 0, 0));
481 }
482
483 // add new items
484 for (i = 0; i < items.Count(); i++)
485 {
486 item = items.GetKey(i);
487 data = items.Get(item);
488 // refresh quantity
490 }
491 }
void AddItem(InventoryItem item, vector data, vector rotation)
void RemoveItem(InventoryItem item)

References AddItem(), RefreshItemVariables(), RemoveItem(), and Vector().

◆ UpdateLanguageOption()

void ScriptedWidgetEventHandler::UpdateLanguageOption ( int new_index)
inlineprotected

Definition at line 375 of file OptionsMenuGame.c.

376 {
377 m_LanguageOption.SetIndex(new_index);
378 m_Menu.OnChanged();
379
380 TextMapUpdateWidget(OptionAccessType.AT_OPTIONS_LANGUAGE);
381 }

References m_Menu, and TextMapUpdateWidget().

◆ UpdateMaster()

void ScriptedWidgetEventHandler::UpdateMaster ( float value)
inlineprivate

Definition at line 308 of file OptionsMenuSounds.c.

309 {
310 m_MasterOption.WriteValue(value);
311 m_Menu.OnChanged();
312 }

References m_Menu.

◆ UpdateMouseAimModHSensitivity()

void ScriptedWidgetEventHandler::UpdateMouseAimModHSensitivity ( float value)
inlineprotected

Definition at line 568 of file OptionsMenuControls.c.

569 {
571 m_Menu.OnChanged();
572 }

References m_Menu.

◆ UpdateMouseAimModVSensitivity()

void ScriptedWidgetEventHandler::UpdateMouseAimModVSensitivity ( float value)
inlineprotected

Definition at line 562 of file OptionsMenuControls.c.

563 {
565 m_Menu.OnChanged();
566 }

References m_Menu.

◆ UpdateMouseHSensitivity()

void ScriptedWidgetEventHandler::UpdateMouseHSensitivity ( float value)
inlineprotected

Definition at line 556 of file OptionsMenuControls.c.

557 {
559 m_Menu.OnChanged();
560 }

References m_Menu.

◆ UpdateMouseInvertView()

void ScriptedWidgetEventHandler::UpdateMouseInvertView ( int index)
inlineprotected

Definition at line 541 of file OptionsMenuControls.c.

542 {
543 if (m_Mouse_InvertOption.GetIndex() != index)
544 {
545 m_Mouse_InvertOption.Switch();
546 m_Menu.OnChanged();
547 }
548 }

References m_Menu.

◆ UpdateMouseVSensitivity()

void ScriptedWidgetEventHandler::UpdateMouseVSensitivity ( float value)
inlineprotected

Definition at line 550 of file OptionsMenuControls.c.

551 {
553 m_Menu.OnChanged();
554 }

References m_Menu.

◆ UpdateMusic()

void ScriptedWidgetEventHandler::UpdateMusic ( float value)
inlineprivate

Definition at line 332 of file OptionsMenuSounds.c.

333 {
334 m_MusicOption.WriteValue(value);
335 m_Menu.OnChanged();
336 }

References m_Menu.

◆ UpdateOwnedStatus()

void ScriptedWidgetEventHandler::UpdateOwnedStatus ( )
inlineprotected

Definition at line 145 of file MainMenuPromo.c.

146 {
147 if (m_ThisModInfo)
148 {
149 if (m_ThisModInfo.GetIsOwned())
150 {
152 m_BannerHandler.SetBannerText(TEXT_OWNED);
153 }
154 else
155 {
156 m_BannerHandler.SetBannerColor(Colors.COLOR_DAYZ_RED);
157 m_BannerHandler.SetBannerText(TEXT_UNOWNED);
158 }
159 }
160 }
const int COLOR_LIVONIA_EMERALD_GREEN
Definition Colors.c:47
const int COLOR_DAYZ_RED
Definition Colors.c:40

References Colors::COLOR_DAYZ_RED, and Colors::COLOR_LIVONIA_EMERALD_GREEN.

Referenced by OnDLCChange(), and UpdateAllPromotionInfo().

◆ UpdatePauseOption()

void ScriptedWidgetEventHandler::UpdatePauseOption ( int new_index)
inlineprotected

Definition at line 383 of file OptionsMenuGame.c.

384 {
385 m_PauseOption.SetIndex(new_index);
386 m_Menu.OnChanged();
387 }

References m_Menu.

◆ UpdatePCIconsVisibility()

void ScriptedWidgetEventHandler::UpdatePCIconsVisibility ( )
inlineprivate

Contains logic for icon set switching (Gamepad/M&K)

Definition at line 117 of file ItemActionsWidget.c.

118 {
119 bool showConsoleIcons = false;
120#ifdef PLATFORM_CONSOLE
121 showConsoleIcons = GetGame().GetInput().GetCurrentInputDevice() == EInputDeviceType.CONTROLLER || !GetGame().GetInput().IsEnabledMouseAndKeyboardEvenOnServer();
122#endif
123
125 ShowXboxHidePCIcons("ia_continuous_interact", showConsoleIcons);
127 ShowXboxHidePCIcons("ia_continuous", showConsoleIcons);
128 }
void ShowXboxHidePCIcons(string widget, bool show_xbox_icon)

References GetGame(), and ShowXboxHidePCIcons().

Referenced by OnInputDeviceChanged(), and OnWidgetScriptInit().

◆ UpdatePlayerOption()

void ScriptedWidgetEventHandler::UpdatePlayerOption ( int new_index)
inlineprotected

Definition at line 437 of file OptionsMenuGame.c.

438 {
439 m_Menu.OnChanged();
440 }

References m_Menu.

◆ UpdatePos()

void ScriptedWidgetEventHandler::UpdatePos ( )
inlineprotected

Function updating the position of the tracker widget.

Currently tracks using GetScreenPos() on the position of the player.

Definition at line 82 of file CTObjectFollower.c.

83 {
85
86 relativePos = GetGame().GetScreenPosRelative(GetPosition());
87
88 if (relativePos[0] >= 1 || relativePos[0] == 0 || relativePos[1] >= 1 || relativePos[1] == 0)
89 {
90 m_FollowerRoot.Show(false);
91 return;
92 }
93 else if (relativePos[2] < 0)
94 {
95 m_FollowerRoot.Show(false);
96 return;
97 }
98 else
99 m_FollowerRoot.Show(true);
100
101 float x, y;
102 m_FollowerRoot.GetSize(x, y);
103
105 }

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

◆ UpdateQuantityItems()

void ScriptedWidgetEventHandler::UpdateQuantityItems ( )
inlineprivate

Definition at line 494 of file InventoryGrid.c.

495 {
496 int i;
497 int index;
499 vector data;
500 for (i = 0; i < m_Items.Count(); i++)
501 {
502 item = m_Items.GetKey(i);
503 data = m_Items.Get(item);
504 index = Math.Round(data[0]);
505 RefreshItemVariables(item, data, true, false);
506 }
507 }

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

◆ UpdateQuickbarItems()

void ScriptedWidgetEventHandler::UpdateQuickbarItems ( TItemsMap items)
inlineprivate

Definition at line 363 of file InventoryGrid.c.

364 {
365 int i;
366 int c;
367 int index;
368 int width;
369 int height;
370 int row;
371 int col;
373 vector data;
374 Widget bck;
376
377 // remove not actual items
378 c = m_Items.Count();
379 for (i = 0; i < c; i++)
380 {
381 item = m_Items.GetKey(i);
382 if (item != NULL)
383 {
384 bool remove_item = false;
385
386 if (items.Contains(item) == false)
387 remove_item = true;
388 else
389 {
390 // check items position actual
391 if ((m_Items.Get(item) - items.Get(item)).LengthSq() > 0.01)
392 {
393 // item has different position or size
394 remove_item = true;
395 }
396 }
397
398 if (remove_item)
399 {
401 c--;
402 i--;
403 }
404 }
405 }
406
407 // add new items
408 for (i = 0; i < items.Count(); i++)
409 {
410 item = items.GetKey(i);
411 data = items.Get(item);
412
413 if (m_Items.Contains(item) == false)
414 AddItem(item, data, Vector(0, 0, 0));
415 }
416
417 // cache if entity in hands can be added to inventory
419
420 // refresh quickbar
421 for (i = 0; i < items.Count(); i++)
422 {
423 item = items.GetKey(i);
424 data = items.Get(item);
426 }
427 }
override bool CanAddItemInHandToInventory()
void RefreshQuickbarItemVariables(InventoryItem item, vector data)

References AddItem(), InventoryGridController::CanAddItemInHandToInventory(), RefreshQuickbarItemVariables(), RemoveItem(), and Vector().

◆ UpdateQuickbarOption()

void ScriptedWidgetEventHandler::UpdateQuickbarOption ( int new_index)
inlineprotected

Definition at line 422 of file OptionsMenuGame.c.

423 {
424 m_Menu.OnChanged();
425 }

References m_Menu.

◆ UpdateSelectionIcons()

void ScriptedWidgetEventHandler::UpdateSelectionIcons ( )
inlineprotected

Definition at line 211 of file LayoutHolder.c.

212 {}

◆ UpdateServerInfoOption()

void ScriptedWidgetEventHandler::UpdateServerInfoOption ( int new_index)
inlineprotected

Definition at line 442 of file OptionsMenuGame.c.

443 {
444 m_Menu.OnChanged();
445 }

References m_Menu.

◆ UpdateStats()

void ScriptedWidgetEventHandler::UpdateStats ( )
inlineprivate

Definition at line 55 of file MainMenuStats.c.

56 {
59
60 if (missionMainMenu && missionMainMenu.GetIntroScenePC())
61 {
62#ifdef PLATFORM_WINDOWS
63 player = missionMainMenu.GetIntroScenePC().GetIntroCharacter().GetCharacterObj();
64#endif
65#ifdef PLATFORM_CONSOLE
66 player = missionMainMenu.GetIntroScenePC().GetIntroCharacter().GetCharacterObj();
67#endif
68
69 if (player)
70 {
72 m_TimeSurvivedValue.SetText(m_TimeSurvivedFull.FormatedNonZero());
73
78 }
79 }
80 }
string GetDistanceString(float total_distance, bool meters_only=false)

References GetDistanceString(), GetGame(), GetValueString(), AnalyticsManagerServer::STAT_DISTANCE, AnalyticsManagerServer::STAT_INFECTED_KILLED, AnalyticsManagerServer::STAT_LONGEST_SURVIVOR_HIT, AnalyticsManagerServer::STAT_PLAYERS_KILLED, and AnalyticsManagerServer::STAT_PLAYTIME.

Referenced by ShowStats().

◆ UpdateTemperatureItems()

void ScriptedWidgetEventHandler::UpdateTemperatureItems ( )
inlineprivate

Definition at line 510 of file InventoryGrid.c.

511 {
512 int i;
513 int index;
515 vector data;
516 for (i = 0; i < m_Items.Count(); i++)
517 {
518 item = m_Items.GetKey(i);
519 data = m_Items.Get(item);
520 index = Math.Round(data[0]);
521 RefreshItemVariables(item, data, false, true);
522 }
523 }

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

◆ UpdateTime()

void ScriptedWidgetEventHandler::UpdateTime ( TextWidget widget,
int time )
inlineprivate

Definition at line 121 of file VideoPlayer.c.

122 {
124 TimeConversions.ConvertSecondsToFullTime(time / 1000, timeData);
125 widget.SetText(timeData.FormatedAsTimestamp());
126 }

Referenced by UpdateCurrentTime(), and UpdateTotalTime().

◆ UpdateTotalTime()

void ScriptedWidgetEventHandler::UpdateTotalTime ( )
inlineprivate

Definition at line 109 of file VideoPlayer.c.

110 {
111 int time = m_VideoWidget.GetTotalTime();
112
113 if (time != 0)
114 {
116 m_Progress.SetMinMax(0, time);
117 GetGame().GetCallQueue(CALL_CATEGORY_SYSTEM).Remove(UpdateTotalTime);
118 }
119 }

References CALL_CATEGORY_SYSTEM, GetGame(), and UpdateTime().

◆ UpdateVOIP()

void ScriptedWidgetEventHandler::UpdateVOIP ( float value)
inlineprivate

Definition at line 320 of file OptionsMenuSounds.c.

321 {
322 m_VOIPOption.WriteValue(value);
323 m_Menu.OnChanged();
324 }

References m_Menu.

◆ UpdateVOIPThreshold()

void ScriptedWidgetEventHandler::UpdateVOIPThreshold ( float value)
inlineprivate

Definition at line 326 of file OptionsMenuSounds.c.

327 {
328 m_VOIPThresholdOption.WriteValue(value);
329 m_Menu.OnChanged();
330 }

References m_Menu.

◆ UpdateWasMicCapturing()

void ScriptedWidgetEventHandler::UpdateWasMicCapturing ( )
inlineprivate

Definition at line 225 of file OptionsMenuSounds.c.

226 {
227 // if user is in party chat, then mic should not capture
228 if (GetGame().IsInPartyChat())
229 m_WasMicCapturing = false;
230
231 // otherwise, mic should capture ONLY if Voice Activation is enabled
232 else
233 m_WasMicCapturing = m_MissionGameplay.IsVoNActive();
234 }

References GetGame().

Referenced by OnPartyChatChangedEvent(), and OnVonStateEvent().

◆ VideoPlayer()

void ScriptedWidgetEventHandler::VideoPlayer ( Widget parent)
inlineprotected

Definition at line 24 of file VideoPlayer.c.

25 {
26 m_Root = GetGame().GetWorkspace().CreateWidgets("gui/layouts/new_ui/video_player.layout", parent);
27 m_Root.SetHandler(this);
28 m_Root.SetSort(333);
29 Init();
30 }

References GetGame(), Init(), and m_Root.

◆ WeaponModeTextTemp()

string ScriptedWidgetEventHandler::WeaponModeTextTemp ( )
inlineprotected

Definition at line 553 of file ItemActionsWidget.c.

554 {
555 return "unused";
556 }

Member Data Documentation

◆ HUD_BRIGHTNESS_MAX

const float ScriptedWidgetEventHandler::HUD_BRIGHTNESS_MAX = 0.0
private

Definition at line 4 of file OptionsMenuGame.c.

◆ HUD_BRIGHTNESS_MIN

const float ScriptedWidgetEventHandler::HUD_BRIGHTNESS_MIN = -1.0
private

Definition at line 3 of file OptionsMenuGame.c.

◆ ITEM_COLOR_DRAG

int ScriptedWidgetEventHandler::ITEM_COLOR_DRAG = 0x0AFFFFFF
staticprivate

Definition at line 44 of file InventoryGrid.c.

◆ ITEM_COLOR_NORMAL

int ScriptedWidgetEventHandler::ITEM_COLOR_NORMAL = 0x0AFFFFFF
staticprivate

Definition at line 43 of file InventoryGrid.c.

◆ ITEM_COLOR_QUICKBAR_H_BAD

int ScriptedWidgetEventHandler::ITEM_COLOR_QUICKBAR_H_BAD = 0x2A980d0d
staticprivate

Definition at line 41 of file InventoryGrid.c.

◆ ITEM_COLOR_QUICKBAR_H_GOOD

int ScriptedWidgetEventHandler::ITEM_COLOR_QUICKBAR_H_GOOD = 0x2A6e980d
staticprivate

Definition at line 40 of file InventoryGrid.c.

◆ ITEM_COLOR_QUICKBAR_I_BAD

int ScriptedWidgetEventHandler::ITEM_COLOR_QUICKBAR_I_BAD = 0x2A986e0d
staticprivate

Definition at line 42 of file InventoryGrid.c.

◆ ITEM_COLOR_QUICKBAR_NORMAL

int ScriptedWidgetEventHandler::ITEM_COLOR_QUICKBAR_NORMAL = 0x0AFFFFFF
staticprivate

Definition at line 39 of file InventoryGrid.c.

◆ ITEMS_COUNT

const int ScriptedWidgetEventHandler::ITEMS_COUNT = 27
private

Definition at line 12 of file ContextMenu.c.

◆ m_AcceleratedTimeFilter

ref OptionSelector ScriptedWidgetEventHandler::m_AcceleratedTimeFilter
protected

Definition at line 23 of file ServerBrowserFilterContainer.c.

◆ m_Action

ActionBase ScriptedWidgetEventHandler::m_Action
protected

Definition at line 6 of file ContinuousActionProgress.c.

◆ m_ActionPurchase

RichTextWidget ScriptedWidgetEventHandler::m_ActionPurchase
protected

Definition at line 16 of file ModsMenuDetailedEntry.c.

◆ m_ActionState

int ScriptedWidgetEventHandler::m_ActionState
protected

Definition at line 7 of file ContinuousActionProgress.c.

◆ m_ActionWebsite

RichTextWidget ScriptedWidgetEventHandler::m_ActionWebsite
protected

Definition at line 15 of file ModsMenuDetailedEntry.c.

◆ m_ActorIndex

int ScriptedWidgetEventHandler::m_ActorIndex
protected

Definition at line 4 of file CTEvent.c.

◆ m_AimHelperOption

ref SwitchOptionsAccess ScriptedWidgetEventHandler::m_AimHelperOption
protected

Definition at line 23 of file OptionsMenuControls.c.

◆ m_AimHelperSelector

ref OptionSelectorMultistate ScriptedWidgetEventHandler::m_AimHelperSelector
protected

Definition at line 27 of file OptionsMenuControls.c.

◆ m_AlternativeBindButton

ButtonWidget ScriptedWidgetEventHandler::m_AlternativeBindButton
protected

Definition at line 10 of file KeybindingElement.c.

◆ m_AlternativeClear

Widget ScriptedWidgetEventHandler::m_AlternativeClear
protected

Definition at line 12 of file KeybindingElement.c.

◆ m_AM [1/2]

ActionManagerBase ScriptedWidgetEventHandler::m_AM
protected

Definition at line 8 of file ContinuousActionProgress.c.

◆ m_AM [2/2]

ActionManagerClient ScriptedWidgetEventHandler::m_AM
protected

Definition at line 9 of file ItemActionsWidget.c.

◆ m_am_entity1

EntityAI ScriptedWidgetEventHandler::m_am_entity1
protected

Definition at line 13 of file LayoutHolder.c.

◆ m_am_entity2

EntityAI ScriptedWidgetEventHandler::m_am_entity2
protected

Definition at line 13 of file LayoutHolder.c.

◆ m_AOOption

ref ListOptionsAccess ScriptedWidgetEventHandler::m_AOOption
protected

Definition at line 74 of file OptionsMenuVideo.c.

◆ m_AOSelector

ref OptionSelectorMultistate ScriptedWidgetEventHandler::m_AOSelector
protected

Definition at line 42 of file OptionsMenuVideo.c.

◆ m_ATOCOption

ref ListOptionsAccess ScriptedWidgetEventHandler::m_ATOCOption
protected

Definition at line 73 of file OptionsMenuVideo.c.

◆ m_ATOCSelector

ref OptionSelectorMultistate ScriptedWidgetEventHandler::m_ATOCSelector
protected

Definition at line 41 of file OptionsMenuVideo.c.

◆ m_AttemptOptionChange

ref ScriptInvoker ScriptedWidgetEventHandler::m_AttemptOptionChange = new ScriptInvoker
protected

Definition at line 13 of file OptionSelectorBase.c.

◆ m_AudioLevelTimer

ref Timer ScriptedWidgetEventHandler::m_AudioLevelTimer
protected

Definition at line 26 of file OptionsMenuSounds.c.

◆ m_Author

MultilineTextWidget ScriptedWidgetEventHandler::m_Author
protected

Definition at line 13 of file ModsMenuDetailedEntry.c.

◆ m_Background

Widget ScriptedWidgetEventHandler::m_Background
protected

Definition at line 11 of file MainMenuPromo.c.

◆ m_BackgroundWidgets

ref map<int, Widget> ScriptedWidgetEventHandler::m_BackgroundWidgets
protected

Definition at line 48 of file InventoryGrid.c.

◆ m_BannerBody

Widget ScriptedWidgetEventHandler::m_BannerBody
protected

Definition at line 5 of file BannerHandlerBase.c.

◆ m_BannerFrame

Widget ScriptedWidgetEventHandler::m_BannerFrame
protected

Definition at line 10 of file MainMenuPromo.c.

◆ m_BannerHandler

ref BannerHandlerBase ScriptedWidgetEventHandler::m_BannerHandler
protected

Definition at line 21 of file MainMenuPromo.c.

◆ m_BannerText

TextWidget ScriptedWidgetEventHandler::m_BannerText
protected

Definition at line 7 of file BannerHandlerBase.c.

◆ m_BannerWedge

Widget ScriptedWidgetEventHandler::m_BannerWedge
protected

Definition at line 6 of file BannerHandlerBase.c.

◆ m_BattleyeFilter

ref OptionSelector ScriptedWidgetEventHandler::m_BattleyeFilter
protected

Definition at line 14 of file ServerBrowserFilterContainer.c.

◆ m_BleedingIndication

ref OptionSelectorMultistate ScriptedWidgetEventHandler::m_BleedingIndication
protected

Definition at line 33 of file OptionsMenuGame.c.

◆ m_BrightnessOption

ref NumericOptionsAccess ScriptedWidgetEventHandler::m_BrightnessOption
protected

Definition at line 58 of file OptionsMenuVideo.c.

◆ m_BrightnessSelector

ref OptionSelectorSlider ScriptedWidgetEventHandler::m_BrightnessSelector
protected

Definition at line 26 of file OptionsMenuVideo.c.

◆ m_Buffering

ImageWidget ScriptedWidgetEventHandler::m_Buffering
protected

Definition at line 21 of file VideoPlayer.c.

◆ m_builtIn

bool ScriptedWidgetEventHandler::m_builtIn = false
private

Definition at line 11 of file ContextMenu.c.

◆ m_Button

Widget ScriptedWidgetEventHandler::m_Button
protected

Definition at line 9 of file DropdownPrefab.c.

◆ m_Callback

HumanCommandActionCallback ScriptedWidgetEventHandler::m_Callback
protected

Definition at line 17 of file CTEvent.c.

◆ m_CanAddItemInHandToInventory

bool ScriptedWidgetEventHandler::m_CanAddItemInHandToInventory
protected

Definition at line 57 of file InventoryGrid.c.

Referenced by CanAddItemInHandToInventory().

◆ m_CanSwitch

bool ScriptedWidgetEventHandler::m_CanSwitch
protected

Definition at line 13 of file TabberUI.c.

◆ m_CharacterAliveFilter

ref OptionSelectorMultistate ScriptedWidgetEventHandler::m_CharacterAliveFilter
protected

Definition at line 7 of file ServerBrowserFilterContainer.c.

◆ m_Child

Widget ScriptedWidgetEventHandler::m_Child
protected

Definition at line 10 of file SizeToChild.c.

◆ m_ChildName

reference string ScriptedWidgetEventHandler::m_ChildName
private

Definition at line 3 of file SizeToChild.c.

◆ m_CloseButton

Widget ScriptedWidgetEventHandler::m_CloseButton
protected

Definition at line 5 of file ModsMenuDetailed.c.

◆ m_col

int ScriptedWidgetEventHandler::m_col
private

Definition at line 240 of file InventoryGrid.c.

◆ m_ColorBackgroundOriginal

int ScriptedWidgetEventHandler::m_ColorBackgroundOriginal
protected

Definition at line 7 of file MainMenuPromo.c.

◆ m_commands

ref array<ref CallQueueContext> ScriptedWidgetEventHandler::m_commands
private

Definition at line 8 of file ContextMenu.c.

◆ m_ConnectivityInfo

ref OptionSelectorMultistate ScriptedWidgetEventHandler::m_ConnectivityInfo
protected

Definition at line 34 of file OptionsMenuGame.c.

◆ m_Container

KeybindingsContainer ScriptedWidgetEventHandler::m_Container
protected

Definition at line 3 of file KeybindingElementNew.c.

◆ m_Content [1/2]

Widget ScriptedWidgetEventHandler::m_Content
protected

Definition at line 5 of file PlayerListScriptedWidget.c.

◆ m_Content [2/2]

ref array<Widget> ScriptedWidgetEventHandler::m_Content = new array<Widget>
protected

Definition at line 7 of file DropdownPrefab.c.

◆ m_ContentContainer

Widget ScriptedWidgetEventHandler::m_ContentContainer
protected

Definition at line 6 of file DropdownPrefab.c.

◆ m_ContentList

ref array<ref HintPage> ScriptedWidgetEventHandler::m_ContentList
protected

Definition at line 25 of file UiHintPanel.c.

◆ m_context_menu_panel_widget

Widget ScriptedWidgetEventHandler::m_context_menu_panel_widget
private

Definition at line 7 of file ContextMenu.c.

◆ m_context_menu_root_widget

Widget ScriptedWidgetEventHandler::m_context_menu_root_widget
protected

Definition at line 6 of file ContextMenu.c.

Referenced by ~ContextMenu().

◆ m_ContextMenuInstance

ref ContextMenu ScriptedWidgetEventHandler::m_ContextMenuInstance
staticprotected

Definition at line 4 of file ContextMenu.c.

◆ m_Continuous

ActionBase ScriptedWidgetEventHandler::m_Continuous
protected

Definition at line 8 of file ItemActionsWidget.c.

◆ m_ContinuousInteract

ActionBase ScriptedWidgetEventHandler::m_ContinuousInteract
protected

Definition at line 6 of file ItemActionsWidget.c.

◆ m_ContinuousInteractActionsNum

int ScriptedWidgetEventHandler::m_ContinuousInteractActionsNum
protected

Definition at line 15 of file ItemActionsWidget.c.

◆ m_ContinuousItemActionsNum

int ScriptedWidgetEventHandler::m_ContinuousItemActionsNum
protected

Definition at line 17 of file ItemActionsWidget.c.

◆ m_Controller

InventoryGridController ScriptedWidgetEventHandler::m_Controller
protected

Definition at line 51 of file InventoryGrid.c.

Referenced by GetController().

◆ m_ControllerLS_HSensitivityOption

ref NumericOptionsAccess ScriptedWidgetEventHandler::m_ControllerLS_HSensitivityOption
protected

Definition at line 45 of file OptionsMenuControls.c.

◆ m_ControllerLS_HSensitivitySelector

ref OptionSelectorSlider ScriptedWidgetEventHandler::m_ControllerLS_HSensitivitySelector
protected

Definition at line 57 of file OptionsMenuControls.c.

◆ m_ControllerLS_VehicleMod_HSensitivityOption

ref NumericOptionsAccess ScriptedWidgetEventHandler::m_ControllerLS_VehicleMod_HSensitivityOption
protected

Definition at line 46 of file OptionsMenuControls.c.

◆ m_ControllerLS_VehicleMod_HSensitivitySelector

ref OptionSelectorSlider ScriptedWidgetEventHandler::m_ControllerLS_VehicleMod_HSensitivitySelector
protected

Definition at line 58 of file OptionsMenuControls.c.

◆ m_ControllerLS_VSensitivityOption

ref NumericOptionsAccess ScriptedWidgetEventHandler::m_ControllerLS_VSensitivityOption
protected

Definition at line 44 of file OptionsMenuControls.c.

◆ m_ControllerLS_VSensitivitySelector

ref OptionSelectorSlider ScriptedWidgetEventHandler::m_ControllerLS_VSensitivitySelector
protected

Definition at line 56 of file OptionsMenuControls.c.

◆ m_ControllerRS_AimMod_CurvatureOption

ref NumericOptionsAccess ScriptedWidgetEventHandler::m_ControllerRS_AimMod_CurvatureOption
protected

Definition at line 53 of file OptionsMenuControls.c.

◆ m_ControllerRS_AimMod_CurvatureSelector

ref OptionSelectorSlider ScriptedWidgetEventHandler::m_ControllerRS_AimMod_CurvatureSelector
protected

Definition at line 65 of file OptionsMenuControls.c.

◆ m_ControllerRS_AimMod_HSensitivityOption

ref NumericOptionsAccess ScriptedWidgetEventHandler::m_ControllerRS_AimMod_HSensitivityOption
protected

Definition at line 52 of file OptionsMenuControls.c.

◆ m_ControllerRS_AimMod_HSensitivitySelector

ref OptionSelectorSlider ScriptedWidgetEventHandler::m_ControllerRS_AimMod_HSensitivitySelector
protected

Definition at line 64 of file OptionsMenuControls.c.

◆ m_ControllerRS_AimMod_VSensitivityOption

ref NumericOptionsAccess ScriptedWidgetEventHandler::m_ControllerRS_AimMod_VSensitivityOption
protected

Definition at line 51 of file OptionsMenuControls.c.

◆ m_ControllerRS_AimMod_VSensitivitySelector

ref OptionSelectorSlider ScriptedWidgetEventHandler::m_ControllerRS_AimMod_VSensitivitySelector
protected

Definition at line 63 of file OptionsMenuControls.c.

◆ m_ControllerRS_CurvatureOption

ref NumericOptionsAccess ScriptedWidgetEventHandler::m_ControllerRS_CurvatureOption
protected

Definition at line 50 of file OptionsMenuControls.c.

◆ m_ControllerRS_CurvatureSelector

ref OptionSelectorSlider ScriptedWidgetEventHandler::m_ControllerRS_CurvatureSelector
protected

Definition at line 62 of file OptionsMenuControls.c.

◆ m_ControllerRS_HSensitivityOption

ref NumericOptionsAccess ScriptedWidgetEventHandler::m_ControllerRS_HSensitivityOption
protected

Definition at line 49 of file OptionsMenuControls.c.

◆ m_ControllerRS_HSensitivitySelector

ref OptionSelectorSlider ScriptedWidgetEventHandler::m_ControllerRS_HSensitivitySelector
protected

Definition at line 61 of file OptionsMenuControls.c.

◆ m_ControllerRS_InvertOption

ref SwitchOptionsAccess ScriptedWidgetEventHandler::m_ControllerRS_InvertOption
protected

Definition at line 47 of file OptionsMenuControls.c.

◆ m_ControllerRS_InvertSelector

ref OptionSelectorMultistate ScriptedWidgetEventHandler::m_ControllerRS_InvertSelector
protected

Definition at line 59 of file OptionsMenuControls.c.

◆ m_ControllerRS_VSensitivityOption

ref NumericOptionsAccess ScriptedWidgetEventHandler::m_ControllerRS_VSensitivityOption
protected

Definition at line 48 of file OptionsMenuControls.c.

◆ m_ControllerRS_VSensitivitySelector

ref OptionSelectorSlider ScriptedWidgetEventHandler::m_ControllerRS_VSensitivitySelector
protected

Definition at line 60 of file OptionsMenuControls.c.

◆ m_count

int ScriptedWidgetEventHandler::m_count
private

Definition at line 10 of file ContextMenu.c.

Referenced by Show().

◆ m_CurrentSettingAlternateKeyIndex

int ScriptedWidgetEventHandler::m_CurrentSettingAlternateKeyIndex = -1
protected

Definition at line 9 of file KeybindingsGroup.c.

◆ m_CurrentSettingKeyIndex

int ScriptedWidgetEventHandler::m_CurrentSettingKeyIndex = -1
protected

Definition at line 8 of file KeybindingsGroup.c.

◆ m_CurrentTime

TextWidget ScriptedWidgetEventHandler::m_CurrentTime
protected

Definition at line 18 of file VideoPlayer.c.

◆ m_CustomAlternateBind

ref array< int > ScriptedWidgetEventHandler::m_CustomAlternateBind
protected

Definition at line 19 of file KeybindingElement.c.

Referenced by GetChangedAlternateBinds().

◆ m_CustomBind

ref array< int > ScriptedWidgetEventHandler::m_CustomBind
protected

Definition at line 18 of file KeybindingElement.c.

Referenced by GetChangedBinds().

◆ m_Data [1/3]

ModInfo ScriptedWidgetEventHandler::m_Data
protected

Definition at line 7 of file ModsMenuDetailed.c.

◆ m_Data [2/3]

ModInfo ScriptedWidgetEventHandler::m_Data
protected

Definition at line 21 of file ModsMenuDetailedEntry.c.

◆ m_Data [3/3]

ref map<ModInfo, ref ModsMenuSimpleEntry> ScriptedWidgetEventHandler::m_Data
protected

Definition at line 8 of file ModsMenuSimple.c.

◆ m_DataPath

const string ScriptedWidgetEventHandler::m_DataPath = "scripts/data/hints.json"
protected

Definition at line 14 of file UiHintPanel.c.

◆ m_DayZForum

Widget ScriptedWidgetEventHandler::m_DayZForum
protected

Definition at line 8 of file MainMenuNewsfeed.c.

◆ m_Debug

bool ScriptedWidgetEventHandler::m_Debug
protected

Definition at line 6 of file ProjectedCrosshair.c.

◆ m_Description

RichTextWidget ScriptedWidgetEventHandler::m_Description
protected

Definition at line 19 of file ModsMenuDetailedEntry.c.

◆ m_DescriptionTextDlc

MultilineTextWidget ScriptedWidgetEventHandler::m_DescriptionTextDlc
protected

Definition at line 16 of file MainMenuPromo.c.

◆ m_Detail

Widget ScriptedWidgetEventHandler::m_Detail
protected

Definition at line 4 of file ModsMenuDetailedEntry.c.

◆ m_DetailMenu

ModsMenuDetailed ScriptedWidgetEventHandler::m_DetailMenu
protected

Definition at line 9 of file ModsMenuSimple.c.

◆ m_DetailsBodyConnectivity

Widget ScriptedWidgetEventHandler::m_DetailsBodyConnectivity
protected

Definition at line 8 of file OptionsMenuControls.c.

◆ m_DetailsBodyDefault

Widget ScriptedWidgetEventHandler::m_DetailsBodyDefault
protected

Definition at line 7 of file OptionsMenuControls.c.

◆ m_DetailsLabel

TextWidget ScriptedWidgetEventHandler::m_DetailsLabel
protected

Definition at line 14 of file OptionsMenuControls.c.

◆ m_DetailsRoot

Widget ScriptedWidgetEventHandler::m_DetailsRoot
protected

Definition at line 4 of file ControlMappingKeybinds.c.

◆ m_DetailsText

RichTextWidget ScriptedWidgetEventHandler::m_DetailsText
protected

Definition at line 15 of file OptionsMenuControls.c.

◆ m_Discord

Widget ScriptedWidgetEventHandler::m_Discord
protected

Definition at line 6 of file MainMenuNewsfeed.c.

◆ m_DisplayModeOption

ref ListOptionsAccess ScriptedWidgetEventHandler::m_DisplayModeOption
protected

Definition at line 56 of file OptionsMenuVideo.c.

◆ m_DisplayModeSelector

ref OptionSelectorMultistate ScriptedWidgetEventHandler::m_DisplayModeSelector
protected

Definition at line 24 of file OptionsMenuVideo.c.

◆ m_DistanceTraveled

Widget ScriptedWidgetEventHandler::m_DistanceTraveled
protected

Definition at line 14 of file MainMenuStats.c.

◆ m_DistanceTraveledValue

TextWidget ScriptedWidgetEventHandler::m_DistanceTraveledValue
protected

Definition at line 15 of file MainMenuStats.c.

◆ m_DLCFilter

ref OptionSelector ScriptedWidgetEventHandler::m_DLCFilter
protected

Definition at line 11 of file ServerBrowserFilterContainer.c.

◆ m_DlcInfo

ref JsonDataDLCInfo ScriptedWidgetEventHandler::m_DlcInfo
protected

Definition at line 19 of file MainMenuPromo.c.

◆ m_DlcPromotionImage

ImageWidget ScriptedWidgetEventHandler::m_DlcPromotionImage
protected

Definition at line 14 of file MainMenuPromo.c.

◆ m_DLDLC

Widget ScriptedWidgetEventHandler::m_DLDLC
protected

Definition at line 5 of file MainMenuNewsfeed.c.

◆ m_DOFWidget

EditBoxWidget ScriptedWidgetEventHandler::m_DOFWidget
protected

Definition at line 15 of file CTKeyframe.c.

◆ m_EffectsOption

ref NumericOptionsAccess ScriptedWidgetEventHandler::m_EffectsOption
protected

Definition at line 13 of file OptionsMenuSounds.c.

◆ m_EffectsSelector

ref OptionSelectorSlider ScriptedWidgetEventHandler::m_EffectsSelector
protected

Definition at line 20 of file OptionsMenuSounds.c.

◆ m_ElementIndex

int ScriptedWidgetEventHandler::m_ElementIndex
protected

Definition at line 14 of file KeybindingElement.c.

◆ m_ElementModifier

TextWidget ScriptedWidgetEventHandler::m_ElementModifier
protected

Definition at line 8 of file KeybindingElement.c.

◆ m_ElementName

TextWidget ScriptedWidgetEventHandler::m_ElementName
protected

Definition at line 7 of file KeybindingElement.c.

◆ m_Enabled

bool ScriptedWidgetEventHandler::m_Enabled
protected

Definition at line 7 of file OptionSelectorBase.c.

◆ m_EntityInHands

EntityAI ScriptedWidgetEventHandler::m_EntityInHands
protected

Definition at line 4 of file ItemActionsWidget.c.

◆ m_Entries

ref map<string, ref PlayerListEntryScriptedWidget> ScriptedWidgetEventHandler::m_Entries
protected

Definition at line 6 of file PlayerListScriptedWidget.c.

Referenced by FindEntryByWidget(), FindPlayerByWidget(), Reload(), and Reload().

◆ m_EntryTimer

ref Timer ScriptedWidgetEventHandler::m_EntryTimer = new Timer(CALL_CATEGORY_GUI)
protected

Definition at line 21 of file KeybindingElement.c.

◆ m_EventActorWidget

EditBoxWidget ScriptedWidgetEventHandler::m_EventActorWidget
protected

Definition at line 12 of file CTEvent.c.

◆ m_EventTime

float ScriptedWidgetEventHandler::m_EventTime
protected

Definition at line 6 of file CTEvent.c.

Referenced by GetEventTime().

◆ m_EventTimeWidget

EditBoxWidget ScriptedWidgetEventHandler::m_EventTimeWidget
protected

Definition at line 13 of file CTEvent.c.

◆ m_EventType

int ScriptedWidgetEventHandler::m_EventType
protected

Definition at line 5 of file CTEvent.c.

◆ m_EventTypeWidget

EditBoxWidget ScriptedWidgetEventHandler::m_EventTypeWidget
protected

Definition at line 14 of file CTEvent.c.

◆ m_EventWalkWidget

CheckBoxWidget ScriptedWidgetEventHandler::m_EventWalkWidget
protected

Definition at line 15 of file CTEvent.c.

◆ m_Expand

Widget ScriptedWidgetEventHandler::m_Expand
protected

Definition at line 5 of file ServerBrowserEntry.c.

◆ m_Faded

bool ScriptedWidgetEventHandler::m_Faded
protected

Definition at line 11 of file ContinuousActionProgress.c.

◆ m_FadeTimer

ref WidgetFadeTimer ScriptedWidgetEventHandler::m_FadeTimer
protected

Definition at line 10 of file ContinuousActionProgress.c.

◆ m_Favorite

Widget ScriptedWidgetEventHandler::m_Favorite
protected

Definition at line 4 of file ServerBrowserEntry.c.

◆ m_FavoritedFilter

ref OptionSelector ScriptedWidgetEventHandler::m_FavoritedFilter
protected

Definition at line 12 of file ServerBrowserFilterContainer.c.

◆ m_Feedback

Widget ScriptedWidgetEventHandler::m_Feedback
protected

Definition at line 7 of file MainMenuNewsfeed.c.

◆ m_FirstExpand

bool ScriptedWidgetEventHandler::m_FirstExpand = true
protected

Definition at line 38 of file ServerBrowserEntry.c.

◆ m_FirstInit

bool ScriptedWidgetEventHandler::m_FirstInit = true
protected

Definition at line 3 of file TabberUI.c.

◆ m_FollowedObject

EntityAI ScriptedWidgetEventHandler::m_FollowedObject
protected

Definition at line 8 of file CTObjectFollower.c.

◆ m_FollowerButton

Widget ScriptedWidgetEventHandler::m_FollowerButton
protected

Definition at line 4 of file CTObjectFollower.c.

◆ m_FollowerRoot

Widget ScriptedWidgetEventHandler::m_FollowerRoot
protected

Definition at line 3 of file CTObjectFollower.c.

◆ m_FOVOption

ref NumericOptionsAccess ScriptedWidgetEventHandler::m_FOVOption
protected

Definition at line 16 of file OptionsMenuGame.c.

◆ m_FOVSelector

ref OptionSelectorSlider ScriptedWidgetEventHandler::m_FOVSelector
protected

Definition at line 25 of file OptionsMenuGame.c.

◆ m_FOVWidget

EditBoxWidget ScriptedWidgetEventHandler::m_FOVWidget
protected

Definition at line 14 of file CTKeyframe.c.

◆ m_FriendsPlayingFilter

ref OptionSelector ScriptedWidgetEventHandler::m_FriendsPlayingFilter
protected

Definition at line 13 of file ServerBrowserFilterContainer.c.

◆ m_FullServerFilter

ref OptionSelector ScriptedWidgetEventHandler::m_FullServerFilter
protected

Definition at line 20 of file ServerBrowserFilterContainer.c.

◆ m_Game

DayZGame ScriptedWidgetEventHandler::m_Game
protected

Definition at line 27 of file UiHintPanel.c.

◆ m_GamepadStoreImage

Widget ScriptedWidgetEventHandler::m_GamepadStoreImage
protected

Definition at line 13 of file MainMenuPromo.c.

◆ m_GlobalMute

bool ScriptedWidgetEventHandler::m_GlobalMute
protected

Definition at line 6 of file PlayerListEntryScriptedWidget.c.

Referenced by IsGloballyMuted().

◆ m_GridSize

int ScriptedWidgetEventHandler::m_GridSize
protected

Definition at line 55 of file InventoryGrid.c.

Referenced by GetGridSize().

◆ m_Group

KeybindingsGroup ScriptedWidgetEventHandler::m_Group
protected

Definition at line 4 of file KeybindingElement.c.

◆ m_HasLogoOver

bool ScriptedWidgetEventHandler::m_HasLogoOver
protected

Definition at line 7 of file ModsMenuSimpleEntry.c.

◆ m_HealthEnabled

bool ScriptedWidgetEventHandler::m_HealthEnabled
protected

Definition at line 18 of file ItemActionsWidget.c.

◆ m_Hidden

bool ScriptedWidgetEventHandler::m_Hidden
protected

Definition at line 23 of file ItemActionsWidget.c.

◆ m_Highlighted

ModInfo ScriptedWidgetEventHandler::m_Highlighted
protected

Definition at line 9 of file ModsMenuDetailed.c.

Referenced by GetHighlighted().

◆ m_Holder

Widget ScriptedWidgetEventHandler::m_Holder
protected

Definition at line 10 of file DropdownPrefab.c.

◆ m_HorizontalOffset

reference float ScriptedWidgetEventHandler::m_HorizontalOffset
private

Definition at line 4 of file SizeToChild.c.

◆ m_Hover

Widget ScriptedWidgetEventHandler::m_Hover
protected

Definition at line 5 of file ModsMenuSimpleEntry.c.

◆ m_Hud

IngameHud ScriptedWidgetEventHandler::m_Hud
protected

Definition at line 10 of file ItemActionsWidget.c.

◆ m_HUDBrightnessSelector

ref OptionSelectorSlider ScriptedWidgetEventHandler::m_HUDBrightnessSelector
protected

Definition at line 35 of file OptionsMenuGame.c.

◆ m_HudDebug

HudDebug ScriptedWidgetEventHandler::m_HudDebug
private

Definition at line 6 of file HudDebug.c.

Referenced by GetHudDebug().

◆ m_HWAAOption

ref ListOptionsAccess ScriptedWidgetEventHandler::m_HWAAOption
protected

Definition at line 72 of file OptionsMenuVideo.c.

◆ m_HWAASelector

ref OptionSelectorMultistate ScriptedWidgetEventHandler::m_HWAASelector
protected

Definition at line 40 of file OptionsMenuVideo.c.

◆ m_Icon

ImageWidget ScriptedWidgetEventHandler::m_Icon
protected

Definition at line 4 of file ModsMenuSimpleEntry.c.

◆ m_IconBig

ImageWidget ScriptedWidgetEventHandler::m_IconBig
protected

Definition at line 12 of file ModsMenuDetailedEntry.c.

◆ m_IconCollapse

ImageWidget ScriptedWidgetEventHandler::m_IconCollapse
protected

Definition at line 8 of file ModsMenuDetailedEntry.c.

◆ m_IconSmall

ImageWidget ScriptedWidgetEventHandler::m_IconSmall
protected

Definition at line 7 of file ModsMenuDetailedEntry.c.

◆ m_IgnoredBool

bool ScriptedWidgetEventHandler::m_IgnoredBool
staticprotected

Definition at line 12 of file SizeToChild.c.

◆ m_ImageCollapse

ImageWidget ScriptedWidgetEventHandler::m_ImageCollapse
protected

Definition at line 13 of file DropdownPrefab.c.

◆ m_ImageExpand

ImageWidget ScriptedWidgetEventHandler::m_ImageExpand
protected

Definition at line 12 of file DropdownPrefab.c.

◆ m_ImmedUpdate

bool ScriptedWidgetEventHandler::m_ImmedUpdate
protected

Definition at line 10 of file LayoutHolder.c.

◆ m_Index

int ScriptedWidgetEventHandler::m_Index
protected

Definition at line 3 of file CTEvent.c.

◆ m_IndexWidget

TextWidget ScriptedWidgetEventHandler::m_IndexWidget
protected

Definition at line 11 of file CTEvent.c.

◆ m_InfectedKilled

Widget ScriptedWidgetEventHandler::m_InfectedKilled
protected

Definition at line 11 of file MainMenuStats.c.

◆ m_InfectedKilledValue

TextWidget ScriptedWidgetEventHandler::m_InfectedKilledValue
protected

Definition at line 12 of file MainMenuStats.c.

◆ m_Initialized

bool ScriptedWidgetEventHandler::m_Initialized
protected

Definition at line 28 of file UiHintPanel.c.

◆ m_InitProgress

float ScriptedWidgetEventHandler::m_InitProgress
protected

Definition at line 13 of file ContinuousActionProgress.c.

◆ m_InitTimer

ref Timer ScriptedWidgetEventHandler::m_InitTimer
protected

Definition at line 17 of file TabberUI.c.

◆ m_InputModeOption

ref ListOptionsAccess ScriptedWidgetEventHandler::m_InputModeOption
protected

Definition at line 17 of file OptionsMenuSounds.c.

◆ m_InputModeSelector

ref OptionSelectorMultistate ScriptedWidgetEventHandler::m_InputModeSelector
protected

Definition at line 24 of file OptionsMenuSounds.c.

◆ m_Interact

ActionBase ScriptedWidgetEventHandler::m_Interact
protected

Definition at line 5 of file ItemActionsWidget.c.

◆ m_InteractActionsNum

int ScriptedWidgetEventHandler::m_InteractActionsNum
protected

Definition at line 14 of file ItemActionsWidget.c.

◆ m_InterpTime

float ScriptedWidgetEventHandler::m_InterpTime
protected

Definition at line 4 of file CTKeyframe.c.

Referenced by GetInterpTime().

◆ m_InterpTimeWidget

EditBoxWidget ScriptedWidgetEventHandler::m_InterpTimeWidget
protected

Definition at line 13 of file CTKeyframe.c.

◆ m_IsActive

bool ScriptedWidgetEventHandler::m_IsActive
protected

Definition at line 9 of file LayoutHolder.c.

◆ m_IsAlternateEdited

bool ScriptedWidgetEventHandler::m_IsAlternateEdited
protected

Definition at line 16 of file KeybindingElement.c.

Referenced by IsAlternateChanged().

◆ m_IsDebugOutput

reference bool ScriptedWidgetEventHandler::m_IsDebugOutput
private

Definition at line 46 of file InventoryGrid.c.

◆ m_IsEdited

bool ScriptedWidgetEventHandler::m_IsEdited
protected

Definition at line 15 of file KeybindingElement.c.

Referenced by IsChanged().

◆ m_IsExpanded

bool ScriptedWidgetEventHandler::m_IsExpanded
protected

Definition at line 15 of file DropdownPrefab.c.

Referenced by Close(), OnMouseButtonDown(), and SetExpand().

◆ m_IsFavorited

bool ScriptedWidgetEventHandler::m_IsFavorited
protected

Definition at line 31 of file ServerBrowserEntry.c.

Referenced by ToggleFavorite().

◆ m_IsMouseLeftDown

bool ScriptedWidgetEventHandler::m_IsMouseLeftDown
protected

Definition at line 56 of file InventoryGrid.c.

◆ m_IsOnline

bool ScriptedWidgetEventHandler::m_IsOnline
protected

Definition at line 32 of file ServerBrowserEntry.c.

Referenced by IsOnline().

◆ m_IsOpen

bool ScriptedWidgetEventHandler::m_IsOpen
protected

Definition at line 23 of file ModsMenuDetailedEntry.c.

◆ m_ItemActionsNum

int ScriptedWidgetEventHandler::m_ItemActionsNum
protected

Definition at line 16 of file ItemActionsWidget.c.

◆ m_ItemLeft

Widget ScriptedWidgetEventHandler::m_ItemLeft
protected

Definition at line 26 of file ItemActionsWidget.c.

◆ m_Items

ref TItemsMap ScriptedWidgetEventHandler::m_Items
protected

Definition at line 50 of file InventoryGrid.c.

Referenced by GetItems().

◆ m_ItemWidgets

ref map<int, Widget> ScriptedWidgetEventHandler::m_ItemWidgets
protected

Definition at line 49 of file InventoryGrid.c.

◆ m_KBDropdown

ref DropdownPrefab ScriptedWidgetEventHandler::m_KBDropdown
protected

Definition at line 11 of file KeybindingsGroup.c.

◆ m_Keybindings

GridSpacerWidget ScriptedWidgetEventHandler::m_Keybindings
protected

Definition at line 16 of file OptionsMenuControls.c.

◆ m_KeyboardFilter

ref OptionSelector ScriptedWidgetEventHandler::m_KeyboardFilter
protected

Definition at line 17 of file ServerBrowserFilterContainer.c.

◆ m_KeyboardOption

ref SwitchOptionsAccess ScriptedWidgetEventHandler::m_KeyboardOption
protected

Definition at line 22 of file OptionsMenuControls.c.

◆ m_KeyboardSelector

ref OptionSelectorMultistate ScriptedWidgetEventHandler::m_KeyboardSelector
protected

Definition at line 26 of file OptionsMenuControls.c.

◆ m_KeyWidgets

ref map<int, ref KeybindingElement> ScriptedWidgetEventHandler::m_KeyWidgets
protected

Definition at line 7 of file KeybindingsGroup.c.

Referenced by Apply(), IsChanged(), ReloadProfiles(), and ResetEx().

◆ m_LanguageOption

ref ListOptionsAccess ScriptedWidgetEventHandler::m_LanguageOption
protected

Definition at line 17 of file OptionsMenuGame.c.

◆ m_LanguageSelector

ref OptionSelectorMultistate ScriptedWidgetEventHandler::m_LanguageSelector
protected

Definition at line 24 of file OptionsMenuGame.c.

◆ m_LayoutName

string ScriptedWidgetEventHandler::m_LayoutName
protected

Definition at line 7 of file LayoutHolder.c.

◆ m_LoadButton

ButtonWidget ScriptedWidgetEventHandler::m_LoadButton
protected

Definition at line 13 of file VideoPlayer.c.

◆ m_LoaderImage

ImageWidget ScriptedWidgetEventHandler::m_LoaderImage
protected

Definition at line 18 of file ContinuousActionProgress.c.

◆ m_LoadVideo

GridSpacerWidget ScriptedWidgetEventHandler::m_LoadVideo
protected

Definition at line 14 of file VideoPlayer.c.

◆ m_LongRangeShot

Widget ScriptedWidgetEventHandler::m_LongRangeShot
protected

Definition at line 17 of file MainMenuStats.c.

◆ m_LongRangeShotValue

TextWidget ScriptedWidgetEventHandler::m_LongRangeShotValue
protected

Definition at line 18 of file MainMenuStats.c.

◆ m_MainText1

TextWidget ScriptedWidgetEventHandler::m_MainText1
protected

Definition at line 12 of file MainMenuNewsfeed.c.

◆ m_MainText2

TextWidget ScriptedWidgetEventHandler::m_MainText2
protected

Definition at line 13 of file MainMenuNewsfeed.c.

◆ m_MainText3

TextWidget ScriptedWidgetEventHandler::m_MainText3
protected

Definition at line 14 of file MainMenuNewsfeed.c.

◆ m_MainWidget

Widget ScriptedWidgetEventHandler::m_MainWidget
protected

Definition at line 3 of file LayoutHolder.c.

◆ m_MasterOption

ref NumericOptionsAccess ScriptedWidgetEventHandler::m_MasterOption
protected

Definition at line 12 of file OptionsMenuSounds.c.

◆ m_MasterSelector

ref OptionSelectorSlider ScriptedWidgetEventHandler::m_MasterSelector
protected

Definition at line 19 of file OptionsMenuSounds.c.

◆ m_max_item_width

int ScriptedWidgetEventHandler::m_max_item_width
private

Definition at line 9 of file ContextMenu.c.

◆ m_MaxFade

float ScriptedWidgetEventHandler::m_MaxFade
protected

Definition at line 10 of file CTObjectFollower.c.

◆ m_MaxWidthChild

float ScriptedWidgetEventHandler::m_MaxWidthChild
protected

widget width

Definition at line 29 of file ItemActionsWidget.c.

◆ m_Menu [1/5]

OptionsMenu ScriptedWidgetEventHandler::m_Menu
protected

Definition at line 8 of file CTEvent.c.

◆ m_Menu [2/5]

TutorialsMenu ScriptedWidgetEventHandler::m_Menu
protected

Definition at line 6 of file ControlMappingKeybinds.c.

◆ m_Menu [3/5]

KeybindingsMenu ScriptedWidgetEventHandler::m_Menu
protected

Definition at line 5 of file KeybindingsGroup.c.

◆ m_Menu [4/5]

UIScriptedMenu ScriptedWidgetEventHandler::m_Menu
protected

Definition at line 12 of file ModsMenuDetailed.c.

◆ m_Menu [5/5]

OptionsMenu ScriptedWidgetEventHandler::m_Menu
protected

Definition at line 19 of file OptionsMenuControls.c.

◆ m_MicrophoneIcon

ImageWidget ScriptedWidgetEventHandler::m_MicrophoneIcon
protected

Definition at line 11 of file PlayerListEntryScriptedWidget.c.

◆ m_MinFade

float ScriptedWidgetEventHandler::m_MinFade
protected

Definition at line 11 of file CTObjectFollower.c.

◆ m_MissionGameplay

MissionGameplay ScriptedWidgetEventHandler::m_MissionGameplay
protected

Definition at line 29 of file OptionsMenuSounds.c.

◆ m_ModButton

ButtonWidget ScriptedWidgetEventHandler::m_ModButton
protected

Definition at line 3 of file ModsMenuSimpleEntry.c.

Referenced by ~ModsMenuSimpleEntry().

◆ m_Mods

ref array<string> ScriptedWidgetEventHandler::m_Mods
protected

Definition at line 28 of file ServerBrowserEntry.c.

◆ m_MoreButton

Widget ScriptedWidgetEventHandler::m_MoreButton
protected

Definition at line 6 of file ModsMenuSimple.c.

◆ m_MoreHighlight

Widget ScriptedWidgetEventHandler::m_MoreHighlight
protected

Definition at line 7 of file ModsMenuSimple.c.

◆ m_Mouse_AimMod_HSensitivityOption

ref NumericOptionsAccess ScriptedWidgetEventHandler::m_Mouse_AimMod_HSensitivityOption
protected

Definition at line 34 of file OptionsMenuControls.c.

◆ m_Mouse_AimMod_HSensitivitySelector

ref OptionSelectorSlider ScriptedWidgetEventHandler::m_Mouse_AimMod_HSensitivitySelector
protected

Definition at line 41 of file OptionsMenuControls.c.

◆ m_Mouse_AimMod_VSensitivityOption

ref NumericOptionsAccess ScriptedWidgetEventHandler::m_Mouse_AimMod_VSensitivityOption
protected

Definition at line 33 of file OptionsMenuControls.c.

◆ m_Mouse_AimMod_VSensitivitySelector

ref OptionSelectorSlider ScriptedWidgetEventHandler::m_Mouse_AimMod_VSensitivitySelector
protected

Definition at line 40 of file OptionsMenuControls.c.

◆ m_Mouse_HSensitivityOption

ref NumericOptionsAccess ScriptedWidgetEventHandler::m_Mouse_HSensitivityOption
protected

Definition at line 32 of file OptionsMenuControls.c.

◆ m_Mouse_HSensitivitySelector

ref OptionSelectorSlider ScriptedWidgetEventHandler::m_Mouse_HSensitivitySelector
protected

Definition at line 39 of file OptionsMenuControls.c.

◆ m_Mouse_InvertOption

ref SwitchOptionsAccess ScriptedWidgetEventHandler::m_Mouse_InvertOption
protected

Definition at line 30 of file OptionsMenuControls.c.

◆ m_Mouse_InvertSelector

ref OptionSelectorMultistate ScriptedWidgetEventHandler::m_Mouse_InvertSelector
protected

Definition at line 37 of file OptionsMenuControls.c.

◆ m_Mouse_VSensitivityOption

ref NumericOptionsAccess ScriptedWidgetEventHandler::m_Mouse_VSensitivityOption
protected

Definition at line 31 of file OptionsMenuControls.c.

◆ m_Mouse_VSensitivitySelector

ref OptionSelectorSlider ScriptedWidgetEventHandler::m_Mouse_VSensitivitySelector
protected

Definition at line 38 of file OptionsMenuControls.c.

◆ m_MusicOption

ref NumericOptionsAccess ScriptedWidgetEventHandler::m_MusicOption
protected

Definition at line 16 of file OptionsMenuSounds.c.

◆ m_MusicSelector

ref OptionSelectorSlider ScriptedWidgetEventHandler::m_MusicSelector
protected

Definition at line 23 of file OptionsMenuSounds.c.

◆ m_Mute

bool ScriptedWidgetEventHandler::m_Mute
protected

Definition at line 5 of file PlayerListEntryScriptedWidget.c.

Referenced by IsMuted(), and ToggleMute().

◆ m_MuteIcon

ImageWidget ScriptedWidgetEventHandler::m_MuteIcon
protected

Definition at line 12 of file PlayerListEntryScriptedWidget.c.

◆ m_Name [1/2]

string ScriptedWidgetEventHandler::m_Name
protected

Definition at line 3 of file PlayerListEntryScriptedWidget.c.

◆ m_Name [2/2]

TextWidget ScriptedWidgetEventHandler::m_Name
protected

Definition at line 9 of file ModsMenuDetailedEntry.c.

◆ m_ObjectDetailOption

ref ListOptionsAccess ScriptedWidgetEventHandler::m_ObjectDetailOption
protected

Definition at line 63 of file OptionsMenuVideo.c.

◆ m_ObjectDetailSelector

ref OptionSelectorMultistate ScriptedWidgetEventHandler::m_ObjectDetailSelector
protected

Definition at line 31 of file OptionsMenuVideo.c.

◆ m_on_drag_item

Widget ScriptedWidgetEventHandler::m_on_drag_item
private

Definition at line 239 of file InventoryGrid.c.

◆ m_OnAttemptTabSwitch

ref ScriptInvoker ScriptedWidgetEventHandler::m_OnAttemptTabSwitch = new ScriptInvoker()
protected

Definition at line 16 of file TabberUI.c.

◆ m_OnceButton

ButtonWidget ScriptedWidgetEventHandler::m_OnceButton
protected

Definition at line 10 of file VideoPlayer.c.

◆ m_OnSelectItem

ref ScriptInvoker ScriptedWidgetEventHandler::m_OnSelectItem = new ScriptInvoker()
protected

Definition at line 16 of file DropdownPrefab.c.

◆ m_OnTabSwitch

ref ScriptInvoker ScriptedWidgetEventHandler::m_OnTabSwitch = new ScriptInvoker()
protected

Definition at line 15 of file TabberUI.c.

◆ m_OptionChanged

ref ScriptInvoker ScriptedWidgetEventHandler::m_OptionChanged = new ScriptInvoker
protected

Definition at line 14 of file OptionSelectorBase.c.

◆ m_OptionFocused

ref ScriptInvoker ScriptedWidgetEventHandler::m_OptionFocused = new ScriptInvoker
protected

Definition at line 11 of file OptionSelectorBase.c.

◆ m_Options [1/2]

GameOptions ScriptedWidgetEventHandler::m_Options
protected

Definition at line 18 of file OptionsMenuControls.c.

◆ m_Options [2/2]

ref map<string, string> ScriptedWidgetEventHandler::m_Options = new map<string, string>
private

Definition at line 3 of file ServerBrowserFilterContainer.c.

◆ m_OptionUnfocused

ref ScriptInvoker ScriptedWidgetEventHandler::m_OptionUnfocused = new ScriptInvoker
protected

Definition at line 12 of file OptionSelectorBase.c.

◆ m_Orientation

vector ScriptedWidgetEventHandler::m_Orientation
protected

Definition at line 8 of file CTKeyframe.c.

Referenced by GetOrientation().

◆ m_OverallQualityOption

ref ListOptionsAccess ScriptedWidgetEventHandler::m_OverallQualityOption
protected

Definition at line 53 of file OptionsMenuVideo.c.

◆ m_OverallQualitySelector

ref OptionSelectorMultistate ScriptedWidgetEventHandler::m_OverallQualitySelector
protected

Definition at line 21 of file OptionsMenuVideo.c.

◆ m_Owner

PluginItemDiagnostic ScriptedWidgetEventHandler::m_Owner
private

Definition at line 3 of file PluginItemDiagnostic.c.

◆ m_PageIndex

int ScriptedWidgetEventHandler::m_PageIndex = int.MIN
protected

Definition at line 26 of file UiHintPanel.c.

Referenced by RandomizePageIndex().

◆ m_Parent [1/2]

Widget ScriptedWidgetEventHandler::m_Parent
protected

Definition at line 6 of file LayoutHolder.c.

◆ m_Parent [2/2]

Widget ScriptedWidgetEventHandler::m_Parent
protected

Definition at line 4 of file DropdownPrefab.c.

◆ m_ParentClass

ScriptedWidgetEventHandler ScriptedWidgetEventHandler::m_ParentClass
protected

Definition at line 9 of file OptionSelectorBase.c.

◆ m_ParentMenu [1/2]

ModsMenuDetailed ScriptedWidgetEventHandler::m_ParentMenu
protected

Definition at line 22 of file ModsMenuDetailedEntry.c.

◆ m_ParentMenu [2/2]

ModsMenuSimple ScriptedWidgetEventHandler::m_ParentMenu
protected

Definition at line 9 of file ModsMenuSimpleEntry.c.

◆ m_ParentWidget

Widget ScriptedWidgetEventHandler::m_ParentWidget
protected

Definition at line 29 of file UiHintPanel.c.

◆ m_PasswordFilter

ref OptionSelector ScriptedWidgetEventHandler::m_PasswordFilter
protected

Definition at line 15 of file ServerBrowserFilterContainer.c.

◆ m_PauseButton

ButtonWidget ScriptedWidgetEventHandler::m_PauseButton
protected

Definition at line 6 of file VideoPlayer.c.

◆ m_PauseOption

ref ListOptionsAccess ScriptedWidgetEventHandler::m_PauseOption
protected

Definition at line 18 of file OptionsMenuGame.c.

◆ m_PauseSelector

ref OptionSelectorMultistate ScriptedWidgetEventHandler::m_PauseSelector
protected

Definition at line 36 of file OptionsMenuGame.c.

◆ m_PingFilter

ref OptionSelectorMultistate ScriptedWidgetEventHandler::m_PingFilter
protected

Definition at line 10 of file ServerBrowserFilterContainer.c.

◆ m_PinWidget

EditBoxWidget ScriptedWidgetEventHandler::m_PinWidget
protected

Definition at line 16 of file CTKeyframe.c.

◆ m_PivotYOffset

reference int ScriptedWidgetEventHandler::m_PivotYOffset
private

Definition at line 3 of file ObjectFollower.c.

Referenced by GetOnScreenPosition().

◆ m_PlayButton

ButtonWidget ScriptedWidgetEventHandler::m_PlayButton
protected

Definition at line 5 of file VideoPlayer.c.

◆ m_Player

PlayerBase ScriptedWidgetEventHandler::m_Player
protected

Definition at line 5 of file ContinuousActionProgress.c.

◆ m_PlayerAvatar

ImageWidget ScriptedWidgetEventHandler::m_PlayerAvatar
protected

Definition at line 10 of file PlayerListEntryScriptedWidget.c.

◆ m_PlayerButton

ButtonWidget ScriptedWidgetEventHandler::m_PlayerButton
protected

Definition at line 13 of file PlayerListEntryScriptedWidget.c.

Referenced by GetButtonWidget().

◆ m_PlayerName

TextWidget ScriptedWidgetEventHandler::m_PlayerName
protected

Definition at line 9 of file PlayerListEntryScriptedWidget.c.

◆ m_PlayersKilled

Widget ScriptedWidgetEventHandler::m_PlayersKilled
protected

Definition at line 8 of file MainMenuStats.c.

◆ m_PlayersKilledValue

TextWidget ScriptedWidgetEventHandler::m_PlayersKilledValue
protected

Definition at line 9 of file MainMenuStats.c.

◆ m_Position

vector ScriptedWidgetEventHandler::m_Position
protected

Definition at line 7 of file CTKeyframe.c.

Referenced by GetPosition().

◆ m_PPAAOption

ref ListOptionsAccess ScriptedWidgetEventHandler::m_PPAAOption
protected

Definition at line 71 of file OptionsMenuVideo.c.

◆ m_PPAASelector

ref OptionSelectorMultistate ScriptedWidgetEventHandler::m_PPAASelector
protected

Definition at line 39 of file OptionsMenuVideo.c.

◆ m_pPluginInfectedDebug

PluginDayZInfectedDebug ScriptedWidgetEventHandler::m_pPluginInfectedDebug
private

Definition at line 18 of file PluginDayZInfectedDebug.c.

◆ m_PPQualityOption

ref ListOptionsAccess ScriptedWidgetEventHandler::m_PPQualityOption
protected

Definition at line 75 of file OptionsMenuVideo.c.

◆ m_PPQualitySelector

ref OptionSelectorMultistate ScriptedWidgetEventHandler::m_PPQualitySelector
protected

Definition at line 43 of file OptionsMenuVideo.c.

◆ m_PreviouslyPlayedFilter

ref OptionSelector ScriptedWidgetEventHandler::m_PreviouslyPlayedFilter
protected

Definition at line 18 of file ServerBrowserFilterContainer.c.

◆ m_PreviousRandomIndex

int ScriptedWidgetEventHandler::m_PreviousRandomIndex = int.MIN
protected

Definition at line 30 of file UiHintPanel.c.

◆ m_PrimaryBindButton

ButtonWidget ScriptedWidgetEventHandler::m_PrimaryBindButton
protected

Definition at line 9 of file KeybindingElement.c.

◆ m_PrimaryClear

Widget ScriptedWidgetEventHandler::m_PrimaryClear
protected

Definition at line 11 of file KeybindingElement.c.

◆ m_profileOption

int ScriptedWidgetEventHandler::m_profileOption
private

Definition at line 97 of file ProfileOptionsUI.c.

◆ m_Progress

SliderWidget ScriptedWidgetEventHandler::m_Progress
protected

Definition at line 16 of file VideoPlayer.c.

◆ m_PublicFilter

ref OptionSelector ScriptedWidgetEventHandler::m_PublicFilter
protected

Definition at line 22 of file ServerBrowserFilterContainer.c.

◆ m_QuantityEnabled

bool ScriptedWidgetEventHandler::m_QuantityEnabled
protected

Definition at line 19 of file ItemActionsWidget.c.

◆ m_QuickbarButton

ButtonWidget ScriptedWidgetEventHandler::m_QuickbarButton
protected

Definition at line 14 of file OptionsMenuGame.c.

◆ m_Radial

ref RadialProgressBar ScriptedWidgetEventHandler::m_Radial
protected

Definition at line 19 of file ContinuousActionProgress.c.

◆ m_RadialWidget

Widget ScriptedWidgetEventHandler::m_RadialWidget
protected

Definition at line 17 of file ContinuousActionProgress.c.

◆ m_RegionFilter

ref OptionSelectorMultistate ScriptedWidgetEventHandler::m_RegionFilter
protected

Definition at line 9 of file ServerBrowserFilterContainer.c.

◆ m_RepeatButton

ButtonWidget ScriptedWidgetEventHandler::m_RepeatButton
protected

Definition at line 11 of file VideoPlayer.c.

◆ m_ResizeHorizontal

reference bool ScriptedWidgetEventHandler::m_ResizeHorizontal
private

Definition at line 6 of file SizeToChild.c.

◆ m_ResizeVertical

reference bool ScriptedWidgetEventHandler::m_ResizeVertical
private

Definition at line 7 of file SizeToChild.c.

◆ m_ResolutionMultiplier

float ScriptedWidgetEventHandler::m_ResolutionMultiplier
protected

Definition at line 12 of file TabberUI.c.

◆ m_ResolutionOption

ref ListOptionsAccess ScriptedWidgetEventHandler::m_ResolutionOption
protected

Definition at line 57 of file OptionsMenuVideo.c.

◆ m_ResolutionSelector

ref OptionSelectorMultistate ScriptedWidgetEventHandler::m_ResolutionSelector
protected

Definition at line 25 of file OptionsMenuVideo.c.

◆ m_Root

◆ m_RootFrame

Widget ScriptedWidgetEventHandler::m_RootFrame
protected

Definition at line 16 of file UiHintPanel.c.

◆ m_RootHeight

float ScriptedWidgetEventHandler::m_RootHeight
protected

Definition at line 31 of file ItemActionsWidget.c.

◆ m_RootPath

string ScriptedWidgetEventHandler::m_RootPath = "Gui/layouts/new_ui/hints/in_game_hints.layout"
protected

Definition at line 13 of file UiHintPanel.c.

◆ m_RootWidget

Widget ScriptedWidgetEventHandler::m_RootWidget
protected

Definition at line 4 of file LayoutHolder.c.

◆ m_RootWidth

float ScriptedWidgetEventHandler::m_RootWidth
protected

Definition at line 30 of file ItemActionsWidget.c.

◆ m_Scroll

ScrollWidget ScriptedWidgetEventHandler::m_Scroll
protected

Definition at line 6 of file ModsMenuDetailed.c.

◆ m_ScrollContainer

ScrollWidget ScriptedWidgetEventHandler::m_ScrollContainer
protected

Definition at line 4 of file PlayerListScriptedWidget.c.

◆ m_Scroller

ScrollWidget ScriptedWidgetEventHandler::m_Scroller
protected

Definition at line 5 of file DropdownPrefab.c.

◆ m_SearchByIP

EditBoxWidget ScriptedWidgetEventHandler::m_SearchByIP
protected

Definition at line 6 of file ServerBrowserFilterContainer.c.

◆ m_SearchByName

EditBoxWidget ScriptedWidgetEventHandler::m_SearchByName
protected

Definition at line 5 of file ServerBrowserFilterContainer.c.

◆ m_SecText1

TextWidget ScriptedWidgetEventHandler::m_SecText1
protected

Definition at line 15 of file MainMenuNewsfeed.c.

◆ m_SecText2

TextWidget ScriptedWidgetEventHandler::m_SecText2
protected

Definition at line 16 of file MainMenuNewsfeed.c.

◆ m_SecText3

TextWidget ScriptedWidgetEventHandler::m_SecText3
protected

Definition at line 17 of file MainMenuNewsfeed.c.

◆ m_Selected

bool ScriptedWidgetEventHandler::m_Selected
protected

Definition at line 16 of file PlayerListEntryScriptedWidget.c.

◆ m_SelectedEntry

PlayerListEntryScriptedWidget ScriptedWidgetEventHandler::m_SelectedEntry
protected

Definition at line 9 of file PlayerListScriptedWidget.c.

Referenced by GetSelectedPlayer().

◆ m_SelectedIndex

int ScriptedWidgetEventHandler::m_SelectedIndex
protected

Definition at line 11 of file TabberUI.c.

◆ m_SelectorType

int ScriptedWidgetEventHandler::m_SelectorType = 0
protected

Definition at line 3 of file OptionSelectorBase.c.

◆ m_ServerAcceleration

TextWidget ScriptedWidgetEventHandler::m_ServerAcceleration
protected

Definition at line 24 of file ServerBrowserEntry.c.

◆ m_ServerBattleye

TextWidget ScriptedWidgetEventHandler::m_ServerBattleye
protected

Definition at line 22 of file ServerBrowserEntry.c.

◆ m_ServerCharacterAlive

TextWidget ScriptedWidgetEventHandler::m_ServerCharacterAlive
protected

Definition at line 19 of file ServerBrowserEntry.c.

◆ m_ServerData

ref GetServersResultRow ScriptedWidgetEventHandler::m_ServerData
protected

Definition at line 34 of file ServerBrowserEntry.c.

◆ m_ServerFriends

TextWidget ScriptedWidgetEventHandler::m_ServerFriends
protected

Definition at line 20 of file ServerBrowserEntry.c.

◆ m_ServerIP

TextWidget ScriptedWidgetEventHandler::m_ServerIP
protected

Definition at line 23 of file ServerBrowserEntry.c.

◆ m_ServerLock

ImageWidget ScriptedWidgetEventHandler::m_ServerLock
protected

Definition at line 13 of file ServerBrowserEntry.c.

◆ m_ServerMaKIcon

ImageWidget ScriptedWidgetEventHandler::m_ServerMaKIcon
protected

Definition at line 15 of file ServerBrowserEntry.c.

◆ m_ServerMap

TextWidget ScriptedWidgetEventHandler::m_ServerMap
protected

Definition at line 25 of file ServerBrowserEntry.c.

◆ m_ServerMode

TextWidget ScriptedWidgetEventHandler::m_ServerMode
protected

Definition at line 21 of file ServerBrowserEntry.c.

◆ m_ServerModIcon

ImageWidget ScriptedWidgetEventHandler::m_ServerModIcon
protected

Definition at line 14 of file ServerBrowserEntry.c.

◆ m_ServerMods

TextWidget ScriptedWidgetEventHandler::m_ServerMods
protected

Definition at line 26 of file ServerBrowserEntry.c.

◆ m_ServerModsExpand

ButtonWidget ScriptedWidgetEventHandler::m_ServerModsExpand
protected

Definition at line 27 of file ServerBrowserEntry.c.

◆ m_ServerName

TextWidget ScriptedWidgetEventHandler::m_ServerName
protected

Definition at line 8 of file ServerBrowserEntry.c.

◆ m_ServerPing

TextWidget ScriptedWidgetEventHandler::m_ServerPing
protected

Definition at line 11 of file ServerBrowserEntry.c.

◆ m_ServerPopulation

TextWidget ScriptedWidgetEventHandler::m_ServerPopulation
protected

Definition at line 9 of file ServerBrowserEntry.c.

◆ m_ServerShard

TextWidget ScriptedWidgetEventHandler::m_ServerShard
protected

Definition at line 18 of file ServerBrowserEntry.c.

◆ m_ServerSlots

TextWidget ScriptedWidgetEventHandler::m_ServerSlots
protected

Definition at line 10 of file ServerBrowserEntry.c.

◆ m_ServerTime

ImageWidget ScriptedWidgetEventHandler::m_ServerTime
protected

Definition at line 12 of file ServerBrowserEntry.c.

◆ m_SettingsRoot

Widget ScriptedWidgetEventHandler::m_SettingsRoot
protected

Definition at line 5 of file OptionsMenuControls.c.

◆ m_ShadowDetailOption

ref ListOptionsAccess ScriptedWidgetEventHandler::m_ShadowDetailOption
protected

Definition at line 66 of file OptionsMenuVideo.c.

◆ m_ShadowDetailSelector

ref OptionSelectorMultistate ScriptedWidgetEventHandler::m_ShadowDetailSelector
protected

Definition at line 34 of file OptionsMenuVideo.c.

◆ m_ShowAdminSelector

ref OptionSelectorMultistate ScriptedWidgetEventHandler::m_ShowAdminSelector
protected

Definition at line 30 of file OptionsMenuGame.c.

◆ m_ShowCrosshairSelector

ref OptionSelectorMultistate ScriptedWidgetEventHandler::m_ShowCrosshairSelector
protected

Definition at line 27 of file OptionsMenuGame.c.

◆ m_ShowGameSelector

ref OptionSelectorMultistate ScriptedWidgetEventHandler::m_ShowGameSelector
protected

Definition at line 29 of file OptionsMenuGame.c.

◆ m_ShowHUDSelector

ref OptionSelectorMultistate ScriptedWidgetEventHandler::m_ShowHUDSelector
protected

Definition at line 26 of file OptionsMenuGame.c.

◆ m_ShowPlayerSelector

ref OptionSelectorMultistate ScriptedWidgetEventHandler::m_ShowPlayerSelector
protected

Definition at line 31 of file OptionsMenuGame.c.

◆ m_ShowQuickbarSelector

ref OptionSelectorMultistate ScriptedWidgetEventHandler::m_ShowQuickbarSelector
protected

Definition at line 28 of file OptionsMenuGame.c.

◆ m_ShowServerInfoSelector

ref OptionSelectorMultistate ScriptedWidgetEventHandler::m_ShowServerInfoSelector
protected

Definition at line 32 of file OptionsMenuGame.c.

◆ m_Single

ActionBase ScriptedWidgetEventHandler::m_Single
protected

Definition at line 7 of file ItemActionsWidget.c.

◆ m_SlideShowDelay

int ScriptedWidgetEventHandler::m_SlideShowDelay = 25000
protected

Definition at line 12 of file UiHintPanel.c.

◆ m_SortingFilter

ref OptionSelectorMultistate ScriptedWidgetEventHandler::m_SortingFilter
protected

Definition at line 8 of file ServerBrowserFilterContainer.c.

◆ m_SpacerFrame

Widget ScriptedWidgetEventHandler::m_SpacerFrame
protected

Definition at line 17 of file UiHintPanel.c.

◆ m_Speed

float ScriptedWidgetEventHandler::m_Speed
protected

Definition at line 14 of file ContinuousActionProgress.c.

◆ m_SSRQualityOption

ref ListOptionsAccess ScriptedWidgetEventHandler::m_SSRQualityOption
protected

Definition at line 76 of file OptionsMenuVideo.c.

◆ m_SSRQualitySelector

ref OptionSelectorMultistate ScriptedWidgetEventHandler::m_SSRQualitySelector
protected

Definition at line 44 of file OptionsMenuVideo.c.

◆ m_StopButton

ButtonWidget ScriptedWidgetEventHandler::m_StopButton
protected

Definition at line 8 of file VideoPlayer.c.

◆ m_StoreButton

Widget ScriptedWidgetEventHandler::m_StoreButton
protected

Definition at line 12 of file MainMenuPromo.c.

◆ m_Tab [1/2]

ServerBrowserTab ScriptedWidgetEventHandler::m_Tab
protected

Definition at line 15 of file PlayerListEntryScriptedWidget.c.

◆ m_Tab [2/2]

ServerBrowserTab ScriptedWidgetEventHandler::m_Tab
protected

Definition at line 36 of file ServerBrowserEntry.c.

◆ m_TabControls

ref map<int, Widget> ScriptedWidgetEventHandler::m_TabControls
protected

Definition at line 8 of file TabberUI.c.

◆ m_TabControlsRoot

Widget ScriptedWidgetEventHandler::m_TabControlsRoot
protected

Definition at line 5 of file TabberUI.c.

◆ m_Tabs

ref map<int, Widget> ScriptedWidgetEventHandler::m_Tabs
protected

Definition at line 9 of file TabberUI.c.

◆ m_TabsCount

int ScriptedWidgetEventHandler::m_TabsCount
protected

Definition at line 7 of file TabberUI.c.

◆ m_TargetObject

Object ScriptedWidgetEventHandler::m_TargetObject
protected

Definition at line 6 of file ObjectFollower.c.

◆ m_TerrainDetailOption

ref ListOptionsAccess ScriptedWidgetEventHandler::m_TerrainDetailOption
protected

Definition at line 64 of file OptionsMenuVideo.c.

◆ m_TerrainDetailSelector

ref OptionSelectorMultistate ScriptedWidgetEventHandler::m_TerrainDetailSelector
protected

Definition at line 32 of file OptionsMenuVideo.c.

◆ m_TerrainSurfaceDetailOption

ref ListOptionsAccess ScriptedWidgetEventHandler::m_TerrainSurfaceDetailOption
protected

Definition at line 70 of file OptionsMenuVideo.c.

◆ m_TerrainSurfaceDetailSelector

ref OptionSelectorMultistate ScriptedWidgetEventHandler::m_TerrainSurfaceDetailSelector
protected

Definition at line 38 of file OptionsMenuVideo.c.

◆ m_Text [1/2]

TextWidget ScriptedWidgetEventHandler::m_Text
protected

Definition at line 11 of file DropdownPrefab.c.

◆ m_Text [2/2]

RichTextWidget ScriptedWidgetEventHandler::m_Text
protected

Definition at line 4 of file ModsMenuTooltip.c.

◆ m_TextMap

ref map< int, ref Param2< string, string > > ScriptedWidgetEventHandler::m_TextMap
protected

Definition at line 67 of file OptionsMenuControls.c.

◆ m_TextureDetailOption

ref ListOptionsAccess ScriptedWidgetEventHandler::m_TextureDetailOption
protected

Definition at line 65 of file OptionsMenuVideo.c.

◆ m_TextureDetailSelector

ref OptionSelectorMultistate ScriptedWidgetEventHandler::m_TextureDetailSelector
protected

Definition at line 33 of file OptionsMenuVideo.c.

◆ m_TextureFilteringOption

ref ListOptionsAccess ScriptedWidgetEventHandler::m_TextureFilteringOption
protected

Definition at line 69 of file OptionsMenuVideo.c.

◆ m_TextureFilteringSelector

ref OptionSelectorMultistate ScriptedWidgetEventHandler::m_TextureFilteringSelector
protected

Definition at line 37 of file OptionsMenuVideo.c.

◆ m_ThirdPersonFilter

ref OptionSelector ScriptedWidgetEventHandler::m_ThirdPersonFilter
protected

Definition at line 21 of file ServerBrowserFilterContainer.c.

◆ m_ThisModInfo

ref ModInfo ScriptedWidgetEventHandler::m_ThisModInfo
protected

Definition at line 18 of file MainMenuPromo.c.

Referenced by GetModInfo().

◆ m_TimeSurvived

Widget ScriptedWidgetEventHandler::m_TimeSurvived
protected

Definition at line 5 of file MainMenuStats.c.

◆ m_TimeSurvivedFull

ref FullTimeData ScriptedWidgetEventHandler::m_TimeSurvivedFull
private

Definition at line 20 of file MainMenuStats.c.

◆ m_TimeSurvivedValue

TextWidget ScriptedWidgetEventHandler::m_TimeSurvivedValue
protected

Definition at line 6 of file MainMenuStats.c.

◆ m_TitleTextDlc

TextWidget ScriptedWidgetEventHandler::m_TitleTextDlc
protected

Definition at line 15 of file MainMenuPromo.c.

◆ m_Tooltip

ModsMenuTooltip ScriptedWidgetEventHandler::m_Tooltip
protected

Definition at line 13 of file ModsMenuDetailed.c.

◆ m_TooltipMod

ModInfo ScriptedWidgetEventHandler::m_TooltipMod
protected

Definition at line 15 of file ModsMenuDetailed.c.

◆ m_TooltipOwner

bool ScriptedWidgetEventHandler::m_TooltipOwner
protected

Definition at line 11 of file LayoutHolder.c.

◆ m_TooltipTimer

ref Timer ScriptedWidgetEventHandler::m_TooltipTimer
protected

Definition at line 14 of file ModsMenuDetailed.c.

◆ m_TotalEntries

int ScriptedWidgetEventHandler::m_TotalEntries
protected

Definition at line 8 of file PlayerListScriptedWidget.c.

◆ m_TotalTime

TextWidget ScriptedWidgetEventHandler::m_TotalTime
protected

Definition at line 19 of file VideoPlayer.c.

◆ m_TotalTimeBefore

float ScriptedWidgetEventHandler::m_TotalTimeBefore
protected

Definition at line 5 of file CTKeyframe.c.

◆ m_TotalTimeWidget

TextWidget ScriptedWidgetEventHandler::m_TotalTimeWidget
protected

Definition at line 17 of file CTKeyframe.c.

◆ m_Twitter

Widget ScriptedWidgetEventHandler::m_Twitter
protected

Definition at line 9 of file MainMenuNewsfeed.c.

◆ m_UID

string ScriptedWidgetEventHandler::m_UID
protected

Definition at line 4 of file PlayerListEntryScriptedWidget.c.

Referenced by GetUID(), and IsLocalPlayer().

◆ m_UiDescLabel

RichTextWidget ScriptedWidgetEventHandler::m_UiDescLabel
protected

Definition at line 20 of file UiHintPanel.c.

◆ m_UiHeadlineLabel

TextWidget ScriptedWidgetEventHandler::m_UiHeadlineLabel
protected

Definition at line 21 of file UiHintPanel.c.

◆ m_UiHintImage

ImageWidget ScriptedWidgetEventHandler::m_UiHintImage
protected

Definition at line 22 of file UiHintPanel.c.

◆ m_UiLeftButton

ButtonWidget ScriptedWidgetEventHandler::m_UiLeftButton
protected

Definition at line 18 of file UiHintPanel.c.

Referenced by OnClick().

◆ m_UiPageingLabel

TextWidget ScriptedWidgetEventHandler::m_UiPageingLabel
protected

Definition at line 23 of file UiHintPanel.c.

◆ m_UiRightButton

ButtonWidget ScriptedWidgetEventHandler::m_UiRightButton
protected

Definition at line 19 of file UiHintPanel.c.

Referenced by OnClick().

◆ m_UseActionWrapper

UAIDWrapper ScriptedWidgetEventHandler::m_UseActionWrapper
protected

Definition at line 12 of file ItemActionsWidget.c.

◆ m_Version

TextWidget ScriptedWidgetEventHandler::m_Version
protected

Definition at line 14 of file ModsMenuDetailedEntry.c.

◆ m_VersionMatchFilter

ref OptionSelector ScriptedWidgetEventHandler::m_VersionMatchFilter
protected

Definition at line 19 of file ServerBrowserFilterContainer.c.

◆ m_VerticalOffset

reference float ScriptedWidgetEventHandler::m_VerticalOffset
private

Definition at line 5 of file SizeToChild.c.

◆ m_VideoWidget

VideoWidget ScriptedWidgetEventHandler::m_VideoWidget
protected

Definition at line 17 of file MainMenuPromo.c.

◆ m_Visible

bool ScriptedWidgetEventHandler::m_Visible
protected

Definition at line 7 of file ObjectFollower.c.

◆ m_VOIPOption

ref NumericOptionsAccess ScriptedWidgetEventHandler::m_VOIPOption
protected

Definition at line 14 of file OptionsMenuSounds.c.

◆ m_VOIPSelector

ref OptionSelectorSlider ScriptedWidgetEventHandler::m_VOIPSelector
protected

Definition at line 21 of file OptionsMenuSounds.c.

◆ m_VOIPThresholdOption

ref NumericOptionsAccess ScriptedWidgetEventHandler::m_VOIPThresholdOption
protected

Definition at line 15 of file OptionsMenuSounds.c.

◆ m_VOIPThresholdSelector

ref OptionSelectorLevelMarker ScriptedWidgetEventHandler::m_VOIPThresholdSelector
protected

Definition at line 22 of file OptionsMenuSounds.c.

◆ m_VonManager

VONManagerBase ScriptedWidgetEventHandler::m_VonManager
protected

Definition at line 30 of file OptionsMenuSounds.c.

◆ m_VSyncOption

ref ListOptionsAccess ScriptedWidgetEventHandler::m_VSyncOption
protected

Definition at line 59 of file OptionsMenuVideo.c.

◆ m_VSyncSelector

ref OptionSelectorMultistate ScriptedWidgetEventHandler::m_VSyncSelector
protected

Definition at line 27 of file OptionsMenuVideo.c.

◆ m_WasMicCapturing

bool ScriptedWidgetEventHandler::m_WasMicCapturing
private

Definition at line 34 of file OptionsMenuSounds.c.

◆ m_Weapon

Weapon_Base ScriptedWidgetEventHandler::m_Weapon
protected

Definition at line 9 of file ProjectedCrosshair.c.

◆ m_WhitelistFilter

ref OptionSelector ScriptedWidgetEventHandler::m_WhitelistFilter
protected

Definition at line 16 of file ServerBrowserFilterContainer.c.

◆ m_widget

Widget ScriptedWidgetEventHandler::m_widget
private

Definition at line 98 of file ProfileOptionsUI.c.

◆ m_widget_array

ref array<Widget> ScriptedWidgetEventHandler::m_widget_array
private

Definition at line 99 of file ProfileOptionsUI.c.

◆ m_Youtube

Widget ScriptedWidgetEventHandler::m_Youtube
protected

Definition at line 10 of file MainMenuNewsfeed.c.

◆ MOD_DISPLAY_COUNT_MAX

const int ScriptedWidgetEventHandler::MOD_DISPLAY_COUNT_MAX = 3
protected

Definition at line 3 of file ModsMenuSimple.c.

◆ RadialBarWidgetName

reference string ScriptedWidgetEventHandler::RadialBarWidgetName
private

Definition at line 3 of file ContinuousActionProgress.c.

◆ SLIDER_STEP

const float ScriptedWidgetEventHandler::SLIDER_STEP = 0.025
staticprotected

Definition at line 69 of file OptionsMenuControls.c.

◆ TEXT_OWNED

const string ScriptedWidgetEventHandler::TEXT_OWNED = "#layout_dlc_owned"
protected

Definition at line 4 of file MainMenuPromo.c.

◆ TEXT_UNOWNED

const string ScriptedWidgetEventHandler::TEXT_UNOWNED = "#layout_dlc_unowned"
protected

Definition at line 5 of file MainMenuPromo.c.


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