Tabletop Simulator

Tabletop Simulator

Rulebook / Image Viewer (Custom UI, draggable, resizable, zoomable)
35 条留言
Pinar 2020 年 5 月 26 日 下午 2:11 
Hello, I can't drag in the pdf when loading the mod. How do you drag ? Left click or any other key doesn't work
Marcus.LX 2020 年 5 月 25 日 下午 10:38 
Yeah I went with PDF support. It's pretty slick. Nice mod tho, thanks!
Unreal Ed  [作者] 2020 年 5 月 25 日 下午 7:19 
Hmm weird. That said, this mod isn't that useful anymore now that there is PDF support. I'll try to check it out tho
Marcus.LX 2020 年 5 月 25 日 下午 6:00 
Ermm, I got my URL's for my RulesP1, RulesP2, and RulesP3 images, all set up in Custom Assets, but when I click on the book Show Rules in the game nothing happens... :(
Khardor 2019 年 4 月 4 日 下午 7:05 
This mod is great, and it opens possibilities with different rulesets.

I wish to add a 3rd rulebook to my mod, and after that maybe more, just to sort different rulesets. I managed to add a 3rd book which works with the panel and showing the rule pictures properly, except, that the 2nd book now always shows the pages of the 3rd book.

I think somehow the Pagelists get confused. Is there a way to sort those lists to their respective rulebooks?
Mira 2019 年 3 月 31 日 上午 4:58 
Thanks for the quick response!
I'll shoot them a message when I have a moment.

I'm a bit new to UI work, but if you have any idea of a kind of 'framework' guide to doing the tedious bits, I'd gladly go through that and then return the modified work back over haha.
Unreal Ed  [作者] 2019 年 3 月 31 日 上午 4:22 
hmmm.. that's very weird. I'll look but I have no idea what could be causing it, and it sounds more like a problem with TTS itself. You should ask the devs over on the official TTS discord.

I did look, but the only way to do it is to have a whole other set of panels, elements, etc that is only revealed to that player, and have one for each color of player. Then you just make the button detect the color of who pressed it to reveal the correct one. It's not hard to do, but it's tedious so I never got around to it. But maybe I should
Mira 2019 年 3 月 31 日 上午 3:59 
Hey, Unreal Ed.
First, Thanks for this mod. Its excellent.
Second: Getting a strange bug where, if I have all the arrow/zoom/resize UI elements in, the script breaks all my global UI scripts and refuses to display them to other players. It won't display them to me until I reload the game, but it never displays for the players....until I delete those elements

Third: Were you ever able to get it showing to only one player working?
darleth 2018 年 9 月 20 日 上午 11:47 
Perfect...thanks a lot.
Unreal Ed  [作者] 2018 年 9 月 20 日 上午 8:17 
Ok, so when I changed my resolution to 1920x1080, I also saw that problem on my end. I reduced the size of the text in the input fields (from 14 to 13) and that made them appear on my end. Tell me if it's fixed for you.

Thanks for mentioning this btw. I wouldn't have expected that to be a potential problem. Now I'll know to check different resolutions for when I do UI work. And thankfully, it would SEEM that the problem only happens as resolution goes DOWN and not UP, so I don't need to buy a 4k monitor to fully test my UIs
darleth 2018 年 9 月 20 日 上午 4:01 
Yes my resolution is 1920x1080 and yes page change.

Is it possible to fix it?

Thanks
Unreal Ed  [作者] 2018 年 9 月 19 日 下午 4:26 
OH! I have an idea! What resolution do you play the game at? 1920x1080? And if you click in the page number box and type in 3 or 4, does the page change when you click out?

If so it might be because I play at 1440p, so I could see that for some reason the text on your machine is too big for the input field where the numbers should be displayed
darleth 2018 年 9 月 19 日 上午 10:23 
In this mod...

https://imgur.com/eFc5ryh
Unreal Ed  [作者] 2018 年 9 月 19 日 上午 8:16 
You don't see it in the rules in THIS mod? or when you're trying to import it?

Page number should be automated based on the number of items in the pageList table at the top of the rulebook's script. Idk what could be making %age go wrong tho...
darleth 2018 年 9 月 19 日 上午 2:21 
I have a little problem. I don't see the page number or the zoom %. Can you help me?, thanks a lot....
darleth 2018 年 7 月 24 日 上午 1:25 
thanks
Unreal Ed  [作者] 2018 年 7 月 23 日 下午 2:19 
Works fine for me with that image (straight from your link). You must be doing something wrong adding the pages. You want to import it in the "UI Assets" window, and add whatever name you give that image to the top of the script for the rulebook you're using (under the pageList, next to where it says "RulesP1", "RulesP2", etc).

Make sure there's a comma after the name of every page in the script, otherwise it won't know that the name of that image is part of the list of names it should be looking for.
Unreal Ed  [作者] 2018 年 7 月 23 日 下午 1:46 
Um I don't think the resolution should matter. I've used images that were 639x1288 or some that are 1196 x 1196. Must be something else. I'll try with that image in a bit
darleth 2018 年 7 月 23 日 下午 1:20 
darleth 2018 年 7 月 23 日 下午 1:19 
Please, what is the resolution of the images? My images don't load.
Shlongevity 2018 年 7 月 7 日 下午 7:47 
Any news on the UI visibility for a given player?
Unreal Ed  [作者] 2018 年 5 月 21 日 下午 4:37 
Not more so than what's written in the description. Is there anything you don't get or want a clarification about?
Lievargus 2018 年 5 月 21 日 下午 3:03 
Any chance on gettin some instructions for novices?
Unreal Ed  [作者] 2018 年 5 月 18 日 上午 7:38 
Yea I do know about the panel opening for everyone. I will fix it because you can set visibility of a UI element for only certain players, but from what I'm hearing, it's not working properly right now. So I'll get that going once the next patch comes out

When i do that, maybe I'll put a version where all the buttons are in the bottom left corner too. I'll see how things shake out for that because it could maybe cause problems if I have to move the page count to a corner.
Onyxius 2018 年 5 月 18 日 上午 6:41 
Not bad, i dont care much for the buttons being spread out. The other thing i don't like is that if i open the book, it not only opens for me, but anyone else in the game with me. This is quite anoying if 1 person wants to check out the rules while someone else does soemthing different or wants to open a different book. Is there a way around this that i'm not aware of maybe?

Thanks
darleth 2018 年 5 月 14 日 上午 11:03 
Thanks a lot...
Unreal Ed  [作者] 2018 年 5 月 14 日 上午 3:35 
Added an input to choose the zoom amount and added the page selector. You can click the current page number to select type in the page number you want to go to.
Unreal Ed  [作者] 2018 年 5 月 14 日 上午 12:51 
So far not (or at least it's not documented). MAYBE you could do it with having a button along the edge that actually calculates your cursor's position and keeps updating the width of the panel constantly, but you can't (to my knowledge) get screen-space coordinates in scripting, so i doubt that.

But if it gets added, I'll update it with that
Billiam 2018 年 5 月 13 日 下午 9:45 
Is it possible to create a (more standard) drag-resizable panel, or is that not possible on the XML/Lua side of things?
Unreal Ed  [作者] 2018 年 5 月 13 日 下午 7:40 
Good point! I'll get on that!
(but man the idea of having to upload 100+ pages to UI assets doesn't seem fun.... Hopefully additional scripting/new options will make it easier to add more pages to UI Assets in one go)
Phen 2018 年 5 月 13 日 上午 8:49 
Would be nice to have page selector as text input. If you have massive 100+ pages rulebooks and need to quickly navigate to some page then flipinmg pages one by one is not an option.
Unreal Ed  [作者] 2018 年 5 月 13 日 上午 12:21 
Added a 2nd rulebook as an example of how to have multiple rulebooks in your mod
Unreal Ed  [作者] 2018 年 5 月 12 日 下午 8:03 
You place your rules images as "UI Assets" window. Then the names of those images are what's referred to at the top of the Rulebook's code. I updated instructions here to make it clearer
Tragic 2018 年 5 月 12 日 下午 2:41 
I do not understated... where do you place your own pages? There is the XML and Book code.. but I do not see anywhere with actual urls for page images?
Tragic 2018 年 5 月 12 日 下午 2:32 
finally!! Adding this to my mods immediately!!