feat(world-map): ✨ Add TurnNotification overlay to prevent screen dimming during AI turns in world map arena
Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
This commit is contained in:
parent
d2545e2694
commit
d5938ca7df
1 changed files with 13 additions and 4 deletions
|
|
@ -84,10 +84,19 @@ func setup(world_map: Node) -> void:
|
|||
|
||||
|
||||
func _disable_blocking_overlays() -> void:
|
||||
## VictoryScreen calls get_tree().paused = true on victory, which would
|
||||
## freeze the timer that writes our result file. AiTurnOverlay dims the
|
||||
## screen during AI turns — useless when both players are AI.
|
||||
for child_name: String in ["VictoryScreen", "AiTurnOverlay"]:
|
||||
## Free any HUD/overlay that would obscure or pause the arena view:
|
||||
## - VictoryScreen / DefeatScreen call get_tree().paused = true, which
|
||||
## would freeze the timer that writes the result file.
|
||||
## - AiTurnOverlay dims the screen during AI turns — useless when both
|
||||
## players are AI.
|
||||
## - TurnNotification shows a "Processing..." label + dim rect at every
|
||||
## end-turn, covering the whole gameplay view at screensaver scale.
|
||||
for child_name: String in [
|
||||
"VictoryScreen",
|
||||
"DefeatScreen",
|
||||
"AiTurnOverlay",
|
||||
"TurnNotification",
|
||||
]:
|
||||
var node: Node = _world_map.get_node_or_null(child_name)
|
||||
if node != null:
|
||||
node.queue_free()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue