diff --git a/Dalamud/Interface/Animation/Easing.cs b/Dalamud/Interface/Animation/Easing.cs index 441108e6f..00509169f 100644 --- a/Dalamud/Interface/Animation/Easing.cs +++ b/Dalamud/Interface/Animation/Easing.cs @@ -38,12 +38,24 @@ namespace Dalamud.Interface.Animation /// public Vector2 EasedPoint { get; private set; } + /// + /// Gets or sets a value indicating whether the result of the easing should be inversed. + /// + public bool IsInverse { get; set; } + /// /// Gets or sets the current value of the animation, from 0 to 1. /// public double Value { - get => this.valueInternal; + get + { + if (this.IsInverse) + return 1 - this.valueInternal; + + return this.valueInternal; + } + protected set { this.valueInternal = value;