Tabletop Simulator

Tabletop Simulator

Rulebook / Image Viewer (Custom UI, draggable, resizable, zoomable)
35 Comments
Pinar 26 May, 2020 @ 2:11pm 
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 25 May, 2020 @ 10:38pm 
Yeah I went with PDF support. It's pretty slick. Nice mod tho, thanks!
Unreal Ed  [author] 25 May, 2020 @ 7:19pm 
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 25 May, 2020 @ 6:00pm 
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 4 Apr, 2019 @ 7:05pm 
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 31 Mar, 2019 @ 4:58am 
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  [author] 31 Mar, 2019 @ 4:22am 
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 31 Mar, 2019 @ 3:59am 
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 20 Sep, 2018 @ 11:47am 
Perfect...thanks a lot.
Unreal Ed  [author] 20 Sep, 2018 @ 8:17am 
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 20 Sep, 2018 @ 4:01am 
Yes my resolution is 1920x1080 and yes page change.

Is it possible to fix it?

Thanks
Unreal Ed  [author] 19 Sep, 2018 @ 4:26pm 
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 19 Sep, 2018 @ 10:23am 
In this mod...

https://imgur.com/eFc5ryh
Unreal Ed  [author] 19 Sep, 2018 @ 8:16am 
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 19 Sep, 2018 @ 2:21am 
I have a little problem. I don't see the page number or the zoom %. Can you help me?, thanks a lot....
darleth 24 Jul, 2018 @ 1:25am 
thanks
Unreal Ed  [author] 23 Jul, 2018 @ 2:19pm 
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  [author] 23 Jul, 2018 @ 1:46pm 
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 23 Jul, 2018 @ 1:20pm 
darleth 23 Jul, 2018 @ 1:19pm 
Please, what is the resolution of the images? My images don't load.
Oh, the Places You'll Goon! 7 Jul, 2018 @ 7:47pm 
Any news on the UI visibility for a given player?
Unreal Ed  [author] 21 May, 2018 @ 4:37pm 
Not more so than what's written in the description. Is there anything you don't get or want a clarification about?
Lievargus 21 May, 2018 @ 3:03pm 
Any chance on gettin some instructions for novices?
Unreal Ed  [author] 18 May, 2018 @ 7:38am 
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 18 May, 2018 @ 6:41am 
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 14 May, 2018 @ 11:03am 
Thanks a lot...
Unreal Ed  [author] 14 May, 2018 @ 3:35am 
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  [author] 14 May, 2018 @ 12:51am 
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 13 May, 2018 @ 9:45pm 
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  [author] 13 May, 2018 @ 7:40pm 
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 13 May, 2018 @ 8:49am 
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  [author] 13 May, 2018 @ 12:21am 
Added a 2nd rulebook as an example of how to have multiple rulebooks in your mod
Unreal Ed  [author] 12 May, 2018 @ 8:03pm 
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 12 May, 2018 @ 2:41pm 
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 12 May, 2018 @ 2:32pm 
finally!! Adding this to my mods immediately!!