mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-19 02:50:50 +00:00
nameplates: queue events to update call
This commit is contained in:
@@ -463,7 +463,7 @@ pfUI:RegisterModule("nameplates", "vanilla:tbc", function ()
|
|||||||
|
|
||||||
nameplates.OnEvent = function(frame)
|
nameplates.OnEvent = function(frame)
|
||||||
local frame = frame or this
|
local frame = frame or this
|
||||||
nameplates:OnDataChanged(frame)
|
frame.eventcache = true
|
||||||
end
|
end
|
||||||
|
|
||||||
nameplates.OnDataChanged = function(self, plate)
|
nameplates.OnDataChanged = function(self, plate)
|
||||||
@@ -666,6 +666,12 @@ pfUI:RegisterModule("nameplates", "vanilla:tbc", function ()
|
|||||||
local target = UnitExists("target") and frame:GetAlpha() == 1 or nil
|
local target = UnitExists("target") and frame:GetAlpha() == 1 or nil
|
||||||
local mouseover = UnitExists("mouseover") and original.glow:IsShown() or nil
|
local mouseover = UnitExists("mouseover") and original.glow:IsShown() or nil
|
||||||
|
|
||||||
|
-- trigger queued event update
|
||||||
|
if nameplate.eventcache then
|
||||||
|
nameplates:OnDataChanged(nameplate)
|
||||||
|
nameplate.eventcache = nil
|
||||||
|
end
|
||||||
|
|
||||||
-- cache target value
|
-- cache target value
|
||||||
nameplate.istarget = target
|
nameplate.istarget = target
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user