mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-11 11:26:27 +00:00
Color brush - Added linear gradient rotation
Profile editor - Updated conditions UI
This commit is contained in:
1 parent
7b1cefca8b
commit
10c839f8c9
21 files changed
+400
-150
No files matched your search
@@ -253,13 +253,29 @@ namespace Artemis.Core.Models.Profile
|
||||
}
|
||||
|
||||
instance.ApplyToLayerProperty(entity, this, fromStorage);
|
||||
instance.BaseValueChanged += InstanceOnBaseValueChanged;
|
||||
}
|
||||
|
||||
private void InstanceOnBaseValueChanged(object sender, EventArgs e)
|
||||
{
|
||||
OnLayerPropertyBaseValueChanged(new LayerPropertyEventArgs((BaseLayerProperty) sender));
|
||||
}
|
||||
|
||||
#region Events
|
||||
|
||||
internal event EventHandler PropertyGroupUpdating;
|
||||
|
||||
/// <summary>
|
||||
/// Occurs when the property group has initialized all its children
|
||||
/// </summary>
|
||||
public event EventHandler PropertyGroupInitialized;
|
||||
|
||||
/// <summary>
|
||||
/// Occurs when one of the base value of one of the layer properties in this group changes
|
||||
/// <para>Note: Will not trigger on properties in child groups</para>
|
||||
/// </summary>
|
||||
public event EventHandler<LayerPropertyEventArgs> LayerPropertyBaseValueChanged;
|
||||
|
||||
/// <summary>
|
||||
/// Occurs when the <see cref="IsHidden" /> value of the layer property was updated
|
||||
/// </summary>
|
||||
@@ -275,6 +291,11 @@ namespace Artemis.Core.Models.Profile
|
||||
VisibilityChanged?.Invoke(this, EventArgs.Empty);
|
||||
}
|
||||
|
||||
protected virtual void OnLayerPropertyBaseValueChanged(LayerPropertyEventArgs e)
|
||||
{
|
||||
LayerPropertyBaseValueChanged?.Invoke(this, e);
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user