Beispiel #1
0
        void SaveConfig()
        {
            _cfg.frameworkToProjectList = frameworkToProjectList;
            _cfg.file2BuildList         = file2BuildList;
            _cfg.buildPropertyList      = setBuildProperty;
            _cfg.pListDataList          = addPListInfo;
            _cfg.urlSchemeList          = urlSchemeList;
            _cfg.appQueriesSchemeList   = appQueriesSchemeList;


            EditorConfigUtil.SaveConfig(_cfg, CONFIG_NAME);
            editorWin.ShowTip("保存成功!");
        }
Beispiel #2
0
 public IOSProjectInitModule(EditorWindow editorWin) : base(editorWin)
 {
     _cfg = EditorConfigUtil.LoadConfig <IOSProjectInitConfigVO>(CONFIG_NAME);
     if (null == _cfg)
     {
         _cfg = new IOSProjectInitConfigVO();
     }
     frameworkToProjectList = _cfg.frameworkToProjectList;
     file2BuildList         = _cfg.file2BuildList;
     setBuildProperty       = _cfg.buildPropertyList;
     addPListInfo           = _cfg.pListDataList;
     urlSchemeList          = _cfg.urlSchemeList;
     appQueriesSchemeList   = _cfg.appQueriesSchemeList;
 }
Beispiel #3
0
        void SaveConfig()
        {
            for (int i = 0; i < includeDirs.Count; i++)
            {
                includeDirs[i] = includeDirs[i].Replace(NONEXISTENT_FLAG, "");
            }

            for (int i = 0; i < includeDlls.Count; i++)
            {
                includeDlls[i] = includeDlls[i].Replace(NONEXISTENT_FLAG, "");
            }

            EditorConfigUtil.SaveConfig(_cfg, CONFIG_NAME);

            CheckExistsAndRefreshPreviewList();
        }
Beispiel #4
0
        public GenerateLinkXMLModule(EditorWindow editorWin) : base(editorWin)
        {
            _cfg = EditorConfigUtil.LoadConfig <ConfigVO>(CONFIG_NAME);
            if (null == _cfg.includeDirs)
            {
                _cfg.includeDirs = new List <string>();
            }
            if (null == _cfg.includeDlls)
            {
                _cfg.includeDlls = new List <string>();
            }

            includeDirs = _cfg.includeDirs;
            includeDlls = _cfg.includeDlls;

            CheckExistsAndRefreshPreviewList();
        }
        public GenerateLinkXMLModule(EditorWindow editorWin) : base(editorWin)
        {
            _cfg = EditorConfigUtil.LoadConfig <ConfigVO>(CONFIG_NAME);
            if (null == _cfg.includeDirs)
            {
                _cfg.includeDirs = new List <string>();
            }
            if (null == _cfg.includeDlls)
            {
                _cfg.includeDlls = new List <string>();
            }

            var defaultDir = FileSystem.CombineDirs(true, EditorApplication.applicationContentsPath);

            if (false == _cfg.includeDirs.Contains(defaultDir))
            {
                _cfg.includeDirs.Add(defaultDir);
            }

            includeDirs = _cfg.includeDirs;
            includeDlls = _cfg.includeDlls;

            RefreshPreviewList();
        }
Beispiel #6
0
 void SaveConfig()
 {
     UpdateCfg();
     EditorConfigUtil.SaveConfig(cfg, CONFIG_NAME);
 }
Beispiel #7
0
 public BuildSettingJsonModule(EditorWindow editorWin) : base(editorWin)
 {
     SetCfg(EditorConfigUtil.LoadConfig <SettingVO>(CONFIG_NAME));
 }
 void SaveConfig()
 {
     EditorConfigUtil.SaveConfig(_cfg, CONFIG_NAME);
 }
Beispiel #9
0
        /// <summary>
        /// 加载配置
        /// </summary>
        /// <returns></returns>
        public static ConfigVO LoadConfig()
        {
            var cfg = EditorConfigUtil.LoadConfig <ConfigVO>(CONFIG_NAME);

            return(cfg);
        }