class ActionTargetsCursor
ActionTargetsCursor › ScriptedWidgetEventHandler › Managed
Constructors 2
void ActionTargetsCursor()References GetHud(), UAInputAPI.GetInputByID(), CGame.GetMission()
Show 20 more
, Mission.GetOnInputDeviceChanged(), Mission.GetOnInputPresetChanged(), UAInput.GetPersistentWrapper(), GetUApi(), ScriptInvoker.Insert(), ScriptInvoker.Insert(), m_ActionMap, 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 5
protected const int ACTION_ORDER_INTERACT_SINGLE = 0Referenced by GetActions()
protected const int ACTION_ORDER_INTERACT_CONTINUOUS = 1protected const int ACTION_ORDER_SINGLE = 2Referenced by GetActions()
protected const int ACTION_ORDER_CONTINUOUS = 3Members 32
protected PlayerBase m_PlayerReferenced by CheckRefresherFlagVisibilityEx(), GetActionDesc(), GetActionManager()
Show 5 more
, GetActions(), GetOnScreenPosition(), GetPlayer(), GetTarget(), and Update()protected ActionTarget m_Targetprotected ref ATCCachedObject m_CachedObjectprotected 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 19 more
, CreateActionInfoPanel(), HideRootWidget(), HideWidget(), InitActionInfoPanels(), 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 ref map<int, ref array<ref TargetActionInfoPanelBase>> m_TargetActionInfoPanelMapactionCategory, panelArray>
protected ref array<ref TargetActionInfoPanelBase> m_ActiveInfoPanelsuseful for flushing data on ActionTargetsCursor hide
protected ref map<int, ActionBase> m_ActionMapuses ACTION_ORDER constants
protected float m_MaxWidthChildwidget width
protected float m_RootWidthprotected float m_RootHeightprotected float m_PosXprotected float m_PosYMethods 51
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 InitActionInfoPanels()References CreateActionInfoPanel(), Widget.Update(), ACTION_ORDER_CONTINUOUS
Show 4 more
, ACTION_ORDER_INTERACT_CONTINUOUS, m_ActiveInfoPanels, m_Root, and m_TargetActionInfoPanelMapReferenced by OnWidgetScriptInit()
Referenced by InitActionInfoPanels()
protected void OnWidgetScriptInit(Widget w)References Widget.FindAnyWidget(), InitActionInfoPanels(), Widget.SetHandler()
Show 7 more
, Widget.Show(), 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 20 more
, GetItemFrozen(), GetItemHealth(), GetItemQuantity(), SetActionWidget(), SetInteractActionIcon(), SetItemDesc(), SetItemHealth(), SetItemQuantity(), SetMultipleContinuousInteractAction(), SetMultipleContinuousItemAction(), SetMultipleInteractAction(), SetMultipleItemAction(), UpdateAdditionalActionInfo(), m_Continuous, m_ContinuousInteract, m_HealthEnabled, m_Interact, m_QuantityEnabled, m_Single, and m_TargetItemFrozenprotected void BuildFixedCursor(bool forceRebuild = true)fill the widget with data
Referenced by Update()
protected void HideWidget()References InfoPanelCleanup(), ATCCachedObject.Invalidate(), Widget.IsVisible()
Show 3 more
, Widget.Show(), m_CachedObject, and m_RootReferenced by Update()
void Update(bool fullUpdate = true)References BuildFixedCursor(), BuildFloatingCursor(), CheckRefresherFlagVisibilityEx()
Show 45 more
, ATCCachedObject.Get(), GetActionManager(), GetActions(), IngameHud.GetHudVisibility(), ActionTarget.GetObject(), GetOnScreenPosition(), ActionTarget.GetParent(), GetPlayer(), PPEManagerStatic.GetPPEManager(), ActionManagerBase.GetRunningAction(), GetTarget(), ActionBase.HasTarget(), ActionBase.HasTarget(), HideRootWidget(), HideWidget(), InfoPanelCleanup(), ATCCachedObject.Invalidate(), Object.IsAlive(), PPEManager.IsAnyRequesterRunning(), IngameHudVisibility.IsContextFlagActive(), Object.IsEntityAI(), Object.IsHologram(), Object.IsHologram(), DayZPlayerImplement.IsInVehicle(), Object.IsPlainObject(), Object.IsRock(), Object.IsWoodBase(), 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_PosX, m_PosY, m_Root, m_Single, m_Target, and VISION_OBSTRUCTION_PPEFFECTS_TYPESbuild cursor for new target
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_RootReferenced by GetOnScreenPosition()
calculate corrent position from relative pos and parent widget size
References Math.AbsFloat(), Object.CanUseConstruction(), Object.ConfigGetFloat()
Show 30 more
, string.Contains(), 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 Update()
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 24 more
, ActionManagerClient.GetPossibleAction(), ActionManagerClient.GetPossibleActionCount(), ActionManagerClient.GetSelectedActionCategory(), DayZPlayerImplement.IsInVehicle(), PlayerBase.IsSprinting(), map.Set(), ACTION_ORDER_CONTINUOUS, ACTION_ORDER_INTERACT_CONTINUOUS, ACTION_ORDER_INTERACT_SINGLE, ACTION_ORDER_SINGLE, m_ActionMap, 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(), Class.CastTo(), ActionManagerClient.FindActionTarget()
Show 13 more
, GameInventory.GetCurrentInventoryLocation(), EntityAI.GetInventory(), ActionTarget.GetObject(), InventoryLocation.GetType(), new InventoryLocation(), ItemBase.IsActionTargetVisible(), DayZPlayerImplement.IsInVehicle(), Object.IsItemBase(), ItemBase.IsTakeable(), m_AM, m_Hidden, m_Player, and m_TargetReferenced 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 Object.CanUseConstruction(), Object.CanUseConstruction(), Class.Cast()
Show 26 more
, Class.Cast(), array.Count(), 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 Object.CanUseConstruction(), Object.CanUseConstruction(), Class.Cast()
Show 30 more
, Class.Cast(), Class.CastTo(), 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 UpdateAdditionalActionInfo()Referenced by PrepareCursorContent()
protected void InfoPanelCleanup()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 HideRootWidget()References DayZGame.GetBacklit(), GetDayZGame(), Backlit.HintClear()
Show 6 more
, Widget.IsVisible(), Widget.Show(), m_FixedOnPosition, m_Hidden, m_MaxWidthChild, and m_RootReferenced by Update()
protected void CheckRefresherFlagVisibility(Object object)