Tabletop Simulator

Tabletop Simulator

Not enough ratings
"Choose your setup" menu (Custom UI)
 
Rate  
Favorite
Favorited
Unfavorite
Number of Players: 1, 2, 3, 4, 4+
File Size
Posted
Updated
1.346 MB
May 10, 2018 @ 2:32am
Jul 16, 2018 @ 3:10pm
5 Change Notes ( view )

Subscribe to download
"Choose your setup" menu (Custom UI)

Subscribed
Unsubscribe
Description
You can see a gif of it in action[i.gyazo.com] or there is a video above.

----
This is an example of how you can use the new Custom UI to make a menu that lets you select a setup for your mod. The example here uses MrStump's Memory Bag to place pieces on the board.

The menu has scrolling, colors, is draggable, can be hidden and brought back, has images and text.

Choosing a map or clicking the close button reveals a button in the corner of the screen that can clean up the table if you chose a map, or simply bring back the map-selection screen if you just closed it.

----
To learn from the map, check out both the UI XML file and the Global Lua file. Images are stored in the UI Assets menu which you access from the in-game scripting window by pressing the button in the top right.

Make sure to read through the UI API[api.tabletopsimulator.com] to learn from this mod.

----
Feel free to import this into your mods. Credits appreciated, but not necessary.

First built for my Tank Chess mod. You might potentially find a more up-to-date version of this UI in there. I'll try to keep this up to date alongside it, but no guarantees.
< >
8 Comments
Sancho Jul 16, 2018 @ 9:35pm 
Yeah it's unfortunate that scripts don't load until those missing images time out. Thanks for this UI example, by the way!
Unreal Ed  [author] Jul 16, 2018 @ 3:11pm 
Fixed. It was a stupid sticker that wasn't even being used in the mod....
Sancho Jul 16, 2018 @ 8:10am 
I don't get the 504 messages anymore but the one image is still missing: HSLL255.jpg
Unreal Ed  [author] Jul 16, 2018 @ 7:32am 
Ah. Note: I'm reading that there was an outage with Steam's Cloud that cause a lot of "failed to load image" errors. Do try it again later I guess
Unreal Ed  [author] Jul 16, 2018 @ 7:26am 
Can you tell me which images aren't loading? I may have forgotten to upload an image and it's trying to access a local file
Sancho Jul 15, 2018 @ 12:52am 
FYI I'm getting a "Failed to load Image" error and also several of "WWW Image Error: 504 Gateway Time-out"
Kagekaze May 10, 2018 @ 9:49am 
Just loaded the mod to take a peek and wanted to say I like this example as it gives me ideas for Rise of Moloch and setting up maps without taking up table space. :)
Kagekaze May 10, 2018 @ 9:39am 
Glad to see this, I was actually wondering how to get a close button on the menus, I didn't see it when I was browsing the API. Now there's an example I can dissect :) Thanks!