47 lines
827 B
C#
47 lines
827 B
C#
using DonkeysAndDroids;
|
|
using Godot;
|
|
using RobotAndDonkey.Game.Execution.Results;
|
|
|
|
public partial class LogoScreen : Control, IScreen
|
|
{
|
|
public override void _Ready()
|
|
{
|
|
StartButton.Pressed += OnStartButtonPressed;
|
|
}
|
|
|
|
public override void _Process(double delta)
|
|
{
|
|
}
|
|
|
|
public void OnStartButtonPressed()
|
|
{
|
|
GD.Print("Started!");
|
|
Main.Instance.StartMetaGame();
|
|
}
|
|
|
|
public void Deactivate()
|
|
{
|
|
}
|
|
|
|
public void EnableInputs()
|
|
{
|
|
StartButton.Disabled = false;
|
|
}
|
|
|
|
public void DisableInputs()
|
|
{
|
|
StartButton.Disabled = true;
|
|
}
|
|
|
|
public void Activate()
|
|
{
|
|
}
|
|
|
|
public bool HandleResult(Result result, Tween tween)
|
|
{
|
|
return false;
|
|
}
|
|
|
|
[ExportGroup("Buttons")] [Export]
|
|
private Button StartButton;
|
|
} |