Originally Posted by quentinlamamy
Hi,
I would like to get the english name of a style from id (for example 9 for khajiit), is there a built in method for that or do i need to code that ?
|
Best way to find out if there is a way is search in ESO UI source code of the game at places where you know it is shown.
Search for zo_strformat or ZO_CachedStrFormat as they use the same SI_* constants (and call GetString internally) and will often add the number at the end as suffix to make the SI_*<suffixNumber> constant complete.
e.g. something like SI_STYPEPAGE_1, SI_STYPEPAGE_2, SI_STYPEPAGE_9 -> Khajit etc. (only examples, I don't know if these exist).
Some of those SI* constants can be found here:
https://raw.githubusercontent.com/es...tedstrings.lua
But most, like itemnames, style stuff etc. either are only readable via API functions (e.g. GetItemName(bagId, slotIndex) -> check the API documentaiton txt file that Sharlikran provided for soemthing like GetStyleName or similar.
I found this:
GetItemStyleName(styleId)
btw:
GetString(SI_*) and API functions will return the text in the client language, not always English! Could be en, de, fr, ru, es, jp and zh for the official ones, or even pt, pl, ... and what ever else meanwhile exists -> These custom languages define the translations in the big files that Sharlikran mentioned themselves and release them as custom mods, changing game files.