This commit is contained in:
2024-08-24 22:41:08 +02:00
parent 77f1ac5d7a
commit c21f59778f
431 changed files with 68581 additions and 68581 deletions

View File

@@ -1,11 +1,11 @@
-- somewhere in your addon's initialization
local myTooltip = CreateFrame("GameTooltip", "MyAddOnTooltip", UIParent, "GameTooltipTemplate")
myTooltip:SetOwner(UIParent, "ANCHOR_NONE")
-- later, when you want to look at a tooltip
myTooltip:SetUnitBuff("player", index of buff)
for i = 1, myTooltip:NumLines() do
local textLeft = _G["MyAddOnTooltipTextLeft"..i]:GetText()
local textRight = _G["MyAddOnTooltipTextRight"..i]:GetText()
-- do a :match or whatever to look for pertinent text
end
-- somewhere in your addon's initialization
local myTooltip = CreateFrame("GameTooltip", "MyAddOnTooltip", UIParent, "GameTooltipTemplate")
myTooltip:SetOwner(UIParent, "ANCHOR_NONE")
-- later, when you want to look at a tooltip
myTooltip:SetUnitBuff("player", index of buff)
for i = 1, myTooltip:NumLines() do
local textLeft = _G["MyAddOnTooltipTextLeft"..i]:GetText()
local textRight = _G["MyAddOnTooltipTextRight"..i]:GetText()
-- do a :match or whatever to look for pertinent text
end