diff --git a/scripts/ui/question_player.gd b/scripts/ui/question_player.gd index 6e0f183..ea3f578 100644 --- a/scripts/ui/question_player.gd +++ b/scripts/ui/question_player.gd @@ -3098,7 +3098,8 @@ func _set_choice_button_text(index: int, choice: Dictionary) -> void: choice_badges[index].text = display_label _set_choice_percent_label(index, "") _set_choice_top_label(index, "") - if locked_wrong_choice_ids.has(choice_id) or _should_show_correct_choice_percentage(choice_id): + var reviewing := pending_correct_advance or not current_answer.is_empty() + if locked_wrong_choice_ids.has(choice_id) or reviewing: var percentage := _get_choice_selection_percentage(choice_id) if percentage >= 0: _set_choice_percent_label(index, "%d%%" % percentage) @@ -3188,11 +3189,6 @@ func _get_choice_selection_percentage(choice_id: String) -> int: return clamp(int(percentages.get(choice_id, -1)), 0, 100) -func _should_show_correct_choice_percentage(choice_id: String) -> bool: - var question := BlockSessionService.get_current_question() - return choice_id == str(question.get("correct_choice_id", "")) and (pending_correct_advance or not current_answer.is_empty()) - - func _apply_correct_answer_preview() -> void: var question := BlockSessionService.get_current_question() var correct_id := str(question.get("correct_choice_id", ""))