Private 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) |
protected void | SetXboxIcon (string name, string imageset_name, string image_name) |
protected void | SetControllerIcon (string pWidgetName, string pInputName) |
protected void | OnWidgetScriptInit (Widget w) |
protected void | OnInputPresetChanged () |
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 | PrepareCursorContent () |
protected void | BuildFixedCursor () |
protected void | BuildFloatingCursor (bool forceRebuild) |
override bool | OnUpdate (Widget w) |
protected void | HideWidget () |
void | Update () |
protected void | ShowXboxHidePCIcons (string widget, bool show_xbox_icon) |
protected vector | TransformToScreenPos (vector pWorldPos) |
transform world pos to screen pos (related to parent widget size) | |
protected void | GetOnScreenPosition (out float x, out float y) |
protected bool | IsComponentInSelection (array< Selection > selection, string compName) |
protected void | GetPlayer () |
protected void | GetActionManager () |
protected void | GetActions () |
get actions from Action Manager | |
protected void | GetTarget () |
protected string | GetActionDesc (ActionBase action) |
protected string | GetItemDesc (ActionBase action) |
protected int | GetItemHealth () |
protected bool | GetItemFrozen () |
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 | SetItemDesc (string descText, int cargoCount, string itemWidget, string descWidget) |
protected void | SetItemHealth (int health, string itemWidget, string healthWidget, bool enabled) |
protected void | SetItemQuantity (int type, float current, int min, int max, string itemWidget, string quantityPBWidget, string quantityTextWidget, bool enabled) |
protected void | SetActionWidget (ActionBase action, string descText, string actionWidget, string descWidget) |
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 | CheckRefresherFlagVisibilityEx (ActionTarget target) |
protected int | AttachmentsWithInventoryOrCargoCount (notnull GameInventory inventory) |
protected IngameHud | GetHud () |
protected void | CheckRefresherFlagVisibility (Object object) |
|
inlineprivate |
References GetGame(), GetHud(), UAInputAPI::GetInputByID(), CGame::GetMission(), Mission::GetOnInputDeviceChanged(), Mission::GetOnInputPresetChanged(), UAInput::GetPersistentWrapper(), GetUApi(), ScriptInvoker::Insert(), 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().
|
inlineprivate |
|
inlineprivate |
References CargoBase::GetItemCount().
|
inlineprivate |
References GetScreenSize(), m_Root, PrepareCursorContent(), x, and y.
Referenced by Update().
|
inlineprivate |
Get OnScreenPos when forced or targeted component differs
in case of cached item, all above is reused except the position
References Math::Ceil(), ATCCachedObject::GetCursorCompIdx(), ATCCachedObject::GetCursorWorldPos(), GetOnScreenPosition(), m_CachedObject, m_Root, m_Target, PrepareCursorContent(), and TransformToScreenPos().
Referenced by Update().
|
private |
|
inlineprivate |
|
inlineprivate |
References ActionBase::DisplayTargetInActionText(), string::Format(), ActionBase::GetTargetName(), ActionBase::GetText(), m_Player, and m_Target.
Referenced by PrepareCursorContent().
|
inlineprivate |
References Class::CastTo(), m_AM, and m_Player.
Referenced by Update().
|
inlineprivate |
get actions from Action Manager
Referenced by Update().
|
inlineprivate |
References GetGame(), Mission::GetHud(), CGame::GetMission(), and mission.
Referenced by ActionTargetsCursor().
|
inlineprivate |
returns number of items in cargo for targeted entity
default cargo count
Referenced by PrepareCursorContent().
|
inlineprivate |
References m_DisplayInteractTarget, m_Target, LOD::NAME_FIRE, LOD::NAME_VIEW, and EntityAI::ShowZonesHealth().
Referenced by PrepareCursorContent().
|
inlineprivate |
References m_DisplayInteractTarget, and m_Target.
Referenced by PrepareCursorContent().
|
inlineprivate |
References Class::CastTo(), ActionBase::HasTarget(), EntityAI::IsMan(), m_DisplayInteractTarget, m_Interact, m_Target, m_TargetItemFrozen, LOD::NAME_FIRE, and LOD::NAME_VIEW.
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
References Math::AbsFloat(), string::Contains(), vector::DistanceSq(), GetName(), LOD::GetSelections(), GetType(), HasFixedActionTargetCursorPosition(), IsComponentInSelection(), m_CachedObject, m_FixedOnPosition, m_Player, m_Target, LOD::NAME_MEMORY, ATCCachedObject::Store(), TransformToScreenPos(), x, y, and vector::Zero.
Referenced by BuildFloatingCursor().
|
inlineprivate |
References Class::CastTo(), GetGame(), GetPlayer(), and m_Player.
Referenced by GetPlayer(), and Update().
|
inlineprivate |
References ActionManagerClient::FindActionTarget(), InventoryLocation::GetType(), ItemBase::IsTakeable(), m_AM, m_Hidden, m_Player, and m_Target.
Referenced by Update().
|
inlineprivate |
References ATCCachedObject::Invalidate(), m_CachedObject, and m_Root.
Referenced by Update().
|
inlineprivate |
Referenced by GetOnScreenPosition().
|
inlineprivate |
References UpdatePCIconsVisibility().
Referenced by ActionTargetsCursor().
|
inlineprivate |
References UpdateControllerInputIcons().
Referenced by ActionTargetsCursor().
|
inlineprivate |
UA -> widget icon
References m_Container, m_ItemLeft, m_Root, UpdateControllerInputIcons(), and UpdatePCIconsVisibility().
|
inlineprivate |
item health
quantity
cargo in item
fill the widget with data
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().
|
inlineprivate |
References Class::CastTo(), ActionBase::GetInput(), ActionInput::GetInputType(), ActionBase::HasTarget(), m_AM, m_MaxWidthChild, m_Root, x, and y.
Referenced by PrepareCursorContent().
References InputUtils::GetRichtextButtonIconFromInputAction(), and m_Root.
Referenced by UpdateControllerInputIcons().
|
inlineprivate |
References m_HealthEnabled.
|
inlineprivate |
References Class::CastTo(), InputUtils::GetButtonNameFromInput(), GetDayZGame(), UAIDWrapper::InputP(), m_Root, and m_UseActionWrapper.
Referenced by PrepareCursorContent().
|
inlineprivate |
Last message from finished User Action on target (Thermometer, Blood Test Kit, etc.)
when cargo in container
References Class::CastTo(), string::Format(), string::Length(), m_Root, m_Target, and string::ToUpper().
Referenced by PrepareCursorContent().
|
inlineprivate |
References Class::CastTo(), Colors::COLOR_FROZEN, ItemManager::GetItemHealthColor(), m_Root, m_TargetItemFrozen, and GameConstants::STATE_RUINED.
Referenced by PrepareCursorContent().
|
inlineprivate |
References Class::CastTo(), m_Root, QUANTITY_COUNT, QUANTITY_HIDDEN, QUANTITY_PROGRESS, Math::Round(), and float::ToString().
Referenced by PrepareCursorContent().
|
inlineprivate |
References m_ContinuousInteractActionsNum, m_Root, and m_SelectedActionCategory.
Referenced by PrepareCursorContent().
|
inlineprivate |
References ContinuousDefaultActionInput(), m_ContinuousItemActionsNum, m_Root, and m_SelectedActionCategory.
Referenced by PrepareCursorContent().
|
inlineprivate |
shows arrows near the interact action if there are more than one available
Referenced by PrepareCursorContent().
|
inlineprivate |
References m_ItemActionsNum, m_Root, and m_SelectedActionCategory.
Referenced by PrepareCursorContent().
|
inlineprivate |
References m_QuantityEnabled.
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
Referenced by BuildFloatingCursor(), and GetOnScreenPosition().
|
inlineprivate |
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
References BuildFixedCursor(), BuildFloatingCursor(), CheckRefresherFlagVisibilityEx(), ATCCachedObject::Get(), GetActionManager(), GetActions(), GetDayZGame(), GetPlayer(), PPEManagerStatic::GetPPEManager(), GetTarget(), ActionBase::HasTarget(), HideWidget(), ATCCachedObject::Invalidate(), 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(), and Hud::Update().
|
inlineprivate |
Loads icons from the latest keybinds.
References SetControllerIcon().
Referenced by OnInputPresetChanged(), and OnWidgetScriptInit().
|
inlineprivate |
Contains logic for icon set switching (Gamepad/M&K)
References Input::GetCurrentInputDevice(), GetGame(), CGame::GetInput(), Input::IsEnabledMouseAndKeyboardEvenOnServer(), and ShowXboxHidePCIcons().
Referenced by OnInputDeviceChanged(), and OnWidgetScriptInit().
|
private |
Referenced by ActionTargetsCursor(), GetActionManager(), GetTarget(), SetActionWidget(), and Update().
|
private |
Referenced by ActionTargetsCursor(), BuildFloatingCursor(), GetOnScreenPosition(), HideWidget(), and Update().
|
private |
Referenced by OnWidgetScriptInit().
|
private |
Referenced by ActionTargetsCursor(), PrepareCursorContent(), and Update().
|
private |
Referenced by ActionTargetsCursor(), PrepareCursorContent(), and Update().
|
private |
Referenced by SetMultipleContinuousInteractAction().
|
private |
Referenced by SetMultipleContinuousItemAction().
|
private |
Referenced by ActionTargetsCursor(), GetItemDesc(), GetItemFrozen(), GetItemHealth(), and GetItemQuantity().
|
private |
Referenced by GetOnScreenPosition(), and Update().
|
private |
Referenced by ActionTargetsCursor(), PrepareCursorContent(), and SetHealthVisibility().
|
private |
Referenced by ActionTargetsCursor(), GetTarget(), and Update().
|
private |
Referenced by ActionTargetsCursor(), and Update().
|
private |
Referenced by ActionTargetsCursor(), GetItemHealth(), GetItemQuantity(), PrepareCursorContent(), and Update().
|
private |
|
private |
Referenced by SetMultipleItemAction().
|
private |
Referenced by OnWidgetScriptInit().
|
private |
widget width
Referenced by SetActionWidget(), and Update().
|
private |
Referenced by CheckRefresherFlagVisibilityEx(), GetActionDesc(), GetActionManager(), GetOnScreenPosition(), GetPlayer(), GetTarget(), and Update().
|
private |
Referenced by ActionTargetsCursor(), PrepareCursorContent(), and SetQuantityVisibility().
|
private |
Referenced by BuildFixedCursor(), BuildFloatingCursor(), CheckRefresherFlagVisibilityEx(), HideWidget(), OnUpdate(), OnWidgetScriptInit(), SetActionWidget(), SetControllerIcon(), SetInteractActionIcon(), SetItemDesc(), SetItemHealth(), SetItemQuantity(), SetMultipleContinuousInteractAction(), SetMultipleContinuousItemAction(), SetMultipleItemAction(), ShowXboxHidePCIcons(), and Update().
|
private |
|
private |
|
private |
|
private |
Referenced by ActionTargetsCursor(), PrepareCursorContent(), and Update().
|
private |
|
private |
Referenced by ActionTargetsCursor(), GetItemHealth(), PrepareCursorContent(), and SetItemHealth().
|
private |
Referenced by ActionTargetsCursor(), and SetInteractActionIcon().
Referenced by Update().