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



Inherits windowcontrol
Context windowinstance

The token bag is a specialized dataless control, allowing for the browsing and selection of token types. The control also forms the basic source from where individual token instances can be placed on images and maps and into controls.

The tokens in the control are arranged into nested bags, created from the directory structure in the folders from which the tokens are imported. User created bags are also supported.

The bottom area of the control may contain a series of slots, usable for storing bags for quick access. This bar will automatically be populated with an item for the top level and the previous level in the bag hierarchy.



Definition

<tokenbag name="..." >
<tokenarea > ... </tokenarea> A comma separated list of four numbers, similar to the <bounds> notification on controls, defines the area inside the control in which the tokens are displayed
<bagbar > Defines the properties of the bar at the bottom of the control, containing shortcuts to bags
<rect > ... </rect> A comma separated list of four numbers, similar to the <bounds> notification on controls, defines the area inside the control in which the bag bar is displayed
<frame > ... </frame> The name of the frame resource used to render the bag bar background
<slotsize > ... </slotsize> Two comma separated numbers, defining the horizontal and vertical dimensions of a single slot on the bag bar, respectively
</bagbar>
<bag > Defines the names of the icon resources to use for bag graphics
<icon > ... </icon> The icon for a normal bag
<custom > ... </custom> The icon for a user created bag
<top > ... </top> The icon for the first bag bar slot, leading to the top level in the control
<up > ... </up> The icon for the second bag bar slot, leading to the level above the current in the bag hierarchy
</bag>
<grid > Defines the size of the grid the tokens are arranged to using the arrange option
<width > ... </width> The horizontal interval for grid positions
<height > ... </height> The vertical interval for grid positions
</grid>
</tokenbag>

'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