Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Shadow & Light
Shadow and Light
Commits
e2cd0f76
Verified
Commit
e2cd0f76
authored
Dec 17, 2020
by
Repooc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Keep in line with commit
elvui/elvui@32cb9a53
parent
3169eb4e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
ElvUI_SLE/modules/datatexts/currency.lua
ElvUI_SLE/modules/datatexts/currency.lua
+7
-5
No files found.
ElvUI_SLE/modules/datatexts/currency.lua
View file @
e2cd0f76
...
...
@@ -82,16 +82,18 @@ end
local
function
GetInfo
(
id
)
local
info
=
C_CurrencyInfo_GetCurrencyInfo
(
id
)
if
info
then
return
info
.
name
,
info
.
quantity
,
(
info
.
iconFileID
and
format
(
iconString
,
info
.
iconFileID
))
or
'136012'
else
return
''
,
''
,
'136012'
return
info
.
name
,
info
.
quantity
,
info
.
maxQuantity
,
(
info
.
iconFileID
and
format
(
iconString
,
info
.
iconFileID
))
or
'136012'
end
end
local
function
AddInfo
(
id
)
local
name
,
num
,
icon
=
GetInfo
(
id
)
local
name
,
num
,
max
,
icon
=
GetInfo
(
id
)
if
name
then
DT
.
tooltip
:
AddDoubleLine
(
format
(
'%s %s'
,
icon
,
name
),
BreakUpLargeNumbers
(
num
),
1
,
1
,
1
,
1
,
1
,
1
)
local
textRight
=
'%s'
if
E
.
global
.
datatexts
.
settings
.
Currencies
.
maxCurrency
and
max
and
max
>
0
then
textRight
=
'%s / '
..
BreakUpLargeNumbers
(
max
)
end
DT
.
tooltip
:
AddDoubleLine
(
format
(
'%s %s'
,
icon
,
name
),
format
(
textRight
,
BreakUpLargeNumbers
(
num
)),
1
,
1
,
1
,
1
,
1
,
1
)
end
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment