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.
1
[
BaseContainerProps
(),
BaseContainerCustomStringTitleField
(
"Stored Resources"
)]
2
class
SCR_ResourceStorageTooltipDetail
:
SCR_BaseResourceTooltipDetail
3
{
4
//------------------------------------------------------------------------------------------------
5
protected
override
SCR_ResourceConsumer GetConsumer()
6
{
7
if
(!
m_ResourceComponent
)
8
return
null
;
9
10
return
SCR_ResourceSystemHelper
.GetStorageConsumer(
m_ResourceComponent
, m_eResourceType);
11
}
12
13
//------------------------------------------------------------------------------------------------
14
protected
override
bool
IsValid()
15
{
16
if
(!
m_ResourceComponent
)
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
28
if
(!
m_ResourceComponent
)
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
scripts_Arma_Reforger_v1.1.0.42
scripts
Game
Editor
UI
Components
Tooltips
Tooltips
Details
SCR_ResourceStorageTooltipDetail.c
Generated by
1.8.17