WoW:How the user interface is rendered: Difference between revisions

mNo edit summary
Line 11: Line 11:
There are several strata that a frame goes into, e.g. background, normal, dialog, tooltip. A strata simply means that all frames in one strata will be rendered above frames in a lower strata, and below frames in a higher strata.
There are several strata that a frame goes into, e.g. background, normal, dialog, tooltip. A strata simply means that all frames in one strata will be rendered above frames in a lower strata, and below frames in a higher strata.


  The actual strata, according to UI.xsd are: PARENT,BACKGROUND,LOW,MEDIUM,HIGH,DIALOG,FULLSCREEEN,FULLSCREEN_DIALOG,TOOLTIP
  The actual strata, according to UI.xsd are: PARENT, BACKGROUND, LOW, MEDIUM,
Note that PARENT is a 'compile time' only strata, and doesn't exist at runtime, use GetFrameStrata at runtime.
HIGH, DIALOG, FULLSCREEEN, FULLSCREEN_DIALOG, TOOLTIP. Note that PARENT is a
'compile time' only strata, and doesn't exist at runtime, use GetFrameStrata
at runtime.


Within a strata, each frame has a frame level, which determines the order in which it is rendered. The optimal layout is to have all frames in the same strata at the same frame level, since they can be batched and rendered at the same time. When a "toplevel" frame is clicked on, it is raised above other frames in the strata.
Within a strata, each frame has a frame level, which determines the order in which it is rendered. The optimal layout is to have all frames in the same strata at the same frame level, since they can be batched and rendered at the same time. When a "toplevel" frame is clicked on, it is raised above other frames in the strata.