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 );
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 );
161 UpdateSelectionIcons();
171 m_Entity.GetInventory().GetCurrentInventoryLocation( loc );
176 UpdateSelectionIcons();
183 super.CheckHeaderDragability();
203 else if (!old && current)
void Inventory(LayoutHolder parent)
ref Widget m_RootWidget[MAX_SIMULTANIOUS_PLAYERS]
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)
proto native bool IsValid()
verify current set inventory location
proto native int GetSlot()
returns slot id if current type is Attachment
static ItemManager GetInstance()
void SetDefaultOpenState(string type, bool is_opened)
Result for an object found in CGame.IsBoxCollidingGeometryProxy.