no edit summary
m (→Overview) |
No edit summary |
||
| Line 25: | Line 25: | ||
=== Scaling === | === Scaling === | ||
The World of Warcraft UI engine is built to perform automatic scaling of UI elements, the entire UI, or any component of it can be enlarged or shrunk to fit on a screen appropriately. Frames are scaled and located relative to their parent rather than the whole screen, which means that you only need to worry about how your subcomponents relate to each other, and then your component can be placed and sized any way necessary. | The World of Warcraft UI engine is built to perform automatic scaling of UI elements, the entire UI, or any component of it can be enlarged or shrunk to fit on a screen appropriately. Frames are scaled and located relative to their parent rather than the whole screen, which means that you only need to worry about how your subcomponents relate to each other, and then your component can be placed and sized any way necessary. | ||
== Frame Levels == | |||
Frame levels are that which determines what frame will be on top of other frame. Each frame has a frame level value. If frame A is placed in the same area as frame B, then the frame with the highest frame level will be on top of the other frame. | |||
Instead of going around and specifying that frame A should have frame level 12, and frame B frame level 15, Blizzard uses a set of predefined "groups" of frame levels called frameStrata. The valid values for frameStrata are "BACKGROUND", "LOW", "MEDIUM", "HIGH", "DIALOG", "FULLSCREEN_DIALOG" and "TOOLTIP" (there may be more). Note that the order they are listed in is the assumed ascendancy (i.e. it is assumed that "BACKGROUND" will be below "LOW"). | |||
There is also a special attribute called toplevel - this means (hopefully) that the frame should be on top of any other frame (or, possibly, on top of any other frame in the same frameStrata). Valid values are "false" and "true". | |||
[[Category:Interface Customization]] | [[Category:Interface Customization]] | ||