bisschen gui bisschen moving timeline

This commit is contained in:
2026-07-29 22:54:19 +02:00
parent 9824b30435
commit 0bb8ce47c0
13 changed files with 240 additions and 119 deletions

View File

@@ -4,12 +4,17 @@ using yourareanaiceo;
public partial class CurrentTimeLine : Panel
{
[Export]
float speed = 2f;
private float _speed = 15f;
public bool Running { get; set; }
public override void _Process(double delta)
{
if (!Running)
return;
var pos = OffsetTransformPosition;
pos.Y += speed * delta.toFloat();
pos.Y += _speed * delta.toFloat();
OffsetTransformPosition = pos;
}