Packages
 Comm
 DB
 Debug
 Extension
 Input
 Interface
 Module
 Token
 User

Objects
 bitmapwidget
 databasenode
 dragdata
 textbasecontrol
 textwidget
 tokeninstance
 widget
 widgetcontainer
 windowcontrol
 windowinstance

Controls
 buttoncontrol
 buttonfield
 categoryselectioncontrol
 chatentry
 chatwindow
 databasecontrol
 diecontrol
 diefield
 formattedtextcontrol
 formattedtextfield
 genericcontrol
 imagecontrol
 numbercontrol
 numberfield
 portraitselectioncontrol
 scrollbarcontrol
 scrollercontrol
 stringcontrol
 stringfield
 subwindow
 tokenbag
 tokencontrol
 tokenfield
 windowlist
 windowreferencecontrol
 windowreferencefield

Assets and Settings
 announcement
 categoryselectionsettings
 characterdbroot
 customdie
 description
 desktopframe
 die
 diebox
 distance
 font
 framedef
 hotkeybar
 icon
 imageupdatefolder
 imagesettings
 importinfo
 importruleset
 includefile
 panel
 pollbox
 portraitset
 properties
 replaces
 script
 string
 template
 textsettings
 tokenroot
 tooltip
 windowclass
onClose
onInit



A global level script node defines a global module package. The package is available to all scripts as a global table with a name equal to the name attribute in the definition.

The script contents can be specified either directly, as the contents of the element, or indirectly in an external source file defined using the file attribute.

Warning
Inlined code must be escaped to match the XML specification. Inline code will be processed as a single line of text and will not have meaningful line number definitions in warnings and errors.


Definition

<script name="..." file="..." > ... </script>


Interface


onClose

function onClose()

If present, this function is executed when the package is destroyed. This happens when the application is closed, before the database or user interface are destroyed.


onInit

function onInit()

If present, this function is executed when the package is evaluated. This happens when the application is started, after the user interface has been constructed but before any user interaction.



'Fantasy Grounds' is a trademark of SmiteWorks Ltd. All other trademarks are the property of their respective owners.
© 2004-2010 SmiteWorks Ltd. ALL RIGHTS RESERVED.
Privacy policy