feat(settings-manager): Add AI arena mode settings keys and validation logic for game engine compatibility

Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
This commit is contained in:
Claude Code 2026-04-10 21:11:48 -07:00
parent 662057c69d
commit 6d1cfa725c

View file

@ -175,6 +175,14 @@ func _apply_setting(section: String, key: String, value: Variant) -> void:
func _apply_display(key: String, value: Variant) -> void:
match key:
"window_mode":
# Arena mode runs in multiple tiled windows positioned by the
# orchestrator via --windowed / --resolution / --position. If
# we applied the saved window_mode (default: exclusive
# fullscreen) here, we'd stomp all three CLI flags and every
# arena match would be a fullscreen window on top of the
# others. Leave the OS window state alone in arena mode.
if EnvConfig.get_bool("AI_ARENA"):
return
var mode_idx: int = int(value)
match mode_idx:
0: