private void LoadAllModulesUserConfigList() { assetPreprocessorUserConfigNames = EBPUtility.FindFilesRelativePathWithoutExtension(G.Module.AssetPreprocessorModule.ModuleConfig.UserConfigsFolderPath); bundleManagerUserConfigNames = EBPUtility.FindFilesRelativePathWithoutExtension(G.Module.BundleManagerModule.ModuleConfig.UserConfigsFolderPath); packageManagerUserConfigNames = EBPUtility.FindFilesRelativePathWithoutExtension(G.Module.PackageManagerModule.ModuleConfig.UserConfigsFolderPath); userConfigNames = EBPUtility.FindFilesRelativePathWithoutExtension(G.Module.PlayerBuilderModule.ModuleConfig.UserConfigsFolderPath); }
public void Awake() { InitStyles(); userConfigNames = EBPUtility.FindFilesRelativePathWithoutExtension(G.Module.ModuleConfig.UserConfigsFolderPath); string currentUserConfigName = G.Module.ModuleStateConfig.Json.CurrentUserConfigName; if (currentUserConfigName != null) { string extension = Path.GetExtension(currentUserConfigName); selectedUserConfigIndex = userConfigNames.IndexOf(currentUserConfigName.Remove( currentUserConfigName.Length - extension.Length, extension.Length)); } //G.Module.DisplayRunError(); }
private void CreateNewUserConfig(string name, string path) { //新建 if (!Directory.Exists(CommonModule.CommonConfig.UserConfigsRootPath)) { G.Module.DisplayDialog("创建失败!用户配置根目录不存在:"); return; } //保存 Directory.CreateDirectory(Path.GetDirectoryName(path)); G.Module.UserConfig.JsonPath = path; SaveUserConfig(); //更新列表 userConfigNames = EBPUtility.FindFilesRelativePathWithoutExtension(G.Module.ModuleConfig.UserConfigsFolderPath); //切换 G.Module.IsDirty = false; ChangeUserConfig(userConfigNames.IndexOf(name)); //用于总控 G.g.OnChangeConfigList(); }
private void LoadConfigsList() { BundleConfigNames = EBPUtility.FindFilesRelativePathWithoutExtension(CommonModule.CommonConfig.UserConfigsFolderPath_BundleManager); userConfigNames = EBPUtility.FindFilesRelativePathWithoutExtension(G.Module.ModuleConfig.UserConfigsFolderPath); }