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

#include <InventoryView.h>

Inheritance diagram for InventoryView:
InventoryViewBase InventoryViewHands

Private Member Functions

void  InventoryView (InventoryContainer container, EntityAI entity, int properties)
 
void  ~InventoryView ()
 
void  CreateLayout ()
 
void  UpdateItems ()
 
void  UpdateHeight (int panel_type)
 
void  SetHeaderText (string text)
 
void  SetHeaderCountText (EntityAI entity)
 
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)
 
protected bool  IsHistoryExpanded ()
 
protected void  SaveHistory ()
 
bool  OnDraggingOver (Widget w, int x, int y, Widget reciever)
 
bool  OnDropReceived (Widget w, int x, int y, Widget reciever)
 

Static Private Member Functions

static void  ClearHistory ()
 

Private Attributes

protected InventoryContainer  m_container
 
protected InventoryGrid  m_icon_grid
 
protected InventoryGrid  m_container_icon_grid
 
protected InventoryGrid  m_attachment_icon_grid
 
protected InventoryGrid  m_attachment_slot_grid
 
protected autoptr array< InventoryGrid m_cargo_grids
 
protected autoptr map< EntityAI, InventoryGrid m_attachment_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 AutoHeightSpacer  m_attachment_spacer
 
protected autoptr TItemsMap  m_items
 
protected int  m_properties
 
protected Widget  m_container_icon
 
protected Widget  m_root
 
protected Widget  m_attachment_grid
 
protected Widget  m_content
 
protected Widget  m_body
 
protected Widget  m_image_frame
 
protected Widget  m_header_bar
 
protected TextWidget  m_header
 
protected Widget  m_header_bg
 
protected TextWidget  m_count
 
protected Widget  m_minimize_widget
 
protected Widget  m_maximize_widget
 
protected Widget  m_empty_attachment_slot
 
protected bool  m_IsExpandable
 
protected const int  TYPE_PANEL_DEFAULT = 0
 
protected const int  TYPE_PANEL_HANDS = 1
 

Static Private Attributes

static protected const int  EXPANDED_HISTORY_SIZE = 20
 
static protected int  s_expanded_history [EXPANDED_HISTORY_SIZE]
 
static protected int  s_expanded_history_index = 0
 

Constructor & Destructor Documentation

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

Member Function Documentation

void InventoryView::CreateLayout ( )
private
void InventoryView::UpdateItems ( )
private
void InventoryView::UpdateHeight ( int  panel_type )
private
void InventoryView::SetHeaderText ( string  text )
private
void InventoryView::SetHeaderCountText ( EntityAI  entity )
private
void InventoryView::AddProxyCargo ( Cargo  proxyCargo )
private
void InventoryView::UpdateLock ( )
private

References m_update_lock_timer, and Timer::Run().

Referenced by OnItemDrop(), and OnItemDropReceived().

void InventoryView::UpdateUnlock ( )
private

References UpdateItems().

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

References INDEX_NOT_FOUND, and m_cargo_grids.

Referenced by FindItem(), and MoveItem().

bool InventoryView::MoveItem ( InventoryGrid  grid,
int  row,
int  col,
bool  testOnly 
)
private
protected bool InventoryView::HasProperty ( int  mask )
private
EntityAI InventoryView::GetEntity ( )
private
bool InventoryView::OnMouseButtonDown ( Widget  w,
int  x,
int  y,
int  button 
)
private
void InventoryView::OnItemEnter ( InventoryGrid  grid,
Widget  w,
int  row,
int  col 
)
private
void InventoryView::OnItemLeave ( InventoryGrid  grid,
Widget  w 
)
private
void InventoryView::OnItemDrag ( InventoryGrid  grid,
Widget  w,
int  row,
int  col 
)
private
void InventoryView::OnItemDraggingOver ( InventoryGrid  grid,
Widget  w,
int  row,
int  col 
)
private
void InventoryView::OnItemDrop ( InventoryGrid  grid,
Widget  w 
)
private
void InventoryView::OnItemDropReceived ( InventoryGrid  grid,
Widget  w,
int  row,
int  col 
)
private
void InventoryView::OnItemRightClick ( InventoryGrid  grid,
Widget  w,
int  row,
int  col 
)
private
void InventoryView::OnItemDoubleClick ( InventoryGrid  grid,
Widget  w,
int  row,
int  col 
)
private
vector InventoryView::GetItemSize ( InventoryGrid  grid,
InventoryItem  item 
)
private
int InventoryView::GetItemColor ( InventoryGrid  grid,
InventoryItem  item 
)
private
string InventoryView::GetItemQuantityText ( InventoryItem  item )
private
int InventoryView::HasItemQuantity ( InventoryItem  item )
private
float InventoryView::GetItemQuantity ( InventoryItem  item )
private
bool InventoryView::IsHistoryExpanded ( )
private
void InventoryView::SaveHistory ( )
private
void InventoryView::ClearHistory ( )
staticprivate
bool InventoryView::OnDraggingOver ( Widget  w,
int  x,
int  y,
Widget  reciever 
)
private
bool InventoryView::OnDropReceived ( Widget  w,
int  x,
int  y,
Widget  reciever 
)
private

Member Data Documentation

protected InventoryContainer InventoryView::m_container
private
protected InventoryGrid InventoryView::m_icon_grid
private
protected InventoryGrid InventoryView::m_container_icon_grid
private
protected InventoryGrid InventoryView::m_attachment_icon_grid
private

Referenced by InitAttachmentGrid().

protected InventoryGrid InventoryView::m_attachment_slot_grid
private
protected autoptr array<InventoryGrid> InventoryView::m_cargo_grids
private
protected autoptr map<EntityAI, InventoryGrid> InventoryView::m_attachment_grids
private
protected autoptr array<Cargo> InventoryView::m_cargos
private
protected autoptr Link<EntityAI> InventoryView::m_entity
private
protected autoptr Timer InventoryView::m_update_lock_timer
private
protected AutoHeightSpacer InventoryView::m_body_spacer
private
protected AutoHeightSpacer InventoryView::m_content_spacer
private
protected AutoHeightSpacer InventoryView::m_attachment_spacer
private
protected autoptr TItemsMap InventoryView::m_items
private

Referenced by InventoryView(), and UpdateCargoGrid().

protected int InventoryView::m_properties
private

Referenced by InventoryView().

protected Widget InventoryView::m_container_icon
private
protected Widget InventoryView::m_root
private
protected Widget InventoryView::m_attachment_grid
private
protected Widget InventoryView::m_content
private
protected Widget InventoryView::m_body
private
protected Widget InventoryView::m_image_frame
private
protected Widget InventoryView::m_header_bar
private

Referenced by CreateLayout(), and OnMouseButtonDown().

protected TextWidget InventoryView::m_header
private
protected Widget InventoryView::m_header_bg
private
protected TextWidget InventoryView::m_count
private
protected Widget InventoryView::m_minimize_widget
private
protected Widget InventoryView::m_maximize_widget
private
protected Widget InventoryView::m_empty_attachment_slot
private
protected bool InventoryView::m_IsExpandable
private
protected const int InventoryView::TYPE_PANEL_DEFAULT = 0
private
protected const int InventoryView::TYPE_PANEL_HANDS = 1
private
protected const int InventoryView::EXPANDED_HISTORY_SIZE = 20
staticprivate

Referenced by ClearHistory(), and IsHistoryExpanded().

protected int InventoryView::s_expanded_history[EXPANDED_HISTORY_SIZE]
staticprivate
protected int InventoryView::s_expanded_history_index = 0
staticprivate

Referenced by ClearHistory(), and SaveHistory().


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