TrustedUser
2,147
edits
(→Resolution-dependent keys and layouts: Fix 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: | ||
< | <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'/> | ||
</ | </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. |