/
local frame_name = 'oUF_Industrial_' |
local padding = 3 |
local spacing = 1 |
local padding = 5 |
local spacing = 5 |
local margin = 1 |
local translucency = 0.5 |
local bar_width = 300 - padding * 2 |
local bar_texture = [[Interface\AddOns\oUF_Industrial\media\textures\statusbar]] |
health:SetWidth(health_width) |
health:SetHeight(health_height) |
health:SetStatusBarTexture(health_texture) |
health:SetStatusBarColor(0.25, 0.25, 0.25) |
health:SetStatusBarColor(0.25, 0.25, 0.25, translucency + translucency/2) |
health.info:SetPoint(ML, health, ML, text_inset, 0) |
health.info:SetJustifyH('LEFT') |
power:SetWidth(power_width) |
power:SetHeight(power_height) |
power:SetStatusBarTexture(power_texture) |
power:SetStatusBarColor(128/255, 255/255, 0) |
power:SetStatusBarColor(128/255, 255/255, 0, translucency + translucency/2) |
power.info:SetPoint(ML, power, ML, text_inset, 0) |
power.info:SetJustifyH('LEFT') |
debuffs.size = size |
debuffs.num = number |
debuffs.initialAnchor = TL |
debuffs['growth-x'] = 'LEFT' |
debuffs['growth-x'] = 'RIGHT' |
debuffs['growth-y'] = 'DOWN' |
-- rlicon icon |
frame:SetAttribute('initial-height', health_height + power_height + padding * 2 + spacing) |
background:SetAllPoints(frame) |
background:SetTexture(0, 0, 0, 1) |
background:SetTexture(0, 0, 0, translucency) |
frame.Health = health |
frame.PostUpdateHealth = update_health |
local width = power_width |
local height = size |
local number = math.floor(width / size) |
buffs:SetPoint(TC, frame, BC, 0, -padding / 2) |
buffs:SetPoint(TL, frame, BL, 0, -padding / 2) |
buffs:SetWidth(width) |
buffs:SetHeight(height) |
buffs.size = size |
buffs.num = number |
buffs.initialAnchor = TL |
buffs['growth-x'] = MR |
buffs['growth-y'] = BC |
buffs['growth-x'] = 'RIGHT' |
buffs['growth-y'] = 'BOTTOM' |
end |
function target_onupdate (frame) |
targettarget:SetPoint(BC, target, TC, 0, margin) |
party1:SetPoint(ML, UIParent, ML) |
party2:SetPoint(TC, party1, BC, 0, -20) |
party3:SetPoint(TC, party2, BC, 0, -20) |
party4:SetPoint(TC, party3, BC, 0, -20) |
party2:SetPoint(TC, party1, BC, 0, -18) |
party3:SetPoint(TC, party2, BC, 0, -18) |
party4:SetPoint(TC, party3, BC, 0, -18) |