ZForms documentation/Button

A simple button element. Can be runtime-composited multi-texture buttons or single-texture.

Enums

 * enum ButtonState
 * The button's current state.
 * {| class="wikitable"

! Constant name !! Description
 * ButtonState_Inactive || The button is inactive. This is the normal state for buttons.
 * ButtonState_Hover || The button is being hovered by the mouse.
 * ButtonState_Click || The button has been clicked with the left mouse button.
 * ButtonState_Disabled || The button is disabled.
 * }
 * ButtonState_Click || The button has been clicked with the left mouse button.
 * ButtonState_Disabled || The button is disabled.
 * }
 * }

Functions

 * void setTexture (string inactive, string hover, string click, string disabled)
 * Sets the textures used for the four button states.


 * void config ([string text [, Handler cmdHandler [, string command [, BoxTextures inactive [, BoxTextures hover [, BoxTextures click [, BoxTextures disabled [, Font fnt [, double textScale [, int textColor [, int holdInterval]]]]]]]]]]])
 * Configures the button's member variables.