From e0dc6f75f0503ce6b60e3943ad8300045a68bbd2 Mon Sep 17 00:00:00 2001 From: MarcEricMartel Date: Sat, 10 Jun 2023 12:04:03 -0400 Subject: [PATCH] mennu --- Mad.csproj | 6 +++ Mad.sln | 19 ++++++++ menu/start_game_menu.cs | 47 ++++++++++++++++++ menu/start_game_menu.tscn | 100 ++++++++++++++++++++++++++++++++++++++ project.godot | 2 +- 5 files changed, 173 insertions(+), 1 deletion(-) create mode 100644 Mad.csproj create mode 100644 Mad.sln create mode 100644 menu/start_game_menu.cs create mode 100644 menu/start_game_menu.tscn diff --git a/Mad.csproj b/Mad.csproj new file mode 100644 index 0000000..5e446e0 --- /dev/null +++ b/Mad.csproj @@ -0,0 +1,6 @@ + + + net6.0 + true + + \ No newline at end of file diff --git a/Mad.sln b/Mad.sln new file mode 100644 index 0000000..afc245e --- /dev/null +++ b/Mad.sln @@ -0,0 +1,19 @@ +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 2012 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Mad", "Mad.csproj", "{79DB0A7D-6964-4631-A7E4-1C955796B6CA}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + ExportDebug|Any CPU = ExportDebug|Any CPU + ExportRelease|Any CPU = ExportRelease|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {79DB0A7D-6964-4631-A7E4-1C955796B6CA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {79DB0A7D-6964-4631-A7E4-1C955796B6CA}.Debug|Any CPU.Build.0 = Debug|Any CPU + {79DB0A7D-6964-4631-A7E4-1C955796B6CA}.ExportDebug|Any CPU.ActiveCfg = ExportDebug|Any CPU + {79DB0A7D-6964-4631-A7E4-1C955796B6CA}.ExportDebug|Any CPU.Build.0 = ExportDebug|Any CPU + {79DB0A7D-6964-4631-A7E4-1C955796B6CA}.ExportRelease|Any CPU.ActiveCfg = ExportRelease|Any CPU + {79DB0A7D-6964-4631-A7E4-1C955796B6CA}.ExportRelease|Any CPU.Build.0 = ExportRelease|Any CPU + EndGlobalSection +EndGlobal diff --git a/menu/start_game_menu.cs b/menu/start_game_menu.cs new file mode 100644 index 0000000..52f16f7 --- /dev/null +++ b/menu/start_game_menu.cs @@ -0,0 +1,47 @@ +using Godot; +using System; + +public partial class start_game_menu : Control +{ + private const string _path = "/root/StartGameMenu/"; + private Button _localMulti, _single, _LANMulti, _join, _host; + private Label _error; + + private string Error { + set { _error.Set("text", value); } + } + + // Called when the node enters the scene tree for the first time. + public override void _Ready() + { + _single = GetNode