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("保存成功!"); }
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; }
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(); }
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(); }
void SaveConfig() { UpdateCfg(); EditorConfigUtil.SaveConfig(cfg, CONFIG_NAME); }
public BuildSettingJsonModule(EditorWindow editorWin) : base(editorWin) { SetCfg(EditorConfigUtil.LoadConfig <SettingVO>(CONFIG_NAME)); }
void SaveConfig() { EditorConfigUtil.SaveConfig(_cfg, CONFIG_NAME); }
/// <summary> /// 加载配置 /// </summary> /// <returns></returns> public static ConfigVO LoadConfig() { var cfg = EditorConfigUtil.LoadConfig <ConfigVO>(CONFIG_NAME); return(cfg); }