removed items incompatible with classic

Cette révision appartient à :
Albirew 2019-09-11 23:17:33 +02:00
Parent f58621c99e
révision d59eb0a562
5 fichiers modifiés avec 5 ajouts et 30 suppressions

Voir le fichier

@ -1368,7 +1368,6 @@ end
-- Mouse has left a row in the scrolling frame.
function AuctionLite:BuyButton_OnLeave(widget)
GameTooltip:Hide();
BattlePetTooltip:Hide();
end
-- Click the advanced menu button.
@ -1496,7 +1495,6 @@ end
-- Hide the cancel tooltip.
function AuctionLite:BuyCancelAuctionButton_OnLeave(widget)
GameTooltip:Hide();
BattlePetTooltip:Hide();
end
-- Starts a full scan of the auction house.

Voir le fichier

@ -36,11 +36,6 @@ function AuctionLite:CountItems(targetLink)
end
end
end
-- Battle pets can only be sold one at a time, so cap this count at one.
if total > 0 and self:IsBattlePetLink(targetLink) then
total = 1;
end
end
return total;

Voir le fichier

@ -631,7 +631,6 @@ end
-- Mouse has left a row in the scrolling frame.
function AuctionLite:SellButton_OnLeave(widget)
GameTooltip:Hide();
BattlePetTooltip:Hide();
end
-- Handles clicks on "Remember" button.

Voir le fichier

@ -386,19 +386,11 @@ function AuctionLite:SetAuctionLiteTooltip(widget, shift, link, count)
else
assert(false);
end
if self:IsBattlePetLink(link) then
local _, speciesId, level, breedQuality, maxHealth, power, speed, name =
strsplit(":", link);
BattlePetToolTip_Show(tonumber(speciesId), tonumber(level),
tonumber(breedQuality), tonumber(maxHealth),
tonumber(power), tonumber(speed), name);
else
GameTooltip:SetHyperlink(link);
if GameTooltip:NumLines() > 0 then
self:AddTooltipData(GameTooltip, link, count);
end
self:SetHyperlinkTooltips(true);
GameTooltip:SetHyperlink(link);
if GameTooltip:NumLines() > 0 then
self:AddTooltipData(GameTooltip, link, count);
end
self:SetHyperlinkTooltips(true);
end
end
@ -426,7 +418,7 @@ end
function AuctionLite:AddHooksToTooltip(tooltip)
self:SecureHook(tooltip, "SetBagItem", "BagTooltip");
self:SecureHook(tooltip, "SetInventoryItem", "InventoryTooltip");
self:SecureHook(tooltip, "SetGuildBankItem", "GuildBankTooltip");
-- self:SecureHook(tooltip, "SetGuildBankItem", "GuildBankTooltip");
--self:SecureHook(tooltip, "SetTradeSkillItem", "TradeSkillTooltip");
self:SecureHook(tooltip, "SetMerchantItem", "MerchantTooltip");
self:SecureHook(tooltip, "SetBuybackItem", "BuybackTooltip");

Voir le fichier

@ -105,11 +105,6 @@ function AuctionLite:IsLink(str)
return (str:find(LinkRegexp) ~= nil);
end
-- Is this link a battle pet link?
function AuctionLite:IsBattlePetLink(link)
return strmatch(link, "|Hbattlepet:");
end
-- Dissect an item link or item string.
function AuctionLite:SplitLink(link)
-- Parse the link.
@ -149,10 +144,6 @@ end
-- Zero out the suffixId field from an item link, and also replace the name with the un-suffixed name.
function AuctionLite:RemoveSuffix(link)
if link ~= nil then
if AuctionLite:IsBattlePetLink(link) then
return link
end
local name, _, id = AuctionLite:SplitLink(link)
local baseName = GetItemInfo(id)
return link:gsub(