Thread Tools Display Modes
Prev Previous Post   Next Post Next
03-04-18, 03:05 PM   #4
aallkkaa
A Warpwood Thunder Caller
 
aallkkaa's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2017
Posts: 98
It's been years since I worked on a oUF layout, but in this case, I guess it would be as simple as this:
Code:
local oldTarget
local OnSpawnNamePlates = function(self, event, unit)
    if (UnitExists('target') and UnitIsUnit('target', unit)) then
        if oldTarget then
                oldTarget:SetBackdropColor(0, 0, 0, 1)
        end
        self:SetBackdropColor(1, 1, 1, 1)
        oldTarget = self
    else
        self:SetBackdropColor(0, 0, 0, 1)
    end
end

oUF:SpawnNamePlates("mnkNames", OnSpawnNamePlates, cvars)
  Reply With Quote
 

WoWInterface » Featured Projects » oUF (Otravi Unit Frames) » Highlight Targeted unit


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off