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

#include <InventoryMenu.h>

Inheritance diagram for InventoryMenu:
UIScriptedMenu

Private Member Functions

void  InventoryMenu ()
 
void  ~InventoryMenu ()
 
bool  UseKeyboard ()
 
Widget  Init ()
 
void  InitContainers (EntityAI target)
 
void  RefreshPlayerStatus ()
 
void  OnShow ()
 
void  OnHide ()
 
bool  OnClick (Widget w, int x, int y, int button)
 
bool  OnMouseButtonDown (Widget w, int x, int y, int button)
 
bool  OnMouseButtonUp (Widget w, int x, int y, int button)
 
bool  OnMouseWheel (Widget w, int x, int y, int wheel)
 
bool  OnDoubleClick (Widget w, int x, int y, int button)
 
void  OnPerformAction (Action action, PlayerBase player)
 
void  UpdateRotation (int mouse_x, int mouse_y, bool is_dragging)
 
void  UpdateScale (int mouse_x, int mouse_y, int wheel, bool is_dragging)
 
void  UpdatePlayerPreviewAnim (EntityAI inHands)
 
bool  OnFocusLost (Widget w, int x, int y)
 
bool  OnMouseEnter (Widget w, int x, int y)
 
bool  OnMouseLeave (Widget w, Widget enterW, int x, int y)
 
bool  OnSelect (Widget w, int x, int y)
 
void  Refresh ()
 
void  RefreshQuickbar ()
 
void  ShowQuickbar ()
 
void  HideQuickbar ()
 
void  PerformRefreshInventory ()
 
ContextMenu  GetContextMenu ()
 
Widget  GetCenterPanel ()
 
bool  OnDraggingOver (Widget w, int x, int y, Widget reciever)
 
bool  OnDropReceived (Widget w, int x, int y, Widget reciever)
 
bool  OnDrag (Widget w, int x, int y)
 
bool  OnDragging (Widget w, int x, int y, Widget reciever)
 
bool  OnDrop (Widget w, int x, int y, Widget reciever)
 

Private Attributes

const int  TOOLTIP_TIME = 1.0
 
const int  PLAYER_STATUS_COUNT = 8
 
private int  m_characterRotationX
 
private int  m_characterRotationY
 
private int  m_characterScaleDelta
 
private bool  m_isCharacterRotating
 
private vector  m_characterOrientation
 
private autoptr Link< EntityAI m_target
 
private EntityAI  m_itemInHands
 
private autoptr Link< InventoryItem m_tooltip_target
 
private Widget  m_tooltip_widget
 
private autoptr Timer  m_refresh_timer
 
private autoptr ContextMenu  m_context_menu
 
private ModulePlayerStatus  m_ModulePLayerStatus
 
private PlayerPreviewWidget  m_character_panel_widget
 
private Widget  m_left_panel
 
private Widget  m_right_panel
 
private Widget  m_center_panel
 
private Widget  m_left_panel_content
 
private Widget  m_right_panel_content
 
private Widget  m_center_panel_content
 
private Widget  m_quickbar_widget
 
private autoptr InventoryContainerHands  m_hands_container
 
private autoptr InventoryContainerVicinity  m_ground_container
 
private autoptr InventoryContainerEntity  m_equipment_container
 
private autoptr InventoryContainerEntity  m_target_container
 
private autoptr InventoryQuickbar  m_quickbar
 
private autoptr InventoryManager  m_drag_manager
 
private array< TextWidget m_Player_Statuses
 
private array< ImageWidget m_Player_StatusesBackground
 

Static Private Attributes

static bool  s_ground_container_list_switch
 
static bool  s_equipment_container_list_switch
 
static bool  s_target_container_list_switch
 

Constructor & Destructor Documentation

void InventoryMenu::InventoryMenu ( )
private
void InventoryMenu::~InventoryMenu ( )
private

Member Function Documentation

bool InventoryMenu::UseKeyboard ( )
private
Widget InventoryMenu::Init ( )
private
void InventoryMenu::InitContainers ( EntityAI  target )
private
void InventoryMenu::RefreshPlayerStatus ( )
private
void InventoryMenu::OnShow ( )
private
void InventoryMenu::OnHide ( )
private
bool InventoryMenu::OnClick ( Widget  w,
int  x,
int  y,
int  button 
)
private
bool InventoryMenu::OnMouseButtonDown ( Widget  w,
int  x,
int  y,
int  button 
)
private
bool InventoryMenu::OnMouseButtonUp ( Widget  w,
int  x,
int  y,
int  button 
)
private

References m_isCharacterRotating.

bool InventoryMenu::OnMouseWheel ( Widget  w,
int  x,
int  y,
int  wheel 
)
private
bool InventoryMenu::OnDoubleClick ( Widget  w,
int  x,
int  y,
int  button 
)
private
void InventoryMenu::OnPerformAction ( Action  action,
PlayerBase  player 
)
private
void InventoryMenu::UpdateRotation ( int  mouse_x,
int  mouse_y,
bool  is_dragging 
)
private
void InventoryMenu::UpdateScale ( int  mouse_x,
int  mouse_y,
int  wheel,
bool  is_dragging 
)
private
void InventoryMenu::UpdatePlayerPreviewAnim ( EntityAI  inHands )
private
bool InventoryMenu::OnFocusLost ( Widget  w,
int  x,
int  y 
)
private

References m_isCharacterRotating.

bool InventoryMenu::OnMouseEnter ( Widget  w,
int  x,
int  y 
)
private
bool InventoryMenu::OnMouseLeave ( Widget  w,
Widget  enterW,
int  x,
int  y 
)
private
bool InventoryMenu::OnSelect ( Widget  w,
int  x,
int  y 
)
private
void InventoryMenu::Refresh ( )
private
void InventoryMenu::RefreshQuickbar ( )
private
void InventoryMenu::ShowQuickbar ( )
private

References m_quickbar_widget, and Widget::Show().

Referenced by OnShow().

void InventoryMenu::HideQuickbar ( )
private

References m_quickbar_widget, and Widget::Show().

Referenced by OnHide().

void InventoryMenu::PerformRefreshInventory ( )
private
ContextMenu InventoryMenu::GetContextMenu ( )
private

References m_context_menu.

Widget InventoryMenu::GetCenterPanel ( )
private
bool InventoryMenu::OnDraggingOver ( Widget  w,
int  x,
int  y,
Widget  reciever 
)
private
bool InventoryMenu::OnDropReceived ( Widget  w,
int  x,
int  y,
Widget  reciever 
)
private
bool InventoryMenu::OnDrag ( Widget  w,
int  x,
int  y 
)
private
bool InventoryMenu::OnDragging ( Widget  w,
int  x,
int  y,
Widget  reciever 
)
private
bool InventoryMenu::OnDrop ( Widget  w,
int  x,
int  y,
Widget  reciever 
)
private

Member Data Documentation

const int InventoryMenu::TOOLTIP_TIME = 1.0
private
const int InventoryMenu::PLAYER_STATUS_COUNT = 8
private

Referenced by RefreshPlayerStatus().

private int InventoryMenu::m_characterRotationX
private
private int InventoryMenu::m_characterRotationY
private

Referenced by InventoryMenu(), and OnMouseButtonDown().

private int InventoryMenu::m_characterScaleDelta
private
private bool InventoryMenu::m_isCharacterRotating
private
private vector InventoryMenu::m_characterOrientation
private
private autoptr Link<EntityAI> InventoryMenu::m_target
private
private EntityAI InventoryMenu::m_itemInHands
private

Referenced by UpdatePlayerPreviewAnim().

private autoptr Link<InventoryItem> InventoryMenu::m_tooltip_target
private
private Widget InventoryMenu::m_tooltip_widget
private

Referenced by Init().

private autoptr Timer InventoryMenu::m_refresh_timer
private

Referenced by InventoryMenu(), OnHide(), and OnShow().

private autoptr ContextMenu InventoryMenu::m_context_menu
private

Referenced by GetContextMenu(), Init(), and InventoryMenu().

private ModulePlayerStatus InventoryMenu::m_ModulePLayerStatus
private

Referenced by Init(), and RefreshPlayerStatus().

private PlayerPreviewWidget InventoryMenu::m_character_panel_widget
private
private Widget InventoryMenu::m_left_panel
private
private Widget InventoryMenu::m_right_panel
private
private Widget InventoryMenu::m_center_panel
private

Referenced by GetCenterPanel(), and Init().

private Widget InventoryMenu::m_left_panel_content
private

Referenced by Init(), and InitContainers().

private Widget InventoryMenu::m_right_panel_content
private

Referenced by Init(), and InitContainers().

private Widget InventoryMenu::m_center_panel_content
private

Referenced by Init(), and InitContainers().

private Widget InventoryMenu::m_quickbar_widget
private
private autoptr InventoryContainerHands InventoryMenu::m_hands_container
private
private autoptr InventoryContainerVicinity InventoryMenu::m_ground_container
private
private autoptr InventoryContainerEntity InventoryMenu::m_equipment_container
private
private autoptr InventoryContainerEntity InventoryMenu::m_target_container
private
private autoptr InventoryQuickbar InventoryMenu::m_quickbar
private

Referenced by InitContainers(), and RefreshQuickbar().

private autoptr InventoryManager InventoryMenu::m_drag_manager
private
private array<TextWidget> InventoryMenu::m_Player_Statuses
private
private array<ImageWidget> InventoryMenu::m_Player_StatusesBackground
private
bool InventoryMenu::s_ground_container_list_switch
staticprivate

Referenced by ~InventoryMenu().

bool InventoryMenu::s_equipment_container_list_switch
staticprivate

Referenced by ~InventoryMenu().

bool InventoryMenu::s_target_container_list_switch
staticprivate

Referenced by ~InventoryMenu().


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