DayZ Enforce
Script API
Private Member Functions | Private Attributes | List of all members
InventoryViewBase Class Reference

#include <InventoryViewBase.h>

Inheritance diagram for InventoryViewBase:
InventoryGridController InventoryView InventoryViewGrid InventoryViewHands

Private Member Functions

void  InventoryViewBase (InventoryContainer container, EntityAI entity, int properties)
 
void  ~InventoryViewBase ()
 
void  CreateLayout ()
 
void  UpdateItems ()
 
void  SetHeaderText (string text)
 
void  AddProxyCargo (Cargo proxyCargo)
 
protected void  UpdateLock ()
 
protected void  UpdateUnlock ()
 
protected void  InitAttachmentGrid (int panel_type)
 
protected void  InitIconGrid ()
 
protected void  InitCargoGrid (Cargo cargo, int panel_type)
 
protected void  UpdateAttachmentGrid ()
 
protected void  UpdateIconGrid ()
 
protected void  UpdateCargoGrid (int cargo_index)
 
protected InventoryItem  FindItem (InventoryGrid grid, int row, int col)
 
protected int  FindCargoIndex (InventoryGrid grid)
 
protected bool  MoveItem (InventoryGrid grid, int row, int col, bool testOnly)
 
protected bool  HasProperty (int mask)
 
EntityAI  GetEntity ()
 
bool  OnMouseButtonDown (Widget w, int x, int y, int button)
 
void  OnItemEnter (InventoryGrid grid, Widget w, int row, int col)
 
void  OnItemLeave (InventoryGrid grid, Widget w)
 
void  OnItemDrag (InventoryGrid grid, Widget w, int row, int col)
 
void  OnItemDraggingOver (InventoryGrid grid, Widget w, int row, int col)
 
void  OnItemDrop (InventoryGrid grid, Widget w)
 
void  OnItemDropReceived (InventoryGrid grid, Widget w, int row, int col)
 
void  OnItemRightClick (InventoryGrid grid, Widget w, int row, int col)
 
void  OnItemDoubleClick (InventoryGrid grid, Widget w, int row, int col)
 
vector  GetItemSize (InventoryGrid grid, InventoryItem item)
 
int  GetItemColor (InventoryGrid grid, InventoryItem item)
 
string  GetItemQuantityText (InventoryItem item)
 
int  HasItemQuantity (InventoryItem item)
 
float  GetItemQuantity (InventoryItem item)
 

Private Attributes

protected InventoryContainer  m_container
 
protected InventoryGrid  m_icon_grid
 
protected InventoryGrid  m_container_icon_grid
 
protected autoptr array< InventoryGrid m_cargo_grids
 
protected autoptr array< Cargo m_cargos
 
protected autoptr Link< EntityAI m_entity
 
protected autoptr Timer  m_update_lock_timer
 
protected AutoHeightSpacer  m_body_spacer
 
protected AutoHeightSpacer  m_content_spacer
 
protected autoptr TItemsMap  m_items
 
protected int  m_properties
 
protected Widget  m_container_icon
 
protected Widget  m_root
 
protected Widget  m_content
 
protected Widget  m_body
 
protected Widget  m_image_frame
 
protected TextWidget  m_header
 
protected Widget  m_minimize_widget
 
protected Widget  m_maximize_widget
 
protected bool  m_IsExpandable
 

Constructor & Destructor Documentation

void InventoryViewBase::InventoryViewBase ( InventoryContainer  container,
EntityAI  entity,
int  properties 
)
private
void InventoryViewBase::~InventoryViewBase ( )
private

Member Function Documentation

void InventoryViewBase::CreateLayout ( )
private
void InventoryViewBase::UpdateItems ( )
private
void InventoryViewBase::SetHeaderText ( string  text )
private
void InventoryViewBase::AddProxyCargo ( Cargo  proxyCargo )
private
void InventoryViewBase::UpdateLock ( )
private

References m_update_lock_timer, and Timer::Run().

Referenced by OnItemDrop(), and OnItemDropReceived().

void InventoryViewBase::UpdateUnlock ( )
private
void InventoryViewBase::InitAttachmentGrid ( int  panel_type )
private
void InventoryViewBase::InitIconGrid ( )
private
void InventoryViewBase::InitCargoGrid ( Cargo  cargo,
int  panel_type 
)
private
protected void InventoryViewBase::UpdateAttachmentGrid ( )
private
void InventoryViewBase::UpdateIconGrid ( )
private
void InventoryViewBase::UpdateCargoGrid ( int  cargo_index )
private
protected InventoryItem InventoryViewBase::FindItem ( InventoryGrid  grid,
int  row,
int  col 
)
private
protected int InventoryViewBase::FindCargoIndex ( InventoryGrid  grid )
private

Referenced by MoveItem().

bool InventoryViewBase::MoveItem ( InventoryGrid  grid,
int  row,
int  col,
bool  testOnly 
)
private
protected bool InventoryViewBase::HasProperty ( int  mask )
private

Referenced by InitCargoGrid(), and UpdateCargoGrid().

EntityAI InventoryViewBase::GetEntity ( )
private
bool InventoryViewBase::OnMouseButtonDown ( Widget  w,
int  x,
int  y,
int  button 
)
private
void InventoryViewBase::OnItemEnter ( InventoryGrid  grid,
Widget  w,
int  row,
int  col 
)
private
void InventoryViewBase::OnItemLeave ( InventoryGrid  grid,
Widget  w 
)
private
void InventoryViewBase::OnItemDrag ( InventoryGrid  grid,
Widget  w,
int  row,
int  col 
)
private
void InventoryViewBase::OnItemDraggingOver ( InventoryGrid  grid,
Widget  w,
int  row,
int  col 
)
private

References MoveItem().

void InventoryViewBase::OnItemDrop ( InventoryGrid  grid,
Widget  w 
)
private
void InventoryViewBase::OnItemDropReceived ( InventoryGrid  grid,
Widget  w,
int  row,
int  col 
)
private
void InventoryViewBase::OnItemRightClick ( InventoryGrid  grid,
Widget  w,
int  row,
int  col 
)
private
void InventoryViewBase::OnItemDoubleClick ( InventoryGrid  grid,
Widget  w,
int  row,
int  col 
)
private
vector InventoryViewBase::GetItemSize ( InventoryGrid  grid,
InventoryItem  item 
)
private
int InventoryViewBase::GetItemColor ( InventoryGrid  grid,
InventoryItem  item 
)
private
string InventoryViewBase::GetItemQuantityText ( InventoryItem  item )
private
int InventoryViewBase::HasItemQuantity ( InventoryItem  item )
private
float InventoryViewBase::GetItemQuantity ( InventoryItem  item )
private

Member Data Documentation

protected InventoryContainer InventoryViewBase::m_container
private
protected InventoryGrid InventoryViewBase::m_icon_grid
private

Referenced by MoveItem(), and UpdateIconGrid().

protected InventoryGrid InventoryViewBase::m_container_icon_grid
private

Referenced by MoveItem(), and UpdateIconGrid().

protected autoptr array<InventoryGrid> InventoryViewBase::m_cargo_grids
private
protected autoptr array<Cargo> InventoryViewBase::m_cargos
private
protected autoptr Link<EntityAI> InventoryViewBase::m_entity
private
protected autoptr Timer InventoryViewBase::m_update_lock_timer
private

Referenced by InventoryViewBase(), and UpdateLock().

protected AutoHeightSpacer InventoryViewBase::m_body_spacer
private
protected AutoHeightSpacer InventoryViewBase::m_content_spacer
private
protected autoptr TItemsMap InventoryViewBase::m_items
private
protected int InventoryViewBase::m_properties
private

Referenced by InventoryViewBase().

protected Widget InventoryViewBase::m_container_icon
private
protected Widget InventoryViewBase::m_root
private
protected Widget InventoryViewBase::m_content
private

Referenced by InitCargoGrid().

protected Widget InventoryViewBase::m_body
private
protected Widget InventoryViewBase::m_image_frame
private
protected TextWidget InventoryViewBase::m_header
private
protected Widget InventoryViewBase::m_minimize_widget
private
protected Widget InventoryViewBase::m_maximize_widget
private
protected bool InventoryViewBase::m_IsExpandable
private

The documentation for this class was generated from the following files:
Converted from CHM to HTML with chm2web Pro 2.85 (unicode)