class ActionTargetsCursorSource
ActionTargetsCursor › ScriptedWidgetEventHandler › Managed
All members, including inherited
Constructors 2
void ActionTargetsCursor()References GetHud(), UAInputAPI.GetInputByID(), CGame.GetMission()
Show 19 more
, Mission.GetOnInputDeviceChanged(), Mission.GetOnInputPresetChanged(), UAInput.GetPersistentWrapper(), GetUApi(), ScriptInvoker.Insert(), ScriptInvoker.Insert(), m_AM, m_CachedObject, m_Continuous, m_ContinuousInteract, m_DisplayInteractTarget, m_HealthEnabled, m_Hidden, m_Hud, m_Interact, m_QuantityEnabled, m_Single, m_TargetItemFrozen, and m_UseActionWrappervoid ~ActionTargetsCursor()Constants 1
private const ref array<typename> VISION_OBSTRUCTION_PPEFFECTS_TYPES = { PPERequester_BurlapSackEffects, PPERequester_FlashbangEffects }Referenced by Update()
Members 27
protected PlayerBase m_PlayerReferenced by CheckRefresherFlagVisibilityEx(), GetActionDesc(), GetActionManager()
Show 5 more
, GetActions(), GetOnScreenPosition(), GetPlayer(), GetTarget(), and Update()protected ActionTarget m_TargetReferenced by BuildFloatingCursor(), GetActionDesc(), GetActions()
Show 9 more
, GetItemCargoCount(), GetItemDesc(), GetItemFrozen(), GetItemHealth(), GetItemQuantity(), GetOnScreenPosition(), GetTarget(), SetItemDesc(), and Update()protected ref ATCCachedObject m_CachedObjectReferenced by ActionTargetsCursor(), BuildFloatingCursor(), GetOnScreenPosition()
Show 2 more
, HideWidget(), and Update()protected Object m_DisplayInteractTargetReferenced by ActionTargetsCursor(), GetActions(), GetItemCargoCount()
Show 4 more
, GetItemDesc(), GetItemFrozen(), GetItemHealth(), and GetItemQuantity()protected ActionBase m_InteractReferenced by ActionTargetsCursor(), GetActions(), GetItemHealth()
Show 3 more
, GetItemQuantity(), PrepareCursorContent(), and Update()protected ActionBase m_ContinuousInteractprotected ActionBase m_Singleprotected ActionBase m_Continuousprotected ActionManagerClient m_AMReferenced by ActionTargetsCursor(), GetActionManager(), GetActions()
Show 3 more
, GetTarget(), SetActionWidget(), and Update()protected IngameHud m_Hudprotected UAIDWrapper m_UseActionWrapperprotected int m_InteractActionsNumprotected int m_ContinuousInteractActionsNumprotected int m_ItemActionsNumprotected int m_ContinuousItemActionsNumprotected typename m_SelectedActionCategoryReferenced by GetActions(), SetMultipleContinuousInteractAction(), SetMultipleContinuousItemAction()
Show 2 more
, SetMultipleInteractAction(), and SetMultipleItemAction()protected bool m_HealthEnabledprotected bool m_QuantityEnabledprotected bool m_FixedOnPositionprotected bool m_Hiddenprotected bool m_TargetItemFrozenReferenced by ActionTargetsCursor(), GetItemHealth(), PrepareCursorContent()
Show 1 more
, SetItemHealth()protected Widget m_RootReferenced by BuildFixedCursor(), BuildFloatingCursor(), CheckRefresherFlagVisibilityEx()
Show 16 more
, HideWidget(), OnUpdate(), OnWidgetScriptInit(), SetActionWidget(), SetControllerIcon(), SetInteractActionIcon(), SetItemDesc(), SetItemHealth(), SetItemQuantity(), SetMultipleContinuousInteractAction(), SetMultipleContinuousItemAction(), SetMultipleInteractAction(), SetMultipleItemAction(), ShowXboxHidePCIcons(), TransformToScreenPos(), and Update()protected Widget m_ContainerReferenced by OnWidgetScriptInit()
protected Widget m_ItemLeftReferenced by OnWidgetScriptInit()
protected float m_RootWidthprotected float m_RootHeightMethods 46
void SetHealthVisibility(bool state)References m_HealthEnabled
void SetQuantityVisibility(bool state)References m_QuantityEnabled
---------
References Class.Cast(), Widget.FindAnyWidget(), InputUtils.GetRichtextButtonIconFromInputAction()
Show 2 more
, TextWidget.SetText(), and m_RootReferenced by UpdateControllerInputIcons()
protected void OnWidgetScriptInit(Widget w)References Widget.FindAnyWidget(), Widget.SetHandler(), Widget.Show()
Show 6 more
, Widget.Update(), UpdateControllerInputIcons(), UpdatePCIconsVisibility(), m_Container, m_ItemLeft, and m_Rootprotected void OnInputDeviceChanged(EInputDeviceType pInputDeviceType)References UpdatePCIconsVisibility()
private void UpdateControllerInputIcons()Loads icons from the latest keybinds
References SetControllerIcon()
private void UpdatePCIconsVisibility()Contains logic for icon set switching (Gamepad/M&K)
References Input.GetCurrentInputDevice(), CGame.GetInput(), Input.IsEnabledMouseAndKeyboardEvenOnServer()
Show 1 more
, ShowXboxHidePCIcons()protected void PrepareCursorContent()References GetActionDesc(), GetItemCargoCount(), GetItemDesc()
Show 19 more
, GetItemFrozen(), GetItemHealth(), GetItemQuantity(), SetActionWidget(), SetInteractActionIcon(), SetItemDesc(), SetItemHealth(), SetItemQuantity(), SetMultipleContinuousInteractAction(), SetMultipleContinuousItemAction(), SetMultipleInteractAction(), SetMultipleItemAction(), m_Continuous, m_ContinuousInteract, m_HealthEnabled, m_Interact, m_QuantityEnabled, m_Single, and m_TargetItemFrozenprotected void BuildFloatingCursor(bool forceRebuild)Referenced by Update()
in case of cached item, all above is reused except the position
protected void HideWidget()References ATCCachedObject.Invalidate(), Widget.IsVisible(), Widget.Show()
Show 2 more
, m_CachedObject, and m_RootReferenced by Update()
void Update()References BuildFixedCursor(), BuildFloatingCursor(), CheckRefresherFlagVisibilityEx()
Show 40 more
, ATCCachedObject.Get(), GetActionManager(), GetActions(), DayZGame.GetBacklit(), GetDayZGame(), IngameHud.GetHudVisibility(), ActionTarget.GetObject(), ActionTarget.GetParent(), GetPlayer(), PPEManagerStatic.GetPPEManager(), ActionManagerBase.GetRunningAction(), GetTarget(), ActionBase.HasTarget(), ActionBase.HasTarget(), HideWidget(), Backlit.HintClear(), ATCCachedObject.Invalidate(), Object.IsAlive(), PPEManager.IsAnyRequesterRunning(), IngameHudVisibility.IsContextFlagActive(), Object.IsHologram(), Object.IsHologram(), DayZPlayerImplement.IsInVehicle(), Widget.IsVisible(), Widget.Show(), IngameHudVisibility.HUD_HIDE_FLAGS, 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, and VISION_OBSTRUCTION_PPEFFECTS_TYPESuse cached version for known target - recalculate onscreen pos only
Referenced by UpdatePCIconsVisibility()
transform world pos to screen pos (related to parent widget size)
References Widget.GetParent(), CGame.GetScreenPosRelative(), Widget.GetScreenSize()
Show 1 more
, m_Rootcalculate corrent position from relative pos and parent widget size
References Math.AbsFloat(), Object.ConfigGetFloat(), string.Contains()
Show 29 more
, array.Count(), array.Count(), vector.DistanceSq(), Object.GetActionComponentName(), Object.GetActionComponentNameList(), ActionTarget.GetComponentIndex(), ActionTarget.GetCursorHitPos(), Object.GetLODByName(), Selection.GetName(), ActionTarget.GetObject(), Object.GetPosition(), Object.GetSelectionPositionMS(), LOD.GetSelections(), Object.GetType(), Selection.GetVertexCount(), Selection.GetVertexPosition(), Object.HasFixedActionTargetCursorPosition(), IsComponentInSelection(), MiscGameplayFunctions.IsComponentInSelection(), Object.IsInventoryItem(), Object.ModelToWorld(), ATCCachedObject.Store(), TransformToScreenPos(), m_CachedObject, m_FixedOnPosition, m_Player, m_Target, LOD.NAME_MEMORY, and vector.ZeroReferenced by BuildFloatingCursor()
cache current object and the widget world pos do not store component index for ladders
Referenced by GetOnScreenPosition()
protected void GetPlayer()Referenced by Update()
protected void GetActionManager()Referenced by Update()
protected void GetActions()get actions from Action Manager
References ActionBase.GetDisplayInteractObject(), ActionBase.GetDisplayInteractObject(), ActionBase.GetDisplayInteractObject()
Show 18 more
, ActionManagerClient.GetPossibleAction(), ActionManagerClient.GetPossibleActionCount(), ActionManagerClient.GetSelectedActionCategory(), DayZPlayerImplement.IsInVehicle(), PlayerBase.IsSprinting(), m_AM, m_Continuous, m_ContinuousInteract, m_ContinuousInteractActionsNum, m_ContinuousItemActionsNum, m_DisplayInteractTarget, m_Interact, m_InteractActionsNum, m_ItemActionsNum, m_Player, m_SelectedActionCategory, m_Single, and m_TargetReferenced by Update()
protected void GetTarget()References Class.Cast(), ActionManagerClient.FindActionTarget(), GameInventory.GetCurrentInventoryLocation()
Referenced by Update()
protected string GetActionDesc(ActionBase action)References ActionBase.DisplayTargetInActionText(), string.Format(), ActionBase.GetTargetName()
Show 3 more
, ActionBase.GetText(), m_Player, and m_TargetReferenced by PrepareCursorContent()
protected string GetItemDesc(ActionBase action)References Class.Cast(), Class.Cast(), array.Count()
Show 24 more
, Object.DisplayNameRuinAttach(), Object.GetActionComponentName(), Object.GetActionComponentNameList(), ActionTarget.GetComponentIndex(), DamageSystem.GetDamageDisplayName(), DamageSystem.GetDamageZoneFromComponentName(), Object.GetDisplayName(), Object.GetDisplayName(), Object.GetDisplayName(), ActionTarget.GetObject(), ActionTarget.GetParent(), TentBase.GetState(), Object.IsAlive(), Class.IsInherited(), Object.IsItemBase(), Object.IsItemBase(), Object.IsTransport(), Object.IsTransport(), Object.ShowZonesHealth(), m_DisplayInteractTarget, m_Target, LOD.NAME_FIRE, LOD.NAME_VIEW, and TentBase.PACKEDReferenced by PrepareCursorContent()
protected int GetItemHealth()References Class.Cast(), Class.Cast(), Class.CastTo()
Show 28 more
, array.Count(), Object.GetActionComponentName(), Object.GetActionComponentNameList(), ActionTarget.GetComponentIndex(), DamageSystem.GetDamageZoneFromComponentName(), Object.GetHealthLevel(), Object.GetHealthLevel(), ActionTarget.GetObject(), ActionTarget.GetParent(), TentBase.GetState(), ActionBase.HasTarget(), Object.IsAlive(), EntityAI.IsAnimal(), Object.IsDamageDestroyed(), Class.IsInherited(), Object.IsItemBase(), Object.IsItemBase(), Object.IsMan(), Object.IsTransport(), Object.IsTransport(), EntityAI.IsZombie(), m_DisplayInteractTarget, m_Interact, m_Target, m_TargetItemFrozen, LOD.NAME_FIRE, LOD.NAME_VIEW, and TentBase.PACKEDReferenced by PrepareCursorContent()
protected bool GetItemFrozen()References Class.Cast(), EntityAI.GetIsFrozen(), ActionTarget.GetObject()
Show 3 more
, ActionTarget.GetParent(), m_DisplayInteractTarget, and m_TargetReferenced by PrepareCursorContent()
References Class.CastTo(), QuantityConversions.GetItemQuantity(), ActionTarget.GetObject()
Show 5 more
, QuantityConversions.HasItemQuantity(), ActionBase.HasTarget(), m_DisplayInteractTarget, m_Interact, and m_TargetReferenced by PrepareCursorContent()
protected void GetItemCargoCount(out int cargoCount)returns number of items in cargo for targeted entity
References AttachmentsWithInventoryOrCargoCount(), Class.CastTo(), EntityAI.GetInventory()
Show 3 more
, ActionTarget.GetObject(), m_DisplayInteractTarget, and m_TargetReferenced by PrepareCursorContent()
default cargo count
Referenced by PrepareCursorContent()
when cargo in container
Referenced by PrepareCursorContent()
protected void SetItemQuantity(int type, float current, int min, int max, string itemWidget, string quantityPBWidget, string quantityTextWidget, bool enabled)Referenced by PrepareCursorContent()
protected void SetActionWidget(ActionBase action, string descText, string actionWidget, string descWidget)Referenced by PrepareCursorContent()
protected void SetMultipleInteractAction(string multiActionsWidget, string multiActionsWidget_NotSelect)shows arrows near the interact action if there are more than one available
References Widget.FindAnyWidget(), Widget.Show(), Show()
Show 3 more
, m_InteractActionsNum, m_Root, and m_SelectedActionCategoryReferenced by PrepareCursorContent()
protected void SetMultipleContinuousInteractAction(string multiActionsWidget, string multiActionsWidget_NotSelect)References Widget.FindAnyWidget(), Widget.Show(), Show()
Show 3 more
, m_ContinuousInteractActionsNum, m_Root, and m_SelectedActionCategoryReferenced by PrepareCursorContent()
protected void SetMultipleItemAction(string multiActionsWidget, string multiActionsWidget_NotSelect)References Widget.FindAnyWidget(), Widget.Show(), Show()
Show 3 more
, m_ItemActionsNum, m_Root, and m_SelectedActionCategoryReferenced by PrepareCursorContent()
protected void SetMultipleContinuousItemAction(string multiActionsWidget, string multiActionsWidget_NotSelect)References Widget.FindAnyWidget(), Widget.Show(), Show()
Show 3 more
, m_ContinuousItemActionsNum, m_Root, and m_SelectedActionCategoryReferenced by PrepareCursorContent()
protected void SetInteractActionIcon(string actionWidget, string actionIconFrameWidget, string actionIconWidget, string actionIconTextWidget)Referenced by PrepareCursorContent()
protected void CheckRefresherFlagVisibilityEx(ActionTarget target)Referenced by Update()
protected int AttachmentsWithInventoryOrCargoCount(notnull GameInventory inventory)References GameInventory.AttachmentCount(), GameInventory.GetAttachmentFromIndex(), GameInventory.GetCargo()
Show 3 more
, EntityAI.GetInventory(), CargoBase.GetItemCount(), and GameInventory.GetSlotId()Referenced by GetItemCargoCount()
protected IngameHud GetHud()Referenced by ActionTargetsCursor()
protected void CheckRefresherFlagVisibility(Object object)