frame:SetAttribute('type2', 'menu') |
frame:SetAttribute('initial-width', health_width + padding * 2) |
frame:SetAttribute('initial-height', health_height + power_height + padding * 2 + padding) |
frame.Range = true |
frame.inRangeAlpha = 1 |
frame.outsideRangeAlpha = 0.5 |
frame.DebuffHighlightBackdrop = true |
|
background:SetAllPoints(frame) |
background:SetTexture(0, 0, 0, 1) |
|
frame:Tag(health.info, '[difficulty][smartlevel]|r [raidcolor][name]|r') |
|
-- out of range fading |
if unit and unit:match('party') or unit:match('raid') then |
frame.Range = true |
frame.inRangeAlpha = 1 |
frame.outsideRangeAlpha = 0.5 |
end |
|
-- oUF_Smooth |
health.Smooth = true |
power.Smooth = true |
|
-- oUF_DebuffHighlight |
frame.DebuffHighlightBackdrop = true |
|
frame.Health = health |
frame.OverrideUpdateHealth = update_health |
frame.Power = power |