10 [
Attribute(uiwidget: UIWidgets.LocaleEditBox)]
13 [
Attribute(uiwidget: UIWidgets.ResourcePickerThumbnail,
params:
"edds")]
19 ref array<ref SCR_FieldManualPiece> m_aContent;
21 protected bool m_bCanRefresh;
33 Widget CreateWidget(notnull Widget parent);
36 protected Widget CreateWidgetFromLayout(ResourceName
layout, notnull Widget parent)
38 Widget createdWidget =
GetGame().GetWorkspace().CreateWidgets(
layout, parent);
41 Print(
string.Format(
"could not create widget from layout \"%1\" | ",
layout) + FilePath.StripPath(__FILE__) +
":" + __LINE__, LogLevel.WARNING);
47 Print(
"no content found (null array) | " + FilePath.StripPath(__FILE__) +
":" + __LINE__, LogLevel.WARNING);
51 Widget piecesLayout =
SCR_WidgetHelper.GetWidgetOrChild(createdWidget,
"piecesLayout");
52 if (!piecesLayout || !m_aContent)
54 Print(
"no pieces layout found | " + FilePath.StripPath(__FILE__) +
":" + __LINE__, LogLevel.WARNING);
60 if (piece.CanCreateWidget())
62 piece.CreateWidget(piecesLayout);
64 m_bCanRefresh = piece.CanRefresh();