8 m_Body.Insert( m_ItemsCont );
9 m_ItemsCont.GetMainWidget().SetUserID( index );
16 WidgetEventHandler.GetInstance().RegisterOnDraggingOver( m_ItemsCont.GetSlotIcon( k ).GetMainWidget(),
m_Parent,
"DraggingOverHeader" );
17 WidgetEventHandler.GetInstance().RegisterOnDraggingOver( m_ItemsCont.GetSlotIcon( k ).GetPanelWidget(),
m_Parent,
"DraggingOverHeader" );
19 WidgetEventHandler.GetInstance().RegisterOnMouseButtonDown( m_ItemsCont.GetSlotIcon( k ).GetMainWidget(),
m_Parent,
"MouseClick" );
20 WidgetEventHandler.GetInstance().RegisterOnMouseButtonDown( m_ItemsCont.GetSlotIcon( k ).GetPanelWidget(),
m_Parent,
"MouseClick" );
22 WidgetEventHandler.GetInstance().RegisterOnMouseEnter( m_ItemsCont.GetSlotIcon( k ).GetMainWidget(), m_ItemsCont.GetSlotIcon( k ),
"MouseEnterGhostSlot" );
23 WidgetEventHandler.GetInstance().RegisterOnMouseLeave( m_ItemsCont.GetSlotIcon( k ).GetMainWidget(), m_ItemsCont.GetSlotIcon( k ),
"MouseLeaveGhostSlot" );
25 m_ItemsCont.GetSlotIcon( k ).GetMainWidget().SetUserID( k );
26 m_ItemsCont.GetSlotIcon( k ).GetPanelWidget().SetUserID( k );
30 override bool IsDisplayable()
32 for(
int i = 0; i < m_Body.Count(); i++)
35 if( c && c.IsDisplayable())
41 override void SetLayoutName()
53 return m_ItemsCont.GetFocusedSlotsIcon().GetRender().GetItem();
58 return m_ItemsCont.GetMainWidget().GetUserID();
63 return m_ItemsCont.GetFocusedSlotsIcon().GetMainWidget().GetUserID();
66 void ExpandCollapseContainer(
bool expand )
68 m_ItemsCont.GetFocusedSlotsIcon().GetRadialIcon().Show( expand );
69 m_ItemsCont.GetFocusedSlotsIcon().GetRadialIconClosed().Show( !expand );
72 override bool SelectItem()
77 override bool Select()
82 override bool Combine()
87 override bool TransferItemToVicinity()
92 override bool TransferItem()
97 override bool SplitItem()
102 override bool EquipItem()
107 override bool CanCombine()
112 override bool CanCombineAmmo()
117 override bool IsEmpty()
122 override bool IsItemActive()
127 override bool IsItemWithQuantityActive()
132 string GetAttachmentCategory(
string config_path_attachment_categories,
int i )
134 string attachment_category;
135 GetGame().ConfigGetChildName(config_path_attachment_categories, i, attachment_category);
136 return attachment_category;
139 string GetIconName(
string config_path_attachment_categories,
string attachment_category )
141 string icon_path = config_path_attachment_categories+
" " + attachment_category +
" icon";
143 GetGame().ConfigGetText(icon_path, icon_name);