9 m_ClosableHeader =
new ClosableHeader(
this,
"CloseButtonOnMouseButtonDown" );
14 m_MainWidget = m_MainWidget.FindWidget(
"body" );
19 for(
int i = 0; i < m_Body.Count(); i++)
22 if( c && c.IsDisplayable())
32 bool show_radial_icon;
35 show_radial_icon = show_radial_icon && !
m_Entity.GetInventory().IsInventoryLockedForLockType( HIDE_INV_FROM_SCRIPT );
38 m_SlotIcon.GetRadialIconPanel().Show(
true );
39 SetOpenForSlotIcon(show_radial_icon);
43 m_SlotIcon.GetRadialIconPanel().Show(
false );
64 return m_ClosableHeader;
73 SetOpenForSlotIcon(
true);
83 SetOpenForSlotIcon(
false);
103 if( m_Body &&
x < m_Body.Count() &&
x >= 0 )
104 return m_Body.
Get(
x );
124 if( contents && GetFocusedContainer() )
125 y = GetFocusedContainer().GetFocusedContainerHeight( contents );
126 else if( GetRootWidget() )
127 GetRootWidget().GetScreenSize(
x,
y );
134 if( contents && GetFocusedContainer() )
135 y = GetFocusedContainer().GetFocusedContainerYPos( contents );
136 else if( GetRootWidget() )
137 GetRootWidget().GetPos(
x,
y );
144 if( contents && GetFocusedContainer() )
145 y = GetFocusedContainer().GetFocusedContainerYScreenPos( contents );
146 else if( GetRootWidget() )
147 GetRootWidget().GetScreenPos(
x,
y );
156 m_Entity.GetInventory().GetCurrentInventoryLocation( loc );
159 int slot = loc.GetSlot();
161 UpdateSelectionIcons();
171 m_Entity.GetInventory().GetCurrentInventoryLocation( loc );
174 int slot = loc.GetSlot();
176 UpdateSelectionIcons();
183 super.CheckHeaderDragability();
187 int flag = m_ClosableHeader.GetMainWidget().GetFlags();
193 m_ClosableHeader.GetMainWidget().ClearFlags(
WidgetFlags.DRAGGABLE );
194 Widget drag = GetDragWidget();
195 if (drag && drag == m_ClosableHeader.GetMainWidget())
197 CancelWidgetDragging();
198 m_ClosableHeader.OnDropHeader(null);
203 else if (!old && current)
205 m_ClosableHeader.GetMainWidget().SetFlags(
WidgetFlags.DRAGGABLE );
void Inventory(LayoutHolder parent)
CargoContainer GetCargo()
override bool IsDisplayable()
override void CheckHeaderDragability()
ref ClosableHeader m_ClosableHeader
override void SetLayoutName()
void SetOpenState(bool state)
override float GetFocusedContainerYPos(bool contents=false)
override LayoutHolder Get(int x)
override void UpdateRadialIcon()
override float GetFocusedContainerHeight(bool contents=false)
override bool IsDisplayable()
void MoveContainerUp(Widget cont)
override Header GetHeader()
override float GetFocusedContainerYScreenPos(bool contents=false)
void CloseButtonOnMouseButtonDown()
void ClosableContainer(LayoutHolder parent, int sort=-1)
void MoveContainerDown(Widget cont)
static ItemManager GetInstance()
void SetDefaultOpenState(string type, bool is_opened)
Result for an object found in CGame.IsBoxCollidingGeometryProxy.
ref Widget m_RootWidget[MAX_SIMULTANIOUS_PLAYERS]