WoWInterface SVN oUF_Industrial

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /
    from Rev 32 to Rev 33
    Reverse comparison

Rev 32 → Rev 33

trunk/Addon.lua
184,30 → 184,30
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)
274,14 → 274,15
 
local buffs = frame.Buffs
 
local w = bar_width
local h = buffs.size
local n = math.floor(w / h)
 
local size = 16
local width = power_width
local height = size
local number = math.floor(width / size)
buffs:SetPoint(TC, frame, BC, 0, -padding / 2)
buffs:SetWidth(w)
buffs:SetHeight(h)
buffs.num = n
buffs:SetWidth(width)
buffs:SetHeight(height)
buffs.size = size
buffs.num = number
buffs.initialAnchor = TL
buffs['growth-x'] = MR
buffs['growth-y'] = BC