Thread Tools Display Modes
Prev Previous Post   Next Post Next
02-12-11, 04:27 AM   #1
Haleth
This Space For Rent
 
Haleth's Avatar
Featured
Join Date: Sep 2008
Posts: 1,173
Loot strings problem

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.
  Reply With Quote
 

WoWInterface » Developer Discussions » Lua/XML Help » Loot strings problem


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off