Skip to content

Commit 0b270be

Browse files
committed
Initialize tooltip fontstrings (Fixes #239, closes #243)
1 parent 418c5a7 commit 0b270be

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

TipHooker.lua

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,19 @@ local function InitializeHook()
8383
tooltipNeedsRepaint[self] = nil
8484
end)
8585
end
86+
87+
for i = 1, 30 do
88+
local fontString = _G[tooltipName .. "TextLeft" .. i]
89+
if not fontString then
90+
local left = tooltip:CreateFontString()
91+
local right = tooltip:CreateFontString()
92+
tooltip:AddFontStrings(left, right)
93+
local leftName = tooltipName .. "TextLeft" .. i
94+
local rightName = tooltipName .. "TextRight" .. i
95+
_G[leftName] = left
96+
_G[rightName] = right
97+
end
98+
end
8699
end
87100
end
88101
initialized = true

0 commit comments

Comments
 (0)