Dayz Explorer 1.28.160049
Loading...
Searching...
No Matches
PlayerContainer Class Reference
Inheritance diagram for PlayerContainer:
CollapsibleContainer

Protected Member Functions

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

Protected Attributes

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

Detailed Description

Definition at line 1 of file playercontainer.c.

Constructor & Destructor Documentation

◆ PlayerContainer()

void PlayerContainer::PlayerContainer ( LayoutHolder parent,
int sort = -1 )
protected

Definition at line 34 of file playercontainer.c.

◆ ~PlayerContainer()

void PlayerContainer::~PlayerContainer ( )
protected

Definition at line 113 of file playercontainer.c.

Member Function Documentation

◆ AddSlotsContainer()

void PlayerContainer::AddSlotsContainer ( int row_count)
protected

Definition at line 230 of file playercontainer.c.

◆ CanOpenCloseContainerEx()

override bool PlayerContainer::CanOpenCloseContainerEx ( EntityAI focusedEntity)
protected

Definition at line 1044 of file playercontainer.c.

◆ CollapseButtonOnMouseButtonDown()

override void PlayerContainer::CollapseButtonOnMouseButtonDown ( Widget w)
protected

Definition at line 1076 of file playercontainer.c.

◆ Combine()

override bool PlayerContainer::Combine ( )
protected

Definition at line 560 of file playercontainer.c.

◆ DoubleClick()

void PlayerContainer::DoubleClick ( Widget w,
int x,
int y,
int button )
protected

Definition at line 377 of file playercontainer.c.

◆ DraggingOver()

override void PlayerContainer::DraggingOver ( Widget w,
int x,
int y,
Widget receiver )
protected

Definition at line 782 of file playercontainer.c.

◆ DraggingOverHeader()

override void PlayerContainer::DraggingOverHeader ( Widget w,
int x,
int y,
Widget receiver )
protected

Definition at line 748 of file playercontainer.c.

◆ ExpandCollapseContainer()

override void PlayerContainer::ExpandCollapseContainer ( )
protected

Definition at line 449 of file playercontainer.c.

◆ GetFocusedItem()

override EntityAI PlayerContainer::GetFocusedItem ( )
protected

Definition at line 555 of file playercontainer.c.

◆ GetItemPreviewWidget()

ItemPreviewWidget PlayerContainer::GetItemPreviewWidget ( Widget w)
protected

Definition at line 731 of file playercontainer.c.

◆ GetMainContainerBottomPos()

float PlayerContainer::GetMainContainerBottomPos ( )
protected

Definition at line 307 of file playercontainer.c.

◆ GetMainContainerTopPos()

float PlayerContainer::GetMainContainerTopPos ( )
protected

Definition at line 300 of file playercontainer.c.

◆ GetRecipeCount()

int PlayerContainer::GetRecipeCount ( bool recipe_anywhere,
EntityAI entity1,
EntityAI entity2 )
protected

Definition at line 511 of file playercontainer.c.

◆ GetSlotsIcon()

SlotsIcon PlayerContainer::GetSlotsIcon ( int row,
int column )
protected

Definition at line 29 of file playercontainer.c.

◆ HasEntityContainerVisible()

bool PlayerContainer::HasEntityContainerVisible ( EntityAI entity)
protected

Definition at line 23 of file playercontainer.c.

◆ Insert()

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

Definition at line 317 of file playercontainer.c.

◆ InspectItem()

override bool PlayerContainer::InspectItem ( )
protected

Definition at line 492 of file playercontainer.c.

◆ IsContainerWithCargoActive()

bool PlayerContainer::IsContainerWithCargoActive ( )
protected

Definition at line 457 of file playercontainer.c.

◆ IsEmptyItemActive()

bool PlayerContainer::IsEmptyItemActive ( )
protected

Definition at line 366 of file playercontainer.c.

◆ IsItemActive()

override bool PlayerContainer::IsItemActive ( )
protected

Definition at line 360 of file playercontainer.c.

◆ IsItemWithAttachmentsActive()

bool PlayerContainer::IsItemWithAttachmentsActive ( )
protected

Definition at line 462 of file playercontainer.c.

◆ IsItemWithContainerActive()

bool PlayerContainer::IsItemWithContainerActive ( )
protected

Definition at line 348 of file playercontainer.c.

◆ IsItemWithQuantityActive()

override bool PlayerContainer::IsItemWithQuantityActive ( )
protected

Definition at line 354 of file playercontainer.c.

◆ IsPlayerEquipmentActive()

bool PlayerContainer::IsPlayerEquipmentActive ( )
protected

Definition at line 1081 of file playercontainer.c.

◆ ItemAttached()

void PlayerContainer::ItemAttached ( EntityAI item,
string slot_name )
protected

Definition at line 124 of file playercontainer.c.

◆ ItemDetached()

void PlayerContainer::ItemDetached ( EntityAI item,
string slot_name )
protected

Definition at line 189 of file playercontainer.c.

◆ MouseClick()

void PlayerContainer::MouseClick ( Widget w,
int x,
int y,
int button )
protected

Definition at line 237 of file playercontainer.c.

◆ OnAttachmentReservationRelease()

void PlayerContainer::OnAttachmentReservationRelease ( EntityAI item,
int slot_id )
protected

Definition at line 224 of file playercontainer.c.

◆ OnAttachmentReservationSet()

void PlayerContainer::OnAttachmentReservationSet ( EntityAI item,
int slot_id )
protected

Definition at line 214 of file playercontainer.c.

◆ OnChildAdd()

override bool PlayerContainer::OnChildAdd ( Widget w,
Widget child )
protected

Definition at line 1105 of file playercontainer.c.

◆ OnChildRemove()

override bool PlayerContainer::OnChildRemove ( Widget w,
Widget child )
protected

Definition at line 1099 of file playercontainer.c.

◆ OnDropReceivedFromGhostArea()

void PlayerContainer::OnDropReceivedFromGhostArea ( Widget w,
int x,
int y,
Widget receiver )
protected

Definition at line 876 of file playercontainer.c.

◆ OnDropReceivedFromHeader()

override void PlayerContainer::OnDropReceivedFromHeader ( Widget w,
int x,
int y,
Widget receiver )
protected

Definition at line 707 of file playercontainer.c.

◆ Refresh()

override void PlayerContainer::Refresh ( )
protected

Definition at line 1091 of file playercontainer.c.

◆ Select()

override bool PlayerContainer::Select ( )
protected

Definition at line 584 of file playercontainer.c.

◆ SetPlayer()

void PlayerContainer::SetPlayer ( PlayerBase player)
protected

Definition at line 661 of file playercontainer.c.

◆ SwapItemsInOrder()

void PlayerContainer::SwapItemsInOrder ( int slot1,
int slot2 )
protected

Definition at line 986 of file playercontainer.c.

◆ ToggleContainer()

void PlayerContainer::ToggleContainer ( Widget w,
EntityAI item )
protected

Definition at line 1031 of file playercontainer.c.

◆ ToggleWidget()

void PlayerContainer::ToggleWidget ( Widget w)
protected

Definition at line 1058 of file playercontainer.c.

◆ TransferItem()

override bool PlayerContainer::TransferItem ( )
protected

Definition at line 517 of file playercontainer.c.

◆ TransferItemToVicinity()

override bool PlayerContainer::TransferItemToVicinity ( )
protected

Definition at line 467 of file playercontainer.c.

◆ UnfocusPlayerAttachmentsContainer()

void PlayerContainer::UnfocusPlayerAttachmentsContainer ( )
protected

Definition at line 372 of file playercontainer.c.

◆ UpdateInterval()

override void PlayerContainer::UpdateInterval ( )
protected

Definition at line 1009 of file playercontainer.c.

◆ UpdateRadialIcon()

override void PlayerContainer::UpdateRadialIcon ( )
protected

Definition at line 11 of file playercontainer.c.

Member Data Documentation

◆ HEADER_INDEX_OFFSET

const int PlayerContainer::HEADER_INDEX_OFFSET = 2
protected

Definition at line 9 of file playercontainer.c.

◆ m_InventorySlots

ref map<int, SlotsIcon> PlayerContainer::m_InventorySlots
protected

Definition at line 4 of file playercontainer.c.

◆ m_Player

PlayerBase PlayerContainer::m_Player
protected

Definition at line 7 of file playercontainer.c.

◆ m_PlayerAttachmentsContainer

ref AttachmentsGroupContainer PlayerContainer::m_PlayerAttachmentsContainer
protected

Definition at line 3 of file playercontainer.c.

◆ m_ShowedItems

ref map<EntityAI, ref Container> PlayerContainer::m_ShowedItems = new map<EntityAI, ref Container>
protected

Definition at line 5 of file playercontainer.c.

◆ m_ShowedItemsIDs

ref map<int, ref Container> PlayerContainer::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: