git
/
wowui.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
521041f - Remove OmaUF in favor of standard unit frames
[wowui.git]
/
kehys
/
frame.lua
diff --git
a/kehys/frame.lua
b/kehys/frame.lua
index
a723f47
..
535899c
100644
(file)
--- a/
kehys/frame.lua
+++ b/
kehys/frame.lua
@@
-6,6
+6,7
@@
local format = string.format;
local CreateFrame = CreateFrame;
local CTimerAfter = C_Timer.After;
local CreateFrame = CreateFrame;
local CTimerAfter = C_Timer.After;
+local guids = addon.FrameGuids;
local updaters = {};
local function showTooltip(frame)
GameTooltip_SetDefaultAnchor(GameTooltip, frame);
local updaters = {};
local function showTooltip(frame)
GameTooltip_SetDefaultAnchor(GameTooltip, frame);
@@
-48,6
+49,7
@@
function addon.NewRaidFrame(parent, width, height, unit, attributes,
f.displayed = unit;
f.vehicle = unit == "player" and "vehicle" or format("%spet", unit);
f.prev = {} -- values stored from previous update
f.displayed = unit;
f.vehicle = unit == "player" and "vehicle" or format("%spet", unit);
f.prev = {} -- values stored from previous update
+ f.alert = {}; -- alerting auras
-- set up periodic updates
updaters[f] = function()
if f.updating then
-- set up periodic updates
updaters[f] = function()
if f.updating then
@@
-64,6
+66,10
@@
function addon.NewRaidFrame(parent, width, height, unit, attributes,
f:SetScript("OnHide", function()
f:UnregisterAllEvents();
f.updating = false;
f:SetScript("OnHide", function()
f:UnregisterAllEvents();
f.updating = false;
+ if f.guid then
+ guids[f.guid] = nil;
+ f.guid = nil;
+ end
end);
f:SetScript("OnEvent", event);
f:SetScript("OnEnter", showTooltip);
end);
f:SetScript("OnEvent", event);
f:SetScript("OnEnter", showTooltip);