#SetupDOTATalentNameLabel and Facets

1 messages · Page 1 of 1 (latest)

keen sedge
#

Looks like GameUI.SetupDOTATalentNameLabel(talent_line, talent_name) doesn't have facet argument... But talent line can be changed based on selected facet. Any idea how to fix it without black magic (parsing facet names, selected facets in lua and etc)?

floral path
#

does it not automatically parse the correct facet?

keen sedge
#

No of course. Based on what? Function has 2 args - panel and talent name. No ability/hero/player entity, no facet name/id

chilly junco
#

Some panels have contextEntityIndex that used by valve to read certain info about abilities/items and maybe talent tree now using special label that have such property too. Also can be that they just don't exposed their facets related api and too bad

floral path
#

yeah that was my guess, talent_line is a panel i'm assuming, which i assume has the entity's context