Skip to content

Commit 97add6a

Browse files
committed
cata currency dt
1 parent 2651489 commit 97add6a

File tree

1 file changed

+7
-23
lines changed

1 file changed

+7
-23
lines changed

ElvUI/Core/Modules/DataTexts/DataTexts.lua

+7-23
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@ local hooksecurefunc = hooksecurefunc
1414

1515
local CloseDropDownMenus = CloseDropDownMenus
1616
local CreateFrame = CreateFrame
17-
local GetCurrencyInfo = GetCurrencyInfo
18-
local GetCurrencyListInfo = GetCurrencyListInfo
1917
local GetNumSpecializations = GetNumSpecializations
2018
local GetSpecializationInfo = GetSpecializationInfo
2119
local InCombatLockdown = InCombatLockdown
@@ -32,14 +30,14 @@ local C_CurrencyInfo_GetCurrencyListInfo = C_CurrencyInfo.GetCurrencyListInfo
3230
local C_CurrencyInfo_GetCurrencyListLink = C_CurrencyInfo.GetCurrencyListLink
3331
local GetBackpackCurrencyInfo = GetBackpackCurrencyInfo or C_CurrencyInfo.GetBackpackCurrencyInfo
3432
local GetCurrencyListSize = GetCurrencyListSize or C_CurrencyInfo.GetCurrencyListSize
35-
3633
local C_PartyInfo_RequestInviteFromUnit = C_PartyInfo.RequestInviteFromUnit
37-
local BNInviteFriend = BNInviteFriend
38-
local BNRequestInviteFriend = BNRequestInviteFriend
3934
local InviteUnit = C_PartyInfo.InviteUnit
35+
4036
local GetDisplayedInviteType = GetDisplayedInviteType
41-
local SetItemRef = SetItemRef
4237
local ChatFrame_SendBNetTell = ChatFrame_SendBNetTell
38+
local BNRequestInviteFriend = BNRequestInviteFriend
39+
local BNInviteFriend = BNInviteFriend
40+
local SetItemRef = SetItemRef
4341

4442
local MISCELLANEOUS = MISCELLANEOUS
4543
local LFG_TYPE_DUNGEON = LFG_TYPE_DUNGEON
@@ -859,31 +857,17 @@ function DT:CURRENCY_DISPLAY_UPDATE(_, currencyID)
859857
end
860858

861859
function DT:CurrencyListInfo(index)
862-
local info = E.Retail and C_CurrencyInfo_GetCurrencyListInfo(index) or {}
863-
864-
if E.Cata then
865-
info.name, info.isHeader, info.isHeaderExpanded, info.isUnused, info.isWatched, info.quantity, info.iconFileID, info.maxQuantity, info.weeklyMax, info.earnedThisWeek, info.isTradeable, info.itemID = GetCurrencyListInfo(index)
866-
end
867-
868-
return info
860+
return C_CurrencyInfo_GetCurrencyListInfo(index) or {}
869861
end
870862

871863
function DT:CurrencyInfo(id)
872-
local info = E.Retail and C_CurrencyInfo_GetCurrencyInfo(id) or {}
873-
874-
if E.Cata then
875-
info.name, info.quantity, info.iconFileID, info.earnedThisWeek, info.weeklyMax, info.maxQuantity, info.isDiscovered = GetCurrencyInfo(id)
876-
end
864+
local info = C_CurrencyInfo_GetCurrencyInfo(id) or {}
877865

878866
return info, info and info.name, format(iconString, info and info.iconFileID or '136012')
879867
end
880868

881869
function DT:BackpackCurrencyInfo(index)
882-
local info = E.Retail and GetBackpackCurrencyInfo(index) or {}
883-
884-
if E.Cata then
885-
info.name, info.quantity, info.iconFileID, info.currencyTypesID = GetBackpackCurrencyInfo(index)
886-
end
870+
local info = GetBackpackCurrencyInfo(index) or {}
887871

888872
return info, info and info.name
889873
end

0 commit comments

Comments
 (0)