Exemple #1
0
        private void OnGUI()
        {
            GUILayout.BeginVertical();

            if (GUILayout.Button("选择DLL所在目录", GUILayout.Height(30)))
            {
                string dir = EditorUtility.OpenFolderPanel("Dll文件目录", Application.dataPath, "");
                if ("" == dir)
                {
                    return;
                }
                _selectDir      = dir;
                _cmd            = new CreateLinkXMLCommand(dir);
                _cmd.onCreated += OnCreated;
                _cmd.Excute();
            }

            if (null != _nodeList)
            {
                _pos = GUILayout.BeginScrollView(_pos);

                DoToolbar();
                DoTreeView();
                DoSaveView();

                GUILayout.EndScrollView();
            }

            GUILayout.EndVertical();
        }
Exemple #2
0
        void SelectDllDir()
        {
            string dir = EditorUtility.OpenFolderPanel("Dll文件目录", Application.dataPath, "");

            if (string.IsNullOrEmpty(dir))
            {
                return;
            }
            _cmd            = new CreateLinkXMLCommand(dir);
            _cmd.onCreated += OnCreated;
            _cmd.Excute();
        }
Exemple #3
0
 private void OnCreated(CreateLinkXMLCommand cmd)
 {
     nodeList        = _cmd.NodeList;
     _cmd.onCreated -= OnCreated;
 }
Exemple #4
0
 private void OnCreated(CreateLinkXMLCommand cmd)
 {
     _nodeList       = _cmd.NodeList;
     _cmd.onCreated -= OnCreated;
     _latv.UpdateData(_nodeList);
 }