ESOUI

ESOUI (https://www.esoui.com/forums/index.php)
-   General Authoring Discussion (https://www.esoui.com/forums/forumdisplay.php?f=174)
-   -   ESO Constant - Crafting style id (https://www.esoui.com/forums/showthread.php?t=10430)

quentinlamamy 01/27/23 04:15 PM

ESO Constant - Crafting style id
 
Hi,

I know that style chapter have ESO API constant like ITEM_STYLE_CHAPTER_AXES,

I am wondering if there is some internal constant for the style himself, something like ITEM_STYLE_WORMCULT (instead of using id 55)

Baertram 01/27/23 06:28 PM

You can use the addon merTorchbug Updated to see and search the constants, SI_ string constants and other classes, objects, functions etc. ingame.

Just type /tb and the global inspector will show you the tabs "Constants", "Strings", ... after reading all from the global table _G.

sirinsidiator 01/27/23 06:37 PM

Crafting styles had constants in the past, but when they started adding so many new styles every update, they decided to stop adding more in favour of using ids. So while there are a couple ITEM_STYLE_ constants, those are deprecated and won't be updated with newer styles.
You can either pick the style ids you want and add variables for them locally in your own addon, or use the appropriate api functions to iterate over all styles.

Baertram 01/27/23 06:42 PM

Not sure if this is the correct function for the iteration but it should start with
GetNum<sectionYouSearch>()


Code:

        GetNumValidItemStyles()

quentinlamamy 01/28/23 02:45 AM

Quote:

Originally Posted by sirinsidiator (Post 47046)
Crafting styles had constants in the past, but when they started adding so many new styles every update, they decided to stop adding more in favour of using ids. So while there are a couple ITEM_STYLE_ constants, those are deprecated and won't be updated with newer styles.
You can either pick the style ids you want and add variables for them locally in your own addon, or use the appropriate api functions to iterate over all styles.

Yes i see thos old constant about the first style, and later in the night (i'm in France) i decide to create my own constant for the 116 styles. Thanks for the answser.

@Baertram Thread Solved :)


All times are GMT -6. The time now is 01:49 AM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI