4 override protected void GetAllItems(out notnull array<IEntity> pItemsInStorage, BaseInventoryStorageComponent pStorage =
null)
8 super.GetAllItems(pItemsInStorage, pStorage);
14 ItemPreviewManagerEntity itemPreviewManagerEntity = chimeraWorld.GetItemPreviewManager();
17 array<ResourceName> prefabsToSpawn =
new array<ResourceName>();
19 if (!arsenalComponent)
22 arsenalComponent.GetAvailablePrefabs(prefabsToSpawn);
24 foreach (ResourceName resourceName: prefabsToSpawn)
26 pItemsInStorage.Insert(itemPreviewManagerEntity.ResolvePreviewEntityForPrefab(resourceName));
32 override void RefreshResources()
34 if (!m_wResourceAvailableText && !m_wResourceAvailableDisplay)
39 m_wResourceAvailableDisplay.SetVisible(
false);
44 float availableResources;
48 m_wResourceAvailableDisplay.SetVisible(
false);
52 m_wResourceAvailableText.SetTextFormat(
"#AR-Supplies_Arsenal_Availability",
SCR_ResourceSystemHelper.SuppliesToString(availableResources));
54 m_wResourceAvailableDisplay.SetVisible(
true);
56 if (!m_wResourceAvailableDisplay.IsVisible())
57 m_wResourceAvailableDisplay.SetVisible(
false);
65 m_wWeightDisplay.SetVisible(
false);
66 m_wCapacityDisplay.SetVisible(
false);
69 m_wWeightDisplay =
null;
70 m_wCapacityDisplay =
null;
71 m_wCapacityPercentageText =
null;
73 m_wResourceStoredDisplay = Widget.Cast(m_widget.FindAnyWidget(
"ResourceDisplayStored"));
74 if (m_wResourceStoredDisplay)
75 m_wResourceStoredText = TextWidget.Cast(m_wResourceStoredDisplay.FindAnyWidget(
"ResourceText"));
77 m_wResourceAvailableDisplay = Widget.Cast(m_widget.FindAnyWidget(
"ResourceDisplayAvailable"));
78 if (m_wResourceAvailableDisplay)
79 m_wResourceAvailableText = TextWidget.Cast(m_wResourceAvailableDisplay.FindAnyWidget(
"ResourceText"));
81 if (!m_wResourceStoredDisplay || !m_wResourceAvailableText)
89 m_wResourceAvailableDisplay.SetVisible(
false);
97 m_wResourceStoredDisplay.SetVisible(
false);
119 override void Refresh()