Quantcast
Download
(3 Kb)
Download
Updated: 01-03-15 03:33 AM
Pictures
File Info
Compatibility:
Legion (7.0.3)
Warlords of Draenor (6.0.3)
Updated:01-03-15 03:33 AM
Created:11-24-14 07:41 PM
Downloads:3,017
Favorites:37
MD5:

Sorted Currency Tab

Version: 2.1
by: Nephaliana [More]

Sorted Currency Tab is a result from a request on MMO-Champion's Interface and Macro forum. Apparently several people wanted the Warlords of Draenor currencies to be more visible, rather than be thrown to the bottom of the list due to Blizzard's default alphabetical sorting of headers.

Version 2.0 - Major Update!

Sorted Currency Tab now provides a way to customize currency header order in-game! On each header, there are arrows to move each category up and down the list. These arrows behave the same as the arrows on each Character Information category (General, Attributes, Enhancements, etc) on the character/player frame. (Unfortunately, the drag-and-drop sorting is not implemented.)

Additionally, collapsed currency headers will now stay collapsed between sessions!

Please let me know if you have any issues. Thanks.

Notes:
- With the changes in version 2.0, localization should no longer be required. If you have a prior version of this addon installed, you can delete the file localization.lua in the SortedCurrencyTab folder.
- Default sort order is the order each category is discovered. Existing categories will be alphabetical (you will need to manually move WoD up to the top if that's where you want it); new categories will be placed at the end.

Sorted Currency Tab seems to work fine with the Legion Pre-expansion Patch 7.0 without modification when "Load out of date AddOns" is selected. As such, no update is planned to be released simply to update the version number.

Change Log
==========
2.1
- Corrected sorting arrows not disappearing when you used the mouse wheel to scroll the currency frame (still don't always appear correctly if a header gets placed under the mouse pointer when using the mouse wheel scrolling, but I think that is less of an issue than the arrows remaining visible on non-header rows)
- Added command to reset sort order to default (current categories are sorted in the game's default order [alphabetically]; new ones will still be added to the bottom)
-- Use /sortcurrencytab, /sortcurtab, or /sortcurrency

2.0
- Added way for users to customize order (up/down arrows on category headers)
- As the order is now customizable, Warlords of Draenor and Dungeon & Raid categories are no longer sorted to the top and bottom, respectively, by default.
- Localization should be a non-issue, as the addon will sort and organize using the localized names returned in-game (localization.lua removed).
- Collapsed status of the categories is now remembered between sessions

1.2a
- Removed extraneous print() (debug) statement

1.2
- Added localization support (full support for deDE, esMX, ptBR; possibly also esES, frFR, and itIT)
- Defaulted search for WoD currency header to Blizzard-provided constant (theoretically adds partial support for all localizations)

1.1
- Fixed issue where new currencies would not display on currency tab
- Made data variable local (was global for testing and forgot to set it back)

1.0
- Initial Release
Archived Files (4)
File Name
Version
Size
Author
Date
2.0
3kB
Nephaliana
12-13-14 09:14 PM
1.2a
2kB
Nephaliana
12-03-14 03:34 PM
1.1
1kB
Nephaliana
11-27-14 06:12 AM
1.0
1kB
Nephaliana
11-24-14 07:41 PM


Post A Reply Comment Options
Unread 08-12-18, 03:51 PM  
Nephaliana
A Kobold Labourer
 
Nephaliana's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1
File comments: 34
Uploads: 16
I'll take a look. Thanks.

Edit: I'm not seeing this error. Does it occur with only this addon loaded?

Originally Posted by Ookami.kun
Running in to the following errors post 8.0.1. The errors don't seem to affect the functionality of the addon, just that the errors pop after getting out of combat the first time after first logging in or reloading. Hoping for a fix, thanks.

Code:
Date: 2018-08-07 18:19:20
ID: 5
Error occured in: AddOn: SortedCurrencyTab
Count: 1
Message: Note: AddOn SortedCurrencyTab attempted to call a protected function (MainMenuBar:ClearAllPoints()) during combat lockdown.
Debug:
   [C]: ClearAllPoints()
   ..\FrameXML\MainMenuBar.lua:43: SetPositionForStatusBars()
   ..\FrameXML\MainMenuBar.lua:122:
      ..\FrameXML\MainMenuBar.lua:65
Locals:
None
AddOns:
Code:
Date: 2018-08-07 18:19:20
ID: 6
Error occured in: AddOn: SortedCurrencyTab
Count: 1
Message: Note: AddOn SortedCurrencyTab attempted to call a protected function (MainMenuBar:SetPoint()) during combat lockdown.
Debug:
   [C]: SetPoint()
   ..\FrameXML\UIParent.lua:2943: UIParentManageFramePositions()
   ..\FrameXML\UIParent.lua:2326:
      ..\FrameXML\UIParent.lua:2313
   [C]: SetAttribute()
   ..\FrameXML\UIParent.lua:3115:
      ..\FrameXML\UIParent.lua:3113
   [C]: UIParent_ManageFramePositions()
   ..\FrameXML\MainMenuBar.lua:60: SetPositionForStatusBars()
   ..\FrameXML\MainMenuBar.lua:122:
      ..\FrameXML\MainMenuBar.lua:65
Locals:
None
AddOns:
Last edited by Nephaliana : 08-12-18 at 05:01 PM.
Report comment to moderator  
Reply With Quote
Unread 08-07-18, 04:24 PM  
Ookami.kun
A Cliff Giant
 
Ookami.kun's Avatar

Forum posts: 78
File comments: 235
Uploads: 0
Running in to the following errors post 8.0.1. The errors don't seem to affect the functionality of the addon, just that the errors pop after getting out of combat the first time after first logging in or reloading. Hoping for a fix, thanks.

Code:
Date: 2018-08-07 18:19:20
ID: 5
Error occured in: AddOn: SortedCurrencyTab
Count: 1
Message: Note: AddOn SortedCurrencyTab attempted to call a protected function (MainMenuBar:ClearAllPoints()) during combat lockdown.
Debug:
   [C]: ClearAllPoints()
   ..\FrameXML\MainMenuBar.lua:43: SetPositionForStatusBars()
   ..\FrameXML\MainMenuBar.lua:122:
      ..\FrameXML\MainMenuBar.lua:65
Locals:
None
AddOns:
Code:
Date: 2018-08-07 18:19:20
ID: 6
Error occured in: AddOn: SortedCurrencyTab
Count: 1
Message: Note: AddOn SortedCurrencyTab attempted to call a protected function (MainMenuBar:SetPoint()) during combat lockdown.
Debug:
   [C]: SetPoint()
   ..\FrameXML\UIParent.lua:2943: UIParentManageFramePositions()
   ..\FrameXML\UIParent.lua:2326:
      ..\FrameXML\UIParent.lua:2313
   [C]: SetAttribute()
   ..\FrameXML\UIParent.lua:3115:
      ..\FrameXML\UIParent.lua:3113
   [C]: UIParent_ManageFramePositions()
   ..\FrameXML\MainMenuBar.lua:60: SetPositionForStatusBars()
   ..\FrameXML\MainMenuBar.lua:122:
      ..\FrameXML\MainMenuBar.lua:65
Locals:
None
AddOns:
__________________
Last edited by Ookami.kun : 08-07-18 at 04:25 PM.
Report comment to moderator  
Reply With Quote
Unread 07-20-16, 04:13 AM  
Daveo77
A Flamescale Wyrmkin
 
Daveo77's Avatar
Premium Member
AddOn Author - Click to view AddOns

Forum posts: 138
File comments: 56
Uploads: 1
No issues, except the marked 'out of date'.

Thank you for checking.
__________________
Report comment to moderator  
Reply With Quote
Unread 07-19-16, 03:20 PM  
Nephaliana
A Kobold Labourer
 
Nephaliana's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1
File comments: 34
Uploads: 16
Originally Posted by Daveo77
Will this addon be updated for Legion pre-expansion patch & Legion (when released)
I'll take a look. I haven't touched this one yet as I've been working on some of my other ones first. I started with PFTP and PFCTC as I knew both would have serious issues due to the significant changes to the window they affect, but I'll get to this one soon.

Edit: I took a look in game, but I did not see any issues with this addon. As my general policy (with a few exceptions over the years), I don't update an addon simply to change the TOC number to make it appear "up to date." Were you having any issue with it besides it being marked out of date?
Last edited by Nephaliana : 07-19-16 at 08:14 PM.
Report comment to moderator  
Reply With Quote
Unread 07-19-16, 09:36 AM  
Daveo77
A Flamescale Wyrmkin
 
Daveo77's Avatar
Premium Member
AddOn Author - Click to view AddOns

Forum posts: 138
File comments: 56
Uploads: 1
Will this addon be updated for Legion pre-expansion patch & Legion (when released)
__________________
Report comment to moderator  
Reply With Quote
Unread 01-10-15, 01:35 PM  
boombeef
A Kobold Labourer

Forum posts: 1
File comments: 40
Uploads: 0
Love addon, Thank you so much.
Report comment to moderator  
Reply With Quote
Unread 01-03-15, 05:00 PM  
Nephaliana
A Kobold Labourer
 
Nephaliana's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1
File comments: 34
Uploads: 16
Originally Posted by EKE
haha sorry for my poor english, i mean let addon default settting keep WOD currency top, just because im lazy and annoying for click click click for my characters. no matter how thank you for your update and replay!
Oh, well, you should only need to "click click click" once. Your other characters should keep that same order.
Report comment to moderator  
Reply With Quote
Unread 01-03-15, 11:57 AM  
EKE
An Aku'mai Servant
 
EKE's Avatar
AddOn Author - Click to view AddOns

Forum posts: 33
File comments: 516
Uploads: 9
Originally Posted by Nephaliana
With the release of 2.1, you can type /sortcurrencytab (or /sortcurtab or /sortcurrency) to clear your current sort order and begin anew. Categories the current character has will be sorted in the order given by the game (should be alphabetical). Any new categories will still be added to the bottom of the list upon discovery.
haha sorry for my poor english, i mean let addon default settting keep WOD currency top, just because im lazy and annoying for click click click for my characters. no matter how thank you for your update and replay!
Report comment to moderator  
Reply With Quote
Unread 01-03-15, 03:43 AM  
Nephaliana
A Kobold Labourer
 
Nephaliana's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1
File comments: 34
Uploads: 16
Originally Posted by EKE
can i sort it as default?
With the release of 2.1, you can type /sortcurrencytab (or /sortcurtab or /sortcurrency) to clear your current sort order and begin anew. Categories the current character has will be sorted in the order given by the game (should be alphabetical). Any new categories will still be added to the bottom of the list upon discovery.
Report comment to moderator  
Reply With Quote
Unread 12-25-14, 11:10 PM  
EKE
An Aku'mai Servant
 
EKE's Avatar
AddOn Author - Click to view AddOns

Forum posts: 33
File comments: 516
Uploads: 9
can i sort it as default?
Report comment to moderator  
Reply With Quote
Unread 12-08-14, 03:39 PM  
Nephaliana
A Kobold Labourer
 
Nephaliana's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1
File comments: 34
Uploads: 16
Originally Posted by Joelsss
Brilliant !
I have a request : Which things I have to modify for closing as default "unused" curencies ?
Add the following to the bottom of SortedCurrencyTab.lua:

Code:
local UnusedHidingFrame = CreateFrame("Frame")
UnusedHidingFrame:RegisterEvent("PLAYER_ENTERING_WORLD")
UnusedHidingFrame:SetScript("OnEvent", function()
	for i=1,GetCurrencyListSize() do
		local name, _, isExpanded = GetCurrencyListInfo(i)
		if name == "Unused" and isExpanded then
			ExpandCurrencyList(i, 0)
			break
		end
	end
end)
Report comment to moderator  
Reply With Quote
Unread 12-08-14, 12:31 PM  
Joelsss
A Kobold Labourer

Forum posts: 0
File comments: 1
Uploads: 0
Brilliant !
I have a request : Which things I have to modify for closing as default "unused" curencies ?
Report comment to moderator  
Reply With Quote
Unread 12-05-14, 08:14 PM  
vikkyne
A Murloc Raider

Forum posts: 4
File comments: 128
Uploads: 0
*worship*

Cause someone has a brain!!
Report comment to moderator  
Reply With Quote
Unread 12-03-14, 03:10 PM  
Nephaliana
A Kobold Labourer
 
Nephaliana's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1
File comments: 34
Uploads: 16
Re: thanks

Originally Posted by Auddax
However I think you forgot to remove a print in the ExpandCurrencyList function. Quick fix though
Indeed I did. Thanks.

Edit: Updated version 1.2a with that extra print() removed. Thanks again.
Last edited by Nephaliana : 12-03-14 at 03:35 PM.
Report comment to moderator  
Reply With Quote
Unread 12-03-14, 04:21 AM  
Auddax
A Kobold Labourer

Forum posts: 0
File comments: 4
Uploads: 0
thanks

Thanks, this works well. However I think you forgot to remove a print in the ExpandCurrencyList function. Quick fix though
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: