Choonster from the WoW forums whipped up this code in an attempt for a fix:
Lua Code:
local function SkinBar(barName)
local bar = type(barName) == "string" and _G[barName] or barName
bar:SetParent(UIParent)
bar:SetScale(1)
bar:SetHeight(16)
bar:SetWidth(280)
bar:SetBackdropColor(0.1, 0.1, 0.1)
for _, region in pairs({ bar:GetRegions() }) do
if region.GetTexture and region:GetTexture() == "SolidTexture" then
region:Hide()
end
end
local border = _G[barName.."Border"]
border:Hide()
local background = bar:CreateTexture(barName.."Background", "BACKGROUND")
background:SetTexture(cfg.statusbar_texture)
background:SetAllPoints(bar)
background:SetVertexColor(.15,.15,.15,.75)
local statusbar = _G[barName.."StatusBar"]
statusbar:SetAllPoints(bar)
local text = _G[barName.."Text"]
text:SetFont(cfg.font, 14, "THINOUTLINE")
text:ClearAllPoints()
text:SetPoint("CENTER", statusbar, 0, 1)
local glow = CreateFrame("Frame", nil, bar)
glow:SetFrameLevel(0)
glow:SetPoint("TOPLEFT", -5, 5)
glow:SetPoint("BOTTOMRIGHT", 5, -5)
lib.gen_backdrop(glow)
end
-- mirror castbar!
lib.gen_mirrorcb = function(f)
for _, barName in pairs({"MirrorTimer1", "MirrorTimer2", "MirrorTimer3"}) do
SkinBar(barName)
end
end
-- timers
TimerTracker:HookScript("OnEvent", function(self, event, ...))
if event == "START_TIMER" then
for i, timer in ipairs(self.timerList) do
SkinBar(timer)
end
end
end
However, it is throwing up this error:
Code:
Message: Interface\AddOns\oUF_Fail\lib.lua:694: unexpected symbol near ')'
Time: 04/07/12 14:05:17
Count: 1
Stack:
Locals:
Line 694 is line 46 above and I tried changing ... to .. just to see what it wants and it tells me it expects '...' so, I don't know what unexpected symbol it's seeing?