Hi,
I'm about to write an addon which displays the player's Alliance, Race and Class in a tooltip. For each of them I display the localized name plus the respective icon/symbol.
Alliance and Class is not a problem since I get both a localized text and a numeric type value. I use the type to lookup the icon texture in a table.
My problem: I cannot find a way to get the player's race as a numeric type. All I find is function
GetUnitRace("player")
which returns the
localized race. This is not really helpful because I cannot use this as an index for a table with race icon textures.
How would I manage to get the race information in a more abstract way (not only as a localized text), or is there a way to get the 64x64 race icon directly?
For illustration of the purpose of my question see attachment.
Regards,
Klaro