Download
(3Kb)
Download
Updated: 10-10-20 05:00 PM
Pictures
File Info
Compatibility:
Shadowlands pre-patch (9.0.1)
Updated:10-10-20 05:00 PM
Created:11-24-14 07:41 PM
Downloads:6,489
Favorites:37
MD5:

Sorted Currency Tab  Popular! (More than 5000 hits)

Version: 2.2
by: Nephaliana [More]

Version 2.2 - updated for Shadowlands 9.0!

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 at the time. Sorted Currency Tab provides a way to customize currency header order. On each header, there are arrows to move each category up and down the list.

Additionally, collapsed currency headers will now stay collapsed between sessions! While this is still true, the default UI now handles this as well. The related code will likely be removed in the next release of this addon.

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 in the order defined by Blizzard (formerly alphabetical, but now mostly reverse chronological); new categories will be placed at the end.
- Default sort order can be restored by using the /sortcurrencytab command.

Change Log
==========
2.2
- Updated for Shadowlands compatibility

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
Post A Reply Comment Options
Unread 01-03-15, 11:57 AM  
EKE
An Aku'mai Servant
 
EKE's Avatar
AddOn Author - Click to view AddOns

Forum posts: 37
File comments: 548
Uploads: 13
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: 37
Uploads: 22
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: 37
File comments: 548
Uploads: 13
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: 37
Uploads: 22
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: 114
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: 37
Uploads: 22
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
Unread 11-27-14, 09:10 AM  
Shantalya
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 26
Uploads: 4
For German (deDE):
Code:
local WoD = "Warlords of Draenor"
local DaR = "Dungeon und Schlachtzug"
http://s7.directupload.net/images/141127/vipvmfmt.jpg

Thanks! :-)
Report comment to moderator  
Reply With Quote
Unread 11-27-14, 06:19 AM  
Nephaliana
A Kobold Labourer
 
Nephaliana's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1
File comments: 37
Uploads: 22
Originally Posted by brknsoul
Just a quick note; SCT is a common abbreviation for Scrolling Combat Text by Greyhoof, which uses a lot of SCT* variables. Perhaps "SortedCT_data" would be a more unique global variable.
The point was that it wasn't intended to be global (and therefore it wouldn't matter what other addons name their variables). I removed the "local" during testing so I could /dump it and see what it contained, but I forgot to put it back for the release. The variable was made local again with the 1.1 update, which also corrects an issue where newly discovered currencies would not be updated in the list right away.
Report comment to moderator  
Reply With Quote
Unread 11-26-14, 06:38 PM  
brknsoul
A Deviate Faerie Dragon
AddOn Author - Click to view AddOns

Forum posts: 18
File comments: 160
Uploads: 2
Just a quick note; SCT is a common abbreviation for Scrolling Combat Text by Greyhoof, which uses a lot of SCT* variables. Perhaps "SortedCT_data" would be a more unique global variable.

On the other hand, this is an awesome addon that should've been included in the default UI.
Last edited by brknsoul : 11-26-14 at 06:39 PM.
Report comment to moderator  
Reply With Quote
Unread 11-25-14, 11:41 AM  
LiNK2088
A Deviate Faerie Dragon
AddOn Compiler - Click to view compilations

Forum posts: 10
File comments: 246
Uploads: 1
You are a god
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: