Tabletop Simulator

Tabletop Simulator

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

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

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.
10 Comments
Habanero 28 Jun @ 8:55pm 
nvm got it. Here it is for anyone else who stumbles upon this.

Make sure the <Panel id="cleanup" ...> has active="true" (or just remove the active attribute — true is default).

Make sure the <Panel id="scriptSelection" ...> has active="false".
Habanero 25 Jun @ 12:51am 
How do I change it so that it starts with the menu hidden by default?
Sancho 16 Jul, 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] 16 Jul, 2018 @ 3:11pm 
Fixed. It was a stupid sticker that wasn't even being used in the mod....
Sancho 16 Jul, 2018 @ 8:10am 
I don't get the 504 messages anymore but the one image is still missing: HSLL255.jpg
Unreal Ed  [author] 16 Jul, 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] 16 Jul, 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 15 Jul, 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 10 May, 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 10 May, 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!