You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
935 B
30 lines
935 B
local E, L, V, P, G = unpack(select(2, ...)) --Import: Engine, Locales, PrivateDB, ProfileDB, GlobalDB
|
|
local UF = E:GetModule('UnitFrames')
|
|
|
|
function UF:Construct_RaidIcon(frame)
|
|
local tex = frame.RaisedElementParent.TextureParent:CreateTexture(nil, 'OVERLAY')
|
|
tex:SetTexture([[Interface\TargetingFrame\UI-RaidTargetingIcons]])
|
|
tex:Size(18)
|
|
tex:Point('CENTER', frame.Health, 'TOP', 0, 2)
|
|
tex.SetTexture = E.noop
|
|
|
|
return tex
|
|
end
|
|
|
|
function UF:Configure_RaidIcon(frame)
|
|
local RI = frame.RaidTargetIndicator
|
|
local db = frame.db
|
|
|
|
if db.raidicon.enable then
|
|
frame:EnableElement('RaidTargetIndicator')
|
|
RI:Show()
|
|
RI:Size(db.raidicon.size)
|
|
|
|
local attachPoint = self:GetObjectAnchorPoint(frame, db.raidicon.attachToObject)
|
|
RI:ClearAllPoints()
|
|
RI:Point(db.raidicon.attachTo, attachPoint, db.raidicon.attachTo, db.raidicon.xOffset, db.raidicon.yOffset)
|
|
else
|
|
frame:DisableElement('RaidTargetIndicator')
|
|
RI:Hide()
|
|
end
|
|
end
|
|
|