Пример #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();
        }
Пример #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();
        }