Skip to content

Commit

Permalink
Remove 2.4.3 backcompat
Browse files Browse the repository at this point in the history
  • Loading branch information
tekkub committed Oct 19, 2008
1 parent 475a147 commit ed30ed0
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tekKonfigButton.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
if IS_WRATH_BUILD == nil then IS_WRATH_BUILD = (select(4, GetBuildInfo()) >= 30000) end

local lib, oldminor = LibStub:NewLibrary("tekKonfig-Button", 5)
if not lib then return end
Expand Down Expand Up @@ -26,7 +25,7 @@ if oldminor < 5 then
-- Fonts --
butt:SetDisabledFontObject(GameFontDisable)
butt:SetHighlightFontObject(GameFontHighlight)
if IS_WRATH_BUILD then butt:SetNormalFontObject(GameFontNormal) else butt:SetTextFontObject(GameFontNormal) end
butt:SetNormalFontObject(GameFontNormal)

-- Textures --
butt:SetNormalTexture("Interface\\Buttons\\UI-Panel-Button-Up")
Expand All @@ -50,7 +49,7 @@ if oldminor < 5 then
function lib.new_small(parent, ...)
local butt = lib.new(parent, ...)
butt:SetHighlightFontObject(GameFontHighlightSmall)
if IS_WRATH_BUILD then butt:SetNormalFontObject(GameFontNormalSmall) else butt:SetTextFontObject(GameFontNormalSmall) end
butt:SetNormalFontObject(GameFontNormalSmall)
return butt
end
end

0 comments on commit ed30ed0

Please sign in to comment.