Style material - function to get style?
Hi there,
I am searching for some hours now but i cant find anything... Is there a Get function to get the style for which a style material is for? like GetString("SI_ITEMTRAITTYPE", GetItemLinkTraitType(control.data.link)) for weapon and armor traits. man, cant find it :( thx! |
found something
GetItemLinkFlavorText() Seams to work for some style mats Adamantite is working Defiled Whiskers not |
I'm not able to check the list of functions to make sure, but I don't think such a function exists. But you could mimic such a function pretty easily.Paraphrased code:
Local styles ={} for I=1, getnumstyles() do Styles[getItemLinkItemId(getstyleitemlink(I))] = getStyle(I) End Function getitemlinkstyle(link) Return styles [getItemLinkItemId] End |
Quote:
|
i am not trying to get the style from an item but to get the style a stylemat is for
|
got it.
for the record: Code:
Crafty.myStyles = {} |
All times are GMT -6. The time now is 04:58 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI