Dayz Explorer 1.28.160049
Loading...
Searching...
No Matches
ActionTargetsCursor Class Reference

Protected Member Functions

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 CheckRefresherFlagVisibilityEx (ActionTarget target)
 
int AttachmentsWithInventoryOrCargoCount (notnull GameInventory inventory)
 
IngameHud GetHud ()
 
void CheckRefresherFlagVisibility (Object object)
 

Protected Attributes

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
 

Detailed Description

Definition at line 53 of file actiontargetscursor.c.

Constructor & Destructor Documentation

◆ ActionTargetsCursor()

void ActionTargetsCursor::ActionTargetsCursor ( )
protected

Definition at line 94 of file actiontargetscursor.c.

◆ ~ActionTargetsCursor()

void ActionTargetsCursor::~ActionTargetsCursor ( )
protected

Definition at line 118 of file actiontargetscursor.c.

Member Function Documentation

◆ AttachmentsWithInventoryOrCargoCount()

int ActionTargetsCursor::AttachmentsWithInventoryOrCargoCount ( notnull GameInventory inventory)
protected

Definition at line 1304 of file actiontargetscursor.c.

◆ BuildFixedCursor()

void ActionTargetsCursor::BuildFixedCursor ( )
protected

Definition at line 230 of file actiontargetscursor.c.

◆ BuildFloatingCursor()

void ActionTargetsCursor::BuildFloatingCursor ( bool forceRebuild)
protected

Get OnScreenPos when forced or targeted component differs

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

Definition at line 242 of file actiontargetscursor.c.

◆ CheckRefresherFlagVisibility()

void ActionTargetsCursor::CheckRefresherFlagVisibility ( Object object)
protected

◆ CheckRefresherFlagVisibilityEx()

void ActionTargetsCursor::CheckRefresherFlagVisibilityEx ( ActionTarget target)
protected

Definition at line 1290 of file actiontargetscursor.c.

◆ GetActionDesc()

string ActionTargetsCursor::GetActionDesc ( ActionBase action)
protected

Definition at line 760 of file actiontargetscursor.c.

◆ GetActionManager()

void ActionTargetsCursor::GetActionManager ( )
protected

Definition at line 688 of file actiontargetscursor.c.

◆ GetActions()

void ActionTargetsCursor::GetActions ( )
protected

get actions from Action Manager

Definition at line 701 of file actiontargetscursor.c.

◆ GetHud()

IngameHud ActionTargetsCursor::GetHud ( )
protected

Definition at line 1328 of file actiontargetscursor.c.

◆ GetItemCargoCount()

void ActionTargetsCursor::GetItemCargoCount ( out int cargoCount)
protected

returns number of items in cargo for targeted entity

default cargo count

Definition at line 985 of file actiontargetscursor.c.

◆ GetItemDesc()

string ActionTargetsCursor::GetItemDesc ( ActionBase action)
protected

Definition at line 777 of file actiontargetscursor.c.

◆ GetItemFrozen()

bool ActionTargetsCursor::GetItemFrozen ( )
protected

Definition at line 935 of file actiontargetscursor.c.

◆ GetItemHealth()

int ActionTargetsCursor::GetItemHealth ( )
protected

Definition at line 850 of file actiontargetscursor.c.

◆ GetItemQuantity()

void ActionTargetsCursor::GetItemQuantity ( out int q_type,
out float q_cur,
out int q_min,
out int q_max )
protected

Definition at line 961 of file actiontargetscursor.c.

◆ GetOnScreenPosition()

void ActionTargetsCursor::GetOnScreenPosition ( out float x,
out float y )
protected

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

Definition at line 471 of file actiontargetscursor.c.

◆ GetPlayer()

void ActionTargetsCursor::GetPlayer ( )
protected

Definition at line 683 of file actiontargetscursor.c.

◆ GetTarget()

void ActionTargetsCursor::GetTarget ( )
protected

Definition at line 743 of file actiontargetscursor.c.

◆ HideWidget()

void ActionTargetsCursor::HideWidget ( )
protected

Definition at line 296 of file actiontargetscursor.c.

◆ IsComponentInSelection()

bool ActionTargetsCursor::IsComponentInSelection ( array< Selection > selection,
string compName )
protected

Definition at line 676 of file actiontargetscursor.c.

◆ OnInputDeviceChanged()

void ActionTargetsCursor::OnInputDeviceChanged ( EInputDeviceType pInputDeviceType)
protected

Definition at line 168 of file actiontargetscursor.c.

◆ OnInputPresetChanged()

void ActionTargetsCursor::OnInputPresetChanged ( )
protected

Definition at line 161 of file actiontargetscursor.c.

◆ OnUpdate()

override bool ActionTargetsCursor::OnUpdate ( Widget w)
protected

Definition at line 285 of file actiontargetscursor.c.

◆ OnWidgetScriptInit()

void ActionTargetsCursor::OnWidgetScriptInit ( Widget w)
protected

UA -> widget icon

Definition at line 145 of file actiontargetscursor.c.

◆ PrepareCursorContent()

void ActionTargetsCursor::PrepareCursorContent ( )
protected

item health

quantity

cargo in item

fill the widget with data

Definition at line 196 of file actiontargetscursor.c.

◆ SetActionWidget()

void ActionTargetsCursor::SetActionWidget ( ActionBase action,
string descText,
string actionWidget,
string descWidget )
protected

Definition at line 1123 of file actiontargetscursor.c.

◆ SetContinuousInteractXboxIcon()

void ActionTargetsCursor::SetContinuousInteractXboxIcon ( string imageset_name,
string image_name )
protected

◆ SetContinuousXboxIcon()

void ActionTargetsCursor::SetContinuousXboxIcon ( string imageset_name,
string image_name )
protected

◆ SetControllerIcon()

void ActionTargetsCursor::SetControllerIcon ( string pWidgetName,
string pInputName )
protected

Definition at line 139 of file actiontargetscursor.c.

◆ SetHealthVisibility()

void ActionTargetsCursor::SetHealthVisibility ( bool state)
protected

Definition at line 121 of file actiontargetscursor.c.

◆ SetInteractActionIcon()

void ActionTargetsCursor::SetInteractActionIcon ( string actionWidget,
string actionIconFrameWidget,
string actionIconWidget,
string actionIconTextWidget )
protected

Definition at line 1272 of file actiontargetscursor.c.

◆ SetInteractXboxIcon()

void ActionTargetsCursor::SetInteractXboxIcon ( string imageset_name,
string image_name )
protected

DEPRECATED.

◆ SetItemDesc()

void ActionTargetsCursor::SetItemDesc ( string descText,
int cargoCount,
string itemWidget,
string descWidget )
protected

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

when cargo in container

Definition at line 1011 of file actiontargetscursor.c.

◆ SetItemHealth()

void ActionTargetsCursor::SetItemHealth ( int health,
string itemWidget,
string healthWidget,
bool enabled )
protected

Definition at line 1041 of file actiontargetscursor.c.

◆ SetItemQuantity()

void ActionTargetsCursor::SetItemQuantity ( int type,
float current,
int min,
int max,
string itemWidget,
string quantityPBWidget,
string quantityTextWidget,
bool enabled )
protected

Definition at line 1071 of file actiontargetscursor.c.

◆ SetMultipleContinuousInteractAction()

void ActionTargetsCursor::SetMultipleContinuousInteractAction ( string multiActionsWidget,
string multiActionsWidget_NotSelect )
protected

Definition at line 1190 of file actiontargetscursor.c.

◆ SetMultipleContinuousItemAction()

void ActionTargetsCursor::SetMultipleContinuousItemAction ( string multiActionsWidget,
string multiActionsWidget_NotSelect )
protected

Definition at line 1245 of file actiontargetscursor.c.

◆ SetMultipleInteractAction()

void ActionTargetsCursor::SetMultipleInteractAction ( string multiActionsWidget,
string multiActionsWidget_NotSelect )
protected

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

Definition at line 1163 of file actiontargetscursor.c.

◆ SetMultipleItemAction()

void ActionTargetsCursor::SetMultipleItemAction ( string multiActionsWidget,
string multiActionsWidget_NotSelect )
protected

Definition at line 1218 of file actiontargetscursor.c.

◆ SetQuantityVisibility()

void ActionTargetsCursor::SetQuantityVisibility ( bool state)
protected

Definition at line 126 of file actiontargetscursor.c.

◆ SetSingleXboxIcon()

void ActionTargetsCursor::SetSingleXboxIcon ( string imageset_name,
string image_name )
protected

◆ SetXboxIcon()

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

◆ ShowXboxHidePCIcons()

void ActionTargetsCursor::ShowXboxHidePCIcons ( string widget,
bool show_xbox_icon )
protected

Definition at line 446 of file actiontargetscursor.c.

◆ TransformToScreenPos()

vector ActionTargetsCursor::TransformToScreenPos ( vector pWorldPos)
protected

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

Definition at line 454 of file actiontargetscursor.c.

◆ Update()

void ActionTargetsCursor::Update ( )
protected

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

Definition at line 305 of file actiontargetscursor.c.

Member Data Documentation

◆ m_AM

ActionManagerClient ActionTargetsCursor::m_AM
protected

Definition at line 69 of file actiontargetscursor.c.

◆ m_CachedObject

ref ATCCachedObject ActionTargetsCursor::m_CachedObject
protected

Definition at line 62 of file actiontargetscursor.c.

◆ m_Container

Widget ActionTargetsCursor::m_Container
protected

Definition at line 86 of file actiontargetscursor.c.

◆ m_Continuous

ActionBase ActionTargetsCursor::m_Continuous
protected

Definition at line 68 of file actiontargetscursor.c.

◆ m_ContinuousInteract

ActionBase ActionTargetsCursor::m_ContinuousInteract
protected

Definition at line 66 of file actiontargetscursor.c.

◆ m_ContinuousInteractActionsNum

int ActionTargetsCursor::m_ContinuousInteractActionsNum
protected

Definition at line 75 of file actiontargetscursor.c.

◆ m_ContinuousItemActionsNum

int ActionTargetsCursor::m_ContinuousItemActionsNum
protected

Definition at line 77 of file actiontargetscursor.c.

◆ m_DisplayInteractTarget

Object ActionTargetsCursor::m_DisplayInteractTarget
protected

Definition at line 63 of file actiontargetscursor.c.

◆ m_FixedOnPosition

bool ActionTargetsCursor::m_FixedOnPosition
protected

Definition at line 81 of file actiontargetscursor.c.

◆ m_HealthEnabled

bool ActionTargetsCursor::m_HealthEnabled
protected

Definition at line 79 of file actiontargetscursor.c.

◆ m_Hidden

bool ActionTargetsCursor::m_Hidden
protected

Definition at line 82 of file actiontargetscursor.c.

◆ m_Hud

IngameHud ActionTargetsCursor::m_Hud
protected

Definition at line 70 of file actiontargetscursor.c.

◆ m_Interact

ActionBase ActionTargetsCursor::m_Interact
protected

Definition at line 65 of file actiontargetscursor.c.

◆ m_InteractActionsNum

int ActionTargetsCursor::m_InteractActionsNum
protected

Definition at line 74 of file actiontargetscursor.c.

◆ m_ItemActionsNum

int ActionTargetsCursor::m_ItemActionsNum
protected

Definition at line 76 of file actiontargetscursor.c.

◆ m_ItemLeft

Widget ActionTargetsCursor::m_ItemLeft
protected

Definition at line 87 of file actiontargetscursor.c.

◆ m_MaxWidthChild

float ActionTargetsCursor::m_MaxWidthChild
protected

widget width

Definition at line 90 of file actiontargetscursor.c.

◆ m_Player

PlayerBase ActionTargetsCursor::m_Player
protected

Definition at line 60 of file actiontargetscursor.c.

◆ m_QuantityEnabled

bool ActionTargetsCursor::m_QuantityEnabled
protected

Definition at line 80 of file actiontargetscursor.c.

◆ m_Root

Widget ActionTargetsCursor::m_Root
protected

Definition at line 85 of file actiontargetscursor.c.

◆ m_RootHeight

float ActionTargetsCursor::m_RootHeight
protected

Definition at line 92 of file actiontargetscursor.c.

◆ m_RootWidth

float ActionTargetsCursor::m_RootWidth
protected

Definition at line 91 of file actiontargetscursor.c.

◆ m_SelectedActionCategory

ActionTargetsCursor::m_SelectedActionCategory
protected

Definition at line 78 of file actiontargetscursor.c.

◆ m_Single

ActionBase ActionTargetsCursor::m_Single
protected

Definition at line 67 of file actiontargetscursor.c.

◆ m_Target

ActionTarget ActionTargetsCursor::m_Target
protected

Definition at line 61 of file actiontargetscursor.c.

◆ m_TargetItemFrozen

bool ActionTargetsCursor::m_TargetItemFrozen
protected

Definition at line 83 of file actiontargetscursor.c.

◆ m_UseActionWrapper

UAIDWrapper ActionTargetsCursor::m_UseActionWrapper
protected

Definition at line 72 of file actiontargetscursor.c.


The documentation for this class was generated from the following file: