From d312f5a470c9f3cde27ed44492c13ae7d6bd2fe5 Mon Sep 17 00:00:00 2001 From: Matheus Date: Tue, 4 Nov 2025 18:14:43 -0300 Subject: Definir nome de jogador --- scripts/GUI/PlayerName.cs | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 scripts/GUI/PlayerName.cs (limited to 'scripts/GUI/PlayerName.cs') diff --git a/scripts/GUI/PlayerName.cs b/scripts/GUI/PlayerName.cs new file mode 100644 index 0000000..f1f5a00 --- /dev/null +++ b/scripts/GUI/PlayerName.cs @@ -0,0 +1,24 @@ +using Godot; + +namespace TheLegendOfGustav.GUI; +public partial class PlayerName : Control +{ + + private LineEdit nameEdit; + private Button startButton; + [Signal] + public delegate void NewGameRequestEventHandler(string name); + + public override void _Ready() + { + nameEdit = GetNode("VBoxContainer/thename"); + startButton = GetNode