mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-12 01:05:54 +00:00
Added GTWeen
This commit is contained in:
parent
457998788e
commit
2036e4e748
152 changed files with 5889 additions and 7 deletions
|
|
@ -0,0 +1,19 @@
|
|||
using Godot;
|
||||
using GTweens.Extensions;
|
||||
using GTweens.Tweens;
|
||||
|
||||
namespace GTweensGodot.Extensions;
|
||||
|
||||
public static class RichTextLabelExtensions
|
||||
{
|
||||
public static GTween TweenDisplayedTextVisibleRatio(this RichTextLabel target, float value, float duration)
|
||||
{
|
||||
return GTweenExtensions.Tween(
|
||||
() => target.VisibleRatio,
|
||||
current => target.VisibleRatio = current,
|
||||
value,
|
||||
duration,
|
||||
GodotObjectExtensions.GetGodotObjectValidationFunction(target)
|
||||
);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue