Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_LoadoutBaseEditorAttribute.c
Go to the documentation of this file.
1 //
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();
26  foreach (SCR_ArsenalItemTypeUI item: ArsenalUIInfo)
27  {
28  if (m_eInventoryItemTypes & item.GetItemType())
29  {
31  value.SetWithUIInfo(item.GetInfo(), item.GetItemType());
32  m_aValues.Insert(value);
33  }
34 
35  }
36  }
37 };
SCR_Enum
Definition: SCR_Enum.c:1
m_aValues
SCR_BaseEditorAttributeEntryTimeSlider m_aValues
SCR_LoadoutBaseEditorAttribute
Definition: SCR_LoadoutBaseEditorAttribute.c:3
SCR_BaseEditorAttributeCustomTitle
Definition: SCR_BaseEditorAttribute.c:868
SCR_EArsenalItemType
SCR_EArsenalItemType
Definition: SCR_EArsenalItemType.c:2
Attribute
typedef Attribute
Post-process effect of scripted camera.
SCR_BaseMultiSelectPresetsEditorAttribute
Definition: SCR_BaseMultiSelectPresetsEditorAttribute.c:4
SCR_ArsenalItemTypeUIConfig
Definition: SCR_ArsenalItemTypeUIConfig.c:2
SCR_EditorAttributeFloatStringValueHolder
Definition: SCR_BaseFloatValueHolderEditorAttribute.c:17
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