init
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
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
|
||||
Reference in New Issue
Block a user