Thread Tools Display Modes
10-07-09, 03:27 PM   #1
lastgamer
A Deviate Faerie Dragon
Join Date: Oct 2009
Posts: 11
Help~! debuff

How can i make the icon of which the debuffs cast by myself lager than others
Thanks a lot!

Last edited by lastgamer : 10-08-09 at 07:14 AM.
  Reply With Quote
10-09-09, 06:26 PM   #2
Krag72
A Deviate Faerie Dragon
Join Date: Sep 2008
Posts: 14
You can override PostUpdateAuraIcon (I think it is, not at my game computer right now) and check if you own the auras and resize if you do.
  Reply With Quote
10-10-09, 01:23 AM   #3
lastgamer
A Deviate Faerie Dragon
Join Date: Oct 2009
Posts: 11
Originally Posted by Krag72 View Post
You can override PostUpdateAuraIcon (I think it is, not at my game computer right now) and check if you own the auras and resize if you do.
Thanks,i will try .But im a beginner at learning lua.i always got some errors
  Reply With Quote
10-12-09, 08:58 AM   #4
lastgamer
A Deviate Faerie Dragon
Join Date: Oct 2009
Posts: 11
local PostUpdateAura = function(self, icons, unit, icon, index, offset, filter, debuff)
local _, _, _, _, _, duration, expirationTime, unitCaster, _ = UnitAura(unit, index, icon.filter)
if unitCaster == "player" or unitCaster == "pet" or unitCaster == "vehicle" then
if icon.debuff then
icon:SetScale(1.5)
icon.overlay:SetVertexColor(0.69, 0.31, 0.31)
else
icon:SetScale(1)
icon.overlay:SetVertexColor(1, 1, 1)
end
else
if UnitIsEnemy("player", unit) then
if icon.debuff then
icon.icon:SetDesaturated(true)
end
end
icon.overlay:SetVertexColor(1, 1, 1)
end
if duration and duration > 0 then
if auratimer == true then
icon.remaining:Show()
else
icon.remaining:Hide()
end
else
icon.remaining:Hide()
end
icon.duration = duration
icon.timeLeft = expirationTime
icon.first = true
icon:SetScript("OnUpdate", CreateAuraTimer)
end

Why the Debuffs cast by everyone had been magnified 1.5 times.
  Reply With Quote
10-12-09, 09:04 AM   #5
Krag72
A Deviate Faerie Dragon
Join Date: Sep 2008
Posts: 14
This is how I do it in my layout:

Code:
-- Resize player auras
local function PostUpdateAuraIcon(self, icons, unit, icon, index, offset, filter, isDebuff)
    local button = icons[index + offset]
    if button.isPlayer then
        button:SetHeight(icons.size + 4)
        button:SetWidth(icons.size + 4)
    else
        button:SetHeight(icons.size)
        button:SetWidth(icons.size)
    end
end
  Reply With Quote
10-13-09, 04:34 AM   #6
lastgamer
A Deviate Faerie Dragon
Join Date: Oct 2009
Posts: 11
hi Krag72 ,thanks very very much. Now i can enjoy the game because of your help

This is a little trouble: do i have to reset AuraPosition?
  Reply With Quote

WoWInterface » Featured Projects » oUF (Otravi Unit Frames) » Help~! debuff


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off