Minion Beta! - Help us test our new AddOn updater. Get it now!
Download
(2 Kb)
Download
Updated: 10-18-14 09:52 AM
Pictures
File Info
Compatibility:
Warlords of Draenor Pre-Patch (6.0.2)
Updated:10-18-14 09:52 AM
Created:09-16-12 01:38 PM
Downloads:1,787
Favorites:50
MD5:
6.0.2
MerchantFilterButtons  Updated this week!
Version: v2.1
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
  • 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 (11)
File Name
Version
Size
Author
Date
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 08-10-13, 09:09 AM  
suicidalkatt
A Rage Talon Dragon Guard
 
suicidalkatt's Avatar
AddOn Author - Click to view AddOns

Forum posts: 311
File comments: 1394
Uploads: 60
Originally Posted by ravagernl
Thanks for updating
Thank you :3
suicidalkatt is online now Report comment to moderator  
Reply With Quote
Unread 08-10-13, 07:23 AM  
ravagernl
A Pyroguard Emberseer
AddOn Author - Click to view AddOns

Forum posts: 1147
File comments: 23
Uploads: 4
Thanks for updating
ravagernl is offline Report comment to moderator  
Reply With Quote
Unread 08-09-13, 04:46 PM  
suicidalkatt
A Rage Talon Dragon Guard
 
suicidalkatt's Avatar
AddOn Author - Click to view AddOns

Forum posts: 311
File comments: 1394
Uploads: 60
Originally Posted by ravagernl
This AddOn is tainting the talent/glyph frame. Here is the error captured by BugSack:


Glyph changing/talent changing no longer works after this error(the alknown error comes up). MicroButtonPulse may add a neat little animation, it does not add any functionality. Please remove it or replace it with animations.
Thanks I'll look into it.
suicidalkatt is online now Report comment to moderator  
Reply With Quote
Unread 08-09-13, 08:42 AM  
ravagernl
A Pyroguard Emberseer
AddOn Author - Click to view AddOns

Forum posts: 1147
File comments: 23
Uploads: 4
This AddOn is tainting the talent/glyph frame. Here is the error captured by BugSack:
1010x !NoTaint-13.02.13\Code.lua:71: AddOn calls UIFrameFlash, you may not be able to switch talent.
<in C code>
!NoTaint-13.02.13\Code.lua:71: in function <!NoTaint\Code.lua:68>
<in C code>
FrameXML\MainMenuBarMicroButtons.lua:193: in function "MicroButtonPulse"
MerchantFilterButtons\MerchantFilterButtons-1.7.lua:68: in function <MerchantFilterButtons\MerchantFilterButtons.lua:59>
MerchantFilterButtons\MerchantFilterButtons-1.7.lua:117: in function <MerchantFilterButtons\MerchantFilterButtons.lua:110>
Glyph changing/talent changing no longer works after this error(the alknown error comes up). MicroButtonPulse may add a neat little animation, it does not add any functionality. Please remove it or replace it with animations.
Last edited by ravagernl : 08-09-13 at 08:44 AM.
ravagernl is offline Report comment to moderator  
Reply With Quote
Unread 03-14-13, 02:18 PM  
Barleduq
Ruler of All I Survey
 
Barleduq's Avatar

Forum posts: 62
File comments: 262
Uploads: 0
Still not working

This is what the end of the file currently looks like. These are the last 11 lines of the file.

Lua Code:
  1. f:SetScript("OnEvent", function(self,event,...)
  2.     local arg1, arg2 = ...
  3.     if event == "PLAYER_ENTERING_WORLD" then
  4.         self:UnregisterEvent(event)
  5.         MerchantFrameLootFilter:Hide()
  6.                 MerchantFrame_SetFilter(MerchantFrame,LE_LOOT_FILTER_ALL)
  7.         BuildButtons()
  8.     elseif event == "MERCHANT_FILTER_ITEM_UPDATE" then
  9.         SetPushed(GetMerchantFilter())
  10.     end
  11. end)

What am I doing wrong?
Barleduq is offline Report comment to moderator  
Reply With Quote
Unread 03-13-13, 03:55 PM  
suicidalkatt
A Rage Talon Dragon Guard
 
suicidalkatt's Avatar
AddOn Author - Click to view AddOns

Forum posts: 311
File comments: 1394
Uploads: 60
Re: Re: Default to 'All'

Originally Posted by Barleduq
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.
Turns out I put the added line in the wrong order, it needs to be before (BuildButtons()):

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.         MerchantFrame_SetFilter(MerchantFrame,LE_LOOT_FILTER_ALL)
  10.         BuildButtons()
  11.     elseif event == "MERCHANT_FILTER_ITEM_UPDATE" then
  12.         SetPushed(GetMerchantFilter())
  13.     end
  14. end)
suicidalkatt is online now 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: 62
File comments: 262
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
Unread 03-09-13, 03:17 PM  
suicidalkatt
A Rage Talon Dragon Guard
 
suicidalkatt's Avatar
AddOn Author - Click to view AddOns

Forum posts: 311
File comments: 1394
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 online now 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: 62
File comments: 262
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 10-07-12, 10:22 AM  
suicidalkatt
A Rage Talon Dragon Guard
 
suicidalkatt's Avatar
AddOn Author - Click to view AddOns

Forum posts: 311
File comments: 1394
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 online now 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-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 09-30-12, 04:42 AM  
EKE
A Defias Bandit

Forum posts: 3
File comments: 121
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 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: 311
File comments: 1394
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 online now 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
Post A Reply



Category Jump: