feat: add GUI enhancement for Leaderboard, and Timer
This commit is contained in:
+2
-2
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user