mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-31 16:06:57 +00:00
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:
+2
-2
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user