View Single Post
10-08-11, 08:12 PM   #3
SDPhantom
A Pyroguard Emberseer
 
SDPhantom's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2006
Posts: 2,326
Frame strata is set by frame:SetFrameStrata() and if undefined defaults to MEDUIM. Framelevel by default is relative to how many parents the frame has. The higher this number, the later the frame is rendered, meaning it draws on top of all the lower frames in the same strata. For example, UIParent has no parent and gets a default framelevel of 1. PlayerFrame has UIParent as its parent, and gets a default frame level of 2, etc. Like frame strata, framelevel can be manually set as well by calling frame:SetFrameLevel(). It's advised to not have 2 frames of the same strata and framelevel overlap each other. The rendering engine is known to mesh elements of such frames together or simply randomly choose one to draw over the other.
__________________
WoWInterface AddOns
"All I want is a pretty girl, a decent meal, and the right to shoot lightning at fools."
-Anders (Dragon Age: Origins - Awakening)

Last edited by SDPhantom : 10-08-11 at 08:18 PM.
  Reply With Quote