WoW:API GetCoinIcon: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
No edit summary
m (Move page script moved page API GetCoinIcon to API GetCoinIcon without leaving a redirect)
 
(4 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<center>'''GetCoinIcon''' ''-Documentation by [[User:The Nerd Wonder|The Nerd Wonder]]-''</center>
{{wowapi}}


  texturePath = GetCoinIcon(amount);
  texturePath = GetCoinIcon(amount);
Line 31: Line 31:
;05, 06 - Copper coins (loose and stack)
;05, 06 - Copper coins (loose and stack)


----
These are not the same icons used in a standard money frame (e.g., under your main backpack), instead these are the
{{Template:WoW API}}
ones used in loot frames.

Latest revision as of 04:45, 15 August 2023

WoW API < GetCoinIcon

texturePath = GetCoinIcon(amount);


Returns the path to the texture used for a given amount of money.



Arguments
(amount)
amount
number - amount of money in copper



Returns
texturePath
texturePath
String - Path to icon used for the amount of money.



Details

Currently returns "Interface/Icons/INV_Misc_Coin_XX", where XX ranges from 01 to 06. Respectively, these correspond to

01, 02 - Gold coins (loose and stack)
03, 04 - Silver coins (loose and stack)
05, 06 - Copper coins (loose and stack)

These are not the same icons used in a standard money frame (e.g., under your main backpack), instead these are the ones used in loot frames.