
Fix for disable multi mail attachment item names when tooltip options are disabled (vendor and auction)
ceylina opened this issue ยท 0 comments
In 4.0.6 and perhaps always, as reported here:
http://mods.curse.com/addons/wow/auctionator?comment=6093
Setting all settings in tooltip options to disable does not also disable attachment names in tooltips
Ensure that new mutli attachment tooltip option respects these settings.
this is done by checking like so:
if AUCTIONATOR_V_TIPS == 1 or AUCTIONATOR_A_TIPS == 1 or AUCTIONATOR_D_TIPS == 1 then
do stuff
end
This is fixed by changing the attachment tooltip code in AuctionatorHints.lua to
hooksecurefunc ( "InboxFrameItem_OnEnter",
function ( self )
local itemCount = select( 8, GetInboxHeaderInfo( self.index ) )
if AUCTIONATOR_V_TIPS == 1 or AUCTIONATOR_A_TIPS == 1 or AUCTIONATOR_D_TIPS == 1 then
if itemCount and itemCount > 1 then
for numIndex = 1, ATTACHMENTS_MAX_RECEIVE do
local name, _, _, num = GetInboxItem( self.index, numIndex )
if name then
local attachLink = GetInboxItemLink( self.index, numIndex ) or name
if num > 1 then
GameTooltip:AddLine( attachLink )
Atr_ShowTipWithPricing( GameTooltip, attachLink, num )
else
GameTooltip:AddLine( attachLink )
Atr_ShowTipWithPricing( GameTooltip, attachLink )
end
end
end
end
end
end
);