4 protected const ResourceName LAYOUT =
"{D06D740EB045FC14}UI/layouts/Menus/FieldManual/Pieces/FieldManual_Piece_Text.layout";
6 override void CreateWidget(notnull Widget parent)
8 Widget createdWidget =
GetGame().GetWorkspace().CreateWidgets(LAYOUT, parent);
11 Print(
string.Format(
"created widget (%1) was null | " + FilePath.StripPath(__FILE__) +
":" + __LINE__, LAYOUT), LogLevel.DEBUG);
15 TextWidget textWidget = TextWidget.Cast(createdWidget);
18 textWidget = TextWidget.Cast(
SCR_WidgetHelper.GetWidgetOrChild(createdWidget,
"Text"));
23 Print(
"created widget could not be set text | " + FilePath.StripPath(__FILE__) +
":" + __LINE__, LogLevel.DEBUG);
27 textWidget.SetText(
"");