Hey, thanks for your reply.
I'm currently working on an Element for an oUF layout I've been playing with, this is the current code for the element
Code:
local _, ns = ...
local oUF = ns.oUF or oUF
assert(oUF, 'oUF_AuraBars was unable to locate oUF install.')
--[[
AuraBars.
]]--
local function Update(self, event, unit)
DEFAULT_CHAT_FRAME:AddMessage("AuraUpdate")
end
local function Enable(self)
local auraFrame = self.AuraBars
if(auraFrame) then
DEFAULT_CHAT_FRAME:AddMessage("AuraEnable "..self.unit)
self:RegisterEvent("UNIT_AURA", Update)
self:RegisterEvent("PLAYER_TARGET_CHANGED", Update)
end
end
local function Disable(self)
DEFAULT_CHAT_FRAME:AddMessage("AuraDisable")
local auraFrame = self.AuraBars
if(auraFrame) then
self:UnregisterEvent("UNIT_AURA", Update)
end
end
oUF:AddElement("AuraBars", Update, Enable, Disable)
I've activated this element on my target frame, and correctly see "AuraEnable target" when the UI loads. However I only see the the "AuraUpdate" message outtput when either and aura is gained or lost by the target or the two *'ed examples in my previous post.
I'll have a look at the "/eventtrace" command, and see what I can see from that end.
Cheers