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.

29 lines
943 B

4 years ago
local SLE, _, E = unpack(select(2, ...))
local SUF = SLE.UnitFrames
4 years ago
function SUF:Construct_RaidFrames()
-- print('Construct_RaidFrames: ', frame:GetName())
self.SL_DeathIndicator = SUF:Construct_DeathIndicator(self)
self.SL_OfflineIndicator = SUF:Construct_OfflineIndicator(self)
4 years ago
if self.Power then
self.Power.slBarID = 'powerbar'
end
end
4 years ago
function SUF:Update_RaidFrames(frame)
if not frame then return end
3 years ago
local enableState = E.private.sle.module.shadows.enable and E.db.unitframe.units[frame.unitframeType].enable
3 years ago
local db = E.db.sle.shadows.unitframes[frame.unitframeType]
4 years ago
frame.SLLEGACY_ENHSHADOW = enableState and db.legacy or false
frame.SLHEALTH_ENHSHADOW = enableState and db.health or false
frame.SLPOWER_ENHSHADOW = enableState and db.power or false
4 years ago
SUF:Configure_Health(frame)
SUF:Configure_Power(frame)
SUF:Configure_DeathIndicator(frame)
SUF:Configure_OfflineIndicator(frame)
end