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