Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_PlayerSupplyAllocationItemHintInfo.c
Go to the documentation of this file.
1[BaseContainerProps(configRoot: true)]
2class SCR_PlayerSupplyAllocationItemHintUIInfo : SCR_InventoryItemHintUIInfo
3{
4 protected float m_fItemMSARCost = -1;
5
6 //------------------------------------------------------------------------------------------------
7 void SetMSARCost(float cost)
8 {
9 m_fItemMSARCost = cost;
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_fItemMSARCost > 0;
19 }
20
21 //------------------------------------------------------------------------------------------------
23 {
24 return WidgetManager.Translate(GetName(), SCR_ResourceSystemHelper.SuppliesToString(m_fItemMSARCost));
25 }
26}
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
override bool CanBeShown(InventoryItemComponent item, SCR_InventorySlotUI focusedSlot)
override string GetItemHintName(InventoryItemComponent item)