Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_ResourceAvailableTooltipDetail.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.GetAvailableResourceConsumer(m_ResourceComponent, m_eResourceType);
11  }
12 
13  //------------------------------------------------------------------------------------------------
14  protected override bool IsValid()
15  {
16  if (!m_ResourceComponent || !m_ResourceComponent.IsResourceTypeEnabled(m_eResourceType))
17  return false;
18 
19  float resources;
20  return SCR_ResourceSystemHelper.GetAvailableResources(m_ResourceComponent, resources);
21  }
22 
23  //------------------------------------------------------------------------------------------------
24  override void UpdateDetail(SCR_EditableEntityComponent entity)
25  {
26  super.UpdateDetail(entity);
27 
29  return;
30 
31  float resources;
32  if (!SCR_ResourceSystemHelper.GetAvailableResources(m_ResourceComponent, resources))
33  return;
34 
35  m_wText.SetTextFormat(m_sResourceFormatting, SCR_ResourceSystemHelper.SuppliesToString(resources));
36  }
37 }
SCR_ResourceSystemHelper
Definition: SCR_ResourceSystemHelper.c:1
BaseContainerCustomStringTitleField
class SCR_HitZoneGroupNameHolder BaseContainerCustomStringTitleField("USE INHERENT VERSION ONLY!")
Definition: SCR_HitZoneGroupNameHolder.c:27
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
SCR_ResourceAvailableTooltipDetail
Definition: SCR_ResourceAvailableTooltipDetail.c:2
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