Text boxes

Rooster2k

Member
Joined
Mar 26, 2018
Messages
128
Reaction score
46
Location
Buffalo NY
First name
Mike
Country
llUnited States
Other then 2 line labels how can I add text boxes to set ups?
 

johnl

Senior Member
Joined
Oct 23, 2010
Messages
697
Reaction score
472
Location
SoCal/Oregon
Country
llUnited States
Other then 2 line labels how can I add text boxes to set ups?
Try this:

Copy this entire code into the main label (Ctl L) and delete line 2 (Ctl 2).

<html>
<head>
<style>
div {
width: 300px;
border: 1px solid black;
padding: 5px;
margin: 5px;
}
</style>
see</head>
<body>
<div>This is the text that will appear in the box. Copy this entire code into a label from the Draggable Overlays extension and delete line 2 of the label.>
</body>
</html>

You can set text and background color and do many other fun things.

See https://www.w3schools.com/css/css_boxmodel.asp and the associated Try It example.

johnl
 

von Marwitz

Forum Guru
Joined
Nov 25, 2010
Messages
14,358
Reaction score
10,207
Location
Kraut Corner
Country
llUkraine
There is an old thread on this somewhere with numerous examples. I will dig out the link.

Here it is:
http://www.gamesquad.com/forums/index.php?threads/custom-vasl-play-aids.117049/

This thread gives a whole lot of code examples that you can use as a template for various things.
Unfortunately, the screenshots of the "on-screen" appearances did get lost in the next to last major forum update.


von Marwitz
 
Last edited:

Rooster2k

Member
Joined
Mar 26, 2018
Messages
128
Reaction score
46
Location
Buffalo NY
First name
Mike
Country
llUnited States
Spent the last 24 hours playing with the CSS. Am able to do alot more then I expected with it already. Thanks for all the great advice.
 

BigAl737

Elder Member
Joined
Apr 5, 2011
Messages
1,507
Reaction score
1,269
Location
AK
Country
llUnited States
The Overlay extension has an HTML placeholder piece. Usage instructions for this piece are in the VASL help menu. It opens up other possibilities, like map borders, as well.

Al
 

von Marwitz

Forum Guru
Joined
Nov 25, 2010
Messages
14,358
Reaction score
10,207
Location
Kraut Corner
Country
llUkraine
The Overlay extension has an HTML placeholder piece. Usage instructions for this piece are in the VASL help menu. It opens up other possibilities, like map borders, as well.

Al
Very interesting. I have never noticed this feature before.

von Marwitz
 
Top