ZInput

From Wherigo Foundation Wiki
Jump to: navigation, search

An instance of ZInput holds all data for an input. Inherits from ZObject.

Properties

Choices Table Table with the different strings for multiple choices inputs.
InputType String The type of input. Could be "Text" or "MultipleChoice".
Text String Description of the input. Shown as text above or below the entry field.

Events

OnGetInput(string input) Fires when a input is closed. Input contains the result of the input.

Constructor

ZInput Wherigo.ZInput(ZCartridge cartridge) Returns a new instance of object ZInput. The only parameter is a instance of ZCartridge.
ZInput Wherigo.ZInput({parameters}) Parameter is a table with default entries. It is possible to set the following properties: InputType, Text. Additionally all parameters, which are valid for ZObject constructor.