overlay (roll option)

From RPTools Wiki
Revision as of 22:27, 12 May 2020 by Melek (talk | contribs) (Fill out with an example and categories.)
Jump to navigation Jump to search

 This article is a stub, you can help the RPTools Wiki project by contributing content to expand this article.

File:overlay example.png
Selected units have health bars rendered in the top left in an overlay.

Overlays are a MapTool 1.7+ feature which places a transparent HTML5 overlay over the map view. Players can click through the overlay to affect the map as normal, but clickable effects on the overlay will work as intended. Using HTML5, CSS, and JavaScript, overlays enable graphical user interfaces akin to Diablo and WoW right in MapTool.

Overlays can be called much like frames and dialogs:

[overlay("MyOverlay"): { <h1 style='color:white;'>Hello, World!</h1> }]

Because overlays can't be closed like a frame or a dialog, users can instead toggle them off in the Window > Overlays menu.


See Also