DIFF

class ActionTargetsCursor

ActionTargetsCursor › ScriptedWidgetEventHandler › Managed

Constructors 2

void ~ActionTargetsCursor()

Constants 5

protected const int ACTION_ORDER_INTERACT_SINGLE = 0
Referenced by GetActions()
protected const int ACTION_ORDER_INTERACT_CONTINUOUS = 1
protected const int ACTION_ORDER_SINGLE = 2
Referenced by GetActions()
protected const int ACTION_ORDER_CONTINUOUS = 3
private const ref array<typename> VISION_OBSTRUCTION_PPEFFECTS_TYPES = { PPERequester_BurlapSackEffects, PPERequester_FlashbangEffects }
Referenced by Update()

Members 32

protected ref ATCCachedObject m_CachedObject
Referenced by ActionTargetsCursor(), GetOnScreenPosition(), HideWidget()
Show 1 more, Update()
protected Object m_DisplayInteractTarget
protected ActionBase m_Interact
protected ActionBase m_ContinuousInteract
Referenced by ActionTargetsCursor(), GetActions(), PrepareCursorContent()
Show 1 more, Update()
protected ActionBase m_Single
Referenced by ActionTargetsCursor(), GetActions(), PrepareCursorContent()
Show 1 more, Update()
protected ActionBase m_Continuous
Referenced by ActionTargetsCursor(), GetActions(), PrepareCursorContent()
Show 1 more, Update()
protected IngameHud m_Hud
Referenced by ActionTargetsCursor(), and Update()
protected UAIDWrapper m_UseActionWrapper
protected int m_InteractActionsNum
protected int m_ContinuousInteractActionsNum
protected int m_ItemActionsNum
protected int m_ContinuousItemActionsNum
protected bool m_HealthEnabled
protected bool m_QuantityEnabled
protected bool m_FixedOnPosition
protected bool m_Hidden
Referenced by ActionTargetsCursor(), GetTarget(), HideRootWidget()
Show 1 more, Update()
protected bool m_TargetItemFrozen
protected Widget m_Container
Referenced by OnWidgetScriptInit()
protected Widget m_ItemLeft
Referenced by OnWidgetScriptInit()
protected ref map<int, ref array<ref TargetActionInfoPanelBase>> m_TargetActionInfoPanelMap

actionCategory, panelArray>

protected ref array<ref TargetActionInfoPanelBase> m_ActiveInfoPanels

useful for flushing data on ActionTargetsCursor hide

protected ref map<int, ActionBase> m_ActionMap

uses ACTION_ORDER constants

protected float m_MaxWidthChild

widget width

protected float m_RootWidth
protected float m_RootHeight
protected float m_PosX
Referenced by BuildFloatingCursor(), and Update()
protected float m_PosY
Referenced by BuildFloatingCursor(), and Update()

Methods 51

void SetHealthVisibility(bool state)
References m_HealthEnabled
void SetQuantityVisibility(bool state)
protected void SetControllerIcon(string pWidgetName, string pInputName)
protected void OnInputPresetChanged()

UA -> widget icon

protected void OnInputDeviceChanged(EInputDeviceType pInputDeviceType)
private void UpdateControllerInputIcons()

Loads icons from the latest keybinds

private void UpdatePCIconsVisibility()

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

protected void BuildFixedCursor(bool forceRebuild = true)

fill the widget with data

References GetScreenSize(), PrepareCursorContent(), Widget.SetPos()
Show 1 more, m_Root
Referenced by Update()
protected void BuildFloatingCursor(bool forceRebuild)
References PrepareCursorContent(), Widget.SetPos(), m_PosX
Show 2 more, m_PosY, and m_Root
Referenced by Update()
override bool OnUpdate(Widget w)
References Update(), and m_Root
protected void HideWidget()
Referenced by Update()
protected void ShowXboxHidePCIcons(string widget, bool show_xbox_icon)

build cursor for new target

protected vector TransformToScreenPos(vector pWorldPos)

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

Referenced by GetOnScreenPosition()
protected bool IsComponentInSelection(array<Selection> selection, string compName)

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 GetItemQuantity(out int q_type, out float q_cur, out int q_min, out int q_max)
protected void GetItemCargoCount(out int cargoCount)

returns number of items in cargo for targeted entity

protected void SetItemQuantity(int type, float current, int min, int max, string itemWidget, string quantityPBWidget, string quantityTextWidget, bool enabled)
protected void SetMultipleInteractAction(string multiActionsWidget, string multiActionsWidget_NotSelect)

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

protected void SetMultipleContinuousInteractAction(string multiActionsWidget, string multiActionsWidget_NotSelect)
protected void SetMultipleItemAction(string multiActionsWidget, string multiActionsWidget_NotSelect)
protected void SetMultipleContinuousItemAction(string multiActionsWidget, string multiActionsWidget_NotSelect)
protected void SetInteractActionIcon(string actionWidget, string actionIconFrameWidget, string actionIconWidget, string actionIconTextWidget)
protected void InfoPanelCleanup()
Referenced by HideWidget(), and Update()
protected IngameHud GetHud()
Referenced by ActionTargetsCursor()
protected void HideRootWidget()
Referenced by Update()
protected void CheckRefresherFlagVisibility(Object object)
void SetInteractXboxIcon(string imageset_name, string image_name)
void SetContinuousInteractXboxIcon(string imageset_name, string image_name)
void SetSingleXboxIcon(string imageset_name, string image_name)
void SetContinuousXboxIcon(string imageset_name, string image_name)
protected void SetXboxIcon(string name, string imageset_name, string image_name)