bisschen gui bisschen moving timeline
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user