/trunk
local raidcolors = _G.RAID_CLASS_COLORS |
local innerpadding = 1 |
local innerpadding = 5 |
local elementpadding = 1 |
local outerpadding = 1 |
local outerpadding = 5 |
--local buffsize = (healthheight + powerheight + innerpadding*2 + elementpadding)/2 |
local buffsize = healthheight |
end |
function createNormalFrame (settings, self, unit) |
local bg = self:CreateTexture(nil, 'OVERLAY') |
local health = CreateFrame('StatusBar', nil, self) |
local power = CreateFrame('StatusBar', nil, self) |
local buffs = CreateFrame('Frame', nil, self) |
health:SetStatusBarColor(0.75, 0.75, 0.75) |
health.info:SetPoint(ML, health, ML, textinset, 0) |
--health.info:SetWidth(healthwidth/2 - textinset) |
health.info:SetJustifyH('LEFT') |
health.info:SetFont(textfont, 10) |
health.info:SetTextColor(unpack(textcolor)) |
power:SetStatusBarTexture(powertexture) |
power.info:SetPoint(ML, power, ML, textinset, 0) |
--power.info:SetWidth(powerwidth/2 - textinset) |
power.info:SetJustifyH('LEFT') |
power.info:SetFont(textfont, 10) |
power.info:SetTextColor(unpack(textcolor)) |
self:RegisterForClicks('anyup') |
self:SetAttribute('type2', 'menu') |
self:SetBackdrop(framebackdrop) |
self:SetBackdropColor(0, 0, 0, 1) |
bg:SetAllPoints(self) |
bg:SetTexture(0, 0, 0, 1) |
self:RegisterEvent('UNIT_LEVEL') |
self:RegisterEvent('UNIT_NAME') |
local targettarget = oUF:Spawn('targettarget', framename..'targettarget') |
local party = oUF:Spawn('header', 'oUF_Industrial_party') |
pet:SetPoint(MC, UIParent, MC, 0, 0) |
pet:SetPoint(MC, UIParent, MC, 0, -350) |
player:SetPoint(BC, pet, TC, 0, outerpadding) |
target:SetPoint(BC, player, TC, 0, outerpadding) |
targettarget:SetPoint(BC, target, TC, 0, outerpadding) |