View Single Post
10-02-15, 01:32 PM   #7
SDPhantom
A Pyroguard Emberseer
 
SDPhantom's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2006
Posts: 2,326
Originally Posted by VincentSDSH View Post
Peddler has never failed me. It also visually tags what'll be sold, which I'm particularly fond of.
The default UI already marks junk items with a coin icon when you're at a vendor.



Found in ContainerFrame.lua line 516:
Code:
itemButton.JunkIcon:Hide();
if (quality) then
	if (quality >= LE_ITEM_QUALITY_COMMON and BAG_ITEM_QUALITY_COLORS[quality]) then
		itemButton.IconBorder:Show();
		itemButton.IconBorder:SetVertexColor(BAG_ITEM_QUALITY_COLORS[quality].r, BAG_ITEM_QUALITY_COLORS[quality].g, BAG_ITEM_QUALITY_COLORS[quality].b);
	else
		itemButton.IconBorder:Hide();
	end

	if (quality == LE_ITEM_QUALITY_POOR and not noValue and MerchantFrame:IsShown()) then
		itemButton.JunkIcon:Show();
	end
else
	itemButton.IconBorder:Hide();
end
__________________
WoWInterface AddOns
"All I want is a pretty girl, a decent meal, and the right to shoot lightning at fools."
-Anders (Dragon Age: Origins - Awakening)

Last edited by SDPhantom : 10-02-15 at 01:38 PM.
  Reply With Quote