Option
| Kind | class |
| Package | options |
| Full name | options.Option |
| Source | source/options/Option.hx |
Public fields
| Name | Type | Static | Default | Notes |
|---|---|---|---|---|
child | Alphabet | no | — | — |
text | String | no | — | property (get, set) |
onChange | Void->Void = null | no | — | — |
type | String | no | 'bool' | property (get, default) |
showBoyfriend | Bool | no | false | — |
scrollSpeed | Float | no | 50 | — |
defaultValue | Dynamic | no | null | — |
curOption | Int | no | 0 | — |
options | Array<String> | no | null | — |
changeValue | Dynamic | no | 1 | — |
minValue | Dynamic | no | null | — |
maxValue | Dynamic | no | null | — |
decimals | Int | no | 1 | — |
displayFormat | String | no | '%v' | — |
description | String | no | '' | — |
name | String | no | 'Unknown' | — |
specialOption | Bool | no | false | — |
Public methods
new (constructor)
function new(name:String, description:String = '', variable:String, type:String = 'bool', defaultValue:Dynamic = 'null variable value', options:Array<String> = null)
| Parameter | Type | Default |
|---|---|---|
name | String | — |
description (optional) | String | '' |
variable | String | — |
type (optional) | String | 'bool' |
defaultValue (optional) | Dynamic | 'null variable value' |
options (optional) | Array<String> | null |
change
function change()
getValue
function getValue():Dynamic
setValue
function setValue(value:Dynamic)
| Parameter | Type | Default |
|---|---|---|
value | Dynamic | — |
setChild
function setChild(child:Alphabet)
| Parameter | Type | Default |
|---|---|---|
child | Alphabet | — |
Internals
Private / internal members
| Field | Type | Static |
|---|---|---|
variable | String | no |
| Method |
|---|
function get_text() |
function set_text(newValue:String = '') |
function get_type() |