Originally Posted by barbol12
hello guys, i have some frames near each other in a bundle... but i want to layer them in certain order but i cant figure it out.. they are all in the strata BACKGROUND and i tried to set them to SetFrameLevel() but it didnt work for some reason... so i tried setting them all at different frama stratas instead... still didnt work...
|
:SetFrameLevel() does work, but you cannot use it on layers. Rendering works like this...
Frames are rendered based on Strata, frames in the same strata are drawn in order of frame level, and then the layers are based on layer level.
so you can set your frame's strata to DIALOG and have the layer on background, and it will show up above other frames because the layer is drawn to the BACKGROUND of the frame with a Strata of DIALOG.
if you have many textures where overlapping isnt going as you like, put the lower frames on a frame such as
Code:
<Frame name="lowerTextures" frameStrata="DIALOG" frameLevel="10">
<Layers>
<Layer level="BACKGROUND">
<!--These textures are the lowest-->
</Layer>
<Layer level="OVERLAY">
<!--These are above the BACKGROUND textures-->
</Layer>
</Layers>
</Frame>
<Frame name="higherTextures" frameStrata="DIALOG" frameLevel="20">
<Layers>
<Layer level="BACKGROUND">
<!--These textures are lowest on this frame, but higher than overlay on other frame.-->
</Layer>
<Layer level="OVERLAY">
<!--These textures are the highest of em all-->
</Layer>
</Layers>
</Frame>
of course if there is a dialog frame with a framelevel between 10 and 20, it will be drawn in between your 2 frames, but you can just make the numbers closer together...
Originally Posted by barbol12
also i have 1 other question.... i have the frames set to parent the GameMenuFrame (aka show up when options frame shows up) but they wont move with the options frame though.... how can i make them auto move(and keep relative position with the options frame?
|
:SetPoint("TOPLEFT", GameMenuFrame, "TOPRIGHT", offX, offY)
and that should keep it attached to the game menu frame