removed items incompatible with classic
Cette révision appartient à :
Parent
f58621c99e
révision
d59eb0a562
|
@ -1368,7 +1368,6 @@ end
|
||||||
-- Mouse has left a row in the scrolling frame.
|
-- Mouse has left a row in the scrolling frame.
|
||||||
function AuctionLite:BuyButton_OnLeave(widget)
|
function AuctionLite:BuyButton_OnLeave(widget)
|
||||||
GameTooltip:Hide();
|
GameTooltip:Hide();
|
||||||
BattlePetTooltip:Hide();
|
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Click the advanced menu button.
|
-- Click the advanced menu button.
|
||||||
|
@ -1496,7 +1495,6 @@ end
|
||||||
-- Hide the cancel tooltip.
|
-- Hide the cancel tooltip.
|
||||||
function AuctionLite:BuyCancelAuctionButton_OnLeave(widget)
|
function AuctionLite:BuyCancelAuctionButton_OnLeave(widget)
|
||||||
GameTooltip:Hide();
|
GameTooltip:Hide();
|
||||||
BattlePetTooltip:Hide();
|
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Starts a full scan of the auction house.
|
-- Starts a full scan of the auction house.
|
||||||
|
|
|
@ -36,11 +36,6 @@ function AuctionLite:CountItems(targetLink)
|
||||||
end
|
end
|
||||||
end
|
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
|
end
|
||||||
|
|
||||||
return total;
|
return total;
|
||||||
|
|
|
@ -631,7 +631,6 @@ end
|
||||||
-- Mouse has left a row in the scrolling frame.
|
-- Mouse has left a row in the scrolling frame.
|
||||||
function AuctionLite:SellButton_OnLeave(widget)
|
function AuctionLite:SellButton_OnLeave(widget)
|
||||||
GameTooltip:Hide();
|
GameTooltip:Hide();
|
||||||
BattlePetTooltip:Hide();
|
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Handles clicks on "Remember" button.
|
-- Handles clicks on "Remember" button.
|
||||||
|
|
18
Tooltip.lua
18
Tooltip.lua
|
@ -386,19 +386,11 @@ function AuctionLite:SetAuctionLiteTooltip(widget, shift, link, count)
|
||||||
else
|
else
|
||||||
assert(false);
|
assert(false);
|
||||||
end
|
end
|
||||||
if self:IsBattlePetLink(link) then
|
GameTooltip:SetHyperlink(link);
|
||||||
local _, speciesId, level, breedQuality, maxHealth, power, speed, name =
|
if GameTooltip:NumLines() > 0 then
|
||||||
strsplit(":", link);
|
self:AddTooltipData(GameTooltip, link, count);
|
||||||
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);
|
|
||||||
end
|
end
|
||||||
|
self:SetHyperlinkTooltips(true);
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -426,7 +418,7 @@ end
|
||||||
function AuctionLite:AddHooksToTooltip(tooltip)
|
function AuctionLite:AddHooksToTooltip(tooltip)
|
||||||
self:SecureHook(tooltip, "SetBagItem", "BagTooltip");
|
self:SecureHook(tooltip, "SetBagItem", "BagTooltip");
|
||||||
self:SecureHook(tooltip, "SetInventoryItem", "InventoryTooltip");
|
self:SecureHook(tooltip, "SetInventoryItem", "InventoryTooltip");
|
||||||
self:SecureHook(tooltip, "SetGuildBankItem", "GuildBankTooltip");
|
-- self:SecureHook(tooltip, "SetGuildBankItem", "GuildBankTooltip");
|
||||||
--self:SecureHook(tooltip, "SetTradeSkillItem", "TradeSkillTooltip");
|
--self:SecureHook(tooltip, "SetTradeSkillItem", "TradeSkillTooltip");
|
||||||
self:SecureHook(tooltip, "SetMerchantItem", "MerchantTooltip");
|
self:SecureHook(tooltip, "SetMerchantItem", "MerchantTooltip");
|
||||||
self:SecureHook(tooltip, "SetBuybackItem", "BuybackTooltip");
|
self:SecureHook(tooltip, "SetBuybackItem", "BuybackTooltip");
|
||||||
|
|
9
Util.lua
9
Util.lua
|
@ -105,11 +105,6 @@ function AuctionLite:IsLink(str)
|
||||||
return (str:find(LinkRegexp) ~= nil);
|
return (str:find(LinkRegexp) ~= nil);
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Is this link a battle pet link?
|
|
||||||
function AuctionLite:IsBattlePetLink(link)
|
|
||||||
return strmatch(link, "|Hbattlepet:");
|
|
||||||
end
|
|
||||||
|
|
||||||
-- Dissect an item link or item string.
|
-- Dissect an item link or item string.
|
||||||
function AuctionLite:SplitLink(link)
|
function AuctionLite:SplitLink(link)
|
||||||
-- Parse the 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.
|
-- Zero out the suffixId field from an item link, and also replace the name with the un-suffixed name.
|
||||||
function AuctionLite:RemoveSuffix(link)
|
function AuctionLite:RemoveSuffix(link)
|
||||||
if link ~= nil then
|
if link ~= nil then
|
||||||
if AuctionLite:IsBattlePetLink(link) then
|
|
||||||
return link
|
|
||||||
end
|
|
||||||
|
|
||||||
local name, _, id = AuctionLite:SplitLink(link)
|
local name, _, id = AuctionLite:SplitLink(link)
|
||||||
local baseName = GetItemInfo(id)
|
local baseName = GetItemInfo(id)
|
||||||
return link:gsub(
|
return link:gsub(
|
||||||
|
|
Chargement…
Référencer dans un nouveau ticket