@@ -266,7 +266,6 @@ local function getTooltipItem(tooltip, button)
266266 local itemString = string.match (itemLink , " item:([%-?%d:]+)" )
267267 local slot = equipLocToSlot [equipLoc ]
268268 local itemSplit = getItemSplit (itemString )
269- -- if ViragDevTool_AddData then ViragDevTool_AddData(itemSplit) end
270269 local itemInfo = getItemInfo (itemSplit , slot , itemLink , itemLevel )
271270
272271 return equipLoc , itemLink , itemLevel , subId , itemInfo , locItemName , itemSplit
@@ -322,7 +321,6 @@ local function createSimc(itemInfo, itemName)
322321end
323322
324323local function buttonAboveTooltip (self , link )
325- print (link )
326324 local tooltipType = string.match (link ," ^(%a+):" )
327325 if tooltipType and tooltipType == " item" then
328326 local equipLoc , itemLink , itemLevel , subId , itemInfo , itemName , itemSplit = getTooltipItem (self )
@@ -347,6 +345,8 @@ local function buttonAboveTooltip(self, link)
347345 elseif tpSimc .addOffHand :IsShown () then
348346 tpSimc .addOffHand :Hide ()
349347 end
348+ elseif tpSimc .button :IsShown () then
349+ tpSimc .button :Hide ()
350350 end
351351 else
352352 tpSimc .button :Hide ()
@@ -395,7 +395,7 @@ frame:SetScript("OnEvent", function(self, e, a)
395395 if IsAddOnLoaded (" Simulationcraft" ) then
396396 local onlyItem = createButton (" CheckButton" , " onlyItemButton" , nil , " ChatConfigCheckButtonTemplate" )
397397 tpSimc .onlyItem = onlyItem
398- onlyItem .Text :SetText (" SimC Integration" )
398+ onlyItem .Text :SetText (" Simc Integration" )
399399 onlyItem :SetChecked (db .onlyItem )
400400 onlyItem :Hide ()
401401 onlyItem :SetScript (" OnClick" , function (self )
409409
410410BINDING_HEADER_TOOLTIPSIMC1 = " tooltipSimc"
411411hooksecurefunc (ItemRefTooltip , " SetHyperlink" , buttonAboveTooltip )
412+
413+ -- WeakAuras :(
412414hooksecurefunc (ItemRefTooltip , " ClearLines" , function () if tpSimc .button and tpSimc .button :IsShown () then tpSimc .button :Hide () end end )
0 commit comments