Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_BasePresetsEditorAttribute.c
Go to the documentation of this file.
1 
6 {
7  [Attribute("3", "How many buttons should there be displayed on a row")]
8  protected int m_iButtonsOnRow;
9 
10  [Attribute("0", "Adds a randomzie button to select a random entity (Only works with single select)")]
11  protected bool m_bHasRandomizeButton;
12 
13  [Attribute("", "Icon of randomize Button")]
14  protected ResourceName m_sRandomizeButtonIcon;
15 
16  [Attribute("1", "Set false if the button should never try to use icons instead of text")]
17  protected bool m_bUseIcon;
18 
19  [Attribute("1", "If true it will show the given description (it will use Name if no description is given) when hovering over the button")]
20  protected bool m_bHasButtonDescription;
21 
22  [Attribute("%1", "If m_bHasButtonDescription is true then it will use this string as description (and entry description (or if empty enity name as Param %1)) this means using %1 will simply display the entry description/name")]
23  protected LocalizedString m_sButtonDescription;
24 
25  [Attribute("-1", "Set -1 to have UI set size")]
26  protected float m_fButtonHeight;
27 
28  protected void CreatePresets()
29  {
30  }
31 
32  override int GetEntries(notnull array<ref SCR_BaseEditorAttributeEntry> outEntries)
33  {
34  CreatePresets();
35  outEntries.Insert(new SCR_EditorAttributePresetEntry(m_iButtonsOnRow, m_bHasRandomizeButton, m_sRandomizeButtonIcon, m_bUseIcon, m_bHasButtonDescription, m_sButtonDescription, m_fButtonHeight));
37  return outEntries.Count();
38  }
39 };
m_aValues
SCR_BaseEditorAttributeEntryTimeSlider m_aValues
SCR_BaseEditorAttributeCustomTitle
Definition: SCR_BaseEditorAttribute.c:868
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_EditorAttributePresetEntry
Definition: SCR_BaseEditorAttribute.c:757
SCR_BasePresetsEditorAttribute
Definition: SCR_BasePresetsEditorAttribute.c:5
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