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) <noreply@anthropic.com>
This commit is contained in:
autocommit 2026-06-04 15:57:58 -07:00
parent cd9f2b9e0d
commit beac17f4e2

View file

@ -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