Skip to content

Commit

Permalink
Fix for wrath
Browse files Browse the repository at this point in the history
  • Loading branch information
tekkub committed Aug 9, 2008
1 parent f56d1fe commit fb7d040
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions tekKonfigButton.lua
@@ -1,10 +1,10 @@

local lib, oldminor = LibStub:NewLibrary("tekKonfig-Button", 3)
local lib, oldminor = LibStub:NewLibrary("tekKonfig-Button", 4)
if not lib then return end
oldminor = oldminor or 0


if oldminor < 3 then
if oldminor < 4 then
local GameTooltip = GameTooltip
local function HideTooltip() GameTooltip:Hide() end
local function ShowTooltip(self)
Expand All @@ -25,7 +25,7 @@ if oldminor < 3 then
-- Fonts --
butt:SetDisabledFontObject(GameFontDisable)
butt:SetHighlightFontObject(GameFontHighlight)
butt:SetTextFontObject(GameFontNormal)
butt:SetNormalFontObject(GameFontNormal)

-- Textures --
butt:SetNormalTexture("Interface\\Buttons\\UI-Panel-Button-Up")
Expand All @@ -44,14 +44,12 @@ if oldminor < 3 then

return butt
end
end


if oldminor < 2 then
function lib.new_small(parent, ...)
local butt = lib.new(parent, ...)
butt:SetHighlightFontObject(GameFontHighlightSmall)
butt:SetTextFontObject(GameFontNormalSmall)
butt:SetNormalFontObject(GameFontNormalSmall)
return butt
end
end

0 comments on commit fb7d040

Please sign in to comment.