Tabletop Simulator

Tabletop Simulator

38 평점
Button Visualizer - Now works with Inputs!
2
   
어워드
즐겨찾기
즐겨찾기됨
즐겨찾기 해제
Assets: Scripting
태그: Misc
파일 크기
게시일
업데이트일
63.155 KB
2017년 7월 5일 오후 9시 58분
2017년 11월 9일 오후 6시 25분
업데이트 노트 22개 (보기)

다운로드 위해 구독하기
Button Visualizer - Now works with Inputs!

설명
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
Unreal Ed 2021년 9월 22일 오후 1시 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 2021년 2월 12일 오후 2시 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 2021년 2월 3일 오후 6시 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 2021년 1월 25일 오후 12시 32분 
Ok thank you very much. I'll try that out.
Unreal Ed 2021년 1월 25일 오전 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 2021년 1월 23일 오전 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 2020년 6월 15일 오전 1시 56분 
The Button Visualizer is no longer exporting all of the data. For example, "font_size and width". Any idea why?
Unreal Ed 2019년 2월 14일 오전 5시 47분 
Any update on a version that works with the UI?
machineguy 2019년 2월 13일 오후 3시 12분 
Amazing tool. Thank you so much.
Jonathan Daar 2018년 9월 13일 오후 1시 35분 
This was so helpful thank you!!
Used in Time Barons
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=1505924807