ZForms documentation/ToggleButton

A button element which toggles on and off.

Usage
Sets the textures used for the four button states.

Usage
Configures the toggle button's member variables.

Parameters

 * text: The text the button displays.
 * inactive: The texture used when the button isn't hovered or clicked.
 * hover: The texture used when the button is hovered over but not clicked.
 * click: The texture used when the button is clicked.
 * disabled: The texture used when the button is disabled.
 * fnt: The font used to display text. Defaults to smallfont.
 * textScale: The scale to display the text at.
 * textColor: The color to display the text in.
 * alignment: Where the text on the button is aligned to.
 * cmdHandler: The handler the button sends events to.
 * command: The command used for the handler.

Usage
Creates a toggle button element.

Parameters

 * pos: The element's XY coords.
 * size: The element's size.
 * text: The text the button displays.
 * inactive: The texture used when the button isn't hovered or clicked.
 * hover: The texture used when the button is hovered over but not clicked.
 * click: The texture used when the button is clicked.
 * disabled: The texture used when the button is disabled.
 * fnt: The font used to display text. Defaults to smallfont.
 * textScale: The scale to display the text at.
 * textColor: The color to display the text in.
 * alignment: Where the text on the button is aligned to.
 * cmdHandler: The handler the button sends events to.
 * command: The command used for the handler.