7 [
Attribute(uiwidget: UIWidgets.LocaleEditBox)]
10 [
Attribute(uiwidget: UIWidgets.Auto,
desc:
"Field Manual sub-categories")]
11 ref array<ref SCR_FieldManualConfigCategory> m_aCategories;
14 ref array<ref SCR_FieldManualConfigEntry> m_aEntries;
16 [
Attribute(defvalue:
"{0D3AF0CFA1D1F9A6}UI/layouts/Menus/FieldManual/MenuParts/FieldManual_MenuCategory.layout", uiwidget: UIWidgets.EditBoxWithButton,
params:
"layout")]
17 ResourceName m_CategoryLayout;
19 [
Attribute(defvalue:
"{A316FF2475A5ADAB}UI/layouts/Menus/FieldManual/MenuParts/FieldManual_MenuSubCategory.layout", uiwidget: UIWidgets.EditBoxWithButton,
params:
"layout")]
20 ResourceName m_SubCategoryLayout;
43 Widget CreateWidget(notnull Widget parent)
47 return CreateMainCategory(parent);
51 return CreateSubCategory(parent);
56 protected Widget CreateMainCategory(notnull Widget parent)
58 Widget createdWidget =
GetGame().GetWorkspace().CreateWidgets(m_CategoryLayout, parent);
62 Widget widget = createdWidget.FindAnyWidget(
"Title");
65 TextWidget titleWidget = TextWidget.Cast(widget);
67 titleWidget.SetText(m_sTitle);
74 protected Widget CreateSubCategory(notnull Widget parent)
76 Widget createdWidget =
GetGame().GetWorkspace().CreateWidgets(m_SubCategoryLayout, parent);
81 if (buttonTextComponent !=
null)
82 buttonTextComponent.SetText(m_sTitle);