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,795
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 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 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: 263
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 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 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 offline 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-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 offline Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: