newlon/scripts/components/gui/VeilResizer.cs

13 lines
280 B
C#

using Godot;
namespace Newlon.Components.GUI;
public partial class VeilResizer : TextureProgressBar
{
[Export] private Timer _referenceTimer;
public override void _Process(double delta)
{
Value = (_referenceTimer.TimeLeft/_referenceTimer.WaitTime);
}
}