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;
34 show_radial_icon = show_radial_icon && ( (
m_Entity.GetInventory().GetCargo() &&
m_Entity.CanDisplayCargo()) ||
m_Entity.GetSlotsCountCorrect() > 0 );
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() )
126 else if( GetRootWidget() )
127 GetRootWidget().GetScreenSize(
x,
y );
134 if( contents && GetFocusedContainer() )
136 else if( GetRootWidget() )
137 GetRootWidget().GetPos(
x,
y );
144 if( contents && GetFocusedContainer() )
146 else if( GetRootWidget() )
147 GetRootWidget().GetScreenPos(
x,
y );
156 m_Entity.GetInventory().GetCurrentInventoryLocation( loc );
161 UpdateSelectionIcons();
171 m_Entity.GetInventory().GetCurrentInventoryLocation( loc );
176 UpdateSelectionIcons();
183 super.CheckHeaderDragability();
187 int flag = m_ClosableHeader.GetMainWidget().GetFlags();
195 if (drag && drag == m_ClosableHeader.GetMainWidget())
198 m_ClosableHeader.OnDropHeader(null);
203 else if (!old && current)
205 m_ClosableHeader.GetMainWidget().SetFlags(
WidgetFlags.DRAGGABLE );
void Inventory(LayoutHolder parent)
class PluginItemDiagnosticEventHandler extends ScriptedWidgetEventHandler m_Entity
ref Widget m_RootWidget[MAX_SIMULTANIOUS_PLAYERS]
protected Widget m_Parent
override bool IsDisplayable()
override float GetFocusedContainerYPos(bool contents=false)
void SetOpenState(bool state)
void ClosableContainer(LayoutHolder parent, int sort=-1)
void MoveContainerDown(Widget cont)
protected bool m_LockCargo
override float GetFocusedContainerYScreenPos(bool contents=false)
override void UpdateRadialIcon()
protected ref ClosableHeader m_ClosableHeader
void CloseButtonOnMouseButtonDown()
override Header GetHeader()
override LayoutHolder Get(int x)
override void CheckHeaderDragability()
override float GetFocusedContainerHeight(bool contents=false)
void MoveContainerUp(Widget cont)
override void SetLayoutName()
override bool IsDisplayable()
proto native bool IsValid()
verify current set inventory location
proto native int GetSlot()
returns slot id if current type is Attachment
void SetDefaultOpenState(string type, bool is_opened)
static ItemManager GetInstance()
float GetFocusedContainerHeight(bool contents=false)
float GetFocusedContainerYPos(bool contents=false)
float GetFocusedContainerYScreenPos(bool contents=false)
Result for an object found in CGame.IsBoxCollidingGeometryProxy.