diff options
| author | Sophia Pearson <codergal89@gmail.com> | 2022-05-27 18:44:40 +0200 |
|---|---|---|
| committer | Sophia Pearson <codergal89@gmail.com> | 2022-05-27 18:48:53 +0200 |
| commit | db68f34627dd190cc1f198c5f95edd8edf3c8ddd (patch) | |
| tree | 8021a65495082691601e0fb014485d990aabc080 /Scripts/StartMenu.cs | |
| parent | 14a74e92b7aee30ec3911c0d2f5291bf70dc33b6 (diff) | |
| download | texty-db68f34627dd190cc1f198c5f95edd8edf3c8ddd.tar.xz texty-db68f34627dd190cc1f198c5f95edd8edf3c8ddd.zip | |
game: add basic start menu scene
Diffstat (limited to 'Scripts/StartMenu.cs')
| -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)); + } + + } +} + |
