Hello.
Sorry for creating an other topic in such a short period of time, but there's something that's been bugging me and I can't really figure out what's wrong with it.
These are defined in GlobalStrings.lua:
Code:
COPPER_AMOUNT = "%d Copper";
COPPER_AMOUNT_SYMBOL = "c";
COPPER_AMOUNT_TEXTURE = "%d\124TInterface\\MoneyFrame\\UI-CopperIcon:%d:%d:2:0\124t";
GOLD_AMOUNT = "%d Gold";
GOLD_AMOUNT_SYMBOL = "g";
GOLD_AMOUNT_TEXTURE = "%d\124TInterface\\MoneyFrame\\UI-GoldIcon:%d:%d:2:0\124t";
SILVER_AMOUNT = "%d Silver";
SILVER_AMOUNT_SYMBOL = "s";
SILVER_AMOUNT_TEXTURE = "%d\124TInterface\\MoneyFrame\\UI-SilverIcon:%d:%d:2:0\124t";
So to get coin icons to show in the chat frame rather than text, I simply did this:
Code:
COPPER_AMOUNT = COPPER_AMOUNT_TEXTURE
SILVER_AMOUNT = SILVER_AMOUNT_TEXTURE
GOLD_AMOUNT = GOLD_AMOUNT_TEXTURE
Or this:
Code:
COPPER_AMOUNT = "%d\124TInterface\\MoneyFrame\\UI-CopperIcon:%d:%d:2:0\124t"
SILVER_AMOUNT = "%d\124TInterface\\MoneyFrame\\UI-SilverIcon:%d:%d:2:0\124t"
GOLD_AMOUNT = "%d\124TInterface\\MoneyFrame\\UI-GoldIcon:%d:%d:2:0\124t"
The strange thing is that most of the time, it works just fine, but about 20% of the time it'll simply print the entire texture path, like this:
Anyone have an idea how I can prevent this?
Thanks.