Presentation preferences in a game policy
The presentation keys a game can default or fix (menu style, texture filtering, camera, overview, interface looks) and how the camera keys behave.
A game's policy can set local presentation defaults: menu style, texture filtering, the camera and the game's interface-look theme. Use it when your game should look or play on screen a particular way out of the box.
The worked example
[[match.preferences]]
key = "menu_style"
value = "ota"
permission = "fixed"
[[match.preferences]]
key = "camera_zoom"
value = "off"
permission = "fixed"
[[match.preferences]]
key = "tactical_overview"
value = "on"
permission = "player"
The game always shows TA's original menus, keeps the battlefield camera at View Scale, and keeps the whole-map overview on by default, which the player may turn off.
Supported keys
The supported preference keys are:
| Key | Values |
|---|---|
menu_style |
ota, aex |
texture_filtering |
smooth, nearest, integer |
camera_zoom |
on, off |
tactical_overview |
on, off |
selection_look |
ta-boxes, aex-squares, aex-rings |
selection_color |
#RRGGBB |
selection_line_width |
a number from 0.5 to 8 (screen pixels) |
selection_glow |
a number from 0 to 1 |
selection_glow_width |
a number from 0 to 16 (screen pixels) |
selection_corner_radius |
a number from 0 to 1 |
cursor_style |
classic, modern |
cursor_tint |
#RRGGBB |
cursor_color |
#RRGGBB |
Permissions
player supplies a game default while preserving an explicitly saved player
choice. fixed overrides the saved choice for this game and disables its
Options control with an explanation. A fixed policy never overwrites the
saved player preference: switching games restores that preference. host
is invalid for these local presentation settings. The interface-look keys
(selection_*, cursor_*) cannot be fixed
(interface-look theme).
Camera zoom and tactical overview
camera_zoom = "off" fixes the normal battlefield camera at the player's
View Scale: standard 1:1 magnification by default, or closer if the player
chooses (Options > Video; up to 2x). It never goes further out than 1:1, so
a locked zoom never shows more of the map than TA's view. Panning remains
available. Wheel/trackpad and Shift zoom, saved
camera recalls, overview return and the per-frame camera update respect
that choice. tactical_overview independently controls the whole-map view:
a game can disable ordinary zoom while retaining the remappable overview
toggle, or disable the overview itself. An authored overview setting also
applies to the second-display and phone/tablet overview, including explicit
launch choices. It does not restrict physical monitors or other
applications.
Player camera choices offer Game Default, On and Off. Fixed authored choices ignore but retain those saved choices. Existing saved overview choices migrate as explicit player choices; new follow-game preferences retain the authored default. Without an authored overview policy, the existing main-screen switch and second-display preference remain independent. These local camera settings do not change simulation rules or recorded gameplay.
What goes wrong
A bad preference stops AEX at start-up with Cannot initialize game policy: followed by one of:
Unknown presentation preference or unsupported value: <key>=<value>
Presentation preference <key> cannot have host permission
A fixed preference greys its Options control with a reason, for example:
Locked by this game's author. Your saved menu layout is kept for games that allow changes.
Locked by this game's author. Your saved texture filtering is kept for games that allow changes.
Locked by this game's author. When off, the battlefield stays at View Scale (Video); panning still works.
Locked by this game's author. When off, Tactical Overview is unavailable on the main screen, second display and phone.