Tabletop Simulator

Tabletop Simulator

38 hodnocení
Button Visualizer - Now works with Inputs!
2
   
Ocenit
Přidat do oblíbených
Oblíbeno
Odebrat z oblíbených
Assets: Scripting
Značky: Misc
Velikost souboru
Přidáno
Aktualizováno
63.155 KB
5. čvc. 2017 v 21.58
9. lis. 2017 v 18.25
Poznámky ke změnám (22) – zobrazit

Klikněte na „Odebírat“ pro stažení položky
Button Visualizer - Now works with Inputs!

Popis
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]
Počet komentářů: 67
Unreal Ed 22. zář. 2021 v 13.45 
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. úno. 2021 v 14.02 
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. úno. 2021 v 18.32 
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. led. 2021 v 12.32 
Ok thank you very much. I'll try that out.
Unreal Ed 25. led. 2021 v 9.18 
@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. led. 2021 v 3.58 
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. čvn. 2020 v 1.56 
The Button Visualizer is no longer exporting all of the data. For example, "font_size and width". Any idea why?
Unreal Ed 14. úno. 2019 v 5.47 
Any update on a version that works with the UI?
machineguy 13. úno. 2019 v 15.12 
Amazing tool. Thank you so much.
Jonathan Daar 13. zář. 2018 v 13.35 
This was so helpful thank you!!
Used in Time Barons
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=1505924807