added compatibility for WotLK (by KVLtv)

Cette révision appartient à :
Albirew 2024-01-07 22:42:21 +01:00
Parent 7feded8980
révision f42d9a11f3

Voir le fichier

@ -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"]);