feat: update the rematch, lobby, leaderboard

This commit is contained in:
2026-03-30 16:56:35 +08:00
parent 3035a221ba
commit fb20af1ae5
5 changed files with 140 additions and 121 deletions
+2 -1
View File
@@ -2241,7 +2241,8 @@ func _show_game_over_panel():
var rematch_label = Label.new()
rematch_label.name = "RematchVoteLabel"
rematch_label.text = "0/2"
var required_votes = max(1, ceili(LobbyManager.players_in_room.size() / 2.0))
rematch_label.text = "0/%d" % required_votes
rematch_label.add_theme_font_size_override("font_size", 24)
rematch_label.add_theme_color_override("font_color", Color(0.7, 0.7, 0.7))
rematch_container.add_child(rematch_label)