Quantcast GetTexture got number instead of string - WoWInterface
Thread Tools Display Modes
06-20-17, 08:14 AM   #1
arith
A Cyclonian
 
arith's Avatar
AddOn Author - Click to view addons
Join Date: May 2009
Posts: 41
GetTexture got number instead of string

I wonder if the GetTexture's behavior was recently changed since 7.2.5.
Takes an example, if you type /dump GetCurrencyInfo(1342), it will dump the array info for Legionfall War Supplies. The 3rd value should be the texture/icon info. What I got is 803763, not something like "Interface\Icons\xxxxx"

Anyway I can tell the texture path?
  Reply With Quote
06-20-17, 09:31 AM   #2
Resike
A Pyroguard Emberseer
AddOn Author - Click to view addons
Join Date: Mar 2010
Posts: 1,277
https://www.townlong-yak.com/framexm...tTextureID.lua
  Reply With Quote
06-20-17, 09:41 AM   #3
arith
A Cyclonian
 
arith's Avatar
AddOn Author - Click to view addons
Join Date: May 2009
Posts: 41
Interesting, and thanks.
  Reply With Quote
06-21-17, 11:09 AM   #4
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
Featured
Join Date: Oct 2006
Posts: 10,556
As an additional note, the client was changed to use texture IDs in 7.0.
__________________
"You'd be surprised how many people violate this simple principle every day of their lives and try to fit square pegs into round holes, ignoring the clear reality that Things Are As They Are." -Benjamin Hoff, The Tao of Pooh

  Reply With Quote
06-21-17, 11:18 AM   #5
arith
A Cyclonian
 
arith's Avatar
AddOn Author - Click to view addons
Join Date: May 2009
Posts: 41
Originally Posted by Seerah View Post
As an additional note, the client was changed to use texture IDs in 7.0.
Thanks for the addition, I wasn't aware of this change!
  Reply With Quote
06-21-17, 06:31 PM   #6
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
Featured
Join Date: Oct 2006
Posts: 10,556
SetTexture will still accept a string, but GetTexture, GetItemInfo, etc. will give you the ID number. What Resike linked is a list of all texture IDs taken out of the client.
__________________
"You'd be surprised how many people violate this simple principle every day of their lives and try to fit square pegs into round holes, ignoring the clear reality that Things Are As They Are." -Benjamin Hoff, The Tao of Pooh

  Reply With Quote

WoWInterface » Developer Discussions » General Authoring Discussion » GetTexture got number instead of string

Thread Tools
Display Modes

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