PC Stable Documentation
 
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Loading...
Searching...
No Matches
Attachments Class Reference

Private Member Functions

void Attachments (Container parent, EntityAI entity)
 
void ~Attachments ()
 
AttachmentsWrapper GetWrapper ()
 
bool IsEmpty ()
 
bool IsItemActive ()
 
bool IsItemWithQuantityActive ()
 
void UnfocusAll ()
 
void SetDefaultFocus (bool while_micromanagment_mode=false)
 
void SetLastActive ()
 
void SetActive (bool active)
 
void SelFirstActive ()
 
SlotsIcon GetFocusedSlotsIcon ()
 
EntityAI GetFocusedItem ()
 
int GetFocusedSlot ()
 
bool SelectItem ()
 
bool Select ()
 
int GetRecipeCount (bool recipe_anywhere, EntityAI entity1, EntityAI entity2)
 
bool CanCombine ()
 
bool CanCombineAmmo ()
 
bool CanEquip ()
 
bool Combine ()
 
bool SplitItem ()
 
bool EquipItem ()
 
bool TransferItem ()
 
bool InspectItem ()
 
bool TransferItemToVicinity ()
 
bool IsActive ()
 
int GetAttachmentHeight ()
 
void UpdateInterval ()
 
array< intGetSlotsSorted ()
 
void AttachmentAdded (EntityAI item, string slot, EntityAI parent)
 
void AttachmentRemoved (EntityAI item, string slot, EntityAI parent)
 
void OnAttachmentReservationSet (EntityAI item, int slot_id)
 
void OnAttachmentReservationRelease (EntityAI item, int slot_id)
 
void InitAttachmentGrid (int att_row_index)
 
array< stringGetItemSlots (EntityAI e)
 
void ShowFalseAttachmentsHeader (bool show)
 
void SetFalseAttachmentsHeaderText (string text)
 
TextWidget GetFalseHeaderTextWidget ()
 
void SetAttachmentSlotID (int slotID)
 
int GetAttachmentSlotID ()
 

Private Attributes

protected Container m_Parent
 
protected EntityAI m_Entity
 
protected ref AttachmentsWrapper m_AttachmentsContainer
 
protected ref array< stringm_AttachmentSlotNames
 
protected ref array< stringm_AttachmentSlotDisplayable
 
protected ref map< int, SlotsIconm_AttachmentSlots
 
protected ref array< intm_AttachmentIDOrdered
 
protected int m_RowIndex
 
protected int m_AttachmentSlotID = -1
 

Constructor & Destructor Documentation

◆ Attachments()

◆ ~Attachments()

Member Function Documentation

◆ AttachmentAdded()

◆ AttachmentRemoved()

void AttachmentRemoved ( EntityAI  item,
string  slot,
EntityAI  parent 
)
inlineprivate

◆ CanCombine()

◆ CanCombineAmmo()

◆ CanEquip()

bool CanEquip ( )
inlineprivate

◆ Combine()

◆ EquipItem()

bool EquipItem ( )
inlineprivate

◆ GetAttachmentHeight()

int GetAttachmentHeight ( )
inlineprivate

◆ GetAttachmentSlotID()

int GetAttachmentSlotID ( )
inlineprivate

◆ GetFalseHeaderTextWidget()

TextWidget GetFalseHeaderTextWidget ( )
inlineprivate

◆ GetFocusedItem()

◆ GetFocusedSlot()

int GetFocusedSlot ( )
inlineprivate

◆ GetFocusedSlotsIcon()

SlotsIcon GetFocusedSlotsIcon ( )
inlineprivate

◆ GetItemSlots()

array< string > GetItemSlots ( EntityAI  e)
inlineprivate

◆ GetRecipeCount()

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

References GetGame(), GetPlayer(), and GetPlugin().

◆ GetSlotsSorted()

array< int > GetSlotsSorted ( )
inlineprivate

◆ GetWrapper()

◆ InitAttachmentGrid()

◆ InspectItem()

bool InspectItem ( )
inlineprivate

◆ IsActive()

bool IsActive ( )
inlineprivate

References m_Parent.

◆ IsEmpty()

bool IsEmpty ( )
inlineprivate

◆ IsItemActive()

◆ IsItemWithQuantityActive()

◆ OnAttachmentReservationRelease()

void OnAttachmentReservationRelease ( EntityAI  item,
int  slot_id 
)
inlineprivate

References SlotsIcon::Clear(), and m_AttachmentSlots.

Referenced by Attachments(), and ~Attachments().

◆ OnAttachmentReservationSet()

void OnAttachmentReservationSet ( EntityAI  item,
int  slot_id 
)
inlineprivate

References SlotsIcon::Init(), and m_AttachmentSlots.

Referenced by Attachments(), and ~Attachments().

◆ Select()

◆ SelectItem()

◆ SelFirstActive()

void SelFirstActive ( )
inlineprivate

◆ SetActive()

void SetActive ( bool  active)
inlineprivate

◆ SetAttachmentSlotID()

void SetAttachmentSlotID ( int  slotID)
inlineprivate

References m_AttachmentSlotID.

◆ SetDefaultFocus()

void SetDefaultFocus ( bool  while_micromanagment_mode = false)
inlineprivate

◆ SetFalseAttachmentsHeaderText()

void SetFalseAttachmentsHeaderText ( string  text)
inlineprivate

◆ SetLastActive()

void SetLastActive ( )
inlineprivate

◆ ShowFalseAttachmentsHeader()

void ShowFalseAttachmentsHeader ( bool  show)
inlineprivate

◆ SplitItem()

bool SplitItem ( )
inlineprivate

◆ TransferItem()

bool TransferItem ( )
inlineprivate

◆ TransferItemToVicinity()

bool TransferItemToVicinity ( )
inlineprivate

◆ UnfocusAll()

void UnfocusAll ( )
inlineprivate

◆ UpdateInterval()

Field Documentation

◆ m_AttachmentIDOrdered

protected ref array<int> m_AttachmentIDOrdered
private

◆ m_AttachmentsContainer

◆ m_AttachmentSlotDisplayable

protected ref array<string> m_AttachmentSlotDisplayable
private

Referenced by Attachments(), and UpdateInterval().

◆ m_AttachmentSlotID

protected int m_AttachmentSlotID = -1
private

◆ m_AttachmentSlotNames

protected ref array<string> m_AttachmentSlotNames
private

◆ m_AttachmentSlots

◆ m_Entity

protected EntityAI m_Entity
private

◆ m_Parent

protected Container m_Parent
private

◆ m_RowIndex

protected int m_RowIndex
private

Referenced by InitAttachmentGrid().


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