WoWInterface SVN oUF_Ruben

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /
    from Rev 35 to Rev 36
    Reverse comparison

Rev 35 → Rev 36

trunk/oUF_Ruben/oUF_Ruben.lua
175,33 → 175,38
 
local PostUpdateAuraIcon
do
local castby = {
local myunits = {
player = true,
vehicle = true,
pet = true
}
function PostUpdateAuraIcon(self, icons, unit, button, index)
if (castby[button.owner] or unit=='player') and not(expirationTime == 0 and duration == 0) then
button.cd:Show()
else
button.cd:Hide()
end
local name, _, _, count, dtype, duration, exptime = UnitAura(unit, index, button.filter)
 
local name, _, _, _, dtype, duration, expirationTime = UnitAura(unit, index, button.filter)
 
if button.debuff then
--button.icon:SetDesaturated(not (castby[button.owner] or unit == 'player' or unit=='pet' or unit=='vehicle'))
-- stacks coloring
local r, g, b = unpack(combo_colors[5 - count] or {1, 1, 1})
button.count:SetVertexColor(r, g, b)
 
 
if button.debuff and icons.showDebuffType
or icons.showBuffType and dtype
then
button.icon:SetPoint('TOPLEFT', 2, -2)
button.icon:SetPoint('BOTTOMRIGHT', -2, 2)
else
button.icon:SetAllPoints()
--button.icon:SetDesaturated(false)
end
 
if myunits[unit] then return end -- don't hide cooldown for player units at all
if not (duration == 0 and exptime == 0) and myunits[button.owner] then -- if aura with a duration and it is cast by me or pet or vehicle
button.cd:Show()
else
button.cd:Hide()
end
end
end
 
local function PostCreateAuraIcon(self, button, icons)
icons.showDebuffType = true
local function PostCreateAuraIcon(self, button, icons)
 
if button.owner ~= 'player' and not button.debuff then
button.cd:SetReverse()
223,6 → 228,10
 
button.overlay:SetTexture(1,1,1)
button.overlay:SetDrawLayer('BORDER')
 
button.count:SetFontObject(font)
button.count:ClearAllPoints()
button.count:SetPoint('TOPLEFT', button.icon, 2, 0)
end
 
local function PostCreateAuraBar(bar)
643,7 → 652,8
auras.initialAnchor = "TOPLEFT"
auras["growth-x"] = "RIGHT"
auras["growth-y"] = "DOWN"
 
 
auras.showDebuffType = true
auras.spacing = 4.75
auras.size = targetaurasize
auras.gap = true
669,7 → 679,8
buffs.initialAnchor = "TOPLEFT"
buffs["growth-x"] = "RIGHT"
buffs["growth-y"] = "DOWN"
 
 
buffs.showBuffType = true
buffs.spacing = 12
buffs.size = 32
 
685,7 → 696,8
debuffs.initialAnchor = "TOPLEFT"
debuffs["growth-x"] = "RIGHT"
debuffs["growth-y"] = "DOWN"
 
 
debuffs.showDebuffType = true
debuffs.spacing = 4.75
debuffs.size = targetaurasize
 
908,20 → 920,20
--f:SetBackdrop(backdrop)
--f:SetBackdropColor(1,0,0,.40)
 
local player = oUF:Spawn"player"
local player = oUF:Spawn("player",'oUF_Ruben_player')
player:SetPoint('BOTTOMLEFT', f)
 
local target = oUF:Spawn"target"
local target = oUF:Spawn("target",'oUF_Ruben_target')
target:SetPoint("LEFT", player, 'RIGHT', 110, 0)
 
local targettarget = oUF:Spawn"targettarget"
local targettarget = oUF:Spawn("targettarget",'oUF_Ruben_targettarget')
targettarget:SetPoint('TOPLEFT', target, 'TOPRIGHT', 10, 3)
 
local pet = oUF:Spawn"pet"
local pet = oUF:Spawn("pet",'oUF_Ruben_pet')
pet:SetPoint('RIGHT', player, 'LEFT', -12, 0)
 
local focus = oUF:Spawn"focus"
local focus = oUF:Spawn("focus",'oUF_Ruben_focus')
focus:SetPoint('TOPLEFT', targettarget, 'TOPRIGHT', 12, -3)
 
local focustarget = oUF:Spawn"focustarget"
local focustarget = oUF:Spawn("focustarget",'oUF_Ruben_focustarget')
focustarget:SetPoint('TOP', focus, 'BOTTOM', 0, -8)
\ No newline at end of file