Permalink
Browse files

Fix for wrath

  • Loading branch information...
tekkub committed Aug 9, 2008
1 parent f56d1fe commit fb7d040ad5c13e45dc8ae8ff3c78323560c51f0f
Showing with 4 additions and 6 deletions.
  1. +4 −6 tekKonfigButton.lua
View
@@ -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)
@@ -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")
@@ -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.