Packages
Comm
DB
Debug
Input
Interface
Module
Token
User

Objects
bitmapwidget
databasenode
dragdata
textwidget
tokeninstance
widget
widgetcontainer

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

Components
categoryselectionsettings
customdie
desktopframe
die
distance
font
framedef
hotkeybar
icon
imageupdatefolder
importinfo
includefile
panel
portraitset
properties
replaces
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. All other trademarks are the property of their respective owners.
2004-2010 SmiteWorks Ltd. ALL RIGHTS RESERVED.
Privacy policy