castbar:SetToplevel(true) |
castbar:SetStatusBarTexture(health_texture) |
--castbar:SetStatusBarColor(128/255, 255/255, 0, 0.5) |
castbar:SetStatusBarColor(1, 0, 0) |
castbar:SetStatusBarColor(0.25, 0.5, 1) |
|
-- buffs |
local h = health_height + spacing + power_height |
local s = h / 2 |
local n = math.ceil(health_width / 2 / s) * 2 |
local w = n / 2 * s |
local size = 16 |
local height = health_height + spacing + power_height |
local width = health_width / 2 |
local number = math.floor(width / size) * 2 -- times two for two lines vertically |
buffs:SetPoint(TR, frame, TL, -padding / 2, -padding) |
buffs:SetWidth(w) |
buffs:SetHeight(h) |
buffs.size = s |
buffs.num = n |
buffs:SetWidth(width) |
buffs:SetHeight(height) |
buffs.size = size |
buffs.num = number |
buffs.initialAnchor = TR |
buffs['growth-x'] = ML |
buffs['growth-y'] = BC |
buffs['growth-x'] = 'LEFT' |
buffs['growth-y'] = 'DOWN' |
|
debuffs:SetPoint(ML, frame, MR, padding / 2, -padding) |
debuffs:SetWidth(w) |
debuffs:SetHeight(h) |
debuffs.size = s |
debuffs.num = n |
debuffs:SetWidth(width) |
debuffs:SetHeight(height) |
debuffs.size = size |
debuffs.num = number |
debuffs.initialAnchor = TL |
debuffs['growth-x'] = MR |
debuffs['growth-y'] = BC |
debuffs['growth-x'] = 'LEFT' |
debuffs['growth-y'] = 'DOWN' |
|
-- rlicon icon |
rlicon:SetPoint(MC, frame, TL) |