Exemple #1
0
        /// <summary>
        /// 绘制输入输出按钮
        /// </summary>
        private void DrawIOButton()
        {
            Rect pos = position;

            IORect.x = 0;
            IORect.y = ConfigViewListRect.height;

            IORect.width  = pos.width;
            IORect.height = pos.height * 0.1f;

            GUILayout.BeginArea(IORect);
            GUILayout.Space(18);

            GUILayout.BeginHorizontal("box");

            if (GUILayout.Button("加载配置"))
            {
                UnLoadSoundConfig();
                LoadSoundConfig();
            }

            if (GUILayout.Button("导出配置"))
            {
                ExportConfig();
            }

            if (GUILayout.Button("帮助"))
            {
                SoundSystemEditorWindowHelpWindow.OpenSoundSystemEditorWindowHelpWindow();
            }

            GUI.enabled = false;

            if (GUILayout.Button("高科技"))
            {
                //if (!Application.isPlaying)
                //{
                //    //BuildAssetBundle();
                //}
                //else
                //{
                //    SoundManager.SoundSystemLog("不能在播放模式下构建资源包!");
                //}
            }
            GUI.enabled = true;

            GUILayout.EndHorizontal();

            GUILayout.EndArea();
        }
Exemple #2
0
 public static void OpenSoundSystemEditorWindowHelpWindow()
 {
     EditorInstance = EditorWindow.GetWindow <SoundSystemEditorWindowHelpWindow>(false, "HelpWindow", true);
     EditorInstance.Show();
 }