Download
(15Kb)
Download
Updated: 07-24-18 03:22 AM
Pictures
File Info
Compatibility:
Battle for Azeroth (8.0.1)
Updated:07-24-18 03:22 AM
Created:09-16-12 01:38 PM
Downloads:4,294
Favorites:45
MD5:

MerchantFilterButtons

Version: v4.0.0
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!

-v4
  • TOC Updated
  • Updated API calls and texture placements.

-v3
  • TOC Updated
  • Animation API changes were fixed.
  • Views will now persist between logins / reloadUI.
  • Saved variables are now per character.

-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)


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

Forum posts: 0
File comments: 61
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.
Report comment to moderator  
Reply With Quote
Unread 09-16-12, 05:02 PM  
AZMAK
A Kobold Labourer

Forum posts: 0
File comments: 61
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.
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: 331
File comments: 1467
Uploads: 50
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!
Report comment to moderator  
Reply With Quote
Unread 09-16-12, 09:05 PM  
AZMAK
A Kobold Labourer

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

Originally Posted by suicidalkatt
Thanks! Should be fixed now!
Works good now thank you for the quick fix.
Report comment to moderator  
Reply With Quote
Unread 09-23-12, 03:10 PM  
EKE
An Aku'mai Servant
 
EKE's Avatar
AddOn Author - Click to view AddOns

Forum posts: 37
File comments: 548
Uploads: 13
seems GuildRosterButtons can also make buttom style?
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: 331
File comments: 1467
Uploads: 50
Originally Posted by EKE
seems GuildRosterButtons can also make buttom style?
I may change it to look similar to MFB.
Report comment to moderator  
Reply With Quote
Unread 09-27-12, 09:50 AM  
Sintacks
A Murloc Raider

Forum posts: 4
File comments: 121
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
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: 331
File comments: 1467
Uploads: 50
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?
Report comment to moderator  
Reply With Quote
Unread 09-30-12, 04:42 AM  
EKE
An Aku'mai Servant
 
EKE's Avatar
AddOn Author - Click to view AddOns

Forum posts: 37
File comments: 548
Uploads: 13
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.
Report comment to moderator  
Reply With Quote
Unread 10-03-12, 03:22 PM  
Sintacks
A Murloc Raider

Forum posts: 4
File comments: 121
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
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.
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: 331
File comments: 1467
Uploads: 50
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!
Report comment to moderator  
Reply With Quote
Unread 03-08-13, 12:50 PM  
Barleduq
Premium Member
 
Barleduq's Avatar
Premium Member

Forum posts: 135
File comments: 742
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!
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: 331
File comments: 1467
Uploads: 50
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.
Report comment to moderator  
Reply With Quote
Unread 03-12-13, 09:28 PM  
Barleduq
Premium Member
 
Barleduq's Avatar
Premium Member

Forum posts: 135
File comments: 742
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.
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump:

Support AddOn Development!

You have just downloaded by the author . If you like this AddOn why not consider supporting the author? This author has set up a donation account. Donations ensure that authors can continue to develop useful tools for everyone.