Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_SupplyCostItemHintUIInfo.c
Go to the documentation of this file.
1 [BaseContainerProps(configRoot: true)]
2 class 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  //------------------------------------------------------------------------------------------------
22  override string GetItemHintName(InventoryItemComponent item)
23  {
24  return WidgetManager.Translate(GetName(), SCR_ResourceSystemHelper.SuppliesToString(m_fItemSupplyCost));
25  }
26 }
GetName
string GetName()
Definition: SCR_ScenarioFrameworkLayerBase.c:85
SCR_ResourceSystemHelper
Definition: SCR_ResourceSystemHelper.c:1
SCR_SupplyCostItemHintUIInfo
Definition: SCR_SupplyCostItemHintUIInfo.c:2
InventoryItemComponent
Definition: InventoryItemComponent.c:12
SCR_InventorySlotUI
Definition: SCR_InventorySlotUI.c:27
BaseContainerProps
SCR_AIGoalReaction_Follow BaseContainerProps
Handles insects that are supposed to be spawned around selected prefabs defined in prefab names array...
Definition: SCR_AIGoalReaction.c:468