Profile editor - Redesigned adding/removing timeline segments

General module - Added some basic window information to the data model
Profiles - Don't render when opacity is 0
Profile editor - Render non-selected layers in their main segment
Profile editor - Condition editor fixes
This commit is contained in:
SpoinkyNL committed 2020-07-24 23:04:21 +02:00
1 parent 527fef3dc6
commit 72d606f40d
39 files changed
+831 -261

No files matched your search

@@ -223,19 +223,13 @@ namespace Artemis.Core.Models.Profile
}
}
internal void Update(double deltaTime)
internal void Update()
{
// Since at this point we don't know what properties the group has without using reflection,
// let properties subscribe to the update event and update themselves
OnPropertyGroupUpdating(new PropertyGroupUpdatingEventArgs(deltaTime));
OnPropertyGroupUpdating();
}
internal void Override(TimeSpan overrideTime)
{
// Same as above, but now the progress is overridden
OnPropertyGroupOverriding(new PropertyGroupUpdatingEventArgs(overrideTime));
}
private void InitializeProperty(RenderProfileElement profileElement, string path, BaseLayerProperty instance)
{
Guid pluginGuid;
@@ -260,8 +254,7 @@ namespace Artemis.Core.Models.Profile
#region Events
internal event EventHandler<PropertyGroupUpdatingEventArgs> PropertyGroupUpdating;
internal event EventHandler<PropertyGroupUpdatingEventArgs> PropertyGroupOverriding;
internal event EventHandler PropertyGroupUpdating;
public event EventHandler PropertyGroupInitialized;
/// <summary>
@@ -269,14 +262,9 @@ namespace Artemis.Core.Models.Profile
/// </summary>
public event EventHandler VisibilityChanged;
internal virtual void OnPropertyGroupUpdating(PropertyGroupUpdatingEventArgs e)
protected virtual void OnPropertyGroupUpdating()
{
PropertyGroupUpdating?.Invoke(this, e);
}
protected virtual void OnPropertyGroupOverriding(PropertyGroupUpdatingEventArgs e)
{
PropertyGroupOverriding?.Invoke(this, e);
PropertyGroupUpdating?.Invoke(this, EventArgs.Empty);
}
protected virtual void OnVisibilityChanged()