Profiles - Added toggle to enable/disable folders, layers and effects

Profiles - Fixed folders not saving they children properly
UI - Show version and frame time in window title
This commit is contained in:
SpoinkyNL committed 2020-06-18 15:25:13 +02:00
1 parent 7c1af6c4db
commit df7b75a7a1
27 files changed
+315 -97

No files matched your search

+11 -4
View File
@@ -21,7 +21,7 @@ namespace Artemis.Core.Models.Profile
UndoStack = new Stack<string>();
RedoStack = new Stack<string>();
AddChild(new Folder(this, null, "Root folder"));
AddChild(new Folder(this, this, "Root folder"));
ApplyToEntity();
}
@@ -80,13 +80,18 @@ namespace Artemis.Core.Models.Profile
lock (_children)
{
foreach (var folder in GetAllFolders())
folder.Deactivate();
foreach (var layer in GetAllLayers())
layer.Deactivate();
_children.Clear();
// Populate the profile starting at the root, the rest is populated recursively
var rootFolder = ProfileEntity.Folders.FirstOrDefault(f => f.ParentId == new Guid());
var rootFolder = ProfileEntity.Folders.FirstOrDefault(f => f.ParentId == EntityId);
if (rootFolder == null)
AddChild(new Folder(this, null, "Root folder"));
AddChild(new Folder(this, this, "Root folder"));
else
AddChild(new Folder(this, null, rootFolder));
AddChild(new Folder(this, this, rootFolder));
}
}
@@ -132,6 +137,8 @@ namespace Artemis.Core.Models.Profile
if (!IsActivated)
return;
foreach (var folder in GetAllFolders())
folder.Deactivate();
foreach (var layer in GetAllLayers())
layer.Deactivate();