mirror of
https://github.com/Bluewhale1337/ElvUIModernized.git
synced 2026-07-27 16:34:45 +00:00
28 lines
762 B
Lua
28 lines
762 B
Lua
local E, L, V, P, G = unpack(ElvUI)
|
|
local mod = E:GetModule("NamePlates")
|
|
|
|
function mod:UpdateElement_HealerIcon(frame)
|
|
local icon = frame.HealerIcon
|
|
icon:ClearAllPoints()
|
|
if frame.HealthBar:IsShown() then
|
|
icon:SetPoint("RIGHT", frame.HealthBar, "LEFT", -6, 0)
|
|
else
|
|
icon:SetPoint("BOTTOM", frame.Name, "TOP", 0, 3)
|
|
end
|
|
if self.Healers[frame.UnitName] and frame.UnitType == "ENEMY_PLAYER" then
|
|
icon:Show()
|
|
else
|
|
icon:Hide()
|
|
end
|
|
end
|
|
|
|
function mod:ConstructElement_HealerIcon(frame)
|
|
local texture = frame:CreateTexture(nil, "OVERLAY")
|
|
texture:SetPoint("RIGHT", frame.HealthBar, "LEFT", -6, 0)
|
|
texture:SetWidth(40)
|
|
texture:SetHeight(40)
|
|
texture:SetTexture([[Interface\AddOns\ElvUI\media\textures\healer.tga]])
|
|
texture:Hide()
|
|
|
|
return texture
|
|
end |