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())
38 m_SlotIcon.GetRadialIconPanel().Show(
true);
42 m_SlotIcon.GetRadialIconPanel().Show(
false);
58 return m_ClosableHeader;
67 SetOpenForSlotIcon(
true);
77 SetOpenForSlotIcon(
false);
95 if (m_Body &&
x < m_Body.
Count() &&
x >= 0)
114 if (
contents && GetFocusedContainer())
116 else if (GetRootWidget())
117 GetRootWidget().GetScreenSize(
x,
y);
124 if (
contents && GetFocusedContainer())
126 else if (GetRootWidget())
127 GetRootWidget().GetPos(
x,
y);
134 if (
contents && GetFocusedContainer())
136 else if (GetRootWidget())
137 GetRootWidget().GetScreenPos(
x,
y);
146 m_Entity.GetInventory().GetCurrentInventoryLocation(
loc);
149 int slot =
loc.GetSlot();
151 UpdateSelectionIcons();
161 m_Entity.GetInventory().GetCurrentInventoryLocation(
loc);
164 int slot =
loc.GetSlot();
166 UpdateSelectionIcons();
173 super.CheckHeaderDragability();
177 int flag = m_ClosableHeader.GetMainWidget().GetFlags();
183 m_ClosableHeader.GetMainWidget().ClearFlags(
WidgetFlags.DRAGGABLE);
185 if (
drag &&
drag == m_ClosableHeader.GetMainWidget())
188 m_ClosableHeader.OnDropHeader(
null);
195 m_ClosableHeader.GetMainWidget().SetFlags(
WidgetFlags.DRAGGABLE);
void Inventory(LayoutHolder parent)
ref Widget m_RootWidget[MAX_SIMULTANIOUS_PLAYERS]
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()
float GetFocusedContainerYPos(bool contents=false)
float GetFocusedContainerYScreenPos(bool contents=false)
float GetFocusedContainerHeight(bool contents=false)