Minion Beta! - Help us test our new AddOn updater. Get it now!
Download
(2 Kb)
Download
Updated: 10-26-14 02:33 PM
Pictures
File Info
Compatibility:
Warlords of Draenor Pre-Patch (6.0.2)
Updated:10-26-14 02:33 PM
Created:09-16-12 01:38 PM
Downloads:1,892
Favorites:50
MD5:

MerchantFilterButtons

Version: v2.2
by: suicidalkatt [More]

Replaces the "two click" merchant filter drop down menu with "one click" buttons.

Simply install, no configuration needed.




Check out my similar addon GuildRosterButtons!

-v2.1
  • Fixed issue with buttons not being colored while selected.

-v2.1
  • ToC Bump

-v2.0
  • Settings per character are now saved between sessions.

-v1.9
  • ToC Bump.

-v1.8
  • Addressed glyph frame taint issue in previous version. Ty ravagernl for your insight :)

-v1.7
  • Code clean up. Icon placement and texcoord update.
  • Lol, buttons are flashy!

-v1.6
  • ToC Update

-v1.5
  • ToC Update

-v1.4
  • ToC Update

-v1.3
  • Added compensation for low level monks with no faction to still have a 'pandaren' icon for the 'all' button.

-v1.2
  • Fixed the 'class' button from using the proper localized class name.

-v1.1
  • Fixed issue with "SetPushed" not being able to be used outside of the BuildButtons() function.
Optional Files (0)


Archived Files (12)
File Name
Version
Size
Author
Date
v2.1
2kB
suicidalkatt
10-18-14 09:52 AM
v2.0
2kB
suicidalkatt
01-15-14 05:06 PM
v1.9
2kB
suicidalkatt
09-10-13 08:13 PM
v1.8
2kB
suicidalkatt
08-10-13 01:51 AM
v1.7
2kB
suicidalkatt
08-06-13 12:00 AM
v1.6
2kB
suicidalkatt
07-05-13 03:09 PM
v1.5
2kB
suicidalkatt
03-05-13 08:07 AM
v1.4
2kB
suicidalkatt
11-27-12 08:29 PM
v1.3
2kB
suicidalkatt
10-01-12 04:34 PM
v1.2
2kB
suicidalkatt
09-24-12 12:06 AM
v1.1
2kB
suicidalkatt
09-16-12 05:07 PM
v1.0
2kB
suicidalkatt
09-16-12 01:38 PM


Post A Reply Comment Options
Unread 09-16-12, 05:00 PM  
AZMAK
A Kobold Labourer

Forum posts: 0
File comments: 65
Uploads: 0
Error on opening merchant window

Just installed this for the first time and on the very first merchant window I opened I got this error.

EDIT: I get this error on every merchant window I open for the first time. After I open the merchant window I get the error. I close the merchant window and reopen it and the addon buttons are there, clickable and seem to work; but again I get the error at all merchants being opened the first time.

Message: ...dOns\MerchantFilterButtons\MerchantFilterButtons.lua:99: attempt to call global 'SetPushed' (a nil value)
Time: 09/16/12 15:58:20
Count: 20
Stack: ...dOns\MerchantFilterButtons\MerchantFilterButtons.lua:99: in function <...dOns\MerchantFilterButtons\MerchantFilterButtons.lua:92>

Locals: self = <unnamed> {
0 = <userdata>
}
event = "MERCHANT_FILTER_ITEM_UPDATE"
arg1 = 21219
arg2 = nil
(*temporary) = nil
(*temporary) = 2
(*temporary) = "attempt to call global 'SetPushed' (a nil value)"
BuildButtons = <function> defined @Interface\AddOns\MerchantFilterButtons\MerchantFilterButtons.lua:7
GetMerchantFilter = <function> defined =[C]:-1
Last edited by AZMAK : 09-16-12 at 05:05 PM.
AZMAK is offline Report comment to moderator  
Reply With Quote
Unread 09-16-12, 05:02 PM  
AZMAK
A Kobold Labourer

Forum posts: 0
File comments: 65
Uploads: 0
Sidenote

If it makes you feel any better, I just tried out your Guild Roster Buttons addon too and that seemed to work really good.
AZMAK is offline Report comment to moderator  
Reply With Quote
Unread 09-16-12, 05:08 PM  
suicidalkatt
A Rage Talon Dragon Guard
 
suicidalkatt's Avatar
AddOn Author - Click to view AddOns

Forum posts: 317
File comments: 1405
Uploads: 60
Re: Sidenote

Originally Posted by AZMAK
If it makes you feel any better, I just tried out your Guild Roster Buttons addon too and that seemed to work really good.
Thanks! Should be fixed now!
suicidalkatt is offline Report comment to moderator  
Reply With Quote
Unread 09-16-12, 09:05 PM  
AZMAK
A Kobold Labourer

Forum posts: 0
File comments: 65
Uploads: 0
Re: Re: Sidenote

Originally Posted by suicidalkatt
Thanks! Should be fixed now!
Works good now thank you for the quick fix.
AZMAK is offline Report comment to moderator  
Reply With Quote
Unread 09-23-12, 03:10 PM  
EKE
A Murloc Raider

Forum posts: 4
File comments: 136
Uploads: 0
seems GuildRosterButtons can also make buttom style?
EKE is online now Report comment to moderator  
Reply With Quote
Unread 09-24-12, 12:09 AM  
suicidalkatt
A Rage Talon Dragon Guard
 
suicidalkatt's Avatar
AddOn Author - Click to view AddOns

Forum posts: 317
File comments: 1405
Uploads: 60
Originally Posted by EKE
seems GuildRosterButtons can also make buttom style?
I may change it to look similar to MFB.
suicidalkatt is offline Report comment to moderator  
Reply With Quote
Unread 09-27-12, 09:50 AM  
Sintacks
A Murloc Raider

Forum posts: 4
File comments: 119
Uploads: 0
Originally Posted by suicidalkatt
Originally Posted by EKE
seems GuildRosterButtons can also make buttom style?
I may change it to look similar to MFB.
Don't change GRB. I like the way the buttons are now!

Also, I love you. <3
__________________
i has a cookie
Sintacks is offline Report comment to moderator  
Reply With Quote
Unread 09-27-12, 02:21 PM  
suicidalkatt
A Rage Talon Dragon Guard
 
suicidalkatt's Avatar
AddOn Author - Click to view AddOns

Forum posts: 317
File comments: 1405
Uploads: 60
Originally Posted by Sintacks
Originally Posted by suicidalkatt
Originally Posted by EKE
seems GuildRosterButtons can also make buttom style?
I may change it to look similar to MFB.
Don't change GRB. I like the way the buttons are now!

Also, I love you. <3
Is there any particular reason why you'd prefer just simple text vs smaller buttons?
suicidalkatt is offline Report comment to moderator  
Reply With Quote
Unread 09-30-12, 04:42 AM  
EKE
A Murloc Raider

Forum posts: 4
File comments: 136
Uploads: 0
seem everyone are different
for me the bottom is better then text.

there is an addon Inspired by GRB called GuildIcons,
http://www.wowinterface.com/download...uildIcons.html

maybe can keep the style now for Sintacks dont need to update GRB :P
Last edited by EKE : 09-30-12 at 04:42 AM.
EKE is online now Report comment to moderator  
Reply With Quote
Unread 10-03-12, 03:22 PM  
Sintacks
A Murloc Raider

Forum posts: 4
File comments: 119
Uploads: 0
Originally Posted by suicidalkatt
Originally Posted by Sintacks
Originally Posted by suicidalkatt
Originally Posted by EKE
seems GuildRosterButtons can also make buttom style?
I may change it to look similar to MFB.
Don't change GRB. I like the way the buttons are now!

Also, I love you. <3
Is there any particular reason why you'd prefer just simple text vs smaller buttons?
Cuz then I'd have to remember icons, or mouse over them. =p

I wouldn't be against having a simple setting to use icon buttons or text buttons if you wanted to do that though.
__________________
i has a cookie
Sintacks is offline Report comment to moderator  
Reply With Quote
Unread 10-04-12, 11:32 AM  
Dark5oul
A Kobold Labourer

Forum posts: 0
File comments: 1
Uploads: 0
Originally Posted by Sintacks
I wouldn't be against having a simple setting to use icon buttons or text buttons if you wanted to do that though.
Seconded. I really like GRB the way it is, but understand some would prefer to have icons.
Dark5oul is offline Report comment to moderator  
Reply With Quote
Unread 10-07-12, 10:22 AM  
suicidalkatt
A Rage Talon Dragon Guard
 
suicidalkatt's Avatar
AddOn Author - Click to view AddOns

Forum posts: 317
File comments: 1405
Uploads: 60
Originally Posted by Dark5oul
Originally Posted by Sintacks
I wouldn't be against having a simple setting to use icon buttons or text buttons if you wanted to do that though.
Seconded. I really like GRB the way it is, but understand some would prefer to have icons.
I've updated GRB to have the ability to toggle between the two layouts. Enjoy!
suicidalkatt is offline Report comment to moderator  
Reply With Quote
Unread 03-08-13, 12:50 PM  
Barleduq
Ruler of All I Survey
 
Barleduq's Avatar

Forum posts: 63
File comments: 271
Uploads: 0
Thank you, and request

First off, thank you for updating to 5.2, and for being so responsive!!

Second, I've been looking for some way to have the selection at the merchant default to 'all'. I originally found this addon when I was looking for some way to do that, since, as far as I can tell, Blizz doesn't provide it.

I expect other people would want it different; would it be possible to add a setting to have the default choice be (for example), all, class, class spec 1, 2, 3, ... (I seem to think there are 6 buttons, but I can't remember the other one...)

Regardless, it's much more pleasant to use this than the drop-down in hte default ui. Thank you!
Barleduq is offline Report comment to moderator  
Reply With Quote
Unread 03-09-13, 03:17 PM  
suicidalkatt
A Rage Talon Dragon Guard
 
suicidalkatt's Avatar
AddOn Author - Click to view AddOns

Forum posts: 317
File comments: 1405
Uploads: 60
Re: Thank you, and request

Originally Posted by Barleduq
First off, thank you for updating to 5.2, and for being so responsive!!

Second, I've been looking for some way to have the selection at the merchant default to 'all'. I originally found this addon when I was looking for some way to do that, since, as far as I can tell, Blizz doesn't provide it.

I expect other people would want it different; would it be possible to add a setting to have the default choice be (for example), all, class, class spec 1, 2, 3, ... (I seem to think there are 6 buttons, but I can't remember the other one...)

Regardless, it's much more pleasant to use this than the drop-down in hte default ui. Thank you!
An easy way to add this function would be to add the line commented to the event parsing at the end of the code:

Lua Code:
  1. local f = CreateFrame("frame")
  2. f:RegisterEvent("PLAYER_ENTERING_WORLD")
  3. f:RegisterEvent("MERCHANT_FILTER_ITEM_UPDATE")
  4. f:SetScript("OnEvent", function(self,event,...)
  5.     local arg1, arg2 = ...
  6.     if event == "PLAYER_ENTERING_WORLD" then
  7.         self:UnregisterEvent(event)
  8.         MerchantFrameLootFilter:Hide()     
  9.         BuildButtons()
  10.         MerchantFrame_SetFilter(MerchantFrame,LE_LOOT_FILTER_ALL) -- Add this line or replace all code here.
  11.     elseif event == "MERCHANT_FILTER_ITEM_UPDATE" then
  12.         SetPushed(GetMerchantFilter())
  13.     end
  14. end)

This is untested, however it should work.
Last edited by suicidalkatt : 03-09-13 at 03:20 PM.
suicidalkatt is offline Report comment to moderator  
Reply With Quote
Unread 03-12-13, 09:28 PM  
Barleduq
Ruler of All I Survey
 
Barleduq's Avatar

Forum posts: 63
File comments: 271
Uploads: 0
Re: Default to 'All'

An easy way to add this function would be to add the line commented to the event parsing at the end of the code:
I added it, I believe correctly, and there's no change in behavior - the button highlighted when I first open a vendor pane is the one for my class.
Barleduq is offline Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: