mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-01-02 10:43:31 +00:00
Clean up tweening
This commit is contained in:
parent
201e65b3b5
commit
039593c6fe
@ -42,7 +42,7 @@ namespace Artemis.Profiles.Layers.Models
|
||||
|
||||
private void UpdateWidth()
|
||||
{
|
||||
if (Math.Abs(_layerModel.Properties.WidthEaseTime) < 0.001)
|
||||
if (_layerModel.Properties.WidthEaseTime < 0.001)
|
||||
return;
|
||||
|
||||
// Width
|
||||
@ -67,7 +67,7 @@ namespace Artemis.Profiles.Layers.Models
|
||||
|
||||
private void UpdateHeight()
|
||||
{
|
||||
if (Math.Abs(_layerModel.Properties.HeightEaseTime) < 0.001)
|
||||
if (_layerModel.Properties.HeightEaseTime < 0.001)
|
||||
return;
|
||||
|
||||
// Height
|
||||
@ -91,7 +91,7 @@ namespace Artemis.Profiles.Layers.Models
|
||||
|
||||
private void UpdateOpacity()
|
||||
{
|
||||
if (Math.Abs(_layerModel.Properties.OpacityEaseTime) < 0.001)
|
||||
if (_layerModel.Properties.OpacityEaseTime < 0.001)
|
||||
return;
|
||||
|
||||
// Opacity
|
||||
@ -108,15 +108,6 @@ namespace Artemis.Profiles.Layers.Models
|
||||
_layerModel.Opacity = _opacityTweener.Value;
|
||||
}
|
||||
|
||||
private void StoreCurrentValues()
|
||||
{
|
||||
_x = (float) _layerModel.X;
|
||||
_y = (float) _layerModel.Y;
|
||||
_width = (float) _layerModel.Width;
|
||||
_height = (float) _layerModel.Height;
|
||||
_opacity = (float) _layerModel.Opacity;
|
||||
}
|
||||
|
||||
private static EaseFunc GetEaseFunction(string functionName)
|
||||
{
|
||||
switch (functionName)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user