This commit is contained in:
MarcEricMartel
2023-06-11 11:23:38 -04:00
parent 979172f0e2
commit 7250ee17c8
7 changed files with 23 additions and 17 deletions

View File

@@ -28,8 +28,8 @@ public partial class start_game_menu : Control {
case _state.START:
Error = "";
_single.Set("visible", true);
_localMulti.Set("visible", true);
_LANMulti.Set("visible", true);
//_localMulti.Set("visible", true);
//_LANMulti.Set("visible", true);
_cancel.Set("visible", false);
_yes.Set("visible", false);
_no.Set("visible", false);
@@ -42,8 +42,8 @@ public partial class start_game_menu : Control {
case _state.LAN:
Error = "";
_single.Set("visible", false);
_localMulti.Set("visible", false);
_LANMulti.Set("visible", false);
//_localMulti.Set("visible", false);
//_LANMulti.Set("visible", false);
_cancel.Set("visible", true);
_yes.Set("visible", false);
_no.Set("visible", false);
@@ -56,8 +56,8 @@ public partial class start_game_menu : Control {
case _state.QUIT:
Error = "Are you sure you want to quit?";
_single.Set("visible", false);
_localMulti.Set("visible", false);
_LANMulti.Set("visible", false);
//_localMulti.Set("visible", false);
//_LANMulti.Set("visible", false);
_cancel.Set("visible", false);
_yes.Set("visible", true);
_no.Set("visible", true);
@@ -70,8 +70,8 @@ public partial class start_game_menu : Control {
case _state.HOST:
Error = "Waiting for peer to join...";
_single.Set("visible", false);
_localMulti.Set("visible", false);
_LANMulti.Set("visible", false);
//_localMulti.Set("visible", false);
//_LANMulti.Set("visible", false);
_cancel.Set("visible", true);
_yes.Set("visible", false);
_no.Set("visible", false);
@@ -84,8 +84,8 @@ public partial class start_game_menu : Control {
case _state.JOIN:
Error = "Waiting for server...";
_single.Set("visible", false);
_localMulti.Set("visible", false);
_LANMulti.Set("visible", false);
//_localMulti.Set("visible", false);
//_LANMulti.Set("visible", false);
_cancel.Set("visible", true);
_yes.Set("visible", false);
_no.Set("visible", false);
@@ -103,8 +103,8 @@ public partial class start_game_menu : Control {
// Called when the node enters the scene tree for the first time.
public override void _Ready() {
_single = GetNode<Button>(_path + "Btn_Single");
_localMulti = GetNode<Button>(_path + "Btn_LocalMulti");
_LANMulti = GetNode<Button>(_path + "Btn_LANMulti");
//_localMulti = GetNode<Button>(_path + "Btn_LocalMulti");
//_LANMulti = GetNode<Button>(_path + "Btn_LANMulti");
_cancel = GetNode<Button>(_path + "Btn_Cancel");
_quit = GetNode<Button>(_path + "Btn_Quit");
_yes = GetNode<Button>(_path + "Btn_Yes");
@@ -115,8 +115,8 @@ public partial class start_game_menu : Control {
_ip = GetNode<LineEdit>(_path + "txt_IP");
_lip = GetNode<Label>(_path + "lbl_IP");
_single.Pressed += () => startGame(_gameType.SINGLE);
_localMulti.Pressed += () => startGame(_gameType.LOCAL);
_LANMulti.Pressed += () => State = _state.LAN;
//_localMulti.Pressed += () => startGame(_gameType.LOCAL);
//_LANMulti.Pressed += () => State = _state.LAN;
_host.Pressed += () => setupLANMultiGame();
_join.Pressed += () => setupLANMultiGame(false);
_quit.Pressed += () => State = _state.QUIT;

View File

@@ -46,6 +46,7 @@ text = "Single Player
"
[node name="Btn_LocalMulti" type="Button" parent="."]
visible = false
layout_mode = 0
offset_left = 863.0
offset_top = 672.0
@@ -54,6 +55,7 @@ offset_bottom = 703.0
text = "Local Multiplayer"
[node name="Btn_LANMulti" type="Button" parent="."]
visible = false
layout_mode = 0
offset_left = 1097.0
offset_top = 670.0