changeset 2:050ca47f9138 stable

Highlighting functions refined. Now displays * near items as well.
author Aaron Bregger
date Thu, 12 Aug 2010 00:08:51 -0500
parents dceccfaf0a50
children adaade464350
files core.lua
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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