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

Private Member Functions

void HandsContainer (LayoutHolder parent)
 
void ~HandsContainer ()
 
void ResetContainer ()
 
override Header GetHeader ()
 
override bool IsLastIndex ()
 
void SetFocusToIndex ()
 
void ScrollToActiveContainer (Container active_container)
 
override void Insert (LayoutHolder container, int pos=-1, bool immedUpdate=true)
 
override bool TransferItem ()
 
override bool SplitItem ()
 
override bool EquipItem ()
 
override void SetActive (bool active)
 
override void SetLastActive ()
 
override void Refresh ()
 
override bool IsItemActive ()
 
override bool IsItemWithQuantityActive ()
 
override bool IsEmpty ()
 
override bool TransferItemToVicinity ()
 
override bool InspectItem ()
 
override bool OnSelectButton ()
 
EntityAI GetItemPreviewItem (Widget w)
 
override void DraggingOverHeader (Widget w, int x, int y, Widget receiver)
 
void OnDropReceivedFromHeader2 (Widget w, int x, int y, Widget receiver)
 
void OnPerformCombination (int combinationFlags)
 
void ShowActionMenuCombine (EntityAI entity1, EntityAI entity2, int combinationFlags)
 
override void OnDropReceivedFromHeader (Widget w, int x, int y, Widget receiver)
 
int GetCombinationFlags (EntityAI entity1, EntityAI entity2)
 
int GetRecipeCount (bool recipe_anywhere, EntityAI entity1, EntityAI entity2)
 
void RemoveItem ()
 
void DestroyAtt ()
 
override void UnfocusGrid ()
 
override void UnfocusAll ()
 
void DestroyCargo ()
 
void DropReceived (Widget w, int x, int y, CargoContainer cargo)
 
bool DraggingOverGrid (Widget w, int x, int y, Widget reciever, CargoContainer cargo)
 
void TakeAsAttachment (Widget w, Widget receiver)
 
void ShowAtt (EntityAI entity)
 
void RefreshHands ()
 
void AttachmentAdded (EntityAI item, string slot, EntityAI parent)
 
void AttachmentRemoved (EntityAI item, string slot, EntityAI parent)
 
override void UpdateInterval ()
 
override void SetLayoutName ()
 
override void OnShow ()
 
void MouseClick2 (Widget w, int x, int y, int button)
 
void DoubleClick (Widget w, int x, int y, int button)
 
void DraggingOverHeader2 (Widget w, int x, int y, Widget receiver)
 
void ElectricityIcon ()
 
void CollapseButtonOnMouseButtonDown (Widget w)
 
void HideCargo ()
 
void ShowCargo ()
 

Private Attributes

protected bool m_Hidden
 
protected ref HandsHeader m_CollapsibleHeader
 
protected ref HandsPreview m_HandsPreview
 
protected ref Attachments m_Atts
 
protected ref CargoContainer m_CargoGrid
 
protected ref map< EntityAI, ref CargoContainerm_AttachmentCargos
 
protected ref map< EntityAI, AttachmentsWrapperm_AttachmentAttachmentsContainers
 
protected ref map< EntityAI, ref Attachmentsm_AttachmentAttachments
 
protected ref array< intm_AttachmentSlotsSorted
 
protected int m_StaticAttCount = 0
 
protected int m_StaticCargoCount = 0
 
protected ScrollWidget m_ScrollWidget
 

Constructor & Destructor Documentation

◆ HandsContainer()

◆ ~HandsContainer()

Member Function Documentation

◆ AttachmentAdded()

◆ AttachmentRemoved()

◆ CollapseButtonOnMouseButtonDown()

void CollapseButtonOnMouseButtonDown ( Widget  w)
inlineprivate

References m_Hidden, and m_Parent.

◆ DestroyAtt()

◆ DestroyCargo()

void DestroyCargo ( )
inlineprivate

◆ DoubleClick()

void DoubleClick ( Widget  w,
int  x,
int  y,
int  button 
)
inlineprivate

◆ DraggingOverGrid()

◆ DraggingOverHeader()

◆ DraggingOverHeader2()

void DraggingOverHeader2 ( Widget  w,
int  x,
int  y,
Widget  receiver 
)
inlineprivate

References DraggingOverHeader(), x, and y.

◆ DropReceived()

◆ ElectricityIcon()

void ElectricityIcon ( )
inlineprivate

◆ EquipItem()

override bool EquipItem ( )
inlineprivate

◆ GetCombinationFlags()

◆ GetHeader()

override Header GetHeader ( )
inlineprivate

◆ GetItemPreviewItem()

EntityAI GetItemPreviewItem ( Widget  w)
inlineprivate

◆ GetRecipeCount()

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

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

Referenced by GetCombinationFlags().

◆ HideCargo()

void HideCargo ( )
inlineprivate

References m_CargoGrid.

Referenced by ShowAtt(), and UpdateInterval().

◆ Insert()

override void Insert ( LayoutHolder  container,
int  pos = -1,
bool  immedUpdate = true 
)
inlineprivate

Referenced by AttachmentAdded(), and ShowAtt().

◆ InspectItem()

override bool InspectItem ( )
inlineprivate

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

Referenced by InspectItem(), and MouseClick2().

◆ IsEmpty()

override bool IsEmpty ( )
inlineprivate

References GetGame(), and GetPlayer().

Referenced by IsItemActive(), and IsItemWithQuantityActive().

◆ IsItemActive()

override bool IsItemActive ( )
inlineprivate

◆ IsItemWithQuantityActive()

override bool IsItemWithQuantityActive ( )
inlineprivate

◆ IsLastIndex()

override bool IsLastIndex ( )
inlineprivate

◆ MouseClick2()

void MouseClick2 ( Widget  w,
int  x,
int  y,
int  button 
)
inlineprivate

◆ OnDropReceivedFromHeader()

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

References TakeAsAttachment().

◆ OnDropReceivedFromHeader2()

void OnDropReceivedFromHeader2 ( Widget  w,
int  x,
int  y,
Widget  receiver 
)
inlineprivate

References TakeAsAttachment().

◆ OnPerformCombination()

◆ OnSelectButton()

◆ OnShow()

override void OnShow ( )
inlineprivate

Referenced by HandsArea::OnShow().

◆ Refresh()

override void Refresh ( )
inlineprivate

◆ RefreshHands()

void RefreshHands ( )
inlineprivate

References m_Parent, and Refresh().

◆ RemoveItem()

void RemoveItem ( )
inlineprivate

◆ ResetContainer()

void ResetContainer ( )
inlineprivate

References m_HandsPreview.

Referenced by ShowAtt().

◆ ScrollToActiveContainer()

void ScrollToActiveContainer ( Container  active_container)
inlineprivate

◆ SetActive()

override void SetActive ( bool  active)
inlineprivate

References GetGame(), GetPlayer(), x, and y.

◆ SetFocusToIndex()

◆ SetLastActive()

override void SetLastActive ( )
inlineprivate

References GetGame(), GetPlayer(), x, and y.

◆ SetLayoutName()

override void SetLayoutName ( )
inlineprivate

◆ ShowActionMenuCombine()

◆ ShowAtt()

◆ ShowCargo()

void ShowCargo ( )
inlineprivate

References m_CargoGrid.

Referenced by ShowAtt(), and UpdateInterval().

◆ SplitItem()

override bool SplitItem ( )
inlineprivate

◆ TakeAsAttachment()

◆ TransferItem()

override bool TransferItem ( )
inlineprivate

◆ TransferItemToVicinity()

override bool TransferItemToVicinity ( )
inlineprivate

References GetGame(), and GetPlayer().

◆ UnfocusAll()

override void UnfocusAll ( )
inlineprivate

References UnfocusGrid().

◆ UnfocusGrid()

override void UnfocusGrid ( )
inlineprivate

◆ UpdateInterval()

Field Documentation

◆ m_AttachmentAttachments

◆ m_AttachmentAttachmentsContainers

protected ref map<EntityAI, AttachmentsWrapper> m_AttachmentAttachmentsContainers
private

◆ m_AttachmentCargos

◆ m_AttachmentSlotsSorted

protected ref array<int> m_AttachmentSlotsSorted
private

Referenced by AttachmentAdded(), and ShowAtt().

◆ m_Atts

◆ m_CargoGrid

◆ m_CollapsibleHeader

protected ref HandsHeader m_CollapsibleHeader
private

◆ m_HandsPreview

protected ref HandsPreview m_HandsPreview
private

Referenced by HandsContainer(), and ResetContainer().

◆ m_Hidden

protected bool m_Hidden
private

◆ m_ScrollWidget

protected ScrollWidget m_ScrollWidget
private

◆ m_StaticAttCount

protected int m_StaticAttCount = 0
private

Referenced by ShowAtt().

◆ m_StaticCargoCount

protected int m_StaticCargoCount = 0
private

Referenced by ShowAtt().


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