Replace QueueFunction and RunOOC with RunNextFrame

RunOOC never waited for combat to end; it ran its function on the next
frame. QueueFunction ran one function every 0.2 seconds. Each caller now
defers with ClassicAPI's RunNextFrame.

The loot roll announcement sends its name lists and the roll directly.
The 0.2 second spacing did not help with the server's chat flood limit
(10 messages less than a second apart), and an announcement is at most
four messages.
This commit is contained in:
Brues
2026-10-31 01:57:10 -05:00
parent df13e30e08
commit a8d805626d
6 changed files with 9 additions and 59 deletions
+2 -2
View File
@@ -303,7 +303,7 @@ pfUI:RegisterModule("unlock", function ()
end
if frame.OnMove then frame:OnMove() end
QueueFunction(UpdateDockValues)
RunNextFrame(UpdateDockValues)
end
local function DraggerOnDragStart()
@@ -654,7 +654,7 @@ pfUI:RegisterModule("unlock", function ()
if frame.OnMove then frame:OnMove() end
QueueFunction(SetDockToFrame, pfUI.unlock.dock.parent)
RunNextFrame(function() SetDockToFrame(pfUI.unlock.dock.parent) end)
end)
SkinButton(pfUI.unlock.dock.reset,.2,1,.8)