Exemplo n.º 1
0
 void OnSchemeChanged(CodeUIItem currentItem, string prevItem)
 {
     if (currentItem != null)
     {
         nameEdit.Text = currentItem.GetUniqueName();
     }
 }
Exemplo n.º 2
0
        public bool BeginNewNormalSearch()
        {
            Clear();
            var scene         = UIManager.Instance().GetScene();
            var selectedNodes = scene.SelectedNodes();

            if (selectedNodes.Count == 0)
            {
                return(false);
            }

            CodeUIItem node = selectedNodes[0];

            m_srcUniqueName = node.GetUniqueName();
            m_srcLongName   = node.GetLongName();
            m_srcName       = node.GetName();
            bool res = LaunchNormalSearch(node.GetName());

            if (res == false)
            {
                Clear();
            }

            return(res);
        }