Originally Posted by Xrystal
I'm not sure if this still works in 10.0 yet, haven't delved into this addon much yet.
But this was a template I set up for my frames to inherit from in my MagePorts addon. I did have a built in backdropInfo table in use when I first used it but then they appear to have removed it so I created my own.
Lua Code:
<Frame name = "XMP_BackdropTemplate" inherits = "BackdropTemplate" virtual = "true"> vvvvvvvvvv New Backdrop XML Code ( as of 9.0 ) vvvvvvvv <KeyValues> <KeyValue key="backdropInfo" value="XRYSTAL_BACKDROP_TOOLTIP_16_16_5555" type="global"/> <KeyValue key="backdropColor" value="BLACK" type="global"/> <KeyValue key="backdropBorderColor" value="WHITE" type="global"/> </KeyValues> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ vvvvvvv Old Backdrop XML Code vvvvvvvv <!--Backdrop bgFile="Interface\Tooltips\UI-Tooltip-Background.png" edgeFile="Interface\Tooltips\UI-Tooltip-Border.png" tile="true" > <EdgeSize val="12"/> <TileSize val="16"/> <BackgroundInsets left="5" right="5" top="5" bottom="5"/> <Color r = "1" g = "1" b = "0" a = "1" /> <BorderColor r = "0" g = "1" b = "1" a = "1" /> </Backdrop-->> ^^^^^^^^^^^^^^^^^^^^^^^^^^^ </Frame>
Lua Code:
XRYSTAL_BACKDROP_TOOLTIP_16_16_5555 = { bgFile = "Interface\Tooltips\UI-Tooltip-Background", edgeFile = "Interface\Tooltips\UI-Tooltip-Border", tile = true, tileEdge = true, tileSize = 16, edgeSize = 16, insets = { left = 5, right = 5, top = 5, bottom = 5 }, };
|
Just letting you know that this does work on 10.0 and 10.2