Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_EditableEntityCoreLabelSetting.c
Go to the documentation of this file.
3 {
4  [Attribute()]
5  protected ref SCR_UIInfo m_Info;
6 
7  [Attribute("0")]
8  private int m_Order;
9 
10  [Attribute("0", UIWidgets.SearchComboBox, "", enums: ParamEnumArray.FromEnum(EEditableEntityLabel))]
11  private EEditableEntityLabel m_LabelType;
12 
13  [Attribute("0", UIWidgets.SearchComboBox, "", enums: ParamEnumArray.FromEnum(EEditableEntityLabelGroup))]
14  private EEditableEntityLabelGroup m_LabelGroupType;
15 
16  [Attribute("1")]
17  private bool m_bFilterEnabled;
18 
19  SCR_UIInfo GetInfo()
20  {
21  //~ Safty as later system want a UIInfo
22  if (!m_Info)
23  return SCR_UIInfo.CreateInfo(typename.EnumToString(EEditableEntityLabel, m_LabelType));
24 
25  return m_Info;
26  }
27 
28  int GetOrder()
29  {
30  return m_Order;
31  }
32 
33  EEditableEntityLabel GetLabelType()
34  {
35  return m_LabelType;
36  }
37  EEditableEntityLabelGroup GetLabelGroupType()
38  {
39  return m_LabelGroupType;
40  }
41 
42  bool GetFilterEnabled()
43  {
44  return m_bFilterEnabled;
45  }
46 
47  //------------------------------------------------------------------------------------------------
53  bool IsValid(EEditorMode currentMode)
54  {
55  return true;
56  }
57 
58  //------------------------------------------------------------------------------------------------
59  void InitalizeGrouplessLabel(EEditableEntityLabel labelType)
60  {
61  m_LabelType = labelType;
62  m_LabelGroupType = EEditableEntityLabelGroup.GROUPLESS;
63  m_bFilterEnabled = false;
64  }
65 
66  //------------------------------------------------------------------------------------------------
67  static SCR_EditableEntityCoreLabelSetting CreateGrouplessLabel(EEditableEntityLabel labelType)
68  {
70  newLabelSetting.InitalizeGrouplessLabel(labelType);
71  return newLabelSetting;
72  }
73 };
EEditableEntityLabel
EEditableEntityLabel
Definition: EEditableEntityLabel.c:1
SCR_BaseContainerCustomTitleEnum
class SCR_CampaignHintStorage SCR_BaseContainerCustomTitleEnum(EHint, "m_eHintId")
Definition: SCR_CampaignHintStorage.c:22
SCR_EditableEntityCoreLabelSetting
Definition: SCR_EditableEntityCoreLabelSetting.c:2
Attribute
typedef Attribute
Post-process effect of scripted camera.
m_Info
protected ref SCR_HintUIInfo m_Info
Definition: SCR_BaseHintCondition.c:3
EEditableEntityLabelGroup
EEditableEntityLabelGroup
Definition: EEditableEntityLabel.c:200
SCR_UIInfo
Definition: SCR_UIInfo.c:7
EEditorMode
EEditorMode
Editor mode that defines overall functionality.
Definition: EEditorMode.c:5
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