Files
coa-elvui/ElvUI/Modules/Nameplates/Elements/RaidIcon.lua
T
Andrew6810 60ef8a38af init
2022-10-21 07:09:01 -07:00

19 lines
554 B
Lua

local E, L, V, P, G = unpack(select(2, ...)); --Import: Engine, Locales, PrivateDB, ProfileDB, GlobalDB
local NP = E:GetModule("NamePlates")
--Lua functions
--WoW API / Variables
function NP:Update_RaidIcon(frame)
local db = self.db.units[frame.UnitType].raidTargetIndicator
local icon = frame.RaidIcon
icon:SetSize(db.size, db.size)
icon:ClearAllPoints()
if frame.Health:IsShown() then
icon:SetPoint(E.InversePoints[db.position], frame.Health, db.position, db.xOffset, db.yOffset)
else
icon:SetPoint("BOTTOM", frame, "TOP", 0, 15)
end
end