Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_SupplyCapacityTooltipDetail.c
Go to the documentation of this file.
3{
4 [Attribute("#AR-ValueUnit_Short_Plus", desc: "Formatting of adding supplies. %1 being amount")]
6
7 [Attribute("#AR-ValueUnit_Short_Minus", desc: "Formatting of removing supplies. %1 being amount")]
9
10 //------------------------------------------------------------------------------------------------
11 override bool InitDetail(SCR_EditableEntityComponent entity, Widget widget)
12 {
13 TextWidget text = TextWidget.Cast(widget);
14 if (!text)
15 return false;
16
17 SCR_EditableEntityUIInfo editableUiInfo = SCR_EditableEntityUIInfo.Cast(entity.GetInfo());
18 if (!editableUiInfo)
19 return false;
20
21 if (!editableUiInfo.HasEntityLabel(EEditableEntityLabel.SERVICE_SUPPLY_STORAGE))
22 return false;
23
26 else
28
29 return true;
30 }
31}
EEditableEntityLabel
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
class SCR_KeyBindingFilter BaseContainerCustomTitleField("m_sBindString")
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
SCR_UIInfo GetInfo(IEntity owner=null)
bool HasEntityLabel(EEditableEntityLabel label)
override bool InitDetail(SCR_EditableEntityComponent entity, Widget widget)
SCR_FieldOfViewSettings Attribute