3 [
Attribute(
"0", uiwidget: UIWidgets.ComboBox,
"Attribute target type.", enums: { ParamEnum(
"Global",
"0"), ParamEnum(
"Camera",
"1"), ParamEnum(
"FactionsOnly",
"2") })]
4 protected int m_iTarget;
6 [
Attribute(
desc:
"Config of the category that should be selected upon opening attribute window.",
params:
"conf class=SCR_EditorAttributeCategory")]
7 protected ResourceName m_Category;
9 protected void OnButtonAction()
11 SCR_AttributesManagerEditorComponent attributesManager = SCR_AttributesManagerEditorComponent.Cast(SCR_AttributesManagerEditorComponent.GetInstance(SCR_AttributesManagerEditorComponent));
12 if (!attributesManager)
16 attributesManager.SetCurrentCategory(m_Category);
32 override bool IsUnique()
37 override void HandlerAttachedScripted(Widget w)
41 navButton.m_OnActivated.Insert(OnButtonAction);