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

Private Member Functions

void AttachmentCategoriesContainer (LayoutHolder parent, int sort=-1)
 
void ~AttachmentCategoriesContainer ()
 
void SetEntity (EntityAI entity)
 
void SetHeaderName ()
 
override bool IsDisplayable ()
 
override void UpdateInterval ()
 
void LoadAttachmentCategoriesIcon (SlotsContainer items_cont, string icon_name, int slot_number)
 
int GetAttachmentCategoriesCount (string config_path)
 
SlotsContainer GetSlotsContainer (int icons_row)
 
SlotsIcon GetCargoSlotsIcon ()
 
void ShowInSlots (string category, bool show)
 
override bool CanDisplayAnyCategory ()
 
override void UpdateRadialIcon ()
 
string GetAttachmentCategory (string config_path_attachment_categories, int i)
 
string GetIconName (string config_path_attachment_categories, string attachment_category)
 
int GetViewIndex (string config_path_attachment_categories, string attachment_category)
 
void MouseClick (Widget w)
 
override void ExpandCollapseContainer ()
 
bool IsHeaderActive ()
 
void InitIconsContainers ()
 
void InitGhostSlots ()
 
override void OnDropReceivedFromHeader (Widget w, int x, int y, Widget receiver)
 
override void DraggingOverHeader (Widget w, int x, int y, Widget receiver)
 
override void CollapseButtonOnMouseButtonDown (Widget w)
 
override void Open ()
 
override void Close ()
 
override void OnHide ()
 
override bool CanOpenCloseContainerEx (EntityAI focusedEntity)
 

Private Attributes

protected ref map< string, intm_CategorySlotIndex
 
protected int m_SlotsCount
 
protected SlotsIcon m_CargoSlotsIcon
 

Constructor & Destructor Documentation

◆ AttachmentCategoriesContainer()

void AttachmentCategoriesContainer ( LayoutHolder  parent,
int  sort = -1 
)
inlineprivate

References m_CategorySlotIndex.

◆ ~AttachmentCategoriesContainer()

void ~AttachmentCategoriesContainer ( )
inlineprivate

References GetParent(), and IsActive().

Member Function Documentation

◆ CanDisplayAnyCategory()

override bool CanDisplayAnyCategory ( )
inlineprivate

◆ CanOpenCloseContainerEx()

override bool CanOpenCloseContainerEx ( EntityAI  focusedEntity)
inlineprivate

◆ Close()

override void Close ( )
inlineprivate

◆ CollapseButtonOnMouseButtonDown()

◆ DraggingOverHeader()

◆ ExpandCollapseContainer()

override void ExpandCollapseContainer ( )
inlineprivate

◆ GetAttachmentCategoriesCount()

int GetAttachmentCategoriesCount ( string  config_path)
inlineprivate

◆ GetAttachmentCategory()

string GetAttachmentCategory ( string  config_path_attachment_categories,
int  i 
)
inlineprivate

References CGame::ConfigGetChildName(), and GetGame().

Referenced by InitGhostSlots().

◆ GetCargoSlotsIcon()

SlotsIcon GetCargoSlotsIcon ( )
inlineprivate

References m_CargoSlotsIcon.

◆ GetIconName()

string GetIconName ( string  config_path_attachment_categories,
string  attachment_category 
)
inlineprivate

References CGame::ConfigGetText(), and GetGame().

Referenced by InitGhostSlots().

◆ GetSlotsContainer()

SlotsContainer GetSlotsContainer ( int  icons_row)
inlineprivate

◆ GetViewIndex()

int GetViewIndex ( string  config_path_attachment_categories,
string  attachment_category 
)
inlineprivate

References CGame::ConfigGetInt(), and GetGame().

◆ InitGhostSlots()

◆ InitIconsContainers()

void InitIconsContainers ( )
inlineprivate

◆ IsDisplayable()

override bool IsDisplayable ( )
inlineprivate

References CanDisplayAnyCategory(), and Container::IsEmpty().

Referenced by Open().

◆ IsHeaderActive()

bool IsHeaderActive ( )
inlineprivate

◆ LoadAttachmentCategoriesIcon()

void LoadAttachmentCategoriesIcon ( SlotsContainer  items_cont,
string  icon_name,
int  slot_number 
)
inlineprivate

◆ MouseClick()

void MouseClick ( Widget  w)
inlineprivate

◆ OnDropReceivedFromHeader()

override void OnDropReceivedFromHeader ( Widget  w,
int  x,
int  y,
Widget  receiver 
)
inlineprivate

◆ OnHide()

◆ Open()

override void Open ( )
inlineprivate

◆ SetEntity()

◆ SetHeaderName()

void SetHeaderName ( )
inlineprivate

◆ ShowInSlots()

void ShowInSlots ( string  category,
bool  show 
)
inlineprivate

◆ UpdateInterval()

◆ UpdateRadialIcon()

override void UpdateRadialIcon ( )
inlineprivate

Field Documentation

◆ m_CargoSlotsIcon

protected SlotsIcon m_CargoSlotsIcon
private

◆ m_CategorySlotIndex

protected ref map<string, int> m_CategorySlotIndex
private

◆ m_SlotsCount

protected int m_SlotsCount
private

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