Open main menu

Difference between revisions of "GUI Themes/Specs"

No change in size ,  20:01, 4 August 2016
→‎Resolution-dependent keys and layouts: Fix more syntax highlighting
(→‎Resolution-dependent keys and layouts: Fix more syntax highlighting)
Line 148: Line 148:
The "proper" way to do that multi-resolution assignment would obviously be:
The "proper" way to do that multi-resolution assignment would obviously be:


<syntax type="xml">
<source lang="xml">
<def var = 'TestVar' value = '100' resolution = 'y<400'/>
<def var = 'TestVar' value = '100' resolution = 'y<400'/>
<def var = 'TestVar' value = '200' resolution = 'y>399'/>
<def var = 'TestVar' value = '200' resolution = 'y>399'/>
</syntax>
</source>


This way keys are only parsed on the resolution they are used in, but the result will be '''exactly the same''': Most of the time it's just cleaner to avoid using <tt>y<400</tt> resolution tags, and instead write a layout that works on all resolutions and overwrite parts of it with the <tt>y>399<tt> tag.
This way keys are only parsed on the resolution they are used in, but the result will be '''exactly the same''': Most of the time it's just cleaner to avoid using <tt>y<400</tt> resolution tags, and instead write a layout that works on all resolutions and overwrite parts of it with the <tt>y>399<tt> tag.
TrustedUser
2,147

edits