Page 1 of 1

Frame/window with image and input on top?

Posted: Thu Jan 19, 2017 1:31 am
by celestian
I was wondering, is it possible to place a image in a frame and on top of that have fields. For example a character sheet image and then input/data in places like name/stats/etc.

Right now I've basically built the entire sheet in html but saw some other VTT's that did it another way and was wondering if Maptools could do the something similar.

Re: Frame/window with image and input on top?

Posted: Thu Jan 19, 2017 2:49 am
by aliasmask
You can set an image as a background image, but you can't resize it. And then you can put text over the image or other images.

Re: Frame/window with image and input on top?

Posted: Thu Jan 19, 2017 11:32 pm
by taustinoc
It isn't officially part of the HTML spec, but based on a quick-n-dirty test, it would appear that Maptool's HTML rendering engine supports background images for the entire table (and probably for individual cells, though I haven't tested it).

This:

Code: Select all

<table cellspacing="0" cellpadding="0" border="0" background="[r: getImage('myback')]">
will display the image from a token named "myback" behind whatever the contents of the table are.

(This is in 1.4.0.5)

Re: Frame/window with image and input on top?

Posted: Fri Jan 20, 2017 1:57 am
by celestian
I'll tinker with it and see what happens.

Thanks!