aboutsummaryrefslogtreecommitdiff
path: root/client/menu/rating/rating.gd
diff options
context:
space:
mode:
Diffstat (limited to 'client/menu/rating/rating.gd')
-rw-r--r--client/menu/rating/rating.gd5
1 files changed, 5 insertions, 0 deletions
diff --git a/client/menu/rating/rating.gd b/client/menu/rating/rating.gd
index ced72191..83df08fa 100644
--- a/client/menu/rating/rating.gd
+++ b/client/menu/rating/rating.gd
@@ -18,6 +18,7 @@ extends Menu
const PARTICLE_AMOUNTS = [1, 6, 32, 128]
+@onready var game: Game = $"../Game"
@onready var title: Label = $MarginContainer/PanelContainer/VBoxContainer/Text/Title
@onready var subtitle: Label = $MarginContainer/PanelContainer/VBoxContainer/Text/Subtitle
@onready var stars = $MarginContainer/PanelContainer/VBoxContainer/Stars.get_children()
@@ -59,3 +60,7 @@ func _on_close_pressed():
func _on_button_timer_timeout() -> void:
close_button.disabled = false
+
+func _on_scoreboard_pressed() -> void:
+ exit()
+ game.mp.send_chat(game.player_id, "/scoreboard %s" % Global.last_map_name)