summaryrefslogtreecommitdiff
path: root/stage/hud_main.gd
diff options
context:
space:
mode:
authorDaniel Weipert <git@mail.dweipert.de>2025-02-08 23:44:34 +0100
committerDaniel Weipert <git@mail.dweipert.de>2025-02-08 23:44:34 +0100
commitf6c81b065cf4d7f1302a50f2f72cfab32204a1ec (patch)
tree7690bae73a7bf54ed973a8c8480ba104d8ab413f /stage/hud_main.gd
parentd24180c58e9e1d6149f0ac41d4f4bbaf674bdbd3 (diff)
next commit
Diffstat (limited to 'stage/hud_main.gd')
-rw-r--r--stage/hud_main.gd10
1 files changed, 10 insertions, 0 deletions
diff --git a/stage/hud_main.gd b/stage/hud_main.gd
index 2aea87e..b80b514 100644
--- a/stage/hud_main.gd
+++ b/stage/hud_main.gd
@@ -37,3 +37,13 @@ func _on_button_pressed() -> void:
grid_selector.current_state = grid_selector.state_cube_placement
)
get_tree().current_scene.process_mode = PROCESS_MODE_DISABLED
+
+
+func _on_button_2_pressed() -> void:
+ visible = false
+
+ Network.set_current_player(Network.player_order[
+ (Network.player_order.find(Network.current_player.id) + 1) % Network.player_order.size()
+ ])
+
+ grid_selector.process_mode = Node.PROCESS_MODE_INHERIT