3 protected const int MIN_NAME_LENGTH = 5;
5 protected const string WIDGET_FILE_NAME =
"FileName";
6 protected const string WIDGET_NAV_CONFIRM =
"confirm";
14 super.Init(root, preset, proxyMenu);
19 override void HandlerAttached(Widget w)
25 m_FileName.m_OnChanged.Insert(OnFileNameChanged);
27 Widget focus = m_FileName.GetRootWidget();
29 GetGame().GetWorkspace().SetFocusedWidget(focus);
33 void SetFileNameText(
string text)
38 m_FileName.SetValue(text);
42 string GetFileNameText()
47 return m_FileName.GetValue();
55 m_navConfirm.SetEnabled(text.Length() >= MIN_NAME_LENGTH);