What would be the right events to setup tags for raidframe?
siweia opened this issue ยท 1 comments
oUF.Tags.Methods["color"] = function(unit)
local class = select(2, UnitClass(unit))
local reaction = UnitReaction(unit, "player")
if UnitIsDeadOrGhost(unit) or not UnitIsConnected(unit) then
return "|cffA0A0A0"
elseif UnitIsTapDenied(unit) then
return hexRGB(oUF.colors.tapped)
elseif UnitIsPlayer(unit) then
return hexRGB(oUF.colors.class[class])
elseif reaction then
return hexRGB(oUF.colors.reaction[reaction])
else
return hexRGB(1, 1, 1)
end
end
oUF.Tags.Events["color"] = "UNIT_HEALTH_FREQUENT UNIT_CONNECTION PLAYER_FLAGS_CHANGED"
This is the tag I have been using for years on raidframe, and it doesn't update timely If someone go offline. It happens since the unitless update.
Do I miss any tag events?
This is a question about layouts/plugins, and not an issue about oUF.
Please use the forums for such.