Tumble files around a bit

This commit is contained in:
2025-05-16 10:20:19 +02:00
parent 0e3166a410
commit 003f90126d
1595 changed files with 75381 additions and 70006 deletions

View File

@@ -0,0 +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