Problem using a custom backdrop with the new backdrop system changes
Hi there! I'm having a hard time understanding how to translate the old <Backdrop> tags to the new system.
I'm creating the following frame in XML: Code:
<Frame name="TestFrame" parent="UIParent" inherits="BackdropTemplate"> Lua Code:
I've added that to a .lua file that's listed in the ToC file, and changed my frame to: Code:
<Frame name="TestFrame" parent="UIParent" inherits="BackdropTemplate"> Do I need to place BACKDROP_TOOLTIP_MYBACKDROP somewhere special? I've also tried to use: Code:
<Frame name="TestFrame" parent="UIParent"> Code:
Message: [string "TestFrame:OnLoad"]:4: attempt to call method 'Setbackdrop' (a nil value) |
First decision. Do you want to make seperate xml frames for classic and non-classic
If yes then: Classic: (same as always) Lua Code:
Lua Code:
Or, do you want one frame for both Classic and the rest: Mostly the same xml frame but detecting if backdrop mixin (template) is needed and all backdrop information is set in lua (OnLoad) Lua Code:
Definitions like BACKDROP_TOOLTIP_16_16_5555 and LEGENDARY_ORANGE_COLOR don't exist in Classic and may not BCC either so probably easiest not to use them and just define backdrop, colours, alpha manually in both. |
All times are GMT -6. The time now is 05:59 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI