mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-01 11:15:33 +00:00
19 lines
No EOL
512 B
C#
19 lines
No EOL
512 B
C#
using Godot;
|
|
using GTweens.Extensions;
|
|
using GTweens.Tweens;
|
|
|
|
namespace GTweensGodot.Extensions;
|
|
|
|
public static class LabelExtensions
|
|
{
|
|
public static GTween TweenDisplayedTextVisibleRatio(this Label target, float value, float duration)
|
|
{
|
|
return GTweenExtensions.Tween(
|
|
() => target.VisibleRatio,
|
|
current => target.VisibleRatio = current,
|
|
value,
|
|
duration,
|
|
GodotObjectExtensions.GetGodotObjectValidationFunction(target)
|
|
);
|
|
}
|
|
} |