3 private ButtonWidget m_BtnOk;
4 private ButtonWidget m_BtnCancel;
10 void UIPopupScriptPresetRename(
Widget wgt )
12 m_BtnOk = ButtonWidget.Cast( wgt.FindAnyWidget(
"btn_ppp_pr_ok") );
13 m_BtnCancel = ButtonWidget.Cast( wgt.FindAnyWidget(
"btn_ppp_pr_cancel") );
14 m_Editbox =
EditBoxWidget.Cast( wgt.FindAnyWidget(
"fld_ppp_pr_new_name") );
17 override void OnOpen(
Param param )
19 SceneEditorMenu menu = SceneEditorMenu.Cast(
GetGame().GetUIManager().GetMenu() );
20 m_Editbox.SetText( menu.GetCurrentPresetName() );
28 super.OnClick( w,
x,
y, button );
33 SceneEditorMenu menu = SceneEditorMenu.Cast(
GetGame().GetUIManager().GetMenu() );
34 menu.RenamePreset( wgt_text.GetText() );
41 else if ( w == m_BtnCancel )