Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_BaseFloatValueHolderEditorAttribute.c
Go to the documentation of this file.
4 {
5  [Attribute(desc: "Values")]
6  protected ref array<ref SCR_EditorAttributeFloatStringValueHolder> m_aValues;
7 
8  //------------------------------------------------------------------------------------------------
9  override int GetEntries(notnull array<ref SCR_BaseEditorAttributeEntry> outEntries)
10  {
12  return outEntries.Count();
13  }
14 };
15 
18 {
19  [Attribute()]
20  protected ResourceName m_Icon;
21 
22  [Attribute(uiwidget: UIWidgets.LocaleEditBox)]
23  protected LocalizedString m_sEntryName;
24 
25  [Attribute(uiwidget: UIWidgets.LocaleEditBox)]
26  protected LocalizedString m_sEntryDescription;
27 
28  [Attribute()]
29  protected float m_fEntryFloatValue;
30 
31  //------------------------------------------------------------------------------------------------
32  void SetIcon(ResourceName newIcon)
33  {
34  m_Icon = newIcon;
35  }
36 
37  ResourceName GetIcon()
38  {
39  return m_Icon;
40  }
41 
42  void SetName(string newName)
43  {
44  m_sEntryName = newName;
45  }
46 
47  string GetName()
48  {
49  return m_sEntryName;
50  }
51 
52  void SetDescription(string newDescription)
53  {
54  m_sEntryDescription = newDescription;
55  }
56 
57  string GetDescription()
58  {
59  return m_sEntryDescription;
60  }
61 
62  void SetFloatValue(float newValue)
63  {
64  m_fEntryFloatValue = newValue;
65  }
66 
67  float GetFloatValue()
68  {
69  return m_fEntryFloatValue;
70  }
71 
72  void SetWithUIInfo(SCR_UIInfo info, float value)
73  {
74  SetName(info.GetName());
75  SetIcon(info.GetIconPath());
76  SetFloatValue(value);
77  }
78 
79  void SetWithUIInfo(UIInfo info, float value)
80  {
81  SetName(info.GetName());
82  SetIcon(info.GetIconPath());
83  SetFloatValue(value);
84  }
85 }
m_aValues
SCR_BaseEditorAttributeEntryTimeSlider m_aValues
UIInfo
UIInfo - declare object, allows to define UI elements.
Definition: UIInfo.c:13
desc
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
Definition: SCR_RespawnBriefingComponent.c:17
SCR_BaseEditorAttributeCustomTitle
Definition: SCR_BaseEditorAttribute.c:868
BaseContainerCustomTitleField
class SCR_KeyBindingFilter BaseContainerCustomTitleField("m_sBindString")
Definition: SCR_KeyBindingMenuConfig.c:113
Attribute
typedef Attribute
Post-process effect of scripted camera.
SCR_BaseEditorAttributeFloatStringValues
void SCR_BaseEditorAttributeFloatStringValues(array< ref SCR_EditorAttributeFloatStringValueHolder > values)
Definition: SCR_BaseEditorAttribute.c:627
SCR_BaseEditorAttribute
Base Attribute Script for other attributes to inherent from to get and set varriables in Editor Attri...
Definition: SCR_BaseEditorAttribute.c:3
SCR_UIInfo
Definition: SCR_UIInfo.c:7
SCR_EditorAttributeFloatStringValueHolder
Definition: SCR_BaseFloatValueHolderEditorAttribute.c:17
SCR_BaseFloatValueHolderEditorAttribute
Attribute base for Name, icon and float value for other attributes to inherent from.
Definition: SCR_BaseFloatValueHolderEditorAttribute.c:3
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