![]() |
Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
|
Protected Member Functions | |
| void | ActionTargetsCursor () |
| void | ~ActionTargetsCursor () |
| int | AttachmentsWithInventoryOrCargoCount (notnull GameInventory inventory) |
| void | BuildFixedCursor () |
| void | BuildFloatingCursor (bool forceRebuild) |
| void | CheckRefresherFlagVisibility (Object object) |
| void | CheckRefresherFlagVisibilityEx (ActionTarget target) |
| string | GetActionDesc (ActionBase action) |
| void | GetActionManager () |
| void | GetActions () |
| get actions from Action Manager | |
| IngameHud | GetHud () |
| void | GetItemCargoCount (out int cargoCount) |
| returns number of items in cargo for targeted entity | |
| string | GetItemDesc (ActionBase action) |
| bool | GetItemFrozen () |
| int | GetItemHealth () |
| void | GetItemQuantity (out int q_type, out float q_cur, out int q_min, out int q_max) |
| void | GetOnScreenPosition (out float x, out float y) |
| void | GetPlayer () |
| void | GetTarget () |
| void | HideWidget () |
| bool | IsComponentInSelection (array< Selection > selection, string compName) |
| void | OnInputDeviceChanged (EInputDeviceType pInputDeviceType) |
| void | OnInputPresetChanged () |
| override bool | OnUpdate (Widget w) |
| void | OnWidgetScriptInit (Widget w) |
| void | PrepareCursorContent () |
| void | SetActionWidget (ActionBase action, string descText, string actionWidget, string descWidget) |
| void | SetContinuousInteractXboxIcon (string imageset_name, string image_name) |
| void | SetContinuousXboxIcon (string imageset_name, string image_name) |
| void | SetControllerIcon (string pWidgetName, string pInputName) |
| void | SetHealthVisibility (bool state) |
| void | SetInteractActionIcon (string actionWidget, string actionIconFrameWidget, string actionIconWidget, string actionIconTextWidget) |
| void | SetInteractXboxIcon (string imageset_name, string image_name) |
| DEPRECATED. | |
| 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 | SetMultipleContinuousInteractAction (string multiActionsWidget, string multiActionsWidget_NotSelect) |
| void | SetMultipleContinuousItemAction (string multiActionsWidget, string multiActionsWidget_NotSelect) |
| void | SetMultipleInteractAction (string multiActionsWidget, string multiActionsWidget_NotSelect) |
| shows arrows near the interact action if there are more than one available | |
| void | SetMultipleItemAction (string multiActionsWidget, string multiActionsWidget_NotSelect) |
| void | SetQuantityVisibility (bool state) |
| void | SetSingleXboxIcon (string imageset_name, string image_name) |
| void | SetXboxIcon (string name, string imageset_name, string image_name) |
| void | ShowXboxHidePCIcons (string widget, bool show_xbox_icon) |
| vector | TransformToScreenPos (vector pWorldPos) |
| transform world pos to screen pos (related to parent widget size) | |
| void | Update () |
Additional Inherited Members | |
| Static Private Attributes inherited from ScriptedWidgetEventHandler | |
| static ref ContextMenu | m_ContextMenuInstance |
| static bool | m_IgnoredBool |
| static const float | SLIDER_STEP = 0.01 |
Definition at line 53 of file actiontargetscursor.c.
|
inlineprotected |
Definition at line 94 of file actiontargetscursor.c.
References g_Game, GetHud(), UAInputAPI::GetInputByID(), UAInput::GetPersistentWrapper(), GetUApi(), m_AM, m_CachedObject, m_Continuous, m_ContinuousInteract, m_DisplayInteractTarget, m_HealthEnabled, m_Hidden, m_Hud, m_Interact, m_QuantityEnabled, m_Single, m_TargetItemFrozen, m_UseActionWrapper, OnInputDeviceChanged(), and OnInputPresetChanged().
|
inlineprotected |
Definition at line 118 of file actiontargetscursor.c.
|
inlineprotected |
Definition at line 1307 of file actiontargetscursor.c.
References CargoBase::GetItemCount().
Referenced by GetItemCargoCount().
|
inlineprotected |
Definition at line 230 of file actiontargetscursor.c.
References GetScreenSize(), m_Root, PrepareCursorContent(), x, and y.
Referenced by Update().
|
inlineprotected |
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.
References Math::Ceil(), GetOnScreenPosition(), m_CachedObject, m_Root, m_Target, PrepareCursorContent(), and TransformToScreenPos().
Referenced by Update().
|
protected |
|
inlineprotected |
Definition at line 1293 of file actiontargetscursor.c.
References ActionTarget, m_Player, and m_Root.
Referenced by Update().
|
inlineprotected |
Definition at line 763 of file actiontargetscursor.c.
References ActionBase::DisplayTargetInActionText(), string::Format(), ActionBase::GetTargetName(), ActionBase::GetText(), m_Player, and m_Target.
Referenced by PrepareCursorContent().
|
inlineprotected |
Definition at line 691 of file actiontargetscursor.c.
References Class::CastTo(), m_AM, and m_Player.
Referenced by Update().
|
inlineprotected |
get actions from Action Manager
Definition at line 704 of file actiontargetscursor.c.
References ContinuousDefaultActionInput(), 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_Target.
Referenced by Update().
|
inlineprotected |
Definition at line 1331 of file actiontargetscursor.c.
References g_Game, and mission.
Referenced by ActionTargetsCursor().
|
inlineprotected |
returns number of items in cargo for targeted entity
default cargo count
Definition at line 988 of file actiontargetscursor.c.
References AttachmentsWithInventoryOrCargoCount(), Class::CastTo(), m_DisplayInteractTarget, and m_Target.
Referenced by PrepareCursorContent().
|
inlineprotected |
Definition at line 780 of file actiontargetscursor.c.
References m_DisplayInteractTarget, m_Target, LOD::NAME_FIRE, LOD::NAME_VIEW, and EntityAI::ShowZonesHealth().
Referenced by PrepareCursorContent().
|
inlineprotected |
Definition at line 938 of file actiontargetscursor.c.
References m_DisplayInteractTarget, and m_Target.
Referenced by PrepareCursorContent().
|
inlineprotected |
Definition at line 853 of file actiontargetscursor.c.
References Class::CastTo(), EntityAI::IsMan(), m_DisplayInteractTarget, m_Interact, m_Target, m_TargetItemFrozen, LOD::NAME_FIRE, and LOD::NAME_VIEW.
Referenced by PrepareCursorContent().
|
inlineprotected |
Definition at line 964 of file actiontargetscursor.c.
References Class::CastTo(), QuantityConversions::GetItemQuantity(), QuantityConversions::HasItemQuantity(), m_DisplayInteractTarget, m_Interact, and m_Target.
Referenced by PrepareCursorContent().
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 474 of file actiontargetscursor.c.
References Math::AbsFloat(), string::Contains(), vector::DistanceSq(), GetName(), LOD::GetSelections(), GetType(), HasFixedActionTargetCursorPosition(), IsComponentInSelection(), m_CachedObject, m_FixedOnPosition, m_Player, m_Target, LOD::NAME_MEMORY, TransformToScreenPos(), x, y, and vector::Zero.
Referenced by BuildFloatingCursor().
|
inlineprotected |
Definition at line 686 of file actiontargetscursor.c.
References Class::CastTo(), g_Game, and m_Player.
Referenced by Update().
|
inlineprotected |
Definition at line 746 of file actiontargetscursor.c.
References InventoryLocation::GetType(), ItemBase::IsTakeable(), m_AM, m_Hidden, m_Player, and m_Target.
Referenced by Update().
|
inlineprotected |
Definition at line 296 of file actiontargetscursor.c.
References m_CachedObject, and m_Root.
Referenced by Update().
Definition at line 679 of file actiontargetscursor.c.
Referenced by GetOnScreenPosition().
|
inlineprotected |
Definition at line 168 of file actiontargetscursor.c.
References UpdatePCIconsVisibility().
Referenced by ActionTargetsCursor().
|
inlineprotected |
Definition at line 161 of file actiontargetscursor.c.
References UpdateControllerInputIcons().
Referenced by ActionTargetsCursor().
Definition at line 285 of file actiontargetscursor.c.
|
inlineprotected |
UA -> widget icon
Definition at line 145 of file actiontargetscursor.c.
References m_Container, m_ItemLeft, m_Root, UpdateControllerInputIcons(), and UpdatePCIconsVisibility().
|
inlineprotected |
item health
quantity
cargo in item
fill the widget with data
Definition at line 196 of file actiontargetscursor.c.
References GetActionDesc(), GetItemCargoCount(), GetItemDesc(), GetItemFrozen(), GetItemHealth(), GetItemQuantity(), m_Continuous, m_ContinuousInteract, m_HealthEnabled, m_Interact, m_QuantityEnabled, m_Single, m_TargetItemFrozen, SetActionWidget(), SetInteractActionIcon(), SetItemDesc(), SetItemHealth(), SetItemQuantity(), SetMultipleContinuousInteractAction(), SetMultipleContinuousItemAction(), SetMultipleInteractAction(), and SetMultipleItemAction().
Referenced by BuildFixedCursor(), and BuildFloatingCursor().
|
inlineprotected |
Definition at line 1126 of file actiontargetscursor.c.
References Class::CastTo(), ActionBase::GetInput(), ActionInput::GetInputType(), ActionBase::HasTarget(), m_AM, m_MaxWidthChild, m_Root, x, and y.
Referenced by PrepareCursorContent().
Definition at line 139 of file actiontargetscursor.c.
References InputUtils::GetRichtextButtonIconFromInputAction(), and m_Root.
Referenced by UpdateControllerInputIcons().
|
inlineprotected |
Definition at line 121 of file actiontargetscursor.c.
References m_HealthEnabled.
|
inlineprotected |
Definition at line 1275 of file actiontargetscursor.c.
References Class::CastTo(), InputUtils::GetButtonNameFromInput(), GetDayZGame(), m_Root, and m_UseActionWrapper.
Referenced by PrepareCursorContent().
|
inlineprotected |
Last message from finished User Action on target (Thermometer, Blood Test Kit, etc.)
when cargo in container
Definition at line 1014 of file actiontargetscursor.c.
References Class::CastTo(), string::Format(), string::Length(), m_Root, m_Target, and string::ToUpper().
Referenced by PrepareCursorContent().
|
inlineprotected |
Definition at line 1044 of file actiontargetscursor.c.
References Class::CastTo(), Colors::COLOR_FROZEN, ItemManager::GetItemHealthColor(), m_Root, m_TargetItemFrozen, and GameConstants::STATE_RUINED.
Referenced by PrepareCursorContent().
|
inlineprotected |
Definition at line 1074 of file actiontargetscursor.c.
References Class::CastTo(), m_Root, QUANTITY_COUNT, QUANTITY_HIDDEN, QUANTITY_PROGRESS, Math::Round(), and float::ToString().
Referenced by PrepareCursorContent().
|
inlineprotected |
Definition at line 1193 of file actiontargetscursor.c.
References m_ContinuousInteractActionsNum, m_Root, and m_SelectedActionCategory.
Referenced by PrepareCursorContent().
|
inlineprotected |
Definition at line 1248 of file actiontargetscursor.c.
References ContinuousDefaultActionInput(), m_ContinuousItemActionsNum, m_Root, and m_SelectedActionCategory.
Referenced by PrepareCursorContent().
|
inlineprotected |
shows arrows near the interact action if there are more than one available
Definition at line 1166 of file actiontargetscursor.c.
References m_InteractActionsNum, m_Root, and m_SelectedActionCategory.
Referenced by PrepareCursorContent().
|
inlineprotected |
Definition at line 1221 of file actiontargetscursor.c.
References m_ItemActionsNum, m_Root, and m_SelectedActionCategory.
Referenced by PrepareCursorContent().
|
inlineprotected |
Definition at line 126 of file actiontargetscursor.c.
References m_QuantityEnabled.
References name.
Definition at line 449 of file actiontargetscursor.c.
References m_Root.
Referenced by UpdatePCIconsVisibility().
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 457 of file actiontargetscursor.c.
References g_Game, and m_Root.
Referenced by BuildFloatingCursor(), and GetOnScreenPosition().
|
inlineprotected |
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.
References BuildFixedCursor(), BuildFloatingCursor(), CheckRefresherFlagVisibilityEx(), GetActionManager(), GetActions(), GetDayZGame(), GetPlayer(), PPEManagerStatic::GetPPEManager(), GetTarget(), HideWidget(), 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_TYPES.
Referenced by OnUpdate().
|
inlineprivate |
Loads icons from the latest keybinds.
Definition at line 174 of file actiontargetscursor.c.
References SetControllerIcon().
Referenced by OnInputPresetChanged(), and OnWidgetScriptInit().
|
inlineprivate |
Contains logic for icon set switching (Gamepad/M&K).
Definition at line 183 of file actiontargetscursor.c.
References g_Game, and ShowXboxHidePCIcons().
Referenced by OnInputDeviceChanged(), and OnWidgetScriptInit().
|
protected |
Definition at line 69 of file actiontargetscursor.c.
Referenced by ActionTargetsCursor(), GetActionManager(), GetActions(), GetTarget(), SetActionWidget(), and Update().
|
protected |
Definition at line 62 of file actiontargetscursor.c.
Referenced by ActionTargetsCursor(), BuildFloatingCursor(), GetOnScreenPosition(), HideWidget(), and Update().
|
protected |
Definition at line 86 of file actiontargetscursor.c.
Referenced by OnWidgetScriptInit().
|
protected |
Definition at line 68 of file actiontargetscursor.c.
Referenced by ActionTargetsCursor(), GetActions(), PrepareCursorContent(), and Update().
|
protected |
Definition at line 66 of file actiontargetscursor.c.
Referenced by ActionTargetsCursor(), GetActions(), PrepareCursorContent(), and Update().
|
protected |
Definition at line 75 of file actiontargetscursor.c.
Referenced by GetActions(), and SetMultipleContinuousInteractAction().
|
protected |
Definition at line 77 of file actiontargetscursor.c.
Referenced by GetActions(), and SetMultipleContinuousItemAction().
|
protected |
Definition at line 63 of file actiontargetscursor.c.
Referenced by ActionTargetsCursor(), GetActions(), GetItemCargoCount(), GetItemDesc(), GetItemFrozen(), GetItemHealth(), and GetItemQuantity().
|
protected |
Definition at line 81 of file actiontargetscursor.c.
Referenced by GetOnScreenPosition(), and Update().
|
protected |
Definition at line 79 of file actiontargetscursor.c.
Referenced by ActionTargetsCursor(), PrepareCursorContent(), and SetHealthVisibility().
|
protected |
Definition at line 82 of file actiontargetscursor.c.
Referenced by ActionTargetsCursor(), GetTarget(), and Update().
|
protected |
Definition at line 70 of file actiontargetscursor.c.
Referenced by ActionTargetsCursor(), and Update().
|
protected |
Definition at line 65 of file actiontargetscursor.c.
Referenced by ActionTargetsCursor(), GetActions(), GetItemHealth(), GetItemQuantity(), PrepareCursorContent(), and Update().
|
protected |
Definition at line 74 of file actiontargetscursor.c.
Referenced by GetActions(), and SetMultipleInteractAction().
|
protected |
Definition at line 76 of file actiontargetscursor.c.
Referenced by GetActions(), and SetMultipleItemAction().
|
protected |
Definition at line 87 of file actiontargetscursor.c.
Referenced by OnWidgetScriptInit().
|
protected |
widget width
Definition at line 90 of file actiontargetscursor.c.
Referenced by SetActionWidget(), and Update().
|
protected |
Definition at line 60 of file actiontargetscursor.c.
Referenced by CheckRefresherFlagVisibilityEx(), GetActionDesc(), GetActionManager(), GetActions(), GetOnScreenPosition(), GetPlayer(), GetTarget(), and Update().
|
protected |
Definition at line 80 of file actiontargetscursor.c.
Referenced by ActionTargetsCursor(), PrepareCursorContent(), and SetQuantityVisibility().
|
protected |
Definition at line 85 of file actiontargetscursor.c.
Referenced by BuildFixedCursor(), BuildFloatingCursor(), CheckRefresherFlagVisibilityEx(), HideWidget(), OnUpdate(), OnWidgetScriptInit(), SetActionWidget(), SetControllerIcon(), SetInteractActionIcon(), SetItemDesc(), SetItemHealth(), SetItemQuantity(), SetMultipleContinuousInteractAction(), SetMultipleContinuousItemAction(), SetMultipleInteractAction(), SetMultipleItemAction(), ShowXboxHidePCIcons(), TransformToScreenPos(), and Update().
|
protected |
Definition at line 92 of file actiontargetscursor.c.
|
protected |
Definition at line 91 of file actiontargetscursor.c.
|
protected |
Definition at line 78 of file actiontargetscursor.c.
Referenced by GetActions(), SetMultipleContinuousInteractAction(), SetMultipleContinuousItemAction(), SetMultipleInteractAction(), and SetMultipleItemAction().
|
protected |
Definition at line 67 of file actiontargetscursor.c.
Referenced by ActionTargetsCursor(), GetActions(), PrepareCursorContent(), and Update().
|
protected |
Definition at line 61 of file actiontargetscursor.c.
Referenced by BuildFloatingCursor(), GetActionDesc(), GetActions(), GetItemCargoCount(), GetItemDesc(), GetItemFrozen(), GetItemHealth(), GetItemQuantity(), GetOnScreenPosition(), GetTarget(), SetItemDesc(), and Update().
|
protected |
Definition at line 83 of file actiontargetscursor.c.
Referenced by ActionTargetsCursor(), GetItemHealth(), PrepareCursorContent(), and SetItemHealth().
|
protected |
Definition at line 72 of file actiontargetscursor.c.
Referenced by ActionTargetsCursor(), and SetInteractActionIcon().
Definition at line 55 of file actiontargetscursor.c.
Referenced by Update().