WoWInterface SVN mikma

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /EnemyScanner2
    from Rev 695 to Rev 696
    Reverse comparison

Rev 695 → Rev 696

EnemyScanner2.lua
2,7 → 2,7
local _
 
local function debugprint(chatframe,text,r,g,b)
if debug then
if debug.EnemyScanner2 then
_G["ChatFrame"..chatframe]:AddMessage(text,r,g,b)
end
end
64,13 → 64,22
GetStats("target")
end
 
tooltiptable = {}
 
local function tooltipScanner(guid)
local tooltip = TestTooltip or CreateFrame("GameTooltip","TestTooltip",UIParent,"GameTooltipTemplate")
tooltip:SetOwner(UIParent, "ANCHOR_NONE")
tooltip:SetPoint("CENTER",UIParent,"CENTER")
tooltip:SetPoint("BOTTOMRIGHT",UIParent,"BOTTOMRIGHT")
tooltip:ClearLines()
tooltip:SetHyperlink('unit:' .. guid)
if not tooltiptable[guid] then tooltiptable[guid] = true end
tooltip:Show()
local close = CreateFrame("Button", nil, tooltip, "UIPanelCloseButton")
close:SetPoint("TOPLEFT")
close:SetScript("OnClick", function()
tooltip:Hide()
end)
 
local printline
local line2 = TestTooltipTextLeft2:GetText()
local line3 = TestTooltipTextLeft3:GetText()
83,7 → 92,7
tooltip:Hide()
return tonumber(printline)
else
debugprint(4,printline)
--debugprint(4,tostring(printline))
return false
end
end
149,8 → 158,9
db[guidsource] = level
end
 
-- Let's do some tooltip magics!
local tooltiplevel
if guidsource ~= '' and db[guidsource] < 90 then
if guidsource ~= '' and not tooltiptable[guidsource] and db[guidsource] < 90 then
debugprint(4,"Creating tooltip for "..guidsource)
tooltiplevel = tooltipScanner(guidsource)
if tooltiplevel and tooltiplevel > level then