mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 18:27:23 +01:00
feat: add IsInverse to Easing
This commit is contained in:
parent
7d56b717a2
commit
e302b3bd8f
1 changed files with 13 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue