DayZ 1.26
DayZ Explorer by KGB
Загрузка...
Поиск...
Не найдено
Класс ActionTargetsCursor
+ Граф наследования:ActionTargetsCursor:

Защищенные члены

void ActionTargetsCursor ()
 
void ~ActionTargetsCursor ()
 
void SetHealthVisibility (bool state)
 
void SetQuantityVisibility (bool state)
 
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 OnWidgetScriptInit (Widget w)
 
void OnInputPresetChanged ()
 
void OnInputDeviceChanged (EInputDeviceType pInputDeviceType)
 
void PrepareCursorContent ()
 
void BuildFixedCursor ()
 
void BuildFloatingCursor (bool forceRebuild)
 
override bool OnUpdate (Widget w)
 
void HideWidget ()
 
void Update ()
 
void ShowXboxHidePCIcons (string widget, bool show_xbox_icon)
 
vector TransformToScreenPos (vector pWorldPos)
 transform world pos to screen pos (related to parent widget size)
 
void GetOnScreenPosition (out float x, out float y)
 
bool IsComponentInSelection (array< Selection > selection, string compName)
 
void GetPlayer ()
 
void GetActionManager ()
 
void GetActions ()
 get actions from Action Manager
 
void GetTarget ()
 
string GetActionDesc (ActionBase action)
 
string GetItemDesc (ActionBase action)
 
int GetItemHealth ()
 
bool GetItemFrozen ()
 
void GetItemQuantity (out int q_type, out float q_cur, out int q_min, out int q_max)
 
void GetItemCargoCount (out int cargoCount)
 returns number of items in cargo for targeted entity
 
void SetItemDesc (string descText, int cargoCount, 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 SetActionWidget (ActionBase action, string descText, string actionWidget, string descWidget)
 
void SetMultipleInteractAction (string multiActionsWidget, string multiActionsWidget_NotSelect)
 shows arrows near the interact action if there are more than one available
 
void SetMultipleContinuousInteractAction (string multiActionsWidget, string multiActionsWidget_NotSelect)
 
void SetMultipleItemAction (string multiActionsWidget, string multiActionsWidget_NotSelect)
 
void SetMultipleContinuousItemAction (string multiActionsWidget, string multiActionsWidget_NotSelect)
 
void SetInteractActionIcon (string actionWidget, string actionIconFrameWidget, string actionIconWidget, string actionIconTextWidget)
 
void CheckRefresherFlagVisibility (Object object)
 
int AttachmentsWithInventoryOrCargoCount (notnull GameInventory inventory)
 
IngameHud GetHud ()
 

Защищенные данные

PlayerBase m_Player
 
ActionTarget m_Target
 
ref ATCCachedObject m_CachedObject
 
Object m_DisplayInteractTarget
 
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
 
 m_SelectedActionCategory
 
bool m_HealthEnabled
 
bool m_QuantityEnabled
 
bool m_FixedOnPosition
 
bool m_Hidden
 
bool m_TargetItemFrozen
 
Widget m_Root
 
Widget m_Container
 
Widget m_ItemLeft
 
float m_MaxWidthChild
 widget width
 
float m_RootWidth
 
float m_RootHeight
 

Закрытые члены

void UpdateControllerInputIcons ()
 Loads icons from the latest keybinds.
 
void UpdatePCIconsVisibility ()
 Contains logic for icon set switching (Gamepad/M&K)
 
- Закрытые члены унаследованные от ScriptedWidgetEventHandler
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)
 
bool GetItemFrozen ()
 
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 UpdateHUDVehicleOption (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 OnVisibilityChanged (int value)
 
void OnObjectVisibilityChanged (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 ServerBrowserDetailsContainer (Widget root, ServerBrowserTab parent)
 
void SetDetails (GetServersResultRow serverInfo, bool online=false)
 
void ClearDetails ()
 
void SetName (string name)
 
void SetType (string shardId)
 
void SetMode (int mode)
 
void SetServerIP (string ip)
 
void SetTimeAcceleration (float timeMul, float nightTimeMul)
 
void SetTimeIcon (string time, float multiplier)
 
void SetBattleyeState (int enabled=-1)
 
void SetVersion (string version)
 
void SetServerDesc (string desc)
 
void SetServerMap (GetServersResultRow serverInfo)
 
void Focus ()
 
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)
 
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)
 
void OnSelect ()
 
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 ServerBrowserFilterContainer (Widget root, ServerBrowserTab parent)
 
array< stringLoadMapFilterOptions ()
 
void OnFilterChanged ()
 
void OnMapFilterChanged ()
 
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 ()
 

Закрытые данные

const ref array< typenameVISION_OBSTRUCTION_PPEFFECTS_TYPES
 
- Закрытые данные унаследованные от ScriptedWidgetEventHandler
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
 
bool m_ItemFrozen
 
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 NumericOptionsAccess m_ControllerLS_DeadZoneOption
 
ref NumericOptionsAccess m_ControllerRS_DeadZoneOption
 
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 OptionSelectorSlider m_ControllerLS_DeadZoneSelector
 
ref OptionSelectorSlider m_ControllerRS_DeadZoneSelector
 
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_ShowHUDVehicleSelector
 
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 OptionSelectorMultistate m_AmbientMusicSelector
 
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_VisibilitySelector
 
ref OptionSelectorMultistate m_ObjectVisibilitySelector
 
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_VisibilityOption
 
ref ListOptionsAccess m_ObjectVisibilityOption
 
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
 
ServerBrowserTab m_Tab
 
TextWidget m_ServerNameText
 
TextWidget m_ServerTypeResult
 
TextWidget m_ServerModeResult
 
TextWidget m_LastCharacterResult
 
TextWidget m_ServerIP
 
TextWidget m_TimeAccelerationResult
 
ImageWidget m_TimeIcon
 
TextWidget m_BattleyeResult
 
WrapSpacerWidget m_VersionContainer
 
TextWidget m_VersionResult
 
GridSpacerWidget m_ServerDecContainer
 
MultilineTextWidget m_ServerDesc
 
WrapSpacerWidget m_DetailsContainerRight
 
ImageWidget m_MapImage
 
ButtonWidget m_BtnShowFilters
 
ButtonWidget m_RefreshList
 
bool m_IsOnline
 
Widget m_Favorite
 
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_ServerAcceleration
 
TextWidget m_ServerMap
 
TextWidget m_ServerMods
 
ButtonWidget m_ServerModsExpand
 
ref array< stringm_Mods
 
Widget m_DetailedInfo
 
bool m_IsFavorited
 
ref GetServersResultRow m_ServerData
 
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 OptionSelectorMultistate m_MapFilter
 
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
 

Дополнительные унаследованные члены

- Закрытые статические данные унаследованные от ScriptedWidgetEventHandler
static bool m_IgnoredBool
 
static ref ContextMenu m_ContextMenuInstance
 
static const float SLIDER_STEP = 0.025
 

Подробное описание

Конструктор(ы)

◆ ActionTargetsCursor()

void ActionTargetsCursor ( )
inlineprotected
95 {
98 m_Single = null;
100 m_AM = null;
101
102 m_HealthEnabled = true;
103 m_QuantityEnabled = true;
104
106 m_Hidden = false;
107 m_TargetItemFrozen = false;
109
110 m_Hud = GetHud();
111
112 m_UseActionWrapper = GetUApi().GetInputByID(UAAction).GetPersistentWrapper();
113
114 GetGame().GetMission().GetOnInputPresetChanged().Insert(OnInputPresetChanged);
115 GetGame().GetMission().GetOnInputDeviceChanged().Insert(OnInputDeviceChanged);
116 }
proto native UAInputAPI GetUApi()
Definition ActionTargetsCursor.c:2
ActionBase m_Interact
Definition ActionTargetsCursor.c:65
void OnInputPresetChanged()
Definition ActionTargetsCursor.c:161
IngameHud GetHud()
Definition ActionTargetsCursor.c:1325
bool m_TargetItemFrozen
Definition ActionTargetsCursor.c:83
UAIDWrapper m_UseActionWrapper
Definition ActionTargetsCursor.c:72
ActionBase m_Continuous
Definition ActionTargetsCursor.c:68
IngameHud m_Hud
Definition ActionTargetsCursor.c:70
Object m_DisplayInteractTarget
Definition ActionTargetsCursor.c:63
void OnInputDeviceChanged(EInputDeviceType pInputDeviceType)
Definition ActionTargetsCursor.c:168
ActionBase m_Single
Definition ActionTargetsCursor.c:67
ActionManagerClient m_AM
Definition ActionTargetsCursor.c:69
bool m_Hidden
Definition ActionTargetsCursor.c:82
ref ATCCachedObject m_CachedObject
Definition ActionTargetsCursor.c:62
ActionBase m_ContinuousInteract
Definition ActionTargetsCursor.c:66
bool m_HealthEnabled
Definition ActionTargetsCursor.c:79
bool m_QuantityEnabled
Definition ActionTargetsCursor.c:80
Definition EntityAI.c:95
proto native CGame GetGame()

Перекрестные ссылки GetGame(), GetHud(), GetUApi(), m_AM, m_CachedObject, m_Continuous, m_ContinuousInteract, m_DisplayInteractTarget, m_HealthEnabled, m_Hidden, m_Hud, m_Interact, m_QuantityEnabled, m_Single, m_TargetItemFrozen, m_UseActionWrapper, OnInputDeviceChanged() и OnInputPresetChanged().

◆ ~ActionTargetsCursor()

void ~ActionTargetsCursor ( )
inlineprotected
118{}

Методы

◆ AttachmentsWithInventoryOrCargoCount()

int AttachmentsWithInventoryOrCargoCount ( notnull GameInventory inventory)
inlineprotected
1303 {
1305
1306 CargoBase cargo = inventory.GetCargo();
1307 if (cargo && cargo.GetItemCount() > 0)
1308 {
1309 return 1;
1310 }
1311
1312 for (int i = 0; i < inventory.AttachmentCount(); i++)
1313 {
1314 EntityAI attachment = inventory.GetAttachmentFromIndex(i);
1315 int attachmentSlotId = attachment.GetInventory().GetSlotId(0);
1316
1317 if (attachment.GetInventory())
1318 {
1320 }
1321 }
1322
represents base for cargo storage for entities
Definition Cargo.c:7
Definition Building.c:6

◆ BuildFixedCursor()

void BuildFixedCursor ( )
inlineprotected
231 {
232 int w, h, x, y;
233
235 GetScreenSize(w, h);
236 x = w/2 + 32;
237 y = h/2 + 32;
238
239 m_Root.SetPos(x, y);
240 }
Icon x
Icon y
Widget m_Root
Definition ActionTargetsCursor.c:85
void PrepareCursorContent()
Definition ActionTargetsCursor.c:196
proto void GetScreenSize(out int x, out int y)

Перекрестные ссылки GetScreenSize(), m_Root, PrepareCursorContent(), x и y.

Используется в Update().

◆ BuildFloatingCursor()

void BuildFloatingCursor ( bool forceRebuild)
inlineprotected

Get OnScreenPos when forced or targeted component differs

in case of cached item, all above is reused except the position

243 {
244 float pos_x, pos_y = 0.0;
245
247
249 if (forceRebuild || m_Target.GetComponentIndex() != m_CachedObject.GetCursorCompIdx())
250 {
252 }
254 else
255 {
257
258 pos_x = screen_pos[0];
259 pos_y = screen_pos[1];
260 }
261
262 pos_x = Math.Ceil(pos_x);
263 pos_y = Math.Ceil(pos_y);
264
265 Widget parentWdg = m_Root.GetParent();
266
267 float screen_w = 0;
268 float screen_h = 0;
269
270 float wdg_w = 0;
271 float wdg_h = 0;
272
273 parentWdg.GetScreenSize(screen_w, screen_h);
274 m_Root.GetSize(wdg_w, wdg_h);
275
276 if (pos_x + wdg_w > screen_w)
277 pos_x = screen_w - wdg_w;
278
279 if (pos_y + wdg_h > screen_h)
280 pos_y = screen_h - wdg_h;
281
282 m_Root.SetPos(pos_x, pos_y);
283 }
ActionTarget m_Target
Definition ActionTargetsCursor.c:61
void GetOnScreenPosition(out float x, out float y)
Definition ActionTargetsCursor.c:471
vector TransformToScreenPos(vector pWorldPos)
transform world pos to screen pos (related to parent widget size)
Definition ActionTargetsCursor.c:454
Definition EnMath.c:7
Definition EnWidgets.c:190
Definition EnConvert.c:106
static proto float Ceil(float f)
Returns ceil of value.

Перекрестные ссылки Math::Ceil(), GetOnScreenPosition(), m_CachedObject, m_Root, m_Target, PrepareCursorContent() и TransformToScreenPos().

Используется в Update().

◆ CheckRefresherFlagVisibility()

void CheckRefresherFlagVisibility ( Object object)
inlineprotected
1293 {
1295 Widget w = m_Root.FindAnyWidget("item_flag_icon");
1296 if (Class.CastTo(entity,object) && w)
1297 {
1298 w.Show(entity.IsRefresherSignalingViable() && m_Player.IsTargetInActiveRefresherRange(entity));
1299 }
PlayerBase m_Player
Definition ActionTargetsCursor.c:60
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.

Перекрестные ссылки Class::CastTo(), m_Player и m_Root.

◆ GetActionDesc()

string GetActionDesc ( ActionBase action)
inlineprotected
762 {
763 string desc = "";
764 if (action && action.GetText())
765 {
766 desc = action.GetText();
767
768 if (desc && action.DisplayTargetInActionText())
769 string extraDescription = action.GetTargetName(m_Player, m_Target);
771 desc = string.Format("%1 (%2)", desc, extraDescription);
772 }
773
774 return desc;

Перекрестные ссылки m_Player и m_Target.

Используется в PrepareCursorContent().

◆ GetActionManager()

void GetActionManager ( )
inlineprotected
690 {
691 if (m_Player && m_Player.IsPlayerSelected())
692 {
693 Class.CastTo(m_AM, m_Player.GetActionManager());
694 }
695 else
696 {
697 m_AM = null;
698 }

Перекрестные ссылки Class::CastTo(), m_AM и m_Player.

Используется в Update().

◆ GetActions()

void GetActions ( )
inlineprotected

get actions from Action Manager

703 {
706 m_Single = null;
708
709 if (!m_AM) return;
710 if (!m_Target) return;
711 if (m_Player.IsSprinting()) return;
712 if (m_Player.IsInVehicle()) return; // TODO: TMP: Car AM rework needed
713
717 m_Continuous = m_AM.GetPossibleAction(ContinuousDefaultActionInput);
718
722 m_ContinuousItemActionsNum = m_AM.GetPossibleActionCount(ContinuousDefaultActionInput);
723
725
726 if (m_Interact)
727 {
729 }
730 else if (m_Single)
731 {
733 }
734 else if (m_ContinuousInteract)
735 {
737 }
738 else
739 {
741 }
Object GetDisplayInteractObject(PlayerBase player, ActionTarget target)
Definition ActionBase.c:236
ActionBase GetPossibleAction(typename inputType)
Definition ActionManagerClient.c:391
override GetSelectedActionCategory()
Definition ActionManagerClient.c:794
int GetPossibleActionCount(typename inputType)
Definition ActionManagerClient.c:421
int m_InteractActionsNum
Definition ActionTargetsCursor.c:74
int m_ContinuousItemActionsNum
Definition ActionTargetsCursor.c:77
m_SelectedActionCategory
Definition ActionTargetsCursor.c:78
int m_ItemActionsNum
Definition ActionTargetsCursor.c:76
int m_ContinuousInteractActionsNum
Definition ActionTargetsCursor.c:75
Definition ActionInput.c:522
Definition ActionInput.c:631
Definition ActionInput.c:535

Используется в Update().

◆ GetHud()

IngameHud GetHud ( )
inlineprotected
1327 {
1328 Mission mission = GetGame().GetMission();
1329 if (mission)
1330 {
1331 IngameHud hud = IngameHud.Cast(mission.GetHud());
1332 return hud;
1333 }
1334
1335 return null;
Mission mission
Definition DisplayStatus.c:28
Mission class.
Definition gameplay.c:681
Hud GetHud()
Definition gameplay.c:715

Перекрестные ссылки GetGame(), Mission::GetHud() и mission.

Используется в ActionTargetsCursor().

◆ GetItemCargoCount()

void GetItemCargoCount ( out int cargoCount)
inlineprotected

returns number of items in cargo for targeted entity

default cargo count

988 {
990
992 if (!tgObject && m_Target)
993 {
994 tgObject = m_Target.GetObject();
995 }
996
998 {
999
1000 GameInventory inventory = entity.GetInventory();
1001 if (inventory)
1002 {
1004 return;
1005 }
1006
1008 cargoCount = 0;
1009 }
int AttachmentsWithInventoryOrCargoCount(notnull GameInventory inventory)
Definition ActionTargetsCursor.c:1301
script counterpart to engine's class Inventory
Definition Inventory.c:79
Definition ObjectTyped.c:2

Используется в PrepareCursorContent().

◆ GetItemDesc()

string GetItemDesc ( ActionBase action)
inlineprotected
779 {
780 string desc = "";
782 if (!tgObject && m_Target)
783 {
784 tgObject = m_Target.GetObject();
785 }
786
787 if (tgObject)
788 {
789 //BreakOut if item is ruined
790 Object tgParent = m_Target.GetParent();
791 if (!tgObject.IsAlive())
792 {
793 //Fetch parent item name if one is present
794 if (!tgParent || tgObject.DisplayNameRuinAttach())
795 desc = tgObject.GetDisplayName();
796 else
797 desc = tgParent.GetDisplayName();
798 return desc;
799 }
800
802
803 if (tgParent && (tgParent.IsItemBase() || tgParent.IsTransport()))
804 {
806 }
807
808 if (tgObject.IsItemBase() || tgObject.IsTransport())
809 {
811 }
812
813 if (targetEntity && targetEntity.ShowZonesHealth())
814 {
815 string zone = "";
816
818
819 //NOTE: relevant fire geometry and view geometry selection names MUST match in order to get a valid damage zone
820 if (targetEntity.IsInherited(TentBase) && TentBase.Cast(targetEntity).GetState() != TentBase.PACKED)
821 {
822 //This is really specific to tents, as they use proxies. Hence object must be used
823 if (DamageSystem.GetDamageZoneFromComponentName(targetEntity, tgObject.GetActionComponentName(m_Target.GetComponentIndex(), LOD.NAME_FIRE), zone))
824 {
825 desc = DamageSystem.GetDamageDisplayName(targetEntity, zone);
826 }
827 }
828 else
829 {
830 targetEntity.GetActionComponentNameList(m_Target.GetComponentIndex(), selections, LOD.NAME_VIEW);
831
832 //Important to get display name from component tied to multiple selections
833 for (int s = 0; s < selections.Count(); s++)
834 {
835 if (DamageSystem.GetDamageZoneFromComponentName(targetEntity, selections[s], zone))
836 {
837 desc = DamageSystem.GetDamageDisplayName(targetEntity, zone);
838 }
839 }
840 }
841 }
842
843 //Safety check to output something to widget
844 if (targetEntity && desc == "")
845 desc = targetEntity.GetDisplayName();
846 }
847
848 return desc;
LOD class.
Definition gameplay.c:203
static const string NAME_FIRE
Definition gameplay.c:207
static const string NAME_VIEW
Definition gameplay.c:206
Definition CarTent.c:2

Перекрестные ссылки m_DisplayInteractTarget, m_Target, LOD::NAME_FIRE и LOD::NAME_VIEW.

Используется в PrepareCursorContent().

◆ GetItemFrozen()

bool GetItemFrozen ( )
inlineprotected
937 {
939 if (!tgObject && m_Target)
940 tgObject = m_Target.GetObject();
941
942 if (tgObject)
943 {
944 Object tgParent = m_Target.GetParent();
946
947 if (tgParent && (tgParent.IsItemBase() || tgParent.IsTransport()))
948 {
950 }
951
952 if (tgObject.IsItemBase() || tgObject.IsTransport())
953 {
955 }
956
957 return (targetEntity && targetEntity.GetIsFrozen());
958 }
959
960 return false;

Перекрестные ссылки m_DisplayInteractTarget и m_Target.

Используется в PrepareCursorContent().

◆ GetItemHealth()

int GetItemHealth ( )
inlineprotected
852 {
853 int health = -1;
854
856 {
857 return health;
858 }
859
861 if (!tgObject && m_Target)
862 {
863 tgObject = m_Target.GetObject();
864 }
865
866 if (tgObject)
867 {
868 Object tgParent = m_Target.GetParent();
870
871 //Return specific part health, even if display name is from parent
872 if (!tgObject.IsAlive())
873 {
875 if (m_TargetItemFrozen && Class.CastTo(ent,tgObject) && (ent.IsAnimal() || ent.IsMan() || ent.IsZombie()))
876 health = -2; //frozen interaction later
877 else
878 health = tgObject.GetHealthLevel();
879
880 return health;
881 }
882
883 if (tgParent && (tgParent.IsItemBase() || tgParent.IsTransport()))
884 {
886 }
887
888 if (tgObject.IsItemBase() || tgObject.IsTransport())
889 {
891 }
892
893 if (targetEntity)
894 {
895 if (!targetEntity.IsDamageDestroyed())
896 {
897 string zone = "";
899
900 if (targetEntity.IsInherited(TentBase) && TentBase.Cast(targetEntity).GetState() != TentBase.PACKED)
901 {
902 //This is really specific to tents, as they use proxies. Hence object must be used
903 if (DamageSystem.GetDamageZoneFromComponentName(targetEntity, tgObject.GetActionComponentName(m_Target.GetComponentIndex(), LOD.NAME_FIRE), zone))
904 {
905 health = targetEntity.GetHealthLevel(zone);
906 }
907 }
908 else
909 {
910 //NOTE: relevant view geometry and view geometry selection names MUST match in order to get a valid damage zone
911 targetEntity.GetActionComponentNameList(m_Target.GetComponentIndex(), selections, LOD.NAME_VIEW);
912
913 for (int s = 0; s < selections.Count(); s++)
914 {
915 if (DamageSystem.GetDamageZoneFromComponentName(targetEntity , selections[s], zone))
916 {
917 health = targetEntity.GetHealthLevel(zone);
918 break;
919 }
920 }
921 }
922
923 if (zone == "")
924 health = targetEntity.GetHealthLevel();
925 }
926 }
927 else
928 {
929 health = tgObject.GetHealthLevel();
930 }
931 }
932
933 return health;
bool HasTarget()
Definition ActionBase.c:244

Перекрестные ссылки Class::CastTo(), ActionBase::HasTarget(), m_DisplayInteractTarget, m_Interact, m_Target, m_TargetItemFrozen, LOD::NAME_FIRE и LOD::NAME_VIEW.

Используется в PrepareCursorContent().

◆ GetItemQuantity()

void GetItemQuantity ( out int q_type,
out float q_cur,
out int q_min,
out int q_max )
inlineprotected
964 {
966
968 {
969 return;
970 }
971
973 if (!tgObject && m_Target)
974 {
975 tgObject = m_Target.GetObject();
976 }
977
979 {
981 if (q_type > 0)
983 }
Definition ItemBase.c:15
Definition QuantityConversions.c:2
static int HasItemQuantity(notnull EntityAI item)
Definition QuantityConversions.c:143
static float GetItemQuantity(InventoryItem item)
Definition QuantityConversions.c:72

Перекрестные ссылки Class::CastTo(), QuantityConversions::GetItemQuantity(), QuantityConversions::HasItemQuantity(), ActionBase::HasTarget(), m_DisplayInteractTarget, m_Interact и m_Target.

Используется в PrepareCursorContent().

◆ GetOnScreenPosition()

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

kept for backward compatibility

Get memory LOD from p3d

save selection from memory lod

cache current object and the widget world pos

doors/handles

single vertex in selection

multiple vertices in selection

cache current object and the widget world pos

do not store component index for doors/handles

ladders handling

cache current object and the widget world pos

do not store component index for ladders

473 {
474 const float DEFAULT_HANDLE_OFFSET = 0.2;
475 const string CE_CENTER_COMP_NAME = "ce_center";
476 const string MEM_LOD_NAME = LOD.NAME_MEMORY;
477
478 int compIdx;
479 float pivotOffset = 0.0;
480 float memOffset = 0.0;
481 string compName;
482
483 bool isTargetForced = false;
484
487
488 LOD lod;
489
491 array<string> components = new array<string>; // for components with multiple selection
492
494
495 if (m_Target)
496 {
497 object = m_Target.GetObject();
498 compIdx = m_Target.GetComponentIndex();
499
500 if (m_Target.GetCursorHitPos() == vector.Zero)
501 isTargetForced = true;
502 }
503 else
504 {
505 return;
506 }
507
508 if (object)
509 {
510 if (!isTargetForced)
511 {
512 compName = object.GetActionComponentName(compIdx);
513 object.GetActionComponentNameList(compIdx, components);
514
515 if (!object.IsInventoryItem() && (object.HasFixedActionTargetCursorPosition() || object.GetActionComponentNameList(compIdx, components) == 0))
516 {
517 m_FixedOnPosition = true;
518 return;
519 }
520
521 pivotOffset = object.ConfigGetFloat("actionTargetPivotOffsetY");
522 memOffset = object.ConfigGetFloat("actionTargetMemOffsetY");
523
525 lod = object.GetLODByName(MEM_LOD_NAME);
526 if (lod != null)
527 {
529 lod.GetSelections(memSelections);
530
531 // items with CE_Center mem point
532 if (MiscGameplayFunctions.IsComponentInSelection(memSelections, CE_CENTER_COMP_NAME))
533 {
534 for (int i2 = 0; i2 < memSelections.Count(); ++i2)
535 {
536 if (memSelections[i2].GetName() == CE_CENTER_COMP_NAME && memSelections[i2].GetVertexCount() == 1)
537 {
538 m_FixedOnPosition = false;
539 modelPos = object.GetSelectionPositionMS(CE_CENTER_COMP_NAME);
540 worldPos = object.ModelToWorld(modelPos);
541 if (memOffset != 0.0)
542 {
543 worldPos[1] = worldPos[1] + memOffset;
544 }
545 else
546 {
548 }
549 }
550 }
551
553 m_CachedObject.Store(object, worldPos, compIdx);
554 }
556 else if (!compName.Contains("ladder") && IsComponentInSelection(memSelections, compName))
557 {
558 for (int i1 = 0; i1 < memSelections.Count(); ++i1)
559 {
561 if (memSelections[i1].GetName() == compName && memSelections[i1].GetVertexCount() == 1)
562 {
563 modelPos = object.GetSelectionPositionMS(compName);
564 worldPos = object.ModelToWorld(modelPos);
565
566 m_FixedOnPosition = false;
567 if (object.GetType() == "Fence" || object.GetType() == "Watchttower" || object.GetType() == "GardenPlot")
568 m_FixedOnPosition = true;
569
570 if (memOffset != 0.0)
571 {
572 worldPos[1] = worldPos[1] + memOffset;
573 }
574 else
575 {
577 }
578 }
579
581 if (memSelections[i1].GetName() == compName && memSelections[i1].GetVertexCount() > 1)
582 {
583 for (int j = 0; j < components.Count(); ++j)
584 {
586 {
587 modelPos = object.GetSelectionPositionMS(components[j]);
588 worldPos = object.ModelToWorld(modelPos);
589
590 m_FixedOnPosition = false;
591 if (memOffset != 0.0)
592 {
593 worldPos[1] = worldPos[1] + memOffset;
594 }
595 else
596 {
598 }
599 }
600 }
601 }
602 }
603
605 m_CachedObject.Store(object, worldPos, -1);
606 }
608 else if (compName.Contains("ladder") && IsComponentInSelection(memSelections, compName))
609 {
612 float lastDistance = 0;
613
614 for (int i3 = 0; i3 < memSelections.Count(); ++i3)
615 {
616 if (memSelections[i3].GetName() == compName && memSelections[i3].GetVertexCount() > 1)
617 {
618 ladderHandlePointLS = memSelections[i3].GetVertexPosition(lod, 0);
619 ladderHandlePointWS = object.ModelToWorld(ladderHandlePointLS);
622
623 for (int k = 1; k < memSelections[i3].GetVertexCount(); ++k)
624 {
625 ladderHandlePointLS = memSelections[i3].GetVertexPosition(lod, k);
626 ladderHandlePointWS = object.ModelToWorld(ladderHandlePointLS);
627
629 {
632 }
633 }
634
635 m_FixedOnPosition = false;
637 if (memOffset != 0.0)
638 {
639 worldPos[1] = worldPos[1] + memOffset;
640 }
641 else
642 {
644 }
645 }
646 }
647
649 m_CachedObject.Store(object, worldPos, -1);
650 }
651 else
652 {
653 m_FixedOnPosition = true;
654 }
655 }
656 else
657 {
658 m_FixedOnPosition = true;
659 }
660 }
661 else
662 {
663 m_FixedOnPosition = true;
664 }
665
667
668 x = pos[0];
669 y = pos[1];
670 }
671
673 isTargetForced = false;
eBleedingSourceType GetType()
Definition BleedingSource.c:63
override bool HasFixedActionTargetCursorPosition()
Definition DayZAnimal.c:120
bool IsComponentInSelection(array< Selection > selection, string compName)
Definition ActionTargetsCursor.c:676
bool m_FixedOnPosition
Definition ActionTargetsCursor.c:81
static const string NAME_MEMORY
Definition gameplay.c:208
static const vector Zero
Definition EnConvert.c:110
static proto native float DistanceSq(vector v1, vector v2)
Returns the square distance between tips of two 3D vectors.
static proto float AbsFloat(float f)
Returns absolute value.
proto native owned string GetName()
Definition SyncedValue.c:119

Перекрестные ссылки Math::AbsFloat(), vector::DistanceSq(), GetName(), GetType(), HasFixedActionTargetCursorPosition(), IsComponentInSelection(), m_CachedObject, m_FixedOnPosition, m_Player, m_Target, LOD::NAME_MEMORY, TransformToScreenPos(), x, y и vector::Zero.

Используется в BuildFloatingCursor().

◆ GetPlayer()

void GetPlayer ( )
inlineprotected
685 {
void GetPlayer()
Definition ActionTargetsCursor.c:683

Перекрестные ссылки Class::CastTo(), GetGame(), GetPlayer() и m_Player.

Используется в GetPlayer() и Update().

◆ GetTarget()

void GetTarget ( )
inlineprotected
745 {
746 if (!m_AM)
747 return;
748
750 if (m_Target && m_Target.GetObject() && m_Target.GetObject().IsItemBase())
751 {
752 ItemBase item = ItemBase.Cast(m_Target.GetObject());
754 item.GetInventory().GetCurrentInventoryLocation(invLocation);
755
756 if ((!item.IsTakeable() && !item.IsActionTargetVisible()) || (m_Player && m_Player.IsInVehicle()) || invLocation.GetType() != InventoryLocationType.GROUND)
757 m_Hidden = true;
758 }
InventoryLocationType
types of Inventory Location
Definition InventoryLocation.c:4
override ActionTarget FindActionTarget()
Definition ActionManagerClient.c:474
InventoryLocation.
Definition InventoryLocation.c:29
Definition InventoryItem.c:731

Перекрестные ссылки ActionManagerClient::FindActionTarget(), m_AM, m_Hidden, m_Player и m_Target.

Используется в Update().

◆ HideWidget()

void HideWidget ( )
inlineprotected
297 {
298 if (m_Root.IsVisible())
299 {
300 m_Root.Show(false);
301 m_CachedObject.Invalidate();
302 }
303 }

Перекрестные ссылки m_CachedObject и m_Root.

Используется в Update().

◆ IsComponentInSelection()

bool IsComponentInSelection ( array< Selection > selection,
string compName )
inlineprotected
678 {
679 return MiscGameplayFunctions.IsComponentInSelection(selection, compName);

Используется в GetOnScreenPosition().

◆ OnInputDeviceChanged()

void OnInputDeviceChanged ( EInputDeviceType pInputDeviceType)
inlineprotected
169 {
171 }
void UpdatePCIconsVisibility()
Contains logic for icon set switching (Gamepad/M&K)
Definition ActionTargetsCursor.c:183

Перекрестные ссылки UpdatePCIconsVisibility().

Используется в ActionTargetsCursor().

◆ OnInputPresetChanged()

void OnInputPresetChanged ( )
inlineprotected
162 {
163 #ifdef PLATFORM_CONSOLE
165 #endif
166 }
void UpdateControllerInputIcons()
Loads icons from the latest keybinds.
Definition ActionTargetsCursor.c:174

Перекрестные ссылки UpdateControllerInputIcons().

Используется в ActionTargetsCursor().

◆ OnUpdate()

override bool OnUpdate ( Widget w)
inlineprotected
286 {
287 if (m_Root == w)
288 {
289 Update();
290 return true;
291 }
292
293 return false;
294 }
void Update()
Definition ActionTargetsCursor.c:305

Перекрестные ссылки m_Root и Update().

◆ OnWidgetScriptInit()

void OnWidgetScriptInit ( Widget w)
inlineprotected

UA -> widget icon

146 {
147 m_Root = w;
148 m_Root.Show(false);
149 m_Root.SetHandler(this);
150
154
155 m_Container = w.FindAnyWidget("container");
156 m_ItemLeft = w.FindAnyWidget("item_left");
157
158 m_Root.Update();
159 }
Widget m_ItemLeft
Definition ActionTargetsCursor.c:87
Widget m_Container
Definition ActionTargetsCursor.c:86

Перекрестные ссылки m_Container, m_ItemLeft, m_Root, UpdateControllerInputIcons() и UpdatePCIconsVisibility().

◆ PrepareCursorContent()

void PrepareCursorContent ( )
inlineprotected

item health

quantity

cargo in item

fill the widget with data

197 {
198 m_TargetItemFrozen = false;
199 int health = -1;
200 int cargoCount = 0;
201 int q_type = 0;
202 int q_min, q_max = -1;
203 float q_cur = -1.0;
204
208 SetItemHealth(health, "item", "item_health_mark", m_HealthEnabled);
214 SetItemQuantity(q_type, q_cur, q_min, q_max, "item", "item_quantity_pb", "item_quantity_text", m_QuantityEnabled);
215 SetInteractActionIcon("interact", "interact_icon_frame", "interact_btn_inner_icon", "interact_btn_text");
216 SetItemDesc(GetItemDesc(m_Interact), cargoCount, "item", "item_desc");
217 SetActionWidget(m_Interact, GetActionDesc(m_Interact), "interact", "interact_action_name");
218
219 SetInteractActionIcon("continuous_interact", "continuous_interact_icon_frame", "continuous_interact_btn_inner_icon", "continuous_interact_btn_text");
220 SetActionWidget(m_ContinuousInteract, GetActionDesc(m_ContinuousInteract), "continuous_interact", "continuous_interact_action_name");
221
222 SetActionWidget(m_Single, GetActionDesc(m_Single), "single", "single_action_name");
223 SetActionWidget(m_Continuous, GetActionDesc(m_Continuous), "continuous", "continuous_action_name");
224 SetMultipleItemAction("single_mlt_wrapper", "single_mlt_wrapper_not_select");
225 SetMultipleContinuousItemAction("continuous_mlt_wrapper", "continuous_mlt_wrapper_not_select");
226 SetMultipleInteractAction("interact_mlt_wrapper", "interact_mlt_wrapper_not_select");
227 SetMultipleContinuousInteractAction("continuous_interact_mlt_wrapper", "continuous_interact_mlt_wrapper_not_select");
228 }
void GetItemQuantity(out int q_type, out float q_cur, out int q_min, out int q_max)
Definition ActionTargetsCursor.c:962
void SetInteractActionIcon(string actionWidget, string actionIconFrameWidget, string actionIconWidget, string actionIconTextWidget)
Definition ActionTargetsCursor.c:1273
void SetItemHealth(int health, string itemWidget, string healthWidget, bool enabled)
Definition ActionTargetsCursor.c:1042
string GetActionDesc(ActionBase action)
Definition ActionTargetsCursor.c:760
void SetMultipleItemAction(string multiActionsWidget, string multiActionsWidget_NotSelect)
Definition ActionTargetsCursor.c:1219
void SetItemDesc(string descText, int cargoCount, string itemWidget, string descWidget)
Definition ActionTargetsCursor.c:1012
void SetMultipleContinuousItemAction(string multiActionsWidget, string multiActionsWidget_NotSelect)
Definition ActionTargetsCursor.c:1246
void SetMultipleInteractAction(string multiActionsWidget, string multiActionsWidget_NotSelect)
shows arrows near the interact action if there are more than one available
Definition ActionTargetsCursor.c:1164
string GetItemDesc(ActionBase action)
Definition ActionTargetsCursor.c:777
void SetItemQuantity(int type, float current, int min, int max, string itemWidget, string quantityPBWidget, string quantityTextWidget, bool enabled)
Definition ActionTargetsCursor.c:1072
bool GetItemFrozen()
Definition ActionTargetsCursor.c:935
void SetMultipleContinuousInteractAction(string multiActionsWidget, string multiActionsWidget_NotSelect)
Definition ActionTargetsCursor.c:1191
void GetItemCargoCount(out int cargoCount)
returns number of items in cargo for targeted entity
Definition ActionTargetsCursor.c:986
int GetItemHealth()
Definition ActionTargetsCursor.c:850
void SetActionWidget(ActionBase action, string descText, string actionWidget, string descWidget)
Definition ActionTargetsCursor.c:1124

Перекрестные ссылки GetActionDesc(), GetItemCargoCount(), GetItemDesc(), GetItemFrozen(), GetItemHealth(), GetItemQuantity(), m_Continuous, m_ContinuousInteract, m_HealthEnabled, m_Interact, m_QuantityEnabled, m_Single, m_TargetItemFrozen, SetActionWidget(), SetInteractActionIcon(), SetItemDesc(), SetItemHealth(), SetItemQuantity(), SetMultipleContinuousInteractAction(), SetMultipleContinuousItemAction(), SetMultipleInteractAction() и SetMultipleItemAction().

Используется в BuildFixedCursor() и BuildFloatingCursor().

◆ SetActionWidget()

void SetActionWidget ( ActionBase action,
string descText,
string actionWidget,
string descWidget )
inlineprotected
1126 {
1127 Widget widget = m_Root.FindAnyWidget(actionWidget);
1128
1129 if (action)
1130 {
1131 if (action.HasTarget() && m_AM.GetActionState() < 1) // targeted & action not performing
1132 {
1134 Class.CastTo(actionName, widget.FindAnyWidget(descWidget));
1135
1136 if (action.GetInput().GetInputType() == ActionInputType.AIT_CONTINUOUS)
1137 {
1138 descText = descText + " " + "#action_target_cursor_hold";
1139 actionName.SetText(descText);
1140 }
1141 else
1142 {
1143 actionName.SetText(descText);
1144 }
1145
1146 widget.Show(true);
1147
1148 int x, y;
1149 actionName.GetTextSize(x, y);
1150 if (x > m_MaxWidthChild);
1152 }
1153 else
1154 {
1155 widget.Show(false);
1156 }
1157 }
1158 else
1159 {
1160 widget.Show(false);
1161 }
ActionInputType
Definition ActionInput.c:2
float m_MaxWidthChild
widget width
Definition ActionTargetsCursor.c:90
Definition EnWidgets.c:220

Перекрестные ссылки Class::CastTo(), m_AM, m_MaxWidthChild, m_Root, x и y.

Используется в PrepareCursorContent().

◆ SetContinuousInteractXboxIcon()

void SetContinuousInteractXboxIcon ( string imageset_name,
string image_name )
protected

◆ SetContinuousXboxIcon()

void SetContinuousXboxIcon ( string imageset_name,
string image_name )
protected

◆ SetControllerIcon()

void SetControllerIcon ( string pWidgetName,
string pInputName )
inlineprotected

140 {
141 RichTextWidget w = RichTextWidget.Cast(m_Root.FindAnyWidget(pWidgetName + "_btn_icon_xbox"));
143 }
Definition InputUtils.c:2
static string GetRichtextButtonIconFromInputAction(notnull UAInput pInput, string pLocalizedDescription, int pInputDeviceType=EUAINPUT_DEVICE_CONTROLLER, float pScale=ICON_SCALE_NORMAL, bool pVertical=false)
Definition InputUtils.c:167
Definition gameplay.c:316

Перекрестные ссылки InputUtils::GetRichtextButtonIconFromInputAction() и m_Root.

Используется в UpdateControllerInputIcons().

◆ SetHealthVisibility()

void SetHealthVisibility ( bool state)
inlineprotected
122 {
124 }

Перекрестные ссылки m_HealthEnabled.

◆ SetInteractActionIcon()

void SetInteractActionIcon ( string actionWidget,
string actionIconFrameWidget,
string actionIconWidget,
string actionIconTextWidget )
inlineprotected
1275 {
1276 Widget widget;
1279
1280 widget = m_Root.FindAnyWidget(actionWidget);
1283
1284 GetDayZGame().GetBacklit().HintShow(m_UseActionWrapper.InputP());
1285
1286 // uses text in floating widget
1287 iconWidget.Show(false);
1288 textWidget.SetText(InputUtils.GetButtonNameFromInput("UAAction", EInputDeviceType.MOUSE_AND_KEYBOARD));
1289 textWidget.Show(true);
DayZGame GetDayZGame()
Definition DayZGame.c:3817
static string GetButtonNameFromInput(string pInputName, int pInputDeviceType)
Definition InputUtils.c:17
proto native UAInput InputP()
EInputDeviceType
Definition input.c:3

Перекрестные ссылки Class::CastTo(), InputUtils::GetButtonNameFromInput(), GetDayZGame(), UAIDWrapper::InputP(), m_Root и m_UseActionWrapper.

Используется в PrepareCursorContent().

◆ SetInteractXboxIcon()

void SetInteractXboxIcon ( string imageset_name,
string image_name )
protected

DEPRECATED.

◆ SetItemDesc()

void SetItemDesc ( string descText,
int cargoCount,
string itemWidget,
string descWidget )
inlineprotected

Last message from finished User Action on target (Thermometer, Blood Test Kit, etc.)

when cargo in container

1014 {
1015 Widget widget;
1016 widget = m_Root.FindAnyWidget(itemWidget);
1017
1019 PlayerBase playerT = PlayerBase.Cast(m_Target.GetObject());
1020 if (playerT)
1021 string msg = playerT.GetLastUAMessage();
1022
1023 if (descText.Length() == 0 && msg.Length() == 0)
1024 {
1025 widget.Show(false);
1026 return;
1027 }
1028
1029 descText.ToUpper();
1031 Class.CastTo(itemName, widget.FindAnyWidget(descWidget));
1032
1034 if (cargoCount > 0)
1035 descText = string.Format("[+] %1 %2", descText, msg);
1036 else
1037 descText = string.Format("%1 %2", descText, msg);
1038
1039 itemName.SetText(descText);
1040 widget.Show(true);
Definition PlayerBaseClient.c:2

Перекрестные ссылки Class::CastTo(), m_Root и m_Target.

Используется в PrepareCursorContent().

◆ SetItemHealth()

void SetItemHealth ( int health,
string itemWidget,
string healthWidget,
bool enabled )
inlineprotected
1044 {
1045 Widget widget = m_Root.FindAnyWidget(itemWidget);
1046
1047 if (enabled)
1048 {
1050 Class.CastTo(healthMark, widget.FindAnyWidget(healthWidget));
1051
1052 if (health == -1)
1053 {
1054 healthMark.GetParent().Show(false);
1055 widget.Show(enabled);
1056 return;
1057 }
1058
1059 int color = 0x00FFFFFF;
1062 else
1064
1065 healthMark.SetColor(color);
1066 healthMark.SetAlpha(0.5);
1067 healthMark.GetParent().Show(true);
1068 }
1069
1070 widget.Show(enabled);
Definition Colors.c:4
const int COLOR_FROZEN
Definition Colors.c:42
Definition constants.c:638
Definition ItemManager.c:2
static int GetItemHealthColor(int pHealthLevel)
Definition ItemManager.c:410
const int STATE_RUINED
Definition constants.c:807

Перекрестные ссылки Class::CastTo(), Colors::COLOR_FROZEN, ItemManager::GetItemHealthColor(), m_Root, m_TargetItemFrozen и GameConstants::STATE_RUINED.

Используется в PrepareCursorContent().

◆ SetItemQuantity()

void SetItemQuantity ( int type,
float current,
int min,
int max,
string itemWidget,
string quantityPBWidget,
string quantityTextWidget,
bool enabled )
inlineprotected
1074 {
1075 Widget widget;
1076
1077 widget = m_Root.FindAnyWidget(itemWidget);
1078
1079 if (enabled)
1080 {
1085
1086 //check for volume vs. count and display progressbar or "bubble" with exact count/max text
1087 switch (type)
1088 {
1089 case QUANTITY_HIDDEN :
1090 progressBar.Show(false);
1091 textWidget.Show(false);
1092 textWidget.GetParent().Show(false);
1093 break;
1094 case QUANTITY_COUNT :
1095 if (max > 1 || current > 1)
1096 {
1097 string qty_text = string.Format("%1/%2", Math.Round(current).ToString(), max.ToString());
1098 progressBar.Show(false);
1099 textWidget.SetText(qty_text);
1100 textWidget.Show(true);
1101 textWidget.GetParent().Show(true);
1102 }
1103 else
1104 {
1105 progressBar.Show(false);
1106 textWidget.Show(false);
1107 textWidget.GetParent().Show(false);
1108 }
1109 break;
1110 case QUANTITY_PROGRESS :
1111 float qty_num = Math.Round((current / max) * 100);
1112
1113 textWidget.Show(false);
1114 progressBar.SetCurrent(qty_num);
1115 progressBar.Show(true);
1116 textWidget.GetParent().Show(true);
1117 break;
1118 }
1119 widget.Show(true);
1120 }
1121 else
1122 widget.Show(false);
const int QUANTITY_PROGRESS
Definition constants.c:495
const int QUANTITY_COUNT
Definition constants.c:494
const int QUANTITY_HIDDEN
Definition constants.c:493
static proto float Round(float f)
Returns mathematical round of value.

Перекрестные ссылки Class::CastTo(), m_Root, QUANTITY_COUNT, QUANTITY_HIDDEN, QUANTITY_PROGRESS и Math::Round().

Используется в PrepareCursorContent().

◆ SetMultipleContinuousInteractAction()

void SetMultipleContinuousInteractAction ( string multiActionsWidget,
string multiActionsWidget_NotSelect )
inlineprotected
1193 {
1195
1196 widget = m_Root.FindAnyWidget(multiActionsWidget);
1198
1200 {
1202 {
1203 widget.Show(true);
1204 widget_not_select.Show(false);
1205 }
1206 else
1207 {
1208 widget.Show(false);
1209 widget_not_select.Show(true);
1210 }
1211 }
1212 else
1213 {
1214 widget.Show(false);
1215 widget_not_select.Show(false);
1216 }
1217

Перекрестные ссылки m_ContinuousInteractActionsNum, m_Root и m_SelectedActionCategory.

Используется в PrepareCursorContent().

◆ SetMultipleContinuousItemAction()

void SetMultipleContinuousItemAction ( string multiActionsWidget,
string multiActionsWidget_NotSelect )
inlineprotected
1248 {
1250
1251 widget = m_Root.FindAnyWidget(multiActionsWidget);
1253
1255 {
1256 if (m_SelectedActionCategory == ContinuousDefaultActionInput)
1257 {
1258 widget.Show(true);
1259 widget_not_select.Show(false);
1260 }
1261 else
1262 {
1263 widget.Show(false);
1264 widget_not_select.Show(true);
1265 }
1266 }
1267 else
1268 {
1269 widget.Show(false);
1270 widget_not_select.Show(false);
1271 }

Перекрестные ссылки m_ContinuousItemActionsNum, m_Root и m_SelectedActionCategory.

Используется в PrepareCursorContent().

◆ SetMultipleInteractAction()

void SetMultipleInteractAction ( string multiActionsWidget,
string multiActionsWidget_NotSelect )
inlineprotected

shows arrows near the interact action if there are more than one available

1166 {
1168
1169 widget = m_Root.FindAnyWidget(multiActionsWidget);
1171
1172 if (m_InteractActionsNum > 1)
1173 {
1175 {
1176 widget.Show(true);
1177 widget_not_select.Show(false);
1178 }
1179 else
1180 {
1181 widget.Show(false);
1182 widget_not_select.Show(true);
1183 }
1184 }
1185 else
1186 {
1187 widget.Show(false);
1188 widget_not_select.Show(false);
1189 }

Используется в PrepareCursorContent().

◆ SetMultipleItemAction()

void SetMultipleItemAction ( string multiActionsWidget,
string multiActionsWidget_NotSelect )
inlineprotected
1221 {
1223
1224 widget = m_Root.FindAnyWidget(multiActionsWidget);
1226
1227 if (m_ItemActionsNum > 1)
1228 {
1230 {
1231 widget.Show(true);
1232 widget_not_select.Show(false);
1233 }
1234 else
1235 {
1236 widget.Show(false);
1237 widget_not_select.Show(true);
1238 }
1239 }
1240 else
1241 {
1242 widget.Show(false);
1243 widget_not_select.Show(false);
1244 }

Перекрестные ссылки m_ItemActionsNum, m_Root и m_SelectedActionCategory.

Используется в PrepareCursorContent().

◆ SetQuantityVisibility()

void SetQuantityVisibility ( bool state)
inlineprotected
127 {
129 }

Перекрестные ссылки m_QuantityEnabled.

◆ SetSingleXboxIcon()

void SetSingleXboxIcon ( string imageset_name,
string image_name )
protected

◆ SetXboxIcon()

void SetXboxIcon ( string name,
string imageset_name,
string image_name )
protected

◆ ShowXboxHidePCIcons()

void ShowXboxHidePCIcons ( string widget,
bool show_xbox_icon )
inlineprotected
448 {
449 m_Root.FindAnyWidget(widget + "_btn_icon_xbox").Show(show_xbox_icon);
450 m_Root.FindAnyWidget(widget + "_btn_icon").Show(!show_xbox_icon);

Перекрестные ссылки m_Root.

Используется в UpdatePCIconsVisibility().

◆ TransformToScreenPos()

vector TransformToScreenPos ( vector pWorldPos)
inlineprotected

transform world pos to screen pos (related to parent widget size)

get relative pos for screen from world pos vector

get size of parent widget

calculate corrent position from relative pos and parent widget size

456 {
459
461 screen_pos = GetGame().GetScreenPosRelative(pWorldPos);
463 m_Root.GetParent().GetScreenSize(parent_width, parent_height);
464
468
469 return transformed_pos;

Используется в BuildFloatingCursor() и GetOnScreenPosition().

◆ Update()

void Update ( )
inlineprotected

don't show floating widget if it's disabled in profile or the player is unconscious

check if action has target, otherwise don't show the widget

cursor with fixed position (environment interaction mainly)

build cursor for new target

use cached version for known target - recalculate onscreen pos only

306 {
307 if (m_Player && !m_Player.IsAlive()) // handle respawn
308 {
309 m_Player = null;
310 m_AM = null;
311 }
312
313 if (!m_Player)
314 GetPlayer();
315
316 if (!m_AM)
318
319 if (m_Player.IsInVehicle() || m_AM.GetRunningAction())
320 m_Hidden = true;
321
322
323 /*
324 #ifdef DIAG_DEVELOPER
325 if (DeveloperFreeCamera.IsFreeCameraEnabled())
326 HideWidget();
327 return;
328 #endif
329 */
330
332
334 if (GetGame().GetUIManager().GetMenu() || !g_Game.GetProfileOption(EDayZProfilesOptions.HUD) || m_Hud.IsHideHudPlayer() || m_Player.IsUnconscious() || isVisionObstructionActive)
335 {
336 HideWidget();
337 return;
338 }
339
340 GetTarget();
341 GetActions();
342
345 if (!showTarget)
346 {
347 if (m_Single)
349
350 if (m_Continuous)
352 }
353
354 if (showTarget)
355 {
357 if (m_Target.GetObject() == null && (m_Interact || m_ContinuousInteract || m_Single || m_Continuous))
358 {
359 //Print(">> fixed widget");
360 m_CachedObject.Invalidate();
362 m_Root.Show(true);
363 m_FixedOnPosition = false;
364 m_Hidden = false;
365 return;
366 }
367 else if (m_Target.GetObject() != null && !m_Target.GetObject().IsHologram() && (!m_Target.GetParent() || m_Target.GetParent() && !m_Target.GetParent().IsHologram()))
368 {
371 if (m_Target.GetObject() != m_CachedObject.Get())
372 {
374 {
375 //Print(">> non-cached widget");
376 m_CachedObject.Invalidate();
378 m_Root.Show(true);
379 m_Hidden = false;
380 return;
381 }
382 else
383 {
384 //Print(">> non-cached widget (fixed)");
385 m_CachedObject.Invalidate();
387 m_Root.Show(true);
388 m_FixedOnPosition = false;
389 m_Hidden = false;
390 return;
391 }
392 }
394 else if (m_Target.GetObject() == m_CachedObject.Get())
395 {
397 {
398 //Print(">> cached widget");
399 BuildFloatingCursor(false);
400 m_Root.Show(true);
401 m_Hidden = false;
402 return;
403 }
404 else
405 {
406 //Print(">> cached widget (fixed)");
407 m_CachedObject.Invalidate();
409 m_Root.Show(true);
410 m_FixedOnPosition = false;
411 m_Hidden = false;
412 return;
413 }
414 }
415 }
416 else
417 {
418 if (m_Root.IsVisible())
419 {
420 m_CachedObject.Invalidate();
421 m_Root.Show(false);
422 m_Hidden = false;
423
424 // remove previous backlit
425 GetDayZGame().GetBacklit().HintClear();
426 }
427 }
428 }
429 else
430 {
431 if (m_Root.IsVisible())
432 {
433 m_CachedObject.Invalidate();
434 m_Root.Show(false);
435 m_FixedOnPosition = false;
436
437 // remove previous backlit
438 GetDayZGame().GetBacklit().HintClear();
439 }
440
441 m_Hidden = false;
442 }
443
444 m_MaxWidthChild = 350;
DayZGame g_Game
Definition DayZGame.c:3815
EDayZProfilesOptions
Definition EDayZProfilesOptions.c:2
const ref array< typename > VISION_OBSTRUCTION_PPEFFECTS_TYPES
Definition ActionTargetsCursor.c:55
void GetActionManager()
Definition ActionTargetsCursor.c:688
void HideWidget()
Definition ActionTargetsCursor.c:296
void GetActions()
get actions from Action Manager
Definition ActionTargetsCursor.c:701
void BuildFixedCursor()
Definition ActionTargetsCursor.c:230
void BuildFloatingCursor(bool forceRebuild)
Definition ActionTargetsCursor.c:242
void GetTarget()
Definition ActionTargetsCursor.c:743
Static component of PPE manager, used to hold the instance.
Definition PPEManager.c:3
static PPEManager GetPPEManager()
Returns the manager instance singleton.
Definition PPEManager.c:27
void CheckRefresherFlagVisibility()
Definition ItemActionsWidget.c:707

Перекрестные ссылки BuildFixedCursor(), BuildFloatingCursor(), ScriptedWidgetEventHandler::CheckRefresherFlagVisibility(), g_Game, GetActionManager(), GetActions(), GetDayZGame(), GetGame(), GetPlayer(), PPEManagerStatic::GetPPEManager(), GetTarget(), ActionBase::HasTarget(), HideWidget(), m_AM, m_CachedObject, m_Continuous, m_ContinuousInteract, m_FixedOnPosition, m_Hidden, m_Hud, m_Interact, m_MaxWidthChild, m_Player, m_Root, m_Single, m_Target и VISION_OBSTRUCTION_PPEFFECTS_TYPES.

Используется в OnUpdate() и Hud::Update().

◆ UpdateControllerInputIcons()

void UpdateControllerInputIcons ( )
inlineprivate

Loads icons from the latest keybinds.

175 {
176 SetControllerIcon("interact", "UAAction");
177 SetControllerIcon("continuous_interact", "UAAction");
178 SetControllerIcon("single", "UADefaultAction");
179 SetControllerIcon("continuous", "UADefaultAction");
180 }
void SetControllerIcon(string pWidgetName, string pInputName)
Definition ActionTargetsCursor.c:139

Перекрестные ссылки SetControllerIcon().

Используется в OnInputPresetChanged() и OnWidgetScriptInit().

◆ UpdatePCIconsVisibility()

void UpdatePCIconsVisibility ( )
inlineprivate

Contains logic for icon set switching (Gamepad/M&K)

184 {
185 bool showConsoleIcons = false;
186 #ifdef PLATFORM_CONSOLE
187 showConsoleIcons = GetGame().GetInput().GetCurrentInputDevice() == EInputDeviceType.CONTROLLER || !GetGame().GetInput().IsEnabledMouseAndKeyboardEvenOnServer();
188 #endif
189
191 ShowXboxHidePCIcons("continuous_interact", showConsoleIcons);
194 }
void ShowXboxHidePCIcons(string widget, bool show_xbox_icon)
Definition ActionTargetsCursor.c:446

Перекрестные ссылки GetGame() и ShowXboxHidePCIcons().

Используется в OnInputDeviceChanged() и OnWidgetScriptInit().

Поля

◆ m_AM

◆ m_CachedObject

ref ATCCachedObject m_CachedObject
protected

◆ m_Container

Widget m_Container
protected

Используется в OnWidgetScriptInit().

◆ m_Continuous

ActionBase m_Continuous
protected

Используется в ActionTargetsCursor(), PrepareCursorContent() и Update().

◆ m_ContinuousInteract

ActionBase m_ContinuousInteract
protected

Используется в ActionTargetsCursor(), PrepareCursorContent() и Update().

◆ m_ContinuousInteractActionsNum

int m_ContinuousInteractActionsNum
protected

Используется в SetMultipleContinuousInteractAction().

◆ m_ContinuousItemActionsNum

int m_ContinuousItemActionsNum
protected

Используется в SetMultipleContinuousItemAction().

◆ m_DisplayInteractTarget

Object m_DisplayInteractTarget
protected

◆ m_FixedOnPosition

bool m_FixedOnPosition
protected

Используется в GetOnScreenPosition() и Update().

◆ m_HealthEnabled

bool m_HealthEnabled
protected

◆ m_Hidden

bool m_Hidden
protected

Используется в ActionTargetsCursor(), GetTarget() и Update().

◆ m_Hud

IngameHud m_Hud
protected

Используется в ActionTargetsCursor() и Update().

◆ m_Interact

ActionBase m_Interact
protected

◆ m_InteractActionsNum

int m_InteractActionsNum
protected

◆ m_ItemActionsNum

int m_ItemActionsNum
protected

Используется в SetMultipleItemAction().

◆ m_ItemLeft

Widget m_ItemLeft
protected

Используется в OnWidgetScriptInit().

◆ m_MaxWidthChild

float m_MaxWidthChild
protected

widget width

Используется в SetActionWidget() и Update().

◆ m_Player

◆ m_QuantityEnabled

bool m_QuantityEnabled
protected

◆ m_Root

◆ m_RootHeight

float m_RootHeight
protected

◆ m_RootWidth

float m_RootWidth
protected

◆ m_SelectedActionCategory

m_SelectedActionCategory
protected

◆ m_Single

ActionBase m_Single
protected

Используется в ActionTargetsCursor(), PrepareCursorContent() и Update().

◆ m_Target

◆ m_TargetItemFrozen

bool m_TargetItemFrozen
protected

◆ m_UseActionWrapper

UAIDWrapper m_UseActionWrapper
protected

Используется в ActionTargetsCursor() и SetInteractActionIcon().

◆ VISION_OBSTRUCTION_PPEFFECTS_TYPES

const ref array<typename> VISION_OBSTRUCTION_PPEFFECTS_TYPES
private
Инициализатор

Используется в Update().


Объявления и описания членов класса находятся в файле: