18 lines
402 B
C#
18 lines
402 B
C#
|
using Godot;
|
||
|
using System;
|
||
|
|
||
|
public partial class RegressButton : Button
|
||
|
{
|
||
|
// Called when the node enters the scene tree for the first time.
|
||
|
public override void _Ready()
|
||
|
{
|
||
|
TAS_System TAS = GetNode<TAS_System>("/root/TAS_System");
|
||
|
this.Pressed += () => { TAS.Regress(1); };
|
||
|
}
|
||
|
|
||
|
public virtual void OnFrameIncremented(int newFrame)
|
||
|
{
|
||
|
this.Text = $"Current frame: {newFrame}";
|
||
|
}
|
||
|
}
|