Cant get a simple frame to display in WOTLK
Hi, I'm still very new to addon development and i'm struggling to display a simple frame. It gets loaded because the chat message gets displayed and if i enable mouse, i cant click through it, so its there in the middle of the screen but invisible. Can anyone help me with the background please? I want a black background with a silver frame.
Code:
<Ui xmlns="http://www.blizzard.com/wow/ui/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.blizzard.com/wow/ui/ http://wowprogramming.com/FrameXML/UI.xsd"> |
Two problems, frames don't automatically have Backdrops any more so they have to inherit the BackdropTemplate (because of that, defining backdrops in XML is done differently).
Without and option to define when it should run, your OnLoad script would "overwrite" (run instead of) the Backdrop templates OnLoad causing it to not run. Slight change to your XML to show something. XML Code:
|
That did it, thanks :)
|
All times are GMT -6. The time now is 10:34 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI