Returns a string with embedded coin icons describing an amount of money. As in most places where money amounts are shown in the UI, lesser denominations are only shown when non-zero.
See also Money functions.
Signature:
coinText
=
GetCoinTextureString(amount
[,
fontSize])
Arguments:
amount
- Amount of money in copper (number
)fontSize
- Size of the money icons. Defaults to 14. (number
)
Returns:
coinText
- Text description of the amount using embedded texture codes for gold, silver, and copper coin icons (string
)
Examples:
GetCoinTextureString(10000) -- returns "1|TInterface\\MoneyFrame\\UI_GoldIcon:14:14:2:0|t" GetCoinTextureString(500050) -- returns "50|TInterface\\MoneyFrame\\UI_GoldIcon:14:14:2:0|t 50|TInterface\\MoneyFrame\\UI_CopperIcon:14:14:2:0|t" GetCoinTextureString(123456) -- returns "12|TInterface\\MoneyFrame\\UI_GoldIcon:14:14:2:0|t 34|TInterface\\MoneyFrame\\UI_SilverIcon:14:14:2:0|t 56|TInterface\\MoneyFrame\\UI_CopperIcon:14:14:2:0|t"