added compatibility for WotLK (by KVLtv)

This commit is contained in:
Albirew 2024-01-07 22:42:21 +01:00
parent 7feded8980
commit f42d9a11f3

View file

@ -973,9 +973,16 @@ function AuctionLite:CreateSellFrame()
SellPerItemButtonText:SetText(L["per item"]);
SellPerStackButtonText:SetText(L["per stack"]);
SellShortAuctionButtonText:SetText(L["%dh"]:format(2));
SellMediumAuctionButtonText:SetText(L["%dh"]:format(8));
SellLongAuctionButtonText:SetText(L["%dh"]:format(24));
local version, major, minor = strmatch(GetBuildInfo(), '([%d]*)%.([%d]*)%.([%d]*)')
if version >= "3" then
SellShortAuctionButtonText:SetText(L["%dh"]:format(12));
SellMediumAuctionButtonText:SetText(L["%dh"]:format(24));
SellLongAuctionButtonText:SetText(L["%dh"]:format(48));
else
SellShortAuctionButtonText:SetText(L["%dh"]:format(2));
SellMediumAuctionButtonText:SetText(L["%dh"]:format(8));
SellLongAuctionButtonText:SetText(L["%dh"]:format(24));
end
-- Set button text and adjust arrows.
SellItemNameButton:SetText(L["Competing Auctions"]);