3 private ButtonWidget m_BtnOk;
4 private ButtonWidget m_BtnCancel;
5 private string m_RenameName;
10 void UIPopupScriptSceneRename(
Widget wgt)
12 m_BtnOk = ButtonWidget.Cast( wgt.FindAnyWidget(
"btn_ppp_sn_rnm_ok") );
13 m_BtnCancel = ButtonWidget.Cast( wgt.FindAnyWidget(
"btn_ppp_sn_rnm_cancel") );
21 super.OnClick(w,
x,
y, button);
27 PluginSceneManager editor = PluginSceneManager.Cast(
GetPlugin(PluginSceneManager) );
29 editor.SceneRename(m_RenameName, wgt_text.GetText());
36 else if ( w == m_BtnCancel )
49 void SetRenameName(
string rename_name)
51 m_RenameName = rename_name;