HTML5 - JavaScript functions

From RPTools Wiki
Revision as of 17:08, 21 January 2024 by Tdue21 (talk | contribs) (Create stub page for the MapTool functions available to html5 javascript)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

A special class is available to javascript code running inside html5 pages. It allows access to a few values and functions.

The class itself is static and is called MapTool.

Functions

  • getName() - Returns the name of the frame or dialog.
  • getKind() - Returns the kind of the frame or dialog (i.e. frame5 or dialog5).
  • getuserData() - Returns the data passed to the frame via the "Value" option.
  • log() - Anything passed to this method will be sent to the chat window, just like a broadcast to self.