Tabletop Simulator

Tabletop Simulator

38 ratings
Button Visualizer - Now works with Inputs!
2
   
Award
Favorite
Favorited
Unfavorite
Assets: Scripting
Tags: Misc
File Size
Posted
Updated
63.155 KB
5 Jul, 2017 @ 9:58pm
9 Nov, 2017 @ 6:25pm
22 Change Notes ( view )

Subscribe to download
Button Visualizer - Now works with Inputs!

Description
Update: Now works with Inputs!
Also a brand new, neater, design layout to give you even more control over your editing!

Have you been annoyed with editing your buttons and/or the new inputs? Having to reload everytime you make a minor change because they were just a smidge off? Well fear not! For I introduce to you...

The Button Visualizer!

See what a button or input would look like with the given values and edit any old buttons or inputs on said object. See the position, rotation, scale, width, height, font size, color, and everything else on any given object! And export the data for easy copy paste into your scripts!

Just enter the GUID of the oject you wish to edit and volia - add and edit buttons or inputs as needed! It's pretty simple! Use the Unit Increment and Size Increment to narrow or expand your level of control.

Features Include:
  • Setting Position
  • Setting Rotation
  • Setting Scale
  • Setting Width and Height
  • Setting Font Size
  • Setting Font Alignment
  • Setting Label, Tooltips, and Value(for inputs)
  • Setting Type Verification (for inputs)
  • Editing multiple buttons and inputs
  • Exporting data for quick and easy copy and paste
  • Setting button and font colors
  • Edit old buttons/inputs on objects as well

If you enjoy this, please rate and favorite - It helps others find the tool as well.

Support GiantDwarf01[www.paypal.me]
67 Comments
Unreal Ed 22 Sep, 2021 @ 1:45pm 
You'd have to make the button call a function that uses one of the looping effect functions. See https://api.tabletopsimulator.com/behavior/assetbundle/
BA|Oddbod 12 Feb, 2021 @ 2:02pm 
This is great!

However, I'm getting an error when I try to edit an object that I've already added some input fields to (using data from the tool). I can move them around using the arrows on the controller, but if I try to type in the position field (which worked when initially creating one) I get this strange error and the object disappears:

Error converting Lua Table entry position to Type UNityEngine.Vector3 on Class LuaUIInputState. Value = MoonSharp.Interpreter.Table. (Error converting Table to Vector, (x,y,z or 1,2,3))<2>

Any thoughts?
a.f.waltz 3 Feb, 2021 @ 6:32pm 
Not sure if anyone else has brought this to your attention, but there is a slight bug with the tooltip input. Regardless of what's put into that field, the export text just puts the label as the tooltip. Just FYI. This mod is an absolute lifesaver!
Nomadicus 25 Jan, 2021 @ 12:32pm 
Ok thank you very much. I'll try that out.
Unreal Ed 25 Jan, 2021 @ 9:18am 
@Nomadicus: The data that gets exported needs to be saved in an object's script into a Lua table and then, in the onLoad function, you put the table into the parameter for self.createButton(). Here's an example with 2 buttons:

function onLoad(save_state)
local data = {
click_function = "setupLeft", function_owner = self,
label = "Choose\nLeft", tooltip = "Choose Bad player",
position = {0.6, -0.3, 2.5}, rotation = {0, 0, 180}, scale = {0.2, 0.2, 0.4},
width = 2600, height = 1600, font_size = 700,
}
self.createButton(data)
data = {
click_function = "setupRight", function_owner = self,
label = "Choose\nRight", tooltip = "Choose Good player",
position = {-0.6, -0.3, 2.5}, rotation = {0, 0, 180}, scale = {0.2, 0.2, 0.4},
width = 2600, height = 1600, font_size = 700
}
self.createButton(data)
end
Nomadicus 23 Jan, 2021 @ 3:58am 
I cannot get this to work to save my life. Clearly something more is required than "copy and paste." Does the exported data need to be inserted inside of some function or something else? Because just copying and pasting off the note card onto an object and running Save & Play doesn't work for me.

And yes, I know how to properly save/load your own copy of a table. I've successfully installed scripts to auto-shuffle decks of cards so I at least know that much. But I am very very green with this stuff. Like, if LUA was a spoken language, I'm at the "Hello my name is..." stage of learning.
maximo1984 15 Jun, 2020 @ 1:56am 
The Button Visualizer is no longer exporting all of the data. For example, "font_size and width". Any idea why?
Unreal Ed 14 Feb, 2019 @ 5:47am 
Any update on a version that works with the UI?
machineguy 13 Feb, 2019 @ 3:12pm 
Amazing tool. Thank you so much.
Jonathan Daar 13 Sep, 2018 @ 1:35pm 
This was so helpful thank you!!
Used in Time Barons
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=1505924807