tweak style support

This commit is contained in:
Hendrik Leppkes
2008-03-11 09:06:05 +00:00
parent 8b4d870e36
commit f7845069b5
4 changed files with 9 additions and 6 deletions
+3 -3
View File
@@ -46,11 +46,11 @@ function Bartender4.ButtonStyle.ApplyStyle(button, styleName)
if cy then
style = styledata.default
if button.overlay and button.overlay.type ~= "cy" then
if button.overlay then
button.overlay:Hide()
button.overlay = _G[button:GetName() .. "Overlay"]
button.overlay.type = "cy"
end
button.overlay = _G[button:GetName() .. "Overlay"]
button.overlay.type = "cy"
end
if style.overlay and style.FrameFunc then