PDA

View Full Version : Scripted UI assets



FoaS
06-03-2018, 09:22 PM
Could we please add the ability to create, edit, and remove assets for the custom UI via scripting?

looter
06-29-2018, 02:34 AM
I need support for this as well, just registered to ask about this feature. I would love to make a deck builder utilizing an external API and the in-game scripting support, but it's impossible without being able to import remote image assets for use in the UI at runtime. Creating deck objects may be an issue as well because they would not be image sheets.

dzikakulka
06-29-2018, 02:14 PM
You can add assets to objects (not Global), by reading its JSON, modifying it (it's literally a table with assets names and links) and respawning the thing with new JSON.

looter
07-02-2018, 11:57 PM
You can add assets to objects (not Global), by reading its JSON, modifying it (it's literally a table with assets names and links) and respawning the thing with new JSON.

If you mean editing the JSON outside of the game, that's not related to what we are asking for.

dzikakulka
07-03-2018, 07:40 AM
If you mean editing the JSON outside of the game, that's not related to what we are asking for.

No, I mean editing the JSON inside the game.

https://api.tabletopsimulator.com/base/#spawnobjectjson
https://api.tabletopsimulator.com/object/#getjson