5 override void SetLayoutName()
10 override void SetHeader(
Header header)
16 override Header GetHeader()
26 override void SetActive(
bool active)
28 super.SetActive(active);
35 override void SetDefaultFocus(
bool while_micromanagment_mode =
false)
37 super.SetDefaultFocus();
41 SlotsIcon GetSlotsIcon(
int row,
int column,
bool include_invisible =
true )
44 if (include_invisible)
52 return c.GetSlotIcon(column);
55 int GetRowCount(
bool include_invisible =
true)
57 if (include_invisible)
59 return m_Body.Count();
63 return m_OpenedContainers.Count();
67 int GetColumnCountForRow(
int row,
bool include_invisible =
true)
70 if (include_invisible)
76 c =
Container.Cast(m_OpenedContainers[row]);
78 return c.GetColumnCount();
81 override void SetNextActive()
84 int visible_focus = 0;
87 if (m_OpenedContainers.Count())
92 if (active && active.IsActive())
94 visible_focus = active.GetVisibleFocus();
95 active.SetNextActive();
97 if (!active || !active.IsActive())
100 if (!IsLastContainerFocused())
107 next.SetActive(
true);
108 next.SetVisibleFocus(visible_focus);
122 override void SetPreviousActive(
bool force =
false)
125 int visible_focus = 0;
128 if (m_OpenedContainers.Count())
133 if (active && active.IsActive())
135 visible_focus = active.GetVisibleFocus();
136 active.SetPreviousActive();
139 if (!active || !active.IsActive())
142 if (!IsFirstContainerFocused())
147 prev.SetActive(
true);
148 prev.SetVisibleFocus(visible_focus);