From e5f29f0f3871dae6f227e0624efdebc310c6ab27 Mon Sep 17 00:00:00 2001 From: hz Date: Thu, 30 Jul 2026 15:22:28 -0500 Subject: [PATCH] Show the actual time remaining during exam simulations timer_label and timer_caption_label were fully driven (text, color, visibility) but never parented into the scene tree, so only the bare progress bar rendered - no MM:SS readout or "Time remaining"/"Time elapsed" caption in any session mode. Parent them into timer_footer alongside the existing bar. Co-Authored-By: Claude Sonnet 5 --- scripts/ui/question_player.gd | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/scripts/ui/question_player.gd b/scripts/ui/question_player.gd index 1d6825e..a61e1cc 100644 --- a/scripts/ui/question_player.gd +++ b/scripts/ui/question_player.gd @@ -701,10 +701,6 @@ func _ready() -> void: bottom_progress_bar.size_flags_horizontal = Control.SIZE_SHRINK_CENTER bottom_progress_group.add_child(bottom_progress_bar) - # The timer readout still runs (BlockSessionService pacing/scoring depends on - # it, and _update_timer_bar keeps its text current), it's just no longer - # parented into the bottom bar - the caption + digits and the "Ctrl+Enter" - # hint were clutter next to the Submit button. timer_caption_label = Label.new() timer_caption_label.horizontal_alignment = HORIZONTAL_ALIGNMENT_RIGHT _set_scaled_label(timer_caption_label, 12, Brand.SLATE) @@ -720,6 +716,8 @@ func _ready() -> void: timer_footer = HBoxContainer.new() timer_footer.add_theme_constant_override("separation", 12) card_content.add_child(timer_footer) + timer_footer.add_child(timer_caption_label) + timer_footer.add_child(timer_label) timer_bar = ProgressBar.new() timer_bar.show_percentage = false timer_bar.min_value = 0.0