diff options
author | metamuffin <metamuffin@disroot.org> | 2024-06-25 00:13:37 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2024-06-25 00:13:37 +0200 |
commit | 89f6f27302b267c4b7424f942508e749ab1290a6 (patch) | |
tree | ed9486f40ec20530a91c6b7f1b0fffd0ee0f9330 | |
parent | a0572f92fddb1ddc1f4d62f22f8ecfb1f623bf21 (diff) | |
download | hurrycurry-89f6f27302b267c4b7424f942508e749ab1290a6.tar hurrycurry-89f6f27302b267c4b7424f942508e749ab1290a6.tar.bz2 hurrycurry-89f6f27302b267c4b7424f942508e749ab1290a6.tar.zst |
reconnect button
-rw-r--r-- | client/menu/ingame_menu.gd | 3 | ||||
-rw-r--r-- | client/menu/ingame_menu.tscn | 6 |
2 files changed, 9 insertions, 0 deletions
diff --git a/client/menu/ingame_menu.gd b/client/menu/ingame_menu.gd index 7a6d8e1a..21bfa8ac 100644 --- a/client/menu/ingame_menu.gd +++ b/client/menu/ingame_menu.gd @@ -7,3 +7,6 @@ func _on_main_menu_pressed(): func _on_quit_pressed(): get_parent().quit() + +func _on_reconnect_pressed(): + get_parent().transition_to("res://game.tscn") diff --git a/client/menu/ingame_menu.tscn b/client/menu/ingame_menu.tscn index f9b0157c..cf35a7e7 100644 --- a/client/menu/ingame_menu.tscn +++ b/client/menu/ingame_menu.tscn @@ -97,6 +97,11 @@ text = "Undercooked" custom_minimum_size = Vector2(0, 10) layout_mode = 2 +[node name="reconnect" type="Button" parent="side/margin/options"] +layout_mode = 2 +text = "Reconnect" +alignment = 0 + [node name="main_menu" type="Button" parent="side/margin/options"] layout_mode = 2 text = "Main Menu" @@ -107,5 +112,6 @@ layout_mode = 2 text = "Quit" alignment = 0 +[connection signal="pressed" from="side/margin/options/reconnect" to="." method="_on_reconnect_pressed"] [connection signal="pressed" from="side/margin/options/main_menu" to="." method="_on_main_menu_pressed"] [connection signal="pressed" from="side/margin/options/quit" to="." method="_on_quit_pressed"] |