Thread Tools Display Modes
01-10-14, 12:59 PM   #1
RooR
A Deviate Faerie Dragon
Join Date: May 2013
Posts: 19
ouf_phanx shift key modifier

Is it possible to let me see debuffs too when i hold shift key ?
  Reply With Quote
01-10-14, 06:03 PM   #2
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
Yes. Go find the section of code in Core.lua where it removes the filter from the Buffs element, and make it also remove the filter from the Debuffs element:

Code:
	for i = 1, #oUF.objects do
		local object = oUF.objects[i]
		local buffs = object.Auras or object.Buffs
		if buffs and buffs[a] then
			buffs[b] = buffs[a]
			buffs[a] = nil
			buffs:ForceUpdate()
		end
		local debuffs = object.Debuffs
		if debuffs and debuffs[a] then
			debuffs[b] = debuffs[a]
			debuffs[a] = nil
			debuffs:ForceUpdate()
		end
	end
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Don’t message me about addon bugs or programming questions.
  Reply With Quote
01-15-14, 05:09 PM   #3
RooR
A Deviate Faerie Dragon
Join Date: May 2013
Posts: 19
Works but there is still a filter somehow which doesnt show all buffs on the target when i hold shift, possible to remove that ?
  Reply With Quote
01-15-14, 09:36 PM   #4
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
No, there isn't a filter. As you can see from the code, the filter is removed when shift is pressed. I also can't reproduce any problem in-game; when I press shift, all buffs appear. Are you sure you didn't change something in the existing code, in addition to (or instead of) just adding the lines in green?
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Don’t message me about addon bugs or programming questions.
  Reply With Quote
01-20-14, 01:17 PM   #5
RooR
A Deviate Faerie Dragon
Join Date: May 2013
Posts: 19
No i havent changed anything in auras besides from that. Somehow when i target someone and hold shift is shows 2 buffs on every person not even the mount.

Last edited by RooR : 01-20-14 at 01:31 PM.
  Reply With Quote
01-20-14, 07:42 PM   #6
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
There is only one row of icons, and does not expand with Shift, so if the target has more buffs than the buff element can show on one row (2 in tank/DPS mode, 3-5 on healer mode depending on your frame width) you won't see them. If you want to see multiple rows of icons, you'll have to either:

(1) permanently edit the numBuffs and/or numIcons properties on the Buffs/Debuffs/Auras element(s) in the Spawn function in Frames.lua, (recommended if you are not comfortable understanding the existing code and writing your own additions) or

(2) temporarily edit those properties in the Shift-toggle function, and revert them when Shift is released, to show more icons only while Shift is pressed (recommended only if you can understand and write your own code).

However, I have no plans to add this kind of thing in the official version, as (a) I believe it's a gigantic waste of space to cover half the screen with 40 buff icons, and (b) it's very uncommon that someone sitting around in town (eg. where I want to see which mount they're on) has so many buffs that I can't see the mount buff... in fact, that's the only thing I use the Shift-unfiltering for, and I've never been unable to see someone's mount buff.
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Don’t message me about addon bugs or programming questions.
  Reply With Quote
01-21-14, 05:17 PM   #7
RooR
A Deviate Faerie Dragon
Join Date: May 2013
Posts: 19
well idk on my hunter i see 2 buffs with the shift key modifier but on the priest 6, havent changed anything. How dp i turn on atleast 6 buffs on my dps classes ?

Last edited by RooR : 01-21-14 at 05:29 PM.
  Reply With Quote
01-21-14, 07:31 PM   #8
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
You don't, at least not without modifying the code. Healers see more buffs and fewer debuffs, and tanks and DPS see more debuffs and fewer buffs. That's just how it works, by design.
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Don’t message me about addon bugs or programming questions.
  Reply With Quote
01-22-14, 08:16 AM   #9
RooR
A Deviate Faerie Dragon
Join Date: May 2013
Posts: 19
Alright thanks for the clarification prob gotta live wiht that.
  Reply With Quote

WoWInterface » Featured Projects » oUF (Otravi Unit Frames) » ouf_phanx shift key modifier


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