Exemplo n.º 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();
        }
Exemplo n.º 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();
        }
Exemplo n.º 3
0
 private void OnCreated(CreateLinkXMLCommand cmd)
 {
     nodeList        = _cmd.NodeList;
     _cmd.onCreated -= OnCreated;
 }
Exemplo n.º 4
0
 private void OnCreated(CreateLinkXMLCommand cmd)
 {
     _nodeList       = _cmd.NodeList;
     _cmd.onCreated -= OnCreated;
     _latv.UpdateData(_nodeList);
 }