9 protected ResourceName ADDON_LINE_LAYOUT =
"{99668AEF3063A9F2}UI/layouts/Menus/Common/SimpleEntry.layout";
11 protected ref array<string> m_aNames = {};
12 protected ref array<SCR_SimpleEntryComponent> m_aLines = {};
17 VerticalLayoutWidget
layout = VerticalLayoutWidget.Cast(
GetRootWidget().FindAnyWidget(
"AddonList"));
20 Print(
"SCR_SimpleEntryListDialog - can't create list due to missing list layout" , LogLevel.WARNING);
25 for (
int i = 0, count = m_aNames.Count(); i < count; i++)
27 Widget w =
GetGame().GetWorkspace().CreateWidgets(ADDON_LINE_LAYOUT,
layout);
33 comp.SetMessages(m_aNames[i],
string.Empty);
42 if (dialogsConfig ==
string.Empty)
54 m_aNames.InsertAll(names);
56 if (!preset.IsEmpty())