public void InitializeDefaultValues() { if (BuildSettings == null) { BuildSettings = new ProjectBuildSettings(); } BuildSettings.InitializeDefaults(); if (EditorSettings == null) { EditorSettings = new EditorSettings(); } EditorSettings.InitializeDefaults(); if (LddSettings == null) { LddSettings = new LddSettings(); } LddSettings.InitializeDefaults(); if (DisplaySettings == null) { DisplaySettings = new DisplaySettings(); } DisplaySettings.InitializeDefaults(); }
public AppSettings() { RecentProjectFiles = new List <RecentFileInfo>(); BuildSettings = new ProjectBuildSettings(); EditorSettings = new EditorSettings(); LddSettings = new LddSettings(); DisplaySettings = new DisplaySettings(); OpenedProjects = new List <RecentFileInfo>(); }
//[JsonProperty("Display")] //public DisplaySettings DisplaySettings { get; set; } public AppSettings() { RecentProjectFiles = new List <RecentFileInfo>(); BuildSettings = new ProjectBuildSettings(); //ViewportSettings = new ViewportDisplaySettings() //{ // PartRenderMode = Rendering.MeshRenderMode.SolidWireframe, // ShowPartModels = true //}; }
public void InitializeDefaultValues() { if (string.IsNullOrEmpty(LddApplicationDataPath) || string.IsNullOrEmpty(LddProgramFilesPath)) { var installedEnv = LDD.LDDEnvironment.InstalledEnvironment; LddApplicationDataPath = installedEnv?.ApplicationDataPath ?? string.Empty; LddProgramFilesPath = installedEnv?.ProgramFilesPath ?? string.Empty; } if (BuildSettings == null) { BuildSettings = new ProjectBuildSettings(); } BuildSettings.InitializeDefaults(); }