Go to most recent revision | Show entire file | Details | Blame | View Log
Rev 32 | Rev 33 |
---|---|
Line 182... | Line 182... |
castbar:SetPoint(BR, power, BR)]] |
castbar:SetPoint(BR, power, BR)]] |
castbar:SetAllPoints(power) |
castbar:SetAllPoints(power) |
castbar:SetToplevel(true) |
castbar:SetToplevel(true) |
castbar:SetStatusBarTexture(health_texture) |
castbar:SetStatusBarTexture(health_texture) |
--castbar:SetStatusBarColor(128/255, 255/255, 0, 0.5) |
--castbar:SetStatusBarColor(128/255, 255/255, 0, 0.5) |
castbar:SetStatusBarColor(1, 0, 0) |
castbar:SetStatusBarColor(0.25, 0.5, 1) |
-- buffs |
-- buffs |
local h = health_height + spacing + power_height |
local size = 16 |
local s = h / 2 |
local height = health_height + spacing + power_height |
local n = math.ceil(health_width / 2 / s) * 2 |
local width = health_width / 2 |
local w = n / 2 * s |
local number = math.floor(width / size) * 2 -- times two for two lines vertically |
buffs:SetPoint(TR, frame, TL, -padding / 2, -padding) |
buffs:SetPoint(TR, frame, TL, -padding / 2, -padding) |
buffs:SetWidth(w) |
buffs:SetWidth(width) |
buffs:SetHeight(h) |
buffs:SetHeight(height) |
buffs.size = s |
buffs.size = size |
buffs.num = n |
buffs.num = number |
buffs.initialAnchor = TR |
buffs.initialAnchor = TR |
buffs['growth-x'] = ML |
buffs['growth-x'] = 'LEFT' |
buffs['growth-y'] = BC |
buffs['growth-y'] = 'DOWN' |
debuffs:SetPoint(ML, frame, MR, padding / 2, -padding) |
debuffs:SetPoint(ML, frame, MR, padding / 2, -padding) |
debuffs:SetWidth(w) |
debuffs:SetWidth(width) |
debuffs:SetHeight(h) |
debuffs:SetHeight(height) |
debuffs.size = s |
debuffs.size = size |
debuffs.num = n |
debuffs.num = number |
debuffs.initialAnchor = TL |
debuffs.initialAnchor = TL |
debuffs['growth-x'] = MR |
debuffs['growth-x'] = 'LEFT' |
debuffs['growth-y'] = BC |
debuffs['growth-y'] = 'DOWN' |
-- rlicon icon |
-- rlicon icon |
rlicon:SetPoint(MC, frame, TL) |
rlicon:SetPoint(MC, frame, TL) |
rlicon:SetWidth(16) |
rlicon:SetWidth(16) |
rlicon:SetHeight(16) |
rlicon:SetHeight(16) |
Line 272... | Line 272... |
frame.inRangeAlpha = 1 |
frame.inRangeAlpha = 1 |
frame.outsideRangeAlpha = 0.5 |
frame.outsideRangeAlpha = 0.5 |
local buffs = frame.Buffs |
local buffs = frame.Buffs |
local w = bar_width |
local size = 16 |
local h = buffs.size |
local width = power_width |
local n = math.floor(w / h) |
local height = size |
local number = math.floor(width / size) |
|
buffs:SetPoint(TC, frame, BC, 0, -padding / 2) |
buffs:SetPoint(TC, frame, BC, 0, -padding / 2) |
buffs:SetWidth(w) |
buffs:SetWidth(width) |
buffs:SetHeight(h) |
buffs:SetHeight(height) |
buffs.num = n |
buffs.size = size |
buffs.num = number |
|
buffs.initialAnchor = TL |
buffs.initialAnchor = TL |
buffs['growth-x'] = MR |
buffs['growth-x'] = MR |
buffs['growth-y'] = BC |
buffs['growth-y'] = BC |
end |
end |