feat: add GUI enhancement for Leaderboard, and Timer

This commit is contained in:
2026-03-26 02:57:04 +08:00
parent c46e28a69d
commit 66f54e34ab
27 changed files with 779 additions and 224 deletions
+2 -2
View File
@@ -456,7 +456,7 @@ func _setup_global_match_timer_ui():
# Label
var label = Label.new()
label.name = "TimerLabel"
label.text = "3:00"
label.text = "03:00"
label.add_theme_font_size_override("font_size", 28)
label.add_theme_color_override("font_color", Color(0.647, 0.996, 0.224))
label.horizontal_alignment = HORIZONTAL_ALIGNMENT_CENTER
@@ -1927,7 +1927,7 @@ func _on_global_timer_updated(time_remaining: float):
if timer_label:
var minutes = int(time_remaining) / 60
var seconds = int(time_remaining) % 60
timer_label.text = "%d:%02d" % [minutes, seconds]
timer_label.text = "%02d:%02d" % [minutes, seconds]
# Trigger countdown animations (30s and 15s)
if int(time_remaining) == 30 and int(time_remaining + 0.1) > 30: