Packages
 Input
 Module
 User
 DB
 Interface

Objects
 bitmapwidget
 databasenode
 dragdata
 textwidget
 tokeninstance
 widget
 widgetcontainer

Elements
 buttoncontrol
 categoryselectioncontrol
 chatentry
 chatwindow
 databasecontrol
 diecontrol
 diefield
 genericcontrol
 imagecontrol
 numbercontrol
 numberfield
 portraitselectioncontrol
 script
 scrollercontrol
 stringcontrol
 stringfield
 subwindow
 textbasecontrol
 tokenbag
 tokencontrol
 tokenfield
 windowclass
 windowcontrol
 windowinstance
 windowlist
 windowreferencecontrol
 windowreferencefield

Components
 categoryselectionsettings
 customdie
 die
 font
 framedef
 desktopframe
 hotkeybar
 icon
 imageupdatefolder
 importinfo
 includefile
 panel
 portraitset
 template
 tokenroot
 tooltip
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

event 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

event 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.
'd20 System' and the d20 System logo are trademarks of Wizards of the Coast, Inc. in the United States and other countries and are used with permission.
© 2004-2008 SmiteWorks Ltd. ALL RIGHTS RESERVED.
Privacy policy