3 void ScriptConsoleNewPresetDialog()
8 void ~ScriptConsoleNewPresetDialog()
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_Label.SetText(
"NEW PRESET");
24 super.OnClick(w,
x,
y, button);
26 if (w.GetUserID() ==
IDC_OK)
29 if ( ui_menu != NULL && m_Editbox.GetText() )
31 ScriptConsole scripted_console = ScriptConsole.Cast( ui_menu );
36 tab.NewPreset( m_Editbox.GetText());