mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-06 21:50:00 +00:00
sellvalue: show sellprice on bag item tooltips
This commit is contained in:
Vendored
+13
@@ -22,3 +22,16 @@ function strsplit(delimiter, subject)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
function CreateGoldString(money)
|
||||
local gold = floor(money/ 100 / 100)
|
||||
local silver = floor(mod((money/100),100))
|
||||
local copper = floor(mod(money,100))
|
||||
|
||||
local string = ""
|
||||
if gold > 0 then string = string .. "|cffffffff" .. gold .. "|cffffd700g" end
|
||||
if silver > 0 then string = string .. "|cffffffff " .. silver .. "|cffc7c7cfs" end
|
||||
string = string .. "|cffffffff " .. copper .. "|cffeda55fc"
|
||||
|
||||
return string
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user