Prevent hidden CCS opening overlays

This commit is contained in:
hz
2026-08-06 04:23:53 -05:00
parent 38d62918d4
commit 4792ff2620
2 changed files with 15 additions and 0 deletions
+8
View File
@@ -66,7 +66,15 @@ func _run() -> void:
_assert(player.time_dialog.visible, "CCS dialog lifecycle test should begin with an open popup")
player.on_hide()
_assert(not player.time_dialog.visible, "hiding the CCS screen should dismiss popup windows")
player.visible = false
ccs_service.attempt.openingCompleted = false
player._render()
await process_frame
_assert(not player.intro_dialog.visible, "a hidden classic player must not open dialogs over CCS Cases 2")
_assert(not player.opening_active, "a hidden classic player must not begin its opening sequence")
player.visible = true
ccs_service.attempt.openingCompleted = true
ccs_service.attempt.state = "final_orders"
player._render()
_assert(player.final_orders_notice.visible, "final-orders mode should show instructions")