/////////////////////////////////////////

        public static void DrawGUI()
        {
            //E.Load();
            P.Load();
            var targetGroupList = PlatformUtils.GetSupportList();

            ScopeIsCompile.Begin();

            ScopeVertical.Begin();
            HEditorGUILayout.HeaderTitle("Platform");
            GUILayout.Space(8);
            foreach (var t in targetGroupList)
            {
                ScopeChange.Begin();

                var _b = HEditorGUILayout.ToggleBox(P.GetPlatform(t).enable, t.Icon(), t.GetName());
                if (ScopeChange.End())
                {
                    P.GetPlatform(t).enable = _b;
                    P.Save();
                    BuildAssistWindow.ChangeActiveTarget();
                }
            }
            ScopeVertical.End();

            ScopeIsCompile.End();
        }
Exemple #2
0
        public static void DrawGUI()
        {
            P.Load();
            PB.Load();
            Styles.Init();

            DrawContentConfig();

            if (s_changed)
            {
                P.Save();
                PB.Save();
                BuildAssistWindow.Repaint();
            }
        }
Exemple #3
0
        /////////////////////////////////////////

        public static void ExecuteBuildPackage()
        {
            EditorApplication.delayCall += BuildPackage;
            B.s_buildProcess             = true;
            BuildAssistWindow.Repaint();

            void BuildPackage()
            {
                using (new BuildProcessScope()) {
                    P.SetBuildParamIndex();
                    try {
                        var flag = 0x01;
                        if (P.GetCurrentParams().buildAssetBundlesTogether)
                        {
                            flag |= 0x02;
                        }
                        BuildCommands.Build(flag);
                    }
                    catch (Exception e) {
                        Debug.LogException(e);
                    }
                }
            };
        }
Exemple #4
0
        //public void Reinit() => Init();

        public void Init()
        {
            s_window = this;
            s_window.SetTitle(new GUIContent(Package.nameNicify, EditorIcon.buildsettings_psm_small));

            m_Drawer_ScenesInBuild  = new GUI_BuildScenes();
            m_Drawer_BuildPlatforms = new GUI_BuildProperty();

            P.Load();
            Utils.s_currentPlatform = null;

            m_supportBuildTarget = PlatformUtils.GetSupportList();

            //_enableAssetBundle = EditorHelper.HasMenuItem( Window_AssetBundle_Browser );
            _enableBuildReport = EditorHelper.HasMenuItem(Window_Show_Build_Report);


            MakeDrawBuildTarget();
            OnFocus();

            Utils.SelectItemUpdate();
            ChangeActiveTarget();
            m_Drawer_BuildPlatforms.SelectPlatform(Utils.s_currentPlatform, m_buildPlatformDrawer);
        }
Exemple #5
0
 public void Draw(BuildAssistWindow parent)
 {
     var currentParams = P.GetCurrentParams();
 }