8 [
Attribute(
"0",
desc:
"Dictates if attribute can be shown for box, displays or both. All other settings are still checked so if an arsenal display cannot display outfits then it will still not show.", uiwidget: UIWidgets.ComboBox, enums: ParamEnumArray.FromEnum(EArsenalType))]
9 protected EArsenalType m_iArsenalType;
19 if (!arsenalComponent)
23 if (m_iArsenalType != EArsenalType.ANY)
25 SCR_ArsenalDisplayComponent displayComp = SCR_ArsenalDisplayComponent.Cast(arsenalComponent);
27 if ((m_iArsenalType == EArsenalType.BOX_ONLY && displayComp !=
null) || (m_iArsenalType == EArsenalType.DISPLAY_ONLY && displayComp ==
null))
32 if (!(arsenalGroups & m_eEditableAttributeGroups))
39 override void WriteVariable(Managed item,
SCR_BaseEditorAttributeVar var, SCR_AttributesManagerEditorComponent manager,
int playerID)
49 if (!arsenalComponent)
53 if (m_iArsenalType != EArsenalType.ANY)
55 SCR_ArsenalDisplayComponent displayComp = SCR_ArsenalDisplayComponent.Cast(arsenalComponent);
57 if ((m_iArsenalType == EArsenalType.BOX_ONLY && displayComp !=
null) || (m_iArsenalType == EArsenalType.DISPLAY_ONLY && displayComp ==
null))
67 int newArsenalflags = var.GetInt();
72 if (newArsenalflags & (
int)value.GetFloatValue())
73 arsenalFlags |= (
int)value.GetFloatValue();
75 arsenalFlags &= ~(
int)value.GetFloatValue();
79 arsenalComponent.SetSupportedArsenalItemTypes(arsenalFlags);