DIFF

class ActionTargetsCursorSource

ActionTargetsCursor ScriptedWidgetEventHandler Managed

All members, including inherited

Constructors 2

void ~ActionTargetsCursor()

Constants 1

private const ref array<typename> VISION_OBSTRUCTION_PPEFFECTS_TYPES = { PPERequester_BurlapSackEffects, PPERequester_FlashbangEffects }
Referenced by Update()

Members 27

protected ref ATCCachedObject m_CachedObject
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
Referenced by GetOnScreenPosition(), and Update()
protected bool m_Hidden
protected bool m_TargetItemFrozen
protected Widget m_Container
Referenced by OnWidgetScriptInit()
protected Widget m_ItemLeft
Referenced by OnWidgetScriptInit()
protected float m_MaxWidthChild

widget width

Referenced by SetActionWidget(), and Update()
protected float m_RootWidth
protected float m_RootHeight

Methods 46

void SetHealthVisibility(bool state)
References m_HealthEnabled
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)
protected void SetXboxIcon(string name, string imageset_name, string image_name)
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()

fill the widget with data

References GetScreenSize(), PrepareCursorContent(), Widget.SetPos()
Show 1 more, m_Root
Referenced by Update()
override bool OnUpdate(Widget w)

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

References Update(), and m_Root
protected void HideWidget()
Referenced by Update()
protected void ShowXboxHidePCIcons(string widget, bool show_xbox_icon)

use cached version for known target - recalculate onscreen pos only

protected vector TransformToScreenPos(vector pWorldPos)

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

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 IngameHud GetHud()
Referenced by ActionTargetsCursor()
protected void CheckRefresherFlagVisibility(Object object)