|
|
| (8 intermediate revisions by 7 users not shown) |
| Line 1: |
Line 1: |
| ==What is frameLevel?==
| | #REDIRECT [[XML/Frame]] |
| frameLevel is pretty much what it sounds like, it says what level your frame is on.
| | [[Category:Interface customization]] |
| | |
| ==What is the difference between frameLevel and frameStrata?==
| |
| Well first off, you can't set frameLevel in your <Frame> tag. frameLevel is dictated by XML nesting. Check this example out:
| |
| | |
| <Frame name="MyFrame" frameStrata="DIALOG" parent="UIParent">
| |
| <Frames>
| |
| <Button name="MyButton">
| |
| </Button>
| |
| </Frames>
| |
| </Frame>
| |
| | |
| Since UIParent's frameLevel is 1, the frame we created here should be frameLevel 2 and the Button should be frameLevel 3.
| |
| | |
| You can check a frame's level with Frame:GetFrameLevel() and you can set it with Frame:SetFrameLevel(). However, setting a frame's level is ill-advised. It is given its level automatically and it's best to leave it that way. If you need to change a frame's level in your own code, best thing to do is just nest your code differently.
| |
| | |
| ==Possible Values==
| |
| * 0 - No parent
| |
| * 1 - Parent is UIParent
| |
| * 2 and higher...
| |