Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_ResourceStorageTooltipDetail.c
Go to the documentation of this file.
3{
4 //------------------------------------------------------------------------------------------------
5 protected override SCR_ResourceConsumer GetConsumer()
6 {
8 return null;
9
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 //------------------------------------------------------------------------------------------------
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_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
class SCR_HitZoneGroupNameHolder BaseContainerCustomStringTitleField("USE INHERITED VERSION ONLY!")
override SCR_ResourceConsumer GetConsumer()
override void UpdateDetail(SCR_EditableEntityComponent entity)