aboutsummaryrefslogtreecommitdiff
path: root/client/menu/game.gd
diff options
context:
space:
mode:
Diffstat (limited to 'client/menu/game.gd')
-rw-r--r--client/menu/game.gd5
1 files changed, 5 insertions, 0 deletions
diff --git a/client/menu/game.gd b/client/menu/game.gd
index be501d2c..06f9fbae 100644
--- a/client/menu/game.gd
+++ b/client/menu/game.gd
@@ -16,12 +16,14 @@
#
extends Menu
+@onready var game: Game = $Game
@onready var debug_label = $Debug
@onready var overlay = $Overlay
@onready var popup_message: PopupMessage = $PopupMessage
func _ready():
get_tree().get_root().connect("go_back_requested", open_ingame_menu)
+ game.mp.show_rating.connect(show_rating)
super()
func _input(_event):
@@ -38,3 +40,6 @@ func open_ingame_menu():
if popup != null: return
Sound.play_click()
submenu("res://menu/ingame.tscn")
+
+func show_rating(stars: int, score: int):
+ submenu("res://menu/rating/rating.tscn", [stars, score])