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

Protected Member Functions

void PlayerContainer (LayoutHolder parent, int sort=-1)
void ~PlayerContainer ()
void AddSlotsContainer (int row_count)
override bool CanOpenCloseContainerEx (EntityAI focusedEntity)
override void CollapseButtonOnMouseButtonDown (Widget w)
override bool Combine ()
void DoubleClick (Widget w, int x, int y, int button)
override void DraggingOver (Widget w, int x, int y, Widget receiver)
override void DraggingOverHeader (Widget w, int x, int y, Widget receiver)
override void ExpandCollapseContainer ()
override EntityAI GetFocusedItem ()
ItemPreviewWidget GetItemPreviewWidget (Widget w)
float GetMainContainerBottomPos ()
float GetMainContainerTopPos ()
int GetRecipeCount (bool recipe_anywhere, EntityAI entity1, EntityAI entity2)
SlotsIcon GetSlotsIcon (int row, int column)
bool HasEntityContainerVisible (EntityAI entity)
override void Insert (LayoutHolder container, int pos=-1, bool immedUpdate=true)
override bool InspectItem ()
bool IsContainerWithCargoActive ()
bool IsEmptyItemActive ()
override bool IsItemActive ()
bool IsItemWithAttachmentsActive ()
bool IsItemWithContainerActive ()
override bool IsItemWithQuantityActive ()
bool IsPlayerEquipmentActive ()
void ItemAttached (EntityAI item, string slot_name)
void ItemDetached (EntityAI item, string slot_name)
void MouseClick (Widget w, int x, int y, int button)
void OnAttachmentReservationRelease (EntityAI item, int slot_id)
void OnAttachmentReservationSet (EntityAI item, int slot_id)
override bool OnChildAdd (Widget w, Widget child)
override bool OnChildRemove (Widget w, Widget child)
void OnDropReceivedFromGhostArea (Widget w, int x, int y, Widget receiver)
override void OnDropReceivedFromHeader (Widget w, int x, int y, Widget receiver)
override void Refresh ()
override bool Select ()
void SetPlayer (PlayerBase player)
void SwapItemsInOrder (int slot1, int slot2)
void ToggleContainer (Widget w, EntityAI item)
void ToggleWidget (Widget w)
override bool TransferItem ()
override bool TransferItemToVicinity ()
void UnfocusPlayerAttachmentsContainer ()
override void UpdateInterval ()
override void UpdateRadialIcon ()

Protected Attributes

const int HEADER_INDEX_OFFSET = 2
ref map< int, SlotsIconm_InventorySlots
PlayerBase m_Player
ref AttachmentsGroupContainer m_PlayerAttachmentsContainer
ref map< EntityAI, ref Containerm_ShowedItems = new map<EntityAI, ref Container>
ref map< int, ref Containerm_ShowedItemsIDs = new map<int, ref Container>

Additional Inherited Members

Private Member Functions inherited from CollapsibleContainer
void CollapsibleContainer (LayoutHolder parent, int sort=-1)
bool CanDisplayAnyCategory ()
void CollapseButtonOnMouseButtonDown (Widget w)
EntityAI GetEntity ()
override Header GetHeader ()
override void Insert (LayoutHolder container, int pos=-1, bool immedUpdate=true)
bool IsHidden ()
void LoadDefaultState ()
override bool OnChildAdd (Widget w, Widget child)
override bool OnChildRemove (Widget w, Widget child)
override void OnDropReceivedFromHeader (Widget w, int x, int y, Widget receiver)
override void OnHide ()
override void OnShow ()
override void Refresh ()
override void Remove (LayoutHolder container)
void SetCollapsibleHeaderArrowState (bool open)
override void SetHeader (Header header)
override void SetLayoutName ()
override void Toggle ()
void UpdateCollapseButtons ()
Private Attributes inherited from CollapsibleContainer
ref CollapsibleHeader m_CollapsibleHeader
bool m_Hidden

Detailed Description

Definition at line 1 of file playercontainer.c.

Constructor & Destructor Documentation

◆ PlayerContainer()

◆ ~PlayerContainer()

Member Function Documentation

◆ AddSlotsContainer()

void AddSlotsContainer ( int row_count)
inlineprotected

Definition at line 230 of file playercontainer.c.

References m_Player, and m_PlayerAttachmentsContainer.

Referenced by PlayerContainer().

◆ CanOpenCloseContainerEx()

override bool CanOpenCloseContainerEx ( EntityAI focusedEntity)
inlineprotected

◆ CollapseButtonOnMouseButtonDown()

override void CollapseButtonOnMouseButtonDown ( Widget w)
inlineprotected

Definition at line 1076 of file playercontainer.c.

◆ Combine()

◆ DoubleClick()

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

◆ DraggingOver()

◆ DraggingOverHeader()

◆ ExpandCollapseContainer()

override void ExpandCollapseContainer ( )
inlineprotected

Definition at line 449 of file playercontainer.c.

References m_PlayerAttachmentsContainer, and ToggleWidget().

◆ GetFocusedItem()

◆ GetItemPreviewWidget()

ItemPreviewWidget GetItemPreviewWidget ( Widget w)
inlineprotected

◆ GetMainContainerBottomPos()

float GetMainContainerBottomPos ( )
inlineprotected

Definition at line 307 of file playercontainer.c.

References x, and y.

◆ GetMainContainerTopPos()

float GetMainContainerTopPos ( )
inlineprotected

Definition at line 300 of file playercontainer.c.

References x, and y.

◆ GetRecipeCount()

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

Definition at line 511 of file playercontainer.c.

References g_Game, and GetPlugin().

◆ GetSlotsIcon()

SlotsIcon GetSlotsIcon ( int row,
int column )
inlineprotected

Definition at line 29 of file playercontainer.c.

References m_PlayerAttachmentsContainer.

Referenced by PlayerContainer(), and SetPlayer().

◆ HasEntityContainerVisible()

bool HasEntityContainerVisible ( EntityAI entity)
inlineprotected

◆ Insert()

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

Definition at line 317 of file playercontainer.c.

References Container::ClosableContainer().

◆ InspectItem()

override bool InspectItem ( )
inlineprotected

Definition at line 492 of file playercontainer.c.

References g_Game, GetFocusedItem(), and InspectItem().

Referenced by InspectItem(), and MouseClick().

◆ IsContainerWithCargoActive()

bool IsContainerWithCargoActive ( )
inlineprotected

Definition at line 457 of file playercontainer.c.

◆ IsEmptyItemActive()

bool IsEmptyItemActive ( )
inlineprotected

Definition at line 366 of file playercontainer.c.

References GetFocusedItem().

◆ IsItemActive()

override bool IsItemActive ( )
inlineprotected

◆ IsItemWithAttachmentsActive()

bool IsItemWithAttachmentsActive ( )
inlineprotected

Definition at line 462 of file playercontainer.c.

◆ IsItemWithContainerActive()

bool IsItemWithContainerActive ( )
inlineprotected

Definition at line 348 of file playercontainer.c.

References GetFocusedItem().

Referenced by IsItemActive().

◆ IsItemWithQuantityActive()

override bool IsItemWithQuantityActive ( )
inlineprotected

Definition at line 354 of file playercontainer.c.

References GetFocusedItem(), and QuantityConversions::HasItemQuantity().

Referenced by IsItemActive().

◆ IsPlayerEquipmentActive()

bool IsPlayerEquipmentActive ( )
inlineprotected

Definition at line 1081 of file playercontainer.c.

◆ ItemAttached()

◆ ItemDetached()

void ItemDetached ( EntityAI item,
string slot_name )
inlineprotected

◆ MouseClick()

◆ OnAttachmentReservationRelease()

void OnAttachmentReservationRelease ( EntityAI item,
int slot_id )
inlineprotected

Definition at line 224 of file playercontainer.c.

References SlotsIcon::Clear(), and m_InventorySlots.

Referenced by ~PlayerContainer(), and SetPlayer().

◆ OnAttachmentReservationSet()

void OnAttachmentReservationSet ( EntityAI item,
int slot_id )
inlineprotected

Definition at line 214 of file playercontainer.c.

References SlotsIcon::Init(), and m_InventorySlots.

Referenced by ~PlayerContainer(), and SetPlayer().

◆ OnChildAdd()

override bool OnChildAdd ( Widget w,
Widget child )
inlineprotected

Definition at line 1105 of file playercontainer.c.

References Refresh().

◆ OnChildRemove()

override bool OnChildRemove ( Widget w,
Widget child )
inlineprotected

Definition at line 1099 of file playercontainer.c.

References Refresh().

◆ OnDropReceivedFromGhostArea()

◆ OnDropReceivedFromHeader()

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

Definition at line 707 of file playercontainer.c.

References ItemPreviewWidget::GetItem(), GetItemPreviewWidget(), m_Player, x, and y.

◆ Refresh()

override void Refresh ( )
inlineprotected

◆ Select()

◆ SetPlayer()

◆ SwapItemsInOrder()

void SwapItemsInOrder ( int slot1,
int slot2 )
inlineprotected

Definition at line 986 of file playercontainer.c.

References m_Player, and m_ShowedItems.

◆ ToggleContainer()

void ToggleContainer ( Widget w,
EntityAI item )
inlineprotected

◆ ToggleWidget()

void ToggleWidget ( Widget w)
inlineprotected

◆ TransferItem()

override bool TransferItem ( )
inlineprotected

Definition at line 517 of file playercontainer.c.

References g_Game, GetFocusedItem(), and GetParent().

◆ TransferItemToVicinity()

override bool TransferItemToVicinity ( )
inlineprotected

Definition at line 467 of file playercontainer.c.

References g_Game, and GetFocusedItem().

◆ UnfocusPlayerAttachmentsContainer()

void UnfocusPlayerAttachmentsContainer ( )
inlineprotected

Definition at line 372 of file playercontainer.c.

References m_PlayerAttachmentsContainer.

◆ UpdateInterval()

override void UpdateInterval ( )
inlineprotected

◆ UpdateRadialIcon()

override void UpdateRadialIcon ( )
inlineprotected

Definition at line 11 of file playercontainer.c.

References CollapsibleContainer::IsHidden(), and m_Player.

Field Documentation

◆ HEADER_INDEX_OFFSET

const int HEADER_INDEX_OFFSET = 2
protected

Definition at line 9 of file playercontainer.c.

◆ m_InventorySlots

◆ m_Player

◆ m_PlayerAttachmentsContainer

ref AttachmentsGroupContainer m_PlayerAttachmentsContainer
protected

◆ m_ShowedItems

◆ m_ShowedItemsIDs

ref map<int, ref Container> m_ShowedItemsIDs = new map<int, ref Container>
protected

Definition at line 6 of file playercontainer.c.


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