mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-22 16:39:19 +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>
|
/// </summary>
|
||||||
public Vector2 EasedPoint { get; private set; }
|
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>
|
/// <summary>
|
||||||
/// Gets or sets the current value of the animation, from 0 to 1.
|
/// Gets or sets the current value of the animation, from 0 to 1.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public double Value
|
public double Value
|
||||||
{
|
{
|
||||||
get => this.valueInternal;
|
get
|
||||||
|
{
|
||||||
|
if (this.IsInverse)
|
||||||
|
return 1 - this.valueInternal;
|
||||||
|
|
||||||
|
return this.valueInternal;
|
||||||
|
}
|
||||||
|
|
||||||
protected set
|
protected set
|
||||||
{
|
{
|
||||||
this.valueInternal = value;
|
this.valueInternal = value;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue