WoW BlueTracker Home | RSS | News | Contact
Recent | Search | Archive | CS Posts
Poster: Gello at 4/5/2006 7:00:00 PM PDT
Subject: Dynamic <Frames>
   I'm wondering if anyone has created dynamic frames to behave so that they don't share the same layers.

Basically the dynamic-frame version of this:

<Button>
<Frames>
<Frame>
<Layer level="BACKGROUND"/>
<Layer level="OVERLAY"/>
</Frame>
</Frames>
</Button>

The reason being, if I do this:

<Button>
<Layer level="BACKGROUND"/>
<Layer level="OVERLAY"/>
</Button>

then all overlays will show over all backgrounds of each instance of those buttons.

I tried making subframes and creating the textures within those subframes, but they want to behave the same way.

Currently it looks like:

local frame = CreateFrame("Button",frameName,Minimap)
local icon = frame:CreateTexture(frameName.."Icon","BACKGROUND")
local overlay = frame:CreateTexture(frameName.."Overlay","OVERLAY")
-- equivalent of second xml example above

I've tried this with no change in behavior:

local frame = CreateFrame("Button",frameName,Minimap)
local subframe = CreateFrame("Frame",frameName.."Frame",frame)
local icon = subframe:CreateTexture(frameName.."Icon","BACKGROUND")
local overlay = subframe:CreateTexture(frameName.."Overlay","OVERLAY")

But I could be missing something since the exact meaning of <Frames> isn't clear to me except what goes in there and what doesn't.

This demonstrates it more clearly: http://gello.wowinterface.com/downloads/fileinfo.php?id=4686

If you install TestMod and drag the buttons around you'll see that the tracking borders all slide over the icons of the other buttons created with the mod. I'd like the buttons to slide under or over other buttons completely. I can do this in xml (first example above) but haven't figured out how to do it with dynamic frames.

If this isn't possible it's no crisis. It's an aesthetic thing only.
  http://forums.worldofwarcraft.com/thread.aspx?fn=wow-interface-customization&t=355153&p=#post355153
 
Poster: slouken at 4/5/2006 8:03:37 PM PDT
Subject: Re: Dynamic <Frames>
   Nothing jumps out at me either. Let me know what you uncover!
  http://forums.worldofwarcraft.com/thread.aspx?fn=wow-interface-customization&t=355153&p=#post355205
Poster: slouken at 4/6/2006 1:27:21 PM PDT
Subject: Re: Dynamic <Frames>
   Yep, that's the answer.
  http://forums.worldofwarcraft.com/thread.aspx?fn=wow-interface-customization&t=355153&p=#post355550

View all recent official Blue Posts

WoW Blue Tracker: Archiving World of Warcraft Blue Posts
since March 2005
Home | RSS | News | Contact
Recent | Search | Archive | CS Posts
 

Why Ads?