feat: update the rematch, lobby, leaderboard
This commit is contained in:
+2
-1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user