diff options
| author | Matheus <matheus.guedes.mg.m@gmail.com> | 2025-09-18 12:06:59 -0300 |
|---|---|---|
| committer | Matheus <matheus.guedes.mg.m@gmail.com> | 2025-09-18 12:06:59 -0300 |
| commit | 5146895cf537dd69867da612abed5b4abaf805cd (patch) | |
| tree | 70212352a07922b58db99ba2564f76ca072af200 /scripts/GUI/MainMenu.cs | |
| parent | eacdd15612c70ff86f3446982c46a09272249936 (diff) | |
ME ELIMINE AAAAAAAAAAAAAAAAAAAAAAAAAAAA
Diffstat (limited to 'scripts/GUI/MainMenu.cs')
| -rw-r--r-- | scripts/GUI/MainMenu.cs | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/scripts/GUI/MainMenu.cs b/scripts/GUI/MainMenu.cs index 4d89b36..15ccc33 100644 --- a/scripts/GUI/MainMenu.cs +++ b/scripts/GUI/MainMenu.cs @@ -4,9 +4,9 @@ namespace TheLegendOfGustav.GUI; public partial class MainMenu : Control { - private Button NewGameButton; - private Button LoadGameButton; - private Button QuitButton; + private Button newGameButton; + private Button loadGameButton; + private Button quitButton; [Signal] public delegate void GameRequestEventHandler(bool load); @@ -15,17 +15,17 @@ public partial class MainMenu : Control { base._Ready(); - NewGameButton = GetNode<Button>("VBoxContainer/CenterContainer/VBoxContainer/neogame"); - LoadGameButton = GetNode<Button>("VBoxContainer/CenterContainer/VBoxContainer/continue"); - QuitButton = GetNode<Button>("VBoxContainer/CenterContainer/VBoxContainer/quit"); + newGameButton = GetNode<Button>("VBoxContainer/CenterContainer/VBoxContainer/neogame"); + loadGameButton = GetNode<Button>("VBoxContainer/CenterContainer/VBoxContainer/continue"); + quitButton = GetNode<Button>("VBoxContainer/CenterContainer/VBoxContainer/quit"); - NewGameButton.Pressed += OnNewGameButtonPressed; - LoadGameButton.Pressed += OnLoadGameButtonPressed; - QuitButton.Pressed += OnQuitButtonPressed; + newGameButton.Pressed += OnNewGameButtonPressed; + loadGameButton.Pressed += OnLoadGameButtonPressed; + quitButton.Pressed += OnQuitButtonPressed; - NewGameButton.GrabFocus(); + newGameButton.GrabFocus(); bool hasSaveFile = FileAccess.FileExists("user://save.dat"); - LoadGameButton.Disabled = !hasSaveFile; + loadGameButton.Disabled = !hasSaveFile; } private void OnNewGameButtonPressed() |
