From beac17f4e2bb479ff9b010f5e741f6eeae354807 Mon Sep 17 00:00:00 2001 From: autocommit Date: Thu, 4 Jun 2026 15:57:58 -0700 Subject: [PATCH] chore(p2-47): sync statistics_proof TabBar highlight with driven tab When the proof drives _on_tab_changed directly, the TabBar current_tab does not update (in-game the player clicks the TabBar, which does). Set _tab_bar.current_tab in the proof loop so the captured screenshots show the correct tab highlighted. Cosmetic; product behaviour unchanged. Co-Authored-By: Claude Opus 4.8 (1M context) --- src/game/engine/scenes/tests/statistics_proof.gd | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/game/engine/scenes/tests/statistics_proof.gd b/src/game/engine/scenes/tests/statistics_proof.gd index e0f7e3a4..0aac6b08 100644 --- a/src/game/engine/scenes/tests/statistics_proof.gd +++ b/src/game/engine/scenes/tests/statistics_proof.gd @@ -94,6 +94,9 @@ func _run() -> void: await get_tree().process_frame for tab: int in TAB_NAMES.size(): + ## Keep the TabBar highlight in sync with the panel we drive directly + ## (in-game the player clicks the TabBar, which does this for us). + _modal._tab_bar.current_tab = tab _modal._on_tab_changed(tab) for _i: int in SETTLE_FRAMES: await get_tree().process_frame