Arma Reforger Explorer
1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Toggle main menu visibility
Loading...
Searching...
No Matches
SCR_BasePresetsEditorAttribute.c
Go to the documentation of this file.
1
4
[
BaseContainerProps
(),
SCR_BaseEditorAttributeCustomTitle
()]
5
class
SCR_BasePresetsEditorAttribute
:
SCR_BaseFloatValueHolderEditorAttribute
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
));
36
outEntries.Insert(
new
SCR_BaseEditorAttributeFloatStringValues
(
m_aValues
));
37
return
outEntries.Count();
38
}
39
};
BaseContainerProps
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
Definition
SCR_AIAnimationWaypoint.c:14
SCR_BaseEditorAttributeFloatStringValues
void SCR_BaseEditorAttributeFloatStringValues(array< ref SCR_EditorAttributeFloatStringValueHolder > values)
Definition
SCR_BaseEditorAttribute.c:634
LocalizedString
Definition
LocalizedString.c:22
ResourceName
Definition
ResourceName.c:13
SCR_BaseEditorAttributeCustomTitle
Definition
SCR_BaseEditorAttribute.c:876
SCR_BaseFloatValueHolderEditorAttribute
Attribute base for Name, icon and float value for other attributes to inherent from.
Definition
SCR_BaseFloatValueHolderEditorAttribute.c:4
SCR_BaseFloatValueHolderEditorAttribute::m_aValues
ref array< ref SCR_EditorAttributeFloatStringValueHolder > m_aValues
Definition
SCR_BaseFloatValueHolderEditorAttribute.c:6
SCR_BasePresetsEditorAttribute
Definition
SCR_BasePresetsEditorAttribute.c:6
SCR_BasePresetsEditorAttribute::m_fButtonHeight
float m_fButtonHeight
Definition
SCR_BasePresetsEditorAttribute.c:26
SCR_BasePresetsEditorAttribute::m_bUseIcon
bool m_bUseIcon
Definition
SCR_BasePresetsEditorAttribute.c:17
SCR_BasePresetsEditorAttribute::GetEntries
override int GetEntries(notnull array< ref SCR_BaseEditorAttributeEntry > outEntries)
Definition
SCR_BasePresetsEditorAttribute.c:32
SCR_BasePresetsEditorAttribute::m_sButtonDescription
LocalizedString m_sButtonDescription
Definition
SCR_BasePresetsEditorAttribute.c:23
SCR_BasePresetsEditorAttribute::m_bHasButtonDescription
bool m_bHasButtonDescription
Definition
SCR_BasePresetsEditorAttribute.c:20
SCR_BasePresetsEditorAttribute::m_sRandomizeButtonIcon
ResourceName m_sRandomizeButtonIcon
Definition
SCR_BasePresetsEditorAttribute.c:14
SCR_BasePresetsEditorAttribute::m_iButtonsOnRow
int m_iButtonsOnRow
Definition
SCR_BasePresetsEditorAttribute.c:8
SCR_BasePresetsEditorAttribute::m_bHasRandomizeButton
bool m_bHasRandomizeButton
Definition
SCR_BasePresetsEditorAttribute.c:11
SCR_BasePresetsEditorAttribute::CreatePresets
void CreatePresets()
Definition
SCR_BasePresetsEditorAttribute.c:28
SCR_EditorAttributePresetEntry
Definition
SCR_BaseEditorAttribute.c:765
Attribute
SCR_FieldOfViewSettings Attribute
Definition
SendGoalMessage.c:170
scripts
Game
Editor
Containers
Attributes
SCR_BasePresetsEditorAttribute.c
Generated by
1.17.0