Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_ResourceStorageTooltipDetail.c
Go to the documentation of this file.
3 {
4  //------------------------------------------------------------------------------------------------
5  protected override SCR_ResourceConsumer GetConsumer()
6  {
8  return null;
9 
10  return SCR_ResourceSystemHelper.GetStorageConsumer(m_ResourceComponent, m_eResourceType);
11  }
12 
13  //------------------------------------------------------------------------------------------------
14  protected override bool IsValid()
15  {
17  return false;
18 
19  float resources, maxResources;
20  return SCR_ResourceSystemHelper.GetStoredAndMaxResources(m_ResourceComponent, resources, maxResources);
21  }
22 
23  //------------------------------------------------------------------------------------------------
24  override void UpdateDetail(SCR_EditableEntityComponent entity)
25  {
26  super.UpdateDetail(entity);
27 
29  return;
30 
31  float stored, maxStored;
32  if (!SCR_ResourceSystemHelper.GetStoredAndMaxResources(m_ResourceComponent, stored, maxStored))
33  return;
34 
35  m_wText.SetTextFormat(m_sResourceFormatting, SCR_ResourceSystemHelper.SuppliesToString(stored), SCR_ResourceSystemHelper.SuppliesToString(maxStored));
36  }
37 }
SCR_ResourceSystemHelper
Definition: SCR_ResourceSystemHelper.c:1
BaseContainerCustomStringTitleField
class SCR_HitZoneGroupNameHolder BaseContainerCustomStringTitleField("USE INHERENT VERSION ONLY!")
Definition: SCR_HitZoneGroupNameHolder.c:27
SCR_ResourceStorageTooltipDetail
Definition: SCR_ResourceStorageTooltipDetail.c:2
SCR_BaseResourceTooltipDetail
Definition: SCR_BaseResourceTooltipDetail.c:2
m_ResourceComponent
protected SCR_ResourceComponent m_ResourceComponent
Definition: SCR_CampaignBuildingProviderComponent.c:51
SCR_EditableEntityComponent
Definition: SCR_EditableEntityComponent.c:13
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