14 layoutRoot =
GetGame().GetWorkspace().CreateWidgets(
"gui/layouts/script_console/script_console_dialog_preset.layout");
15 m_Editbox =
EditBoxWidget.Cast(layoutRoot.FindAnyWidget(
"PrimaryEditBox"));
16 m_Label =
TextWidget.Cast(layoutRoot.FindAnyWidget(
"WindowLabel"));
17 m_Message =
TextWidget.Cast(layoutRoot.FindAnyWidget(
"MessageText"));
28 m_Editbox.SetText(
tab.GetCurrentPresetName());
29 m_Label.SetText(
"RENAME PRESET");
30 m_Message.SetText(
tab.GetCurrentPresetName());