Changes

Jump to navigation Jump to search
36 bytes added ,  15:13, 25 October 2018
m
Text replacement - "<source lang=" to "<syntaxhighlight lang="
Here's a schematic overview of the layout of keys in a STX file:
<source syntaxhighlight lang="xml">
<render_info>
<palette>
The resolution property must contain one or more resolution dimension limits, comma separated, for which the given key is supposed to be loaded. Resolutions without any modifiers will force the theme to be loaded in all resolutions. Here are a few examples:
<source syntaxhighlight lang="xml">
/* Key will be loaded in all resolutions */
<render_info>
Note that the Theme Parser does not assert on repeated keys or values, it just replaces them accordingly. For instance, the following variable definition:
<source syntaxhighlight lang="xml">
<def var = 'TestVar' value = '100'/>
<def var = 'TestVar' value = '200' resolution = 'y>399'/>
The &quot;proper&quot; way to do that multi-resolution assignment would obviously be:
<source syntaxhighlight lang="xml">
<def var = 'TestVar' value = '100' resolution = 'y<400'/>
<def var = 'TestVar' value = '200' resolution = 'y>399'/>
TrustedUser
2,004

edits

Navigation menu