parnic / LibDogTag-Unit-3.0

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

scanning tooltip accidentally empties the GameTooltip in classic era

frozn opened this issue · comments

Hello,

it seems that the scanning tooltip in LibDogTag-Unit-3.0 accidentally empties the GameTooltip in classic era.

How to reproduce:

  1. Install addon IceHUD.
  2. Open IceHUD options with /icehud and make shure, that module "TargetInfo" is enabled (default) and "Line 3 Tag" is filled with [Guild:Angle] (default).
  3. Mouse over a NPC. GameTooltip is fine:
    image
  4. Click on the NPC hovering over. GameTooltip is empty because of scanning tooltip (\Categories\TooltipScanning.lua):
    image

How to fix:

  1. Change the line with CreateFrame() to set a unique frame name for the scanning tooltip:
    if not C_TooltipInfo then
    tt = CreateFrame("GameTooltip")
    tt:SetOwner(UIParent, "ANCHOR_NONE")

    e.g. tt = CreateFrame("GameTooltip", MAJOR_VERSION.."_"..MINOR_VERSION)

After this change the GameTooltip won't accidentally be emptied by the scanning tooltip.

Thanks