Nodes - Added math expression node

Node - Fix visual script cable present event unregister
This commit is contained in:
Robert committed 2021-08-31 21:37:31 +02:00
1 parent ecdca26cd3
commit e356d59daa
14 files changed
+290 -22

No files matched your search

@@ -28,6 +28,7 @@ namespace Artemis.UI.Shared
{
_gradientConverter = new ColorGradientToGradientStopsConverter();
InitializeComponent();
Unloaded += OnUnloaded;
}
/// <summary>
@@ -121,7 +122,7 @@ namespace Artemis.UI.Shared
private void UpdateGradientStops()
{
GradientPreview.GradientStops = (GradientStopCollection)_gradientConverter.Convert(ColorGradient, null!, null!, null!);
GradientPreview.GradientStops = (GradientStopCollection) _gradientConverter.Convert(ColorGradient, null!, null!, null!);
}
private void UIElement_OnMouseUp(object sender, MouseButtonEventArgs e)
@@ -137,6 +138,11 @@ namespace Artemis.UI.Shared
});
}
private void OnUnloaded(object sender, RoutedEventArgs e)
{
ColorGradient.CollectionChanged -= GradientChanged;
}
/// <inheritdoc />
public event PropertyChangedEventHandler? PropertyChanged;