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_LoadoutBaseEditorAttribute.c
Go to the documentation of this file.
1
//
2
[
BaseContainerProps
(),
SCR_BaseEditorAttributeCustomTitle
()]
3
class
SCR_LoadoutBaseEditorAttribute
:
SCR_BaseMultiSelectPresetsEditorAttribute
4
{
5
[
Attribute
()]
6
protected
ref
SCR_ArsenalItemTypeUIConfig
m_ArsenalItemTypeConfig
;
7
8
[
Attribute
(
"0"
,
UIWidgets
.Flags,
""
, enums: ParamEnumArray.FromEnum(
SCR_EArsenalItemType
))]
9
protected
SCR_EArsenalItemType
m_eInventoryItemTypes
;
10
11
12
protected
override
void
CreatePresets
()
13
{
14
array<ref SCR_ArsenalItemTypeUI> ArsenalUIInfo =
m_ArsenalItemTypeConfig
.GetAvailableItems();
15
16
if
(ArsenalUIInfo.IsEmpty())
17
return
;
18
19
//~ Safty
20
array<int> intValues =
new
array<int>;
21
if
(
SCR_Enum
.GetEnumValues(
SCR_EArsenalItemType
, intValues) != ArsenalUIInfo.Count())
22
Print
(
"List of supported item types for editor arsenal and loadout is a diffrent length from Arsenal Item Type UI config. Make sure that any new 'SCR_EArsenalItemType' enum also has an entry in 'SCR_ArsenalItemTypeUIConfig'"
,
LogLevel
.WARNING);
23
24
m_aValues
.Clear();
25
SCR_EditorAttributeFloatStringValueHolder
value;
26
foreach
(SCR_ArsenalItemTypeUI item: ArsenalUIInfo)
27
{
28
if
(
m_eInventoryItemTypes
& item.GetItemType())
29
{
30
value =
new
SCR_EditorAttributeFloatStringValueHolder
();
31
value.
SetWithUIInfo
(item.GetInfo(), item.GetItemType());
32
m_aValues
.Insert(value);
33
}
34
35
}
36
}
37
};
BaseContainerProps
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
Definition
SCR_AIAnimationWaypoint.c:14
SCR_EArsenalItemType
SCR_EArsenalItemType
Definition
SCR_EArsenalItemType.c:3
SCR_ArsenalItemTypeUIConfig
Definition
SCR_ArsenalItemTypeUIConfig.c:3
SCR_BaseEditorAttributeCustomTitle
Definition
SCR_BaseEditorAttribute.c:876
SCR_BaseFloatValueHolderEditorAttribute::m_aValues
ref array< ref SCR_EditorAttributeFloatStringValueHolder > m_aValues
Definition
SCR_BaseFloatValueHolderEditorAttribute.c:6
SCR_BaseMultiSelectPresetsEditorAttribute
Definition
SCR_BaseMultiSelectPresetsEditorAttribute.c:5
SCR_EditorAttributeFloatStringValueHolder
Definition
SCR_BaseFloatValueHolderEditorAttribute.c:61
SCR_EditorAttributeFloatStringValueHolder::SetWithUIInfo
void SetWithUIInfo(SCR_UIInfo info, float value)
Definition
SCR_BaseFloatValueHolderEditorAttribute.c:141
SCR_Enum
Definition
SCR_Enum.c:2
SCR_LoadoutBaseEditorAttribute
Definition
SCR_LoadoutBaseEditorAttribute.c:4
SCR_LoadoutBaseEditorAttribute::m_eInventoryItemTypes
SCR_EArsenalItemType m_eInventoryItemTypes
Definition
SCR_LoadoutBaseEditorAttribute.c:9
SCR_LoadoutBaseEditorAttribute::CreatePresets
override void CreatePresets()
Definition
SCR_LoadoutBaseEditorAttribute.c:12
SCR_LoadoutBaseEditorAttribute::m_ArsenalItemTypeConfig
ref SCR_ArsenalItemTypeUIConfig m_ArsenalItemTypeConfig
Definition
SCR_LoadoutBaseEditorAttribute.c:6
UIWidgets
Definition
attributes.c:40
Print
proto void Print(void var, LogLevel level=LogLevel.NORMAL)
Prints content of variable to console/log.
LogLevel
LogLevel
Enum with severity of the logging message.
Definition
LogLevel.c:14
Attribute
SCR_FieldOfViewSettings Attribute
Definition
SendGoalMessage.c:170
scripts
Game
Editor
Containers
Attributes
SCR_LoadoutBaseEditorAttribute.c
Generated by
1.17.0