4 [
Attribute(uiwidget: UIWidgets.ComboBox, enums: { new ParamEnum(
"Game Mode",
"0"), new ParamEnum(
"Camera",
"1"), new ParamEnum(
"Editable Entity",
"2") })]
5 protected int m_iItemType;
8 protected void OnAttributesStart()
10 SCR_AttributesManagerEditorComponent attributesManager = SCR_AttributesManagerEditorComponent.Cast(SCR_AttributesManagerEditorComponent.GetInstance(SCR_AttributesManagerEditorComponent));
11 if (attributesManager)
13 array<Managed> items = {};
14 if (attributesManager.GetEditedItems(items) == 0 || !items[0])
33 SCR_AttributesManagerEditorComponent attributesManager = SCR_AttributesManagerEditorComponent.Cast(SCR_AttributesManagerEditorComponent.GetInstance(SCR_AttributesManagerEditorComponent));
34 if (attributesManager)
36 attributesManager.GetOnAttributesStart().Insert(OnAttributesStart);
37 attributesManager.GetOnAttributesConfirm().Insert(
Deactivate);
38 attributesManager.GetOnAttributesCancel().Insert(
Deactivate);
45 SCR_AttributesManagerEditorComponent attributesManager = SCR_AttributesManagerEditorComponent.Cast(SCR_AttributesManagerEditorComponent.GetInstance(SCR_AttributesManagerEditorComponent));
46 if (attributesManager)
48 attributesManager.GetOnAttributesStart().Remove(OnAttributesStart);
49 attributesManager.GetOnAttributesConfirm().Remove(
Deactivate);
50 attributesManager.GetOnAttributesCancel().Remove(
Deactivate);