feat: add IsInverse to Easing

This commit is contained in:
goat 2021-09-01 02:06:07 +02:00
parent 7d56b717a2
commit e302b3bd8f
No known key found for this signature in database
GPG key ID: F18F057873895461

View file

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