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