334
edits
m (→Widget name conventions: typos/style) |
m (→Evaluation precedence: style) |
||
Line 345: | Line 345: | ||
== Evaluation precedence == | == Evaluation precedence == | ||
Within one section everything is computed left to right down to top. No forward references are allowed. | Within one section everything is computed left to right, down to top. No forward references are allowed. The only exception are aliases which can refer to not yet defined variables and widget properties, but at time of useage those variables should be defined (otherwise you will get an error). | ||
Currently any error in evaluation will lead to error() and ScummVM will be closed. So be careful, especially with built-in theme. | Currently any error in evaluation will lead to error() and ScummVM will be closed. So be careful, especially with the built-in theme. | ||
On each resolution change all user-defined variables and aliases get cleared and all sections | On each resolution change all user-defined variables and aliases get cleared and all sections are recomputed. When sections get loaded for a single resolution, all of them are kept, so you can specify a generic [XxY] scheme and then overwrite only some widgets, thus simplifying the whole thing. | ||
Sections loading order is always the same. For resolution | Sections loading order is always the same. For the 640x480 resolution this is: | ||
# Built-in theme | # Built-in theme | ||
Line 364: | Line 364: | ||
## [640x480] | ## [640x480] | ||
Only present sections are loaded. If section is not defined | Only present sections are loaded. If a section is not defined no error message is generated. | ||
== Widget name conventions == | == Widget name conventions == |
edits