Originally Posted by p3lim
Lua Code:
Mixin(yourFrame, BackdropTemplateMixin)
|
Great!
Now I just have to use this code on
OnLoad of my old frames,
without inherits="BackdropTemplate" and it works on both 8.x and 9.0 versions:
Code:
---------------------------------- testing WoW version
local wowversion, wowbuild, wowdate, wowtocversion = GetBuildInfo()
if (wowtocversion > 90000) then Mixin(self, BackdropTemplateMixin)
---------------------------------- same code for 8.x and 9.x
self:SetBackdrop({
bgFile = "Interface\\DialogFrame\\UI-DialogBox-Background",
edgeFile = "Interface\\DialogFrame\\UI-DialogBox-Border",
tile = true,
tileSize = 32,
edgeSize = 32,
insets = {left = 12, right = 12, top = 12, bottom = 11},
})
----------------------------------