Thread Tools Display Modes
03-26-10, 04:26 PM   #1
Omaro
A Kobold Labourer
AddOn Author - Click to view addons
Join Date: Jul 2009
Posts: 1
Own Debuffs highlighted

Well, Is there any option to get my own debuffs shown bigger than the others?

Or get them framed in red or something?
  Reply With Quote
03-26-10, 04:54 PM   #2
yj589794
A Rage Talon Dragon Guard
AddOn Author - Click to view addons
Join Date: Mar 2009
Posts: 314
look at oUF_P3lim, this layout has your debuffs shown in colour and everyone elses in greyscale(ish).

It would not be difficult to modify the same method to your needs
  Reply With Quote
03-26-10, 05:50 PM   #3
ravagernl
Proceritate Corporis
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 1,176
Look at PostUpdateAuraIcon and PostCreateAuraIcon in oUF_Ruben to see how I hide cooldowns for auras cast by other people/units (except for my own buffs and debuffs offcourse).
  Reply With Quote
03-26-10, 06:25 PM   #4
p3lim
A Pyroguard Emberseer
 
p3lim's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2007
Posts: 1,710
Originally Posted by yj589794 View Post
look at oUF_P3lim, this layout has your debuffs shown in colour and everyone elses in greyscale(ish).

It would not be difficult to modify the same method to your needs
I desaturate other people's debuffs
  Reply With Quote
03-27-10, 01:02 PM   #5
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2008
Posts: 1,740
Originally Posted by mrruben5 View Post
Look at PostUpdateAuraIcon and PostCreateAuraIcon in oUF_Ruben to see how I hide cooldowns for auras cast by other people/units (except for my own buffs and debuffs offcourse).
Looking good. This could be used to resize the buttons aswell.

Btw can buffs/debuffs be sorted in a way that makes the player buffs/debuffs come in first place?
__________________
| Simple is beautiful.
| WoWI AddOns | GitHub | Zork (WoW)

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)
  Reply With Quote
03-27-10, 03:50 PM   #6
ravagernl
Proceritate Corporis
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 1,176
Originally Posted by zork View Post
Looking good. This could be used to resize the buttons aswell.

Btw can buffs/debuffs be sorted in a way that makes the player buffs/debuffs come in first place?
I believe Dawn has asked that question before as well, going to look it up.

EDIT: Couldn't find a good answer, so would like to know about this as well

Last edited by ravagernl : 03-27-10 at 04:11 PM.
  Reply With Quote
03-28-10, 01:20 PM   #7
Dawn
A Molten Giant
 
Dawn's Avatar
AddOn Author - Click to view addons
Join Date: May 2006
Posts: 918
Sorting sucks.

On a more serious note, it gets really complicated when you already have other aura stuff going on (your own aura duration function and the like). At least it does, when you suck at lua, like me.
__________________
Rock: "We're sub-standard DPS. Nerf Paper, Scissors are fine."
Paper: "OMG, WTF, Scissors!"
Scissors: "Rock is OP and Paper are QQers. We need PvP buffs."

"neeh the game wont be remembered as the game who made blizz the most money, it will be remembered as the game who had the most QQ'ers that just couldnt quit the game for some reason..."

  Reply With Quote
05-17-10, 11:22 PM   #8
Seajewel
A Kobold Labourer
Join Date: Mar 2008
Posts: 1
Any ideas for resizing your own auras? I am using Dawn's beautiful ouf_viv layout, but I have a lot of trouble keeping track of my own debuffs and buffs on target. When I used to use my own pitbull layout I had my own buffs and debuffs on the target frame a lot bigger, which I like better than color/greyscale for quickly locating my buffs/debuffs. Sorting would also be wonderful, but I'd settle for making my own auras larger in size, but I'm pretty much a total .lua noob and muddling my way through customizing the frames already available as best as I can. I understand that I'm supposed to use the postupdateauraicon part in OUF_Ruben, but not really sure how to edit it for my needs.
  Reply With Quote
05-18-10, 06:35 AM   #9
Dawn
A Molten Giant
 
Dawn's Avatar
AddOn Author - Click to view addons
Join Date: May 2006
Posts: 918
If you don't care for other peoples stuff on your target and focus frame, you can set "FilterDebuffs = false," to "true" (config.lua).
__________________
Rock: "We're sub-standard DPS. Nerf Paper, Scissors are fine."
Paper: "OMG, WTF, Scissors!"
Scissors: "Rock is OP and Paper are QQers. We need PvP buffs."

"neeh the game wont be remembered as the game who made blizz the most money, it will be remembered as the game who had the most QQ'ers that just couldnt quit the game for some reason..."

  Reply With Quote
05-18-10, 08:33 AM   #10
v6o
An Onyxian Warder
AddOn Author - Click to view addons
Join Date: Mar 2009
Posts: 399
I'm pretty sure unless you actually use custom aura sorting, your buffs or debuffs will always appear first.


Now back on topic. Omaro.

As rewriting any code takes a bit time and that's one thing I'm running out of for today I won't provide any code. At least not for today.

If oUF_viv uses an function to update the aura to make it saturated (grayscale) then it should be pretty easy to color the borders red and disable the whole saturation thing magig which you don't like.

As for resizing buffs it means you'll need to rewrite the positioning system. While not hard it I don't have the time to do it for you... at least not at the moment.
Believe it or not I used to have it this way a short while back in WoW 2.x but I scraped it because it just looked bad with gaps between the smallers buffs and the next row.


I might have time to provide an working example tomorrow or the day after that. Work calls I am afraid.
__________________
I stopped playing back World of Warcraft in 2010 and I have no plans on returning.
This is a dead account and if you want to continue any of my addons or make a fork then feel free to do so.
This is your permission slip.

If you need to contact me, do so on Twitter @v6ooo

Best regards, v6.
  Reply With Quote
05-18-10, 08:59 AM   #11
Dawn
A Molten Giant
 
Dawn's Avatar
AddOn Author - Click to view addons
Join Date: May 2006
Posts: 918
That would be very nice v6o, having your own debuffs enlarged is a very common request. Guess we have to thank Xperl for this.
__________________
Rock: "We're sub-standard DPS. Nerf Paper, Scissors are fine."
Paper: "OMG, WTF, Scissors!"
Scissors: "Rock is OP and Paper are QQers. We need PvP buffs."

"neeh the game wont be remembered as the game who made blizz the most money, it will be remembered as the game who had the most QQ'ers that just couldnt quit the game for some reason..."

  Reply With Quote
05-18-10, 11:24 AM   #12
v6o
An Onyxian Warder
AddOn Author - Click to view addons
Join Date: Mar 2009
Posts: 399
Originally Posted by Dawn View Post
Guess we have to thank Xperl for this.
Or the default UI
__________________
I stopped playing back World of Warcraft in 2010 and I have no plans on returning.
This is a dead account and if you want to continue any of my addons or make a fork then feel free to do so.
This is your permission slip.

If you need to contact me, do so on Twitter @v6ooo

Best regards, v6.
  Reply With Quote
05-18-10, 09:22 PM   #13
Dawn
A Molten Giant
 
Dawn's Avatar
AddOn Author - Click to view addons
Join Date: May 2006
Posts: 918
Originally Posted by v6o View Post
Or the default UI
How does it look again?!?
__________________
Rock: "We're sub-standard DPS. Nerf Paper, Scissors are fine."
Paper: "OMG, WTF, Scissors!"
Scissors: "Rock is OP and Paper are QQers. We need PvP buffs."

"neeh the game wont be remembered as the game who made blizz the most money, it will be remembered as the game who had the most QQ'ers that just couldnt quit the game for some reason..."

  Reply With Quote
05-23-10, 08:36 AM   #14
v6o
An Onyxian Warder
AddOn Author - Click to view addons
Join Date: Mar 2009
Posts: 399
Edit: Oh if you're wondering why my borders don't change size and stay crisp it is because I made them to use Backdrops way back because i could get the borders even crisper. Also the reason why I have showDebuffType set to false.

Edit2: If you use an aura filter (CustomAuraFilter) then you will most likely need to change button.owner to just caster or make appropriate changes.

My brain hurts now but the only spare time I had was during a hangover so.... enjoy. I hope it works.



My settings are as such

Code:
        local auras = CreateFrame("Frame", nil, self)
        auras.showDebuffType = false
        auras.gap = 1
        auras.numBuffs = 40
        auras.numDebuffs = 40
        auras.size = 26
        auras:SetHeight( 26 )
        auras:SetWidth(220)
        auras.spacing = 2
        auras.initialAnchor = "BOTTOMLEFT"
        auras["growth-x"] = "RIGHT"
        auras["growth-y"] = "UP"
        auras:SetPoint("BOTTOMLEFT", self, "TOPLEFT", -1, 10)
        self.Auras = auras
        self.SetAuraPosition = SetAuraPosition
Code:
<snip>
look below for updated code
__________________
I stopped playing back World of Warcraft in 2010 and I have no plans on returning.
This is a dead account and if you want to continue any of my addons or make a fork then feel free to do so.
This is your permission slip.

If you need to contact me, do so on Twitter @v6ooo

Best regards, v6.

Last edited by v6o : 05-23-10 at 03:19 PM.
  Reply With Quote
05-23-10, 11:14 AM   #15
Dawn
A Molten Giant
 
Dawn's Avatar
AddOn Author - Click to view addons
Join Date: May 2006
Posts: 918
That works like a charm, thanks.
__________________
Rock: "We're sub-standard DPS. Nerf Paper, Scissors are fine."
Paper: "OMG, WTF, Scissors!"
Scissors: "Rock is OP and Paper are QQers. We need PvP buffs."

"neeh the game wont be remembered as the game who made blizz the most money, it will be remembered as the game who had the most QQ'ers that just couldnt quit the game for some reason..."

  Reply With Quote
05-23-10, 03:05 PM   #16
v6o
An Onyxian Warder
AddOn Author - Click to view addons
Join Date: Mar 2009
Posts: 399
Enforced gap (new line) on Auras because it just got messy...

If anyone wants to take a whack at this and code it more efficiently or something, please do so because my head still hurts

Code:
local SetAuraPosition = function(self, icons, x)
    if(icons and x > 0) then

        local col = 0
        local row = 0
        local spacing = icons.spacing or 0
        local gap = 1
        local size = (icons.size or 16) + spacing
        local anchor = icons.initialAnchor or "BOTTOMLEFT"
        local growthx = (icons["growth-x"] == "LEFT" and -1) or 1
        local growthy = (icons["growth-y"] == "DOWN" and -1) or 1
        local cols = math.floor(icons:GetWidth() / size + .5)
        local rows = math.floor(icons:GetHeight() / size + .5)
    
        local sizemult = 1.5
        local big = 0
        local bigsize = ceil((icons.size or 16) * sizemult)
        local bigcols = math.floor( icons:GetWidth() / (bigsize + spacing) + .5)
        local anchorframe, point1, point2, grow, grow_new, space_x, space_y
        
        if growthx == 1 then
            if growthy == -1 then
                point1 = "TOPLEFT"
                grow = "TOPRIGHT"
                grow_new = "BOTTOMLEFT"
            else
                point1 = "BOTTOMLEFT"
                grow = "BOTTOMRIGHT"
                grow_new = "TOPLEFT"
            end
        else
            if growthy == -1 then
                point1 = "BOTTOMRIGHT"
                grow = "BOTTOMLEFT"
                grow_new = "TOPRIGHT"
            else
                point1 = "TOPRIGHT"
                grow = "TOPLEFT"
                grow_new = "BOTTOMRIGHT"
            end
        end

        for i = 1, x do
            local button = icons[i]
            if button and button:IsShown() then
                if gap and button.debuff then
                    anchorframe = icons[(i-col)]
                    point2 = grow_new
                    col = 0
                    row = row + 1
                    big=0
                    gap = false
                elseif (ceil((big*sizemult)+(col-big)) >= cols) or (col >= cols) then
                    anchorframe = icons[(i-col)]
                    point2 = grow_new
                    col = 0
                    row = row + 1
                    big=0
                else
                    anchorframe = icons[(i-1)]
                    point2 = grow
                end

                button:ClearAllPoints()
                if i==1 then
                    button:SetPoint(anchor, icons, anchor, 0, 0)
                else
                    space_x = (col>0) and (spacing * growthx) or 0
                    space_y = (row>0 and col==0) and (spacing * growthy)  or 0
                    button:SetPoint(point1, anchorframe, point2, space_x, space_y)
                end

                if button.owner=="player" or button.owner=="pet" or button.owner=="vehicle" then
                    big=big+1
                    button:SetWidth(bigsize)
                    button:SetHeight(bigsize)
                else
                    button:SetWidth(icons.size)
                    button:SetHeight(icons.size)
                end
                col = col + 1

            elseif not button then
                break
            end
        end
    end
end
__________________
I stopped playing back World of Warcraft in 2010 and I have no plans on returning.
This is a dead account and if you want to continue any of my addons or make a fork then feel free to do so.
This is your permission slip.

If you need to contact me, do so on Twitter @v6ooo

Best regards, v6.

Last edited by v6o : 05-26-10 at 11:36 AM.
  Reply With Quote
05-26-10, 11:35 AM   #17
v6o
An Onyxian Warder
AddOn Author - Click to view addons
Join Date: Mar 2009
Posts: 399
Just wanted to point out it should really be

button.owner=="player" or button.owner=="pet" or button.owner=="vehicle"

It's something I've changed afterwards...
__________________
I stopped playing back World of Warcraft in 2010 and I have no plans on returning.
This is a dead account and if you want to continue any of my addons or make a fork then feel free to do so.
This is your permission slip.

If you need to contact me, do so on Twitter @v6ooo

Best regards, v6.
  Reply With Quote

WoWInterface » Featured Projects » oUF (Otravi Unit Frames) » Own Debuffs highlighted


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