Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_EditableGroupUIInfo.c
Go to the documentation of this file.
3 {
4  [Attribute()]
5  protected ref SCR_MilitarySymbol m_MilitarySymbol;
6 
7  protected SCR_MilitarySymbol m_MilitarySymbolInstance; //--- No 'ref'
8 
9  //------------------------------------------------------------------------------------------------
12  SCR_MilitarySymbol GetMilitarySymbol()
13  {
14  if (m_MilitarySymbolInstance)
15  return m_MilitarySymbolInstance;
16  else
17  return m_MilitarySymbol;
18  }
19 
20  //------------------------------------------------------------------------------------------------
25  void SetInstance(SCR_MilitarySymbol symbol, LocalizedString name)
26  {
27  Name = name;
28  m_MilitarySymbolInstance = symbol;
29  }
30 
31  //------------------------------------------------------------------------------------------------
32  override string GetName()
33  {
34  if (!m_MilitarySymbolInstance)
35  {
37  if (core)
38  {
39  SCR_GroupNameConfig nameManager = core.GetNames();
40  if (nameManager)
41  {
42  return nameManager.GetGroupName(GetMilitarySymbol());
43  }
44  }
45  }
46  return super.GetName();
47  }
48 
49  //------------------------------------------------------------------------------------------------
51  override bool GetEntityBudgetCost(out notnull array<ref SCR_EntityBudgetValue> outBudgets)
52  {
53  return true;
54  }
55 
56  //------------------------------------------------------------------------------------------------
59  bool GetGroupBudgetCost(out notnull array<ref SCR_EntityBudgetValue> outBudgets)
60  {
61  return super.GetEntityBudgetCost(outBudgets);
62  }
63 
64  //------------------------------------------------------------------------------------------------
65  //--- Override without 'protected' keyword
66  override void CopyFrom(SCR_UIName source)
67  {
68  SCR_EditableGroupUIInfo editableGroupSource = SCR_EditableGroupUIInfo.Cast(source);
69  if (editableGroupSource)
70  m_MilitarySymbol = editableGroupSource.m_MilitarySymbol;
71 
72  super.CopyFrom(source);
73  }
74 }
SCR_MilitarySymbol
Definition: SCR_MilitarySymbol.c:2
SCR_GroupIdentityCore
Definition: SCR_GroupIdentityCore.c:2
SCR_GroupNameConfig
Definition: SCR_GroupNameConfig.c:2
SCR_UIName
Definition: SCR_UIName.c:5
SCR_EditableEntityUIInfo
Definition: SCR_EditableEntityUIInfo.c:2
Attribute
typedef Attribute
Post-process effect of scripted camera.
SCR_EditableGroupUIInfo
Definition: SCR_EditableGroupUIInfo.c:2
LocalizedString
Definition: LocalizedString.c:21
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