Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_SupplyAvailableItemHintUIInfo.c
Go to the documentation of this file.
1[BaseContainerProps(configRoot: true)]
3{
4 //------------------------------------------------------------------------------------------------
5 override bool CanBeShown(InventoryItemComponent item, SCR_InventorySlotUI focusedSlot)
6 {
7 if (!super.CanBeShown(item, focusedSlot))
8 return false;
9
10 if (!m_ResourceComponent.IsResourceTypeEnabled())
11 return false;
12
13 float availableResources;
14 return SCR_ResourceSystemHelper.GetAvailableResources(m_ResourceComponent, availableResources);
15 }
16
17 //------------------------------------------------------------------------------------------------
18 override string GetItemHintName(InventoryItemComponent item)
19 {
21 return super.GetItemHintName(item);
22
23 float availableResources;
24 SCR_ResourceSystemHelper.GetAvailableResources(m_ResourceComponent, availableResources);
25
26 return WidgetManager.Translate(GetName(), SCR_ResourceSystemHelper.SuppliesToString(availableResources));
27 }
28}
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.