Run the Turtle WoW setup with RunNextFrame and hook the map once

The one-shot OnUpdate frame becomes RunNextFrame. Its call into the map loader ran with the delay frame as this, so the loader's hooked flag sat on a different frame than on PLAYER_ENTERING_WORLD and the map hooks went on twice: shift and ctrl mouse wheel changed alpha and scale by two steps. The flag is now a local of the module.
This commit is contained in:
Brues
2026-10-31 14:28:01 -05:00
parent caf7112651
commit 78d4e0a56e
2 changed files with 7 additions and 7 deletions
+1 -4
View File
@@ -78,10 +78,7 @@ pfUI:RegisterModule("turtle-wow", function ()
end)
end
local delay = CreateFrame("Frame")
delay:SetScript("OnUpdate", function()
this:Hide()
RunNextFrame(function()
-- correct positions of new game menu layout
if GameMenuButtonShop and (GameMenuButtonPFUI or GameMenuButtonPFUIAddOns) then
-- calculate new offset for the shop button