Skip to content

Commit

Permalink
Remove 2.4.3 compat
Browse files Browse the repository at this point in the history
  • Loading branch information
tekkub committed Oct 19, 2008
1 parent 3178ad1 commit 0377929
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
3 changes: 1 addition & 2 deletions Config.lua
@@ -1,6 +1,5 @@
if not IS_WRATH_BUILD then InterfaceOptionsFrame_OpenToCategory = InterfaceOptionsFrame_OpenToFrame end

local MAX_ACCOUNT_MACROS, MAX_CHARACTER_MACROS = IS_WRATH_BUILD and 36 or 18, 18
local MAX_ACCOUNT_MACROS, MAX_CHARACTER_MACROS = 36, 18

local EDGEGAP, GAP = 16, 8
local tekbutt = LibStub("tekKonfig-Button")
Expand Down
5 changes: 2 additions & 3 deletions tekKonfigButton.lua
@@ -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 0377929

Please sign in to comment.