[FEATURE]: Tracking header for any currency
kanegasi opened this issue ยท 0 comments
WoW client
WoW Retail
Description
In the Currency broker tooltip, I would like a custom section where I can track (or pin) any currency, especially hidden currencies.
As a related minor suggestion, I would also like to customize the hidden currency list, mainly to sort newer ones at the top like the "real" currencies as well as to hide some.
Additional Information
I changed around the hidden currency part of the Init() function in the currency module like so:
tinsert(Currencies,"HIDDEN_CURRENCIES")
local known={}
for i=1,#Currencies do
known[tonumber(Currencies[i]) or ""]=true
end
for i=9999,1,-1 do
if not known[i] and not ns.isArchaeologyCurrency(i) then
local info=C_CurrencyInfo.GetCurrencyInfo(i)
if info and
info.quantity and info.quantity>0 and
info.name and not (
info.name:match("Torghast %- Scoreboard %- ") or
info.name:match("Dragon Racing %- ") or
info.name:match("Account HWM %- ") or
info.name:match("Whelp Racing %- ") or
info.name:match("Concentration")
) then
tinsert(Currencies,i)
end
end
end
Basically, new currencies listed first like the rest of your module, start at 9999 for future proofing, and hide the hundreds of racing times and zero quantities. "Account HWM" are the item levels recorded to be equipped for future crest/stone discounts and Concentration hides duplicate concentration currencies that aren't used. That takes care of the vast majority of irrelevant hidden currencies and gives the tooltip a decent loading time. The rest shown are mostly irrelevant but some are interesting.
I also added the following currencies to EXPANSION_NAME10:
Spark drops: 3023,
Catalyst: 2813,
The "real" profession concentrations: 3013,3040,3041,3042,3043,3044,3045,3046,
Khaz Algar Knowledge: 2785,2786,2787,2788,2789,2790,2791,2792,2793,2794,2795,
Weekly Knowledge trackers: 3057,3058,3059,3060,3061,3062,3063,3064,3065,3066,3067,