# HG changeset patch # User Aaron Bregger # Date 1281589731 18000 # Node ID 050ca47f9138752d87f8e32b59806c371d4c943f # Parent dceccfaf0a503d5fb546ae68e161bdda8d3dfb2b Highlighting functions refined. Now displays * near items as well. diff -r dceccfaf0a50 -r 050ca47f9138 core.lua --- a/core.lua Wed Aug 11 23:40:11 2010 -0500 +++ b/core.lua Thu Aug 12 00:08:51 2010 -0500 @@ -130,11 +130,16 @@ buttonframe:HookScript("OnUpdate", function(self) local buttonName = _G[self:GetName().."Name"]; local link = GetMerchantItemLink(_G[self:GetName().."ItemButton"]:GetID()); + if(not link) then + return; + end + local sName, sLink, iRarity, iLevel, iMinLevel, sType, sSubType, iStackCount = GetItemInfo(link) if(sType == "Recipe" and safeRecipes[sName]) then SetItemButtonNameFrameVertexColor(self, 0, 0, 1.0); SetItemButtonSlotVertexColor(self, 0, 0, 0.5); + buttonName:SetText("* " .. sName) if(GetItemCount(link, true) == 0) then buttonName:SetTextColor(0,1,1); elseif(GetItemCount(link, true) < 5) then