/
local bar_texture = [[Interface\AddOns\oUF_Industrial\media\textures\statusbar]] |
local health_width = bar_width |
local health_height = 30 |
local health_height = 25 |
local health_texture = bar_texture |
local power_width = bar_width |
local power_height = 2 |
local power_height = 5 |
local power_texture = bar_texture |
local buff_size = (padding * 2 + spacing + health_height + power_height) / 2 |
local buff_size = (health_height + spacing + power_height) / 2 |
local text_inset = 3 |
local text_font = _G.GameFontNormal:GetFont() |
health.value:SetShadowOffset(1, -1) |
-- powerbar |
power:SetPoint(TL, health, BL, 0, -padding) |
power:SetPoint(TL, health, BL, 0, -spacing) |
power:SetWidth(power_width) |
power:SetHeight(power_height) |
power:SetStatusBarTexture(power_texture) |
power.value:SetShadowOffset(1, -1) |
-- buffs |
buffs:SetPoint(MR, frame, ML, -padding, 0) |
buffs:SetPoint(TR, frame, TL, -padding / 2, -padding) |
buffs:SetWidth(bar_width) |
buffs:SetHeight(buff_size) |
buffs.size = buff_size |
buffs.num = math.floor(bar_width / buffs.size + 0.5) |
buffs.initialAnchor = BR |
buffs.num = math.floor(bar_width / 2 / buffs.size + 0.5) |
buffs.initialAnchor = TR |
buffs['growth-x'] = ML |
buffs['growth-y'] = TC |
buffs['growth-y'] = BC |
debuffs:SetPoint(ML, frame, MR, padding, 0) |
debuffs:SetPoint(ML, frame, MR, padding / 2, -padding) |
debuffs:SetWidth(bar_width) |
debuffs:SetHeight(buff_size) |
debuffs.size = buff_size |
debuffs.num = math.floor(bar_width / debuffs.size + 0.5) |
debuffs.initialAnchor = BL |
debuffs.num = math.floor(bar_width / 2 / debuffs.size + 0.5) |
debuffs.initialAnchor = TL |
debuffs['growth-x'] = MR |
debuffs['growth-y'] = TC |
debuffs['growth-y'] = BC |
-- leader icon |
leader:SetWidth(16) |
frame:RegisterForClicks('anyup') |
frame:SetAttribute('type2', 'menu') |
frame:SetAttribute('initial-width', health_width + padding * 2) |
frame:SetAttribute('initial-height', health_height + power_height + padding * 2 + padding) |
frame:SetAttribute('initial-height', health_height + power_height + padding * 2 + spacing) |
background:SetAllPoints(frame) |
background:SetTexture(0, 0, 0, 1) |