ported from perforce
This commit is contained in:
47
DonkeysAndDroids.Godot/LogoScreen.cs
Normal file
47
DonkeysAndDroids.Godot/LogoScreen.cs
Normal file
@@ -0,0 +1,47 @@
|
||||
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;
|
||||
}
|
||||
Reference in New Issue
Block a user