View Bug Report
Text 'Already known' can appear different tooltip lines
Bug #: 6550
File: Vendor Buy
Date: 04-18-10 09:38 PM
By: Cosmic Cleric
Status: Fixed
Dalaran Jewelcrafter vendor has the 'Already known' text on line 3. The existing code always looks at line 3. The Stormwind food recipe vendor (in Old Town) has the 'Already known' text on line 4.

I wrote this code and uploaded it as a patch that looks for each line of the tooltip, instead of just one particular line...

Code:
					-- Below code is a fix for 'Already known' appearing on different lines, depending on which vendor
					for i = 1, VendorBuyTooltip:NumLines() do
					   local text = _G["VendorBuyTooltipTextLeft"..i]:GetText();
					   if(text)then
                           local a,b,c = _G["VendorBuyTooltipTextLeft"..i]:GetTextColor();
    					   if ((text=="Already known")and((a>b)and(b==c))) then
    					       item:SetAlpha(0.5);
    					   end
                       end					   
					end
					-- Above code is a fix for 'Already known' appearing on different lines, depending on which vendor

 
Stats
Files: 2
Downloads: 6,764
Favorites: 37

Menu
» Home



New & Updated


WOWInterface