3 protected bool m_bFromVicinity;
5 override void HandlerAttached(Widget w)
7 super.HandlerAttached(w);
16 protected override int CreateSlots()
18 array<IEntity> pItemsInStorage = {};
19 GetAllItems(pItemsInStorage, GetCurrentNavigationStorage());
20 UpdateOwnedSlots(pItemsInStorage);
24 protected override void GetAllItems(out notnull array<IEntity> pItemsInStorage, BaseInventoryStorageComponent pStorage =
null)
26 super.GetAllItems(pItemsInStorage, pStorage);
29 ButtonWidget ActivateCloseStorageButton()
31 m_wCloseStorageButton = ButtonWidget.Cast(m_widget.FindAnyWidget(
"CloseStorageBtn"));
32 if (m_wCloseStorageButton)
34 m_wCloseStorageButton.SetVisible(
true);
39 nav.EnableCloseWithGamepad(
false);
40 nav.m_OnActivated.Insert(CloseStorage);
44 return m_wCloseStorageButton;
54 return m_bFromVicinity;
58 BaseInventoryStorageComponent storage,
62 array<BaseInventoryStorageComponent> aTraverseStorage =
null,
65 bool fromVicinity =
false)
70 m_bFromVicinity = fromVicinity;
71 m_iMatrix =
new SCR_Matrix(m_iMaxColumns, m_iMaxRows);
73 m_aTraverseStorage.Copy(aTraverseStorage);
74 SetSlotAreaType(slotID);