end |
|
oUF.Tags['[colorinfo]'] = function(unit) |
if(UnitIsTapped(unit) and not UnitIsTappedByPlayer(unit)) then |
local c = colors.tapped |
local c = (UnitIsTapped(unit) and not UnitIsTappedByPlayer(unit)) and colors.tapped or |
(not UnitIsConnected(unit)) and colors.disconnected or |
(not UnitIsPlayer(unit)) and colors.reaction[UnitReaction(unit, 'player')] |
|
if(c) then |
return string_format('|cff%02x%02x%02x', c[1] * 255, c[2] * 255, c[3] * 255) |
elseif(not UnitIsConnected(unit)) then |
local c = colors.disconnected |
return string_format('|cff%02x%02x%02x', c[1] * 255, c[2] * 255, c[3] * 255) |
elseif(not UnitIsPlayer(unit)) then |
local r, g, b = UnitSelectionColor(unit) |
return string_format('|cff%02x%02x%02x', r * 255, g * 255, b * 255) |
else |
return '|cffffffff' |
end |
end |
|
oUF.TagEvents['[colorinfo]'] = 'UNIT_REACTION' |
|
local function UpdateMasterLooter(self) |
self.MasterLooter:ClearAllPoints() |
if((UnitInParty(self.unit) or UnitInRaid(self.unit)) and UnitIsPartyLeader(self.unit)) then |