diff options
Diffstat (limited to 'Scripts')
| -rw-r--r-- | Scripts/StartMenu.cs | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/Scripts/StartMenu.cs b/Scripts/StartMenu.cs new file mode 100644 index 0000000..8efa22d --- /dev/null +++ b/Scripts/StartMenu.cs @@ -0,0 +1,21 @@ +using Godot; + +namespace Texty.Scripts +{ + public class StartMenu : MarginContainer + { + public Button CreditsButton; + public Button QuitButton; + public Button StartButton; + + public override void _Ready() + { + var buttons = FindNode("Buttons"); + CreditsButton = buttons.GetNode<Button>(nameof(CreditsButton)); + QuitButton = buttons.GetNode<Button>(nameof(QuitButton)); + StartButton = buttons.GetNode<Button>(nameof(StartButton)); + } + + } +} + |
