Interface-look theme
The selection_* and cursor_* preferences that give a game its default selection marks and cursor.
The selection_* and cursor_* keys theme the interface looks a player
otherwise switches between in Options; the rule set never sets them. Use
them to give your game its own default selection marks and cursor. They
change only presentation, never simulation or recorded gameplay.
The worked example
[[match.preferences]]
key = "selection_look"
value = "aex-rings"
permission = "player"
[[match.preferences]]
key = "selection_color"
value = "#FFB000"
permission = "player"
[[match.preferences]]
key = "cursor_style"
value = "modern"
permission = "player"
Selected units get amber AEX rings and the modern reticle, until the player picks something else in Options.
The keys
The values each key takes are in the supported keys table.
selection_lookmarks selected units with TA's square boxes or AEX's anti-aliased squares or rings on the ground.selection_colorcolours selected units outside a control group, in every look; control-group colours stay the player's.selection_line_width,selection_glowandselection_glow_widthshape the AEX squares' and rings' outline and soft glow;selection_corner_radiusrounds the AEX squares' corners, as a fraction of the box's shorter half side (0 sharp, 1 fully round).cursor_stylepicks TA's classic sprite cursors or the modern AEX reticle.cursor_tintmultiplies the classic sprites (#FFFFFFkeeps the original art);cursor_colorcolours the modern reticle.
How the looks layer
Each look layers over the one before: TA Original (TA boxes and the classic
cursor), then the game's theme, then AEX squares, rings or the modern cursor
when the player picks them, then the player's Custom settings, which always
win. A game's theme is only ever a default: these keys accept only
permission = "player", and fixed is refused at load and in Studio. The
player's Options entries:
defaults. A game cannot ship its
own cursor icon set yet.
Discovery catalog
The preference discovery catalog, creator::gamePreferenceInfos, supplies
the supported keys, value kinds (a choice, a colour or a bounded number) and
engine defaults to validation and the Studio catalog. Other engine settings
have no policy permission until their existing runtime owners support it.
What goes wrong
A fixed interface-look key stops AEX at start-up with Cannot initialize game policy: followed by:
Presentation preference <key> cannot be fixed: the player may always change an interface look (use player)
A colour that is not #RRGGBB, or a number outside its range, gives:
Unknown presentation preference or unsupported value: <key>=<value>