Open main menu

Difference between revisions of "GUI Themes/Specs"

23 bytes added ,  22:49, 9 June 2006
m
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. Only exception is 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.
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 get 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 whole thing.
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 640x480 it is:
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, no error message is generated
Only present sections are loaded. If a section is not defined no error message is generated.


== Widget name conventions ==
== Widget name conventions ==
334

edits