Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Loading...
Searching...
No Matches
HandsPreview Class Reference
Inheritance diagram for HandsPreview:
Container

Protected Member Functions

ItemBase m_Item void HandsPreview (LayoutHolder parent)
void ~HandsPreview ()
void CreateNewIcon (ItemBase item)
void DeleteIcon ()
override EntityAI GetFocusedItem ()
Icon GetIcon ()
float GetIconSize ()
void RefreshQuantity (EntityAI m_Item_to_refresh)
void RemoveItem ()
override bool Select ()
override bool SelectItem ()
override void SetDefaultFocus (bool while_micromanagment_mode=false)
override void SetLastFocus ()
override void SetLayoutName ()
override void Unfocus ()
override void UpdateInterval ()

Protected Attributes

EntityAI m_AttachmentsInitialized
ref Icon m_Icon
float m_IconSize

Additional Inherited Members

Private Member Functions inherited from Container
void ~CargoContainer ()
void AddedToCargo (EntityAI item)
void AddedToCargoEx (EntityAI item, bool refresh=true)
override bool CanCombineAmmo ()
void CargoContainer (LayoutHolder parent, bool is_attachment=false)
override void CheckHeaderDragability ()
void ClosableContainer (LayoutHolder parent, int sort=-1)
override void Close ()
void CloseButtonOnMouseButtonDown ()
override bool Combine ()
override LayoutHolder Get (int x)
int GetAttachmentSlotID ()
int GetCargoCapacity ()
int GetCargoIndex ()
EntityAI GetEntity ()
override float GetFocusedContainerHeight (bool contents=false)
override float GetFocusedContainerHeight (bool contents=false)
override float GetFocusedContainerYPos (bool contents=false)
override float GetFocusedContainerYPos (bool contents=false)
override float GetFocusedContainerYScreenPos (bool contents=false)
override float GetFocusedContainerYScreenPos (bool contents=false)
Icon GetFocusedIcon ()
override EntityAI GetFocusedItem ()
override Header GetHeader ()
Icon GetIcon (EntityAI item)
Icon GetIcon (int index)
int GetIconsCount ()
float GetIconSize ()
int GetMaxCargoCapacity ()
int GetRecipeCount (bool recipe_anywhere, ItemBase entity1, ItemBase entity2, PlayerBase player)
float GetSpaceSize ()
bool HasItem (EntityAI item)
void InitGridHeight ()
Icon InitIcon (Icon icon, EntityAI item, int pos_x, int pos_y)
Icon InitIconEx (Icon icon, EntityAI item, int pos_x, int pos_y, bool refresh=true)
override bool IsDisplayable ()
override bool IsEmpty ()
override bool IsItemActive ()
override bool IsItemWithQuantityActive ()
void MoveContainerDown (Widget cont)
void MoveContainerUp (Widget cont)
void MovedInCargo (EntityAI item)
override void OnShow ()
override void Open ()
override void Refresh ()
override void Refresh ()
void RefreshImpl ()
void ReleaseLock (EntityAI item)
void RemovedFromCargo (EntityAI item)
override bool Select ()
override bool SelectItem ()
override void SetActive (bool active)
void SetAlternateFalseTextHeaderWidget (TextWidget w)
void SetAttachmentSlotID (int slotID)
override void SetDefaultFocus (bool while_micromanagment_mode=false)
void SetEntity (EntityAI item, int cargo_index=0, bool immedUpdate=true)
override void SetLastActive ()
override void SetLastFocus ()
override void SetLayoutName ()
override void SetLayoutName ()
void SetLock (EntityAI item)
override void SetNextActive ()
override void SetNextLeftActive ()
override void SetNextRightActive ()
void SetOpenState (bool state)
override void SetPreviousActive (bool force=false)
void ShowFalseCargoHeader (bool show)
override bool TransferItem ()
override bool TransferItemToVicinity ()
override void Unfocus ()
override void UnfocusAll ()
void UpdateHeaderText ()
override void UpdateInterval ()
override void UpdateRadialIcon ()
void UpdateRowVisibility (int count)
void UpdateSelection ()
void UpdateSize ()
Private Attributes inherited from Container
TextWidget m_AlternateFalseHeaderTextWidget
int m_AttachmentSlotID = -1
CargoBase m_Cargo
Widget m_CargoContainer
Widget m_CargoHeader
int m_CargoIndex = -1
ref ClosableHeader m_ClosableHeader
TextWidget m_FalseHeaderTextWidget
int m_FocusedItemPosition = -1
ref array< ref Iconm_Icons
float m_IconSize
bool m_IsAttachment
Widget m_ItemsContainer
bool m_LockCargo
ref SizeToChild m_Resizer1
ref SizeToChild m_Resizer2
ref Timer m_ResizeTimer
ref array< ref CargoContainerRowm_Rows
ref map< EntityAI, ref Param3< ref Icon, int, int > > m_ShowedItemPositions
ref map< EntityAI, ref Param3< ref Icon, int, int > > m_ShowedLockPositions
float m_SpaceSize
const int ROWS_NUMBER_XBOX = 5

Detailed Description

Definition at line 1 of file handspreview.c.

Constructor & Destructor Documentation

◆ HandsPreview()

ItemBase m_Item void HandsPreview ( LayoutHolder parent)
inlineprotected

Definition at line 10 of file handspreview.c.

References CreateNewIcon(), DeleteIcon(), and g_Game.

◆ ~HandsPreview()

void ~HandsPreview ( )
inlineprotected

Definition at line 16 of file handspreview.c.

References CreateNewIcon(), DeleteIcon(), and g_Game.

Member Function Documentation

◆ CreateNewIcon()

void CreateNewIcon ( ItemBase item)
inlineprotected

◆ DeleteIcon()

void DeleteIcon ( )
inlineprotected

Definition at line 129 of file handspreview.c.

References ARGB(), Inventory(), m_AttachmentsInitialized, m_Parent, m_RootWidget, and RemoveItem().

Referenced by HandsPreview(), and ~HandsPreview().

◆ GetFocusedItem()

override EntityAI GetFocusedItem ( )
inlineprotected

Definition at line 30 of file handspreview.c.

References m_Item.

◆ GetIcon()

Icon GetIcon ( )
inlineprotected

◆ GetIconSize()

float GetIconSize ( )
inlineprotected

Definition at line 61 of file handspreview.c.

References m_IconSize.

Referenced by Icon::SetPosEx(), and Icon::SetSize().

◆ RefreshQuantity()

void RefreshQuantity ( EntityAI m_Item_to_refresh)
inlineprotected

Definition at line 22 of file handspreview.c.

References m_Icon.

◆ RemoveItem()

void RemoveItem ( )
inlineprotected

Definition at line 71 of file handspreview.c.

References m_Icon, and m_Item.

Referenced by DeleteIcon().

◆ Select()

◆ SelectItem()

override bool SelectItem ( )
inlineprotected

◆ SetDefaultFocus()

override void SetDefaultFocus ( bool while_micromanagment_mode = false)
inlineprotected

Definition at line 40 of file handspreview.c.

References m_Icon.

◆ SetLastFocus()

override void SetLastFocus ( )
inlineprotected

Definition at line 47 of file handspreview.c.

References m_Icon.

◆ SetLayoutName()

override void SetLayoutName ( )
inlineprotected

Definition at line 66 of file handspreview.c.

References WidgetLayoutName::HandsPreview.

◆ Unfocus()

override void Unfocus ( )
inlineprotected

Definition at line 54 of file handspreview.c.

References m_Icon.

◆ UpdateInterval()

override void UpdateInterval ( )
inlineprotected

Definition at line 77 of file handspreview.c.

References g_Game, ItemManager::GetInstance(), ItemManager::IsDragging(), and m_Icon.

Field Documentation

◆ m_AttachmentsInitialized

EntityAI m_AttachmentsInitialized
protected

Definition at line 4 of file handspreview.c.

Referenced by DeleteIcon().

◆ m_Icon

ref Icon m_Icon
protected

◆ m_IconSize

float m_IconSize
protected

Definition at line 6 of file handspreview.c.

Referenced by CreateNewIcon(), and GetIconSize().


The documentation for this class was generated from the following file:
  • F:/Games/Dayz/scripts/5_mission/gui/inventorynew/containeditems/handspreview.c