Hi all,
This thread can be used to store any information found out about UI layout files. I've been making some changes over the last few days for EiC and I've found out quite a bit of information about them - if anyone has any additional info, please post it here.
Some of the jargon here won't make any sense at first reading, but once you have a dig through some UI files you'll see what it means
TGA I.D's:
TGA ID's, and possibly other ID's are limited to 9 digits. Any more than this will cause a crash.
General I.D's:
All states, TGA uses, transitions, children etc need a unique ID.
XY Co-ordinates.:
XY co-ords do not work as simply as it may seem. Many off them are offsets, so you must take into account the parent's XY, which is turn an offset of the parent of the entire file's contents.
The origin (0, 0) appears to be located in the top left corner of the screen. Traditional geometry would indicate that all co-ords are therefore (+X, -Y), but they appear to be (+X, +Y). To save a long winded explanation, just imagine that all Y co-ords are minus, even though they are represented as plus in the xml files.
Tooltips:
For a tooltip to be active the following requirements must be met:
- <flag8> and <flag9> in the <uiEntry> -> <state> to be set to 1
- A valid pointer in <tooltipText> (to ui.loc)
- A text entry in <tooltip> (doesn't need to correspond to the pointer's text, it will make no difference.)
Those are the requirements for elements with only one state; I haven't looked into elements with multiple states.