I'm working on my first addon, and as with most people that you lose patience with, very little knowledge of LUA. But alas, I'm trying.
My question is how to use the new 3.0 API to get a currency output in gold,silver,copper.
Basically I'm trying to convert the output of GetRepairAllCost into Gold/Silver/Copper. I've seen the old ways of dividing by 100 or 10000, but since this is a new addon I wanted to try and use the more current API.
It's all a contiguous string I put newlines for clarity.
That's 6 gold, 72 silver, 51 copper with a fontsize of 12.
(random numbers I made up but the format is correct)
If you don't pass it fontsize it will return the same but with the default fontsize (probably 14).
You should then be able to just do :SetText(coinstring).