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

Protected Member Functions

void HandsContainer (LayoutHolder parent)
void ~HandsContainer ()
void AttachmentAdded (EntityAI item, string slot, EntityAI parent)
void AttachmentRemoved (EntityAI item, string slot, EntityAI parent)
void CollapseButtonOnMouseButtonDown (Widget w)
void DestroyAtt ()
void DestroyCargo ()
void DoubleClick (Widget w, int x, int y, int button)
bool DraggingOverGrid (Widget w, int x, int y, Widget reciever, CargoContainer cargo)
override void DraggingOverHeader (Widget w, int x, int y, Widget receiver)
void DraggingOverHeader2 (Widget w, int x, int y, Widget receiver)
void DropReceived (Widget w, int x, int y, CargoContainer cargo)
void ElectricityIcon ()
override bool EquipItem ()
int GetCombinationFlags (EntityAI entity1, EntityAI entity2)
override Header GetHeader ()
EntityAI GetItemPreviewItem (Widget w)
int GetRecipeCount (bool recipe_anywhere, EntityAI entity1, EntityAI entity2)
void HideCargo ()
override void Insert (LayoutHolder container, int pos=-1, bool immedUpdate=true)
override bool InspectItem ()
override bool IsEmpty ()
override bool IsItemActive ()
override bool IsItemWithQuantityActive ()
override bool IsLastIndex ()
void MouseClick2 (Widget w, int x, int y, int button)
override void OnDropReceivedFromHeader (Widget w, int x, int y, Widget receiver)
void OnDropReceivedFromHeader2 (Widget w, int x, int y, Widget receiver)
void OnPerformCombination (int combinationFlags)
override bool OnSelectButton ()
override void OnShow ()
override void Refresh ()
void RefreshHands ()
void RemoveItem ()
void ResetContainer ()
void ScrollToActiveContainer (Container active_container)
override void SetActive (bool active)
void SetFocusToIndex ()
override void SetLastActive ()
override void SetLayoutName ()
void ShowActionMenuCombine (EntityAI entity1, EntityAI entity2, int combinationFlags)
void ShowAtt (EntityAI entity)
void ShowCargo ()
override bool SplitItem ()
void TakeAsAttachment (Widget w, Widget receiver)
override bool TransferItem ()
override bool TransferItemToVicinity ()
override void UnfocusAll ()
override void UnfocusGrid ()
override void UpdateInterval ()

Protected Attributes

ref map< EntityAI, ref Attachmentsm_AttachmentAttachments
ref map< EntityAI, AttachmentsWrapperm_AttachmentAttachmentsContainers
ref map< EntityAI, ref CargoContainerm_AttachmentCargos
ref array< intm_AttachmentSlotsSorted
ref Attachments m_Atts
ref CargoContainer m_CargoGrid
ref HandsHeader m_CollapsibleHeader
ref HandsPreview m_HandsPreview
bool m_Hidden
ScrollWidget m_ScrollWidget
int m_StaticAttCount = 0
int m_StaticCargoCount = 0

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 handscontainer.c.

Constructor & Destructor Documentation

◆ HandsContainer()

◆ ~HandsContainer()

Member Function Documentation

◆ AttachmentAdded()

◆ AttachmentRemoved()

◆ CollapseButtonOnMouseButtonDown()

void CollapseButtonOnMouseButtonDown ( Widget w)
inlineprotected

Definition at line 1555 of file handscontainer.c.

References m_Hidden, and m_Parent.

◆ DestroyAtt()

void DestroyAtt ( )
inlineprotected

◆ DestroyCargo()

void DestroyCargo ( )
inlineprotected

◆ DoubleClick()

void DoubleClick ( Widget w,
int x,
int y,
int button )
inlineprotected

Definition at line 1477 of file handscontainer.c.

References g_Game, ItemPreviewWidget::GetItem(), name, x, and y.

◆ DraggingOverGrid()

◆ DraggingOverHeader()

◆ DraggingOverHeader2()

void DraggingOverHeader2 ( Widget w,
int x,
int y,
Widget receiver )
inlineprotected

Definition at line 1527 of file handscontainer.c.

References DraggingOverHeader(), x, and y.

◆ DropReceived()

◆ ElectricityIcon()

void ElectricityIcon ( )
inlineprotected

Definition at line 1532 of file handscontainer.c.

References FindAnyWidget(), and g_Game.

Referenced by UpdateInterval().

◆ EquipItem()

override bool EquipItem ( )
inlineprotected

Definition at line 235 of file handscontainer.c.

References g_Game.

◆ GetCombinationFlags()

◆ GetHeader()

override Header GetHeader ( )
inlineprotected

Definition at line 62 of file handscontainer.c.

References m_CollapsibleHeader.

Referenced by HandsPreview::CreateNewIcon().

◆ GetItemPreviewItem()

EntityAI GetItemPreviewItem ( Widget w)
inlineprotected

Definition at line 437 of file handscontainer.c.

References ItemPreviewWidget::GetItem(), and name.

Referenced by DraggingOverGrid(), DropReceived(), and TakeAsAttachment().

◆ GetRecipeCount()

int GetRecipeCount ( bool recipe_anywhere,
EntityAI entity1,
EntityAI entity2 )
inlineprotected

Definition at line 877 of file handscontainer.c.

References g_Game, and GetPlugin().

Referenced by GetCombinationFlags().

◆ HideCargo()

void HideCargo ( )
inlineprotected

Definition at line 1581 of file handscontainer.c.

References m_CargoGrid.

Referenced by ShowAtt(), and UpdateInterval().

◆ Insert()

override void Insert ( LayoutHolder container,
int pos = -1,
bool immedUpdate = true )
inlineprotected

Definition at line 182 of file handscontainer.c.

Referenced by AttachmentAdded(), and ShowAtt().

◆ InspectItem()

override bool InspectItem ( )
inlineprotected

Definition at line 385 of file handscontainer.c.

References g_Game, and InspectItem().

Referenced by InspectItem(), and MouseClick2().

◆ IsEmpty()

override bool IsEmpty ( )
inlineprotected

Definition at line 352 of file handscontainer.c.

References g_Game.

Referenced by IsItemActive(), and IsItemWithQuantityActive().

◆ IsItemActive()

override bool IsItemActive ( )
inlineprotected

◆ IsItemWithQuantityActive()

override bool IsItemWithQuantityActive ( )
inlineprotected

◆ IsLastIndex()

override bool IsLastIndex ( )
inlineprotected

Definition at line 67 of file handscontainer.c.

◆ MouseClick2()

void MouseClick2 ( Widget w,
int x,
int y,
int button )
inlineprotected

◆ OnDropReceivedFromHeader()

override void OnDropReceivedFromHeader ( Widget w,
int x,
int y,
Widget receiver )
inlineprotected

Definition at line 786 of file handscontainer.c.

References TakeAsAttachment(), x, and y.

◆ OnDropReceivedFromHeader2()

void OnDropReceivedFromHeader2 ( Widget w,
int x,
int y,
Widget receiver )
inlineprotected

Definition at line 620 of file handscontainer.c.

References TakeAsAttachment(), x, and y.

◆ OnPerformCombination()

◆ OnSelectButton()

◆ OnShow()

override void OnShow ( )
inlineprotected

Definition at line 1413 of file handscontainer.c.

◆ Refresh()

override void Refresh ( )
inlineprotected

◆ RefreshHands()

void RefreshHands ( )
inlineprotected

Definition at line 1278 of file handscontainer.c.

References m_Parent, and Refresh().

◆ RemoveItem()

void RemoveItem ( )
inlineprotected

Definition at line 883 of file handscontainer.c.

References m_CollapsibleHeader, and m_Entity.

◆ ResetContainer()

void ResetContainer ( )
inlineprotected

Definition at line 56 of file handscontainer.c.

References m_HandsPreview.

Referenced by ShowAtt().

◆ ScrollToActiveContainer()

void ScrollToActiveContainer ( Container active_container)
inlineprotected

◆ SetActive()

override void SetActive ( bool active)
inlineprotected

Definition at line 269 of file handscontainer.c.

References g_Game, x, and y.

◆ SetFocusToIndex()

void SetFocusToIndex ( )
inlineprotected

◆ SetLastActive()

override void SetLastActive ( )
inlineprotected

Definition at line 298 of file handscontainer.c.

References g_Game, x, and y.

◆ SetLayoutName()

override void SetLayoutName ( )
inlineprotected

Definition at line 1408 of file handscontainer.c.

References WidgetLayoutName::ClosableContainer.

◆ ShowActionMenuCombine()

◆ ShowAtt()

◆ ShowCargo()

void ShowCargo ( )
inlineprotected

Definition at line 1590 of file handscontainer.c.

References m_CargoGrid.

Referenced by ShowAtt(), and UpdateInterval().

◆ SplitItem()

override bool SplitItem ( )
inlineprotected

Definition at line 212 of file handscontainer.c.

References ItemBase::CanBeSplit(), and g_Game.

◆ TakeAsAttachment()

◆ TransferItem()

override bool TransferItem ( )
inlineprotected

Definition at line 187 of file handscontainer.c.

References g_Game.

◆ TransferItemToVicinity()

override bool TransferItemToVicinity ( )
inlineprotected

Definition at line 358 of file handscontainer.c.

References g_Game.

◆ UnfocusAll()

override void UnfocusAll ( )
inlineprotected

Definition at line 949 of file handscontainer.c.

References UnfocusGrid().

◆ UnfocusGrid()

override void UnfocusGrid ( )
inlineprotected

◆ UpdateInterval()

override void UpdateInterval ( )
inlineprotected

Field Documentation

◆ m_AttachmentAttachments

ref map<EntityAI, ref Attachments> m_AttachmentAttachments
protected

◆ m_AttachmentAttachmentsContainers

ref map<EntityAI, AttachmentsWrapper> m_AttachmentAttachmentsContainers
protected

◆ m_AttachmentCargos

◆ m_AttachmentSlotsSorted

ref array<int> m_AttachmentSlotsSorted
protected

Definition at line 13 of file handscontainer.c.

Referenced by AttachmentAdded(), and ShowAtt().

◆ m_Atts

ref Attachments m_Atts
protected

◆ m_CargoGrid

ref CargoContainer m_CargoGrid
protected

◆ m_CollapsibleHeader

ref HandsHeader m_CollapsibleHeader
protected

Definition at line 4 of file handscontainer.c.

Referenced by HandsContainer(), GetHeader(), RemoveItem(), ShowAtt(), and UpdateInterval().

◆ m_HandsPreview

ref HandsPreview m_HandsPreview
protected

Definition at line 5 of file handscontainer.c.

Referenced by HandsContainer(), and ResetContainer().

◆ m_Hidden

bool m_Hidden
protected

Definition at line 3 of file handscontainer.c.

Referenced by CollapseButtonOnMouseButtonDown().

◆ m_ScrollWidget

ScrollWidget m_ScrollWidget
protected

Definition at line 18 of file handscontainer.c.

Referenced by HandsContainer(), ScrollToActiveContainer(), and SetFocusToIndex().

◆ m_StaticAttCount

int m_StaticAttCount = 0
protected

Definition at line 15 of file handscontainer.c.

Referenced by ShowAtt().

◆ m_StaticCargoCount

int m_StaticCargoCount = 0
protected

Definition at line 16 of file handscontainer.c.

Referenced by ShowAtt().


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