Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_EditableGroupUIInfo.c
Go to the documentation of this file.
3{
4 [Attribute("0", desc: "Will use Name that can be set dirrectly in UI info instead of using dynamic name by m_MilitarySymbol")]
5 protected bool m_bUseUIInfoName;
6
7 [Attribute()]
9
11
12 //------------------------------------------------------------------------------------------------
22
23 //------------------------------------------------------------------------------------------------
29 {
30 Name = name;
32 }
33
34 //------------------------------------------------------------------------------------------------
35 override string GetName()
36 {
38 return super.GetName();
39
41 {
43 if (core)
44 {
45 SCR_GroupNameConfig nameManager = core.GetNames();
46 if (nameManager)
47 {
48 string name = nameManager.GetGroupName(GetMilitarySymbol());
49 return name;
50 }
51 }
52 }
53 return super.GetName();
54 }
55
56 //------------------------------------------------------------------------------------------------
58 override bool GetEntityBudgetCost(out notnull array<ref SCR_EntityBudgetValue> outBudgets)
59 {
60 return true;
61 }
62
63 //------------------------------------------------------------------------------------------------
66 bool GetGroupBudgetCost(out notnull array<ref SCR_EntityBudgetValue> outBudgets)
67 {
68 return super.GetEntityBudgetCost(outBudgets);
69 }
70
71 //------------------------------------------------------------------------------------------------
72 //--- Override without 'protected' keyword
73 override void CopyFrom(SCR_UIName source)
74 {
75 SCR_EditableGroupUIInfo editableGroupSource = SCR_EditableGroupUIInfo.Cast(source);
76 if (editableGroupSource)
77 m_MilitarySymbol = editableGroupSource.m_MilitarySymbol;
78
79 super.CopyFrom(source);
80 }
81}
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
SCR_MilitarySymbol GetMilitarySymbol()
override bool GetEntityBudgetCost(out notnull array< ref SCR_EntityBudgetValue > outBudgets)
Get Entity budget costs.
override void CopyFrom(SCR_UIName source)
bool GetGroupBudgetCost(out notnull array< ref SCR_EntityBudgetValue > outBudgets)
void SetInstance(SCR_MilitarySymbol symbol, LocalizedString name)
ref SCR_MilitarySymbol m_MilitarySymbol
SCR_MilitarySymbol m_MilitarySymbolInstance
SCR_GroupNameConfig GetNames()
LocalizedString GetGroupName(SCR_MilitarySymbol symbol)
void CopyFrom(SCR_MilitarySymbol from)
LocalizedString Name
Definition SCR_UIName.c:8
SCR_FieldOfViewSettings Attribute