GameplayOption
| Kind | class |
| Package | states.substates |
| Full name | states.substates.GameplayOption |
| Source | source/states/substates/GameplayChangersSubstate.hx |
Public fields
| Name | Type | Static | Default | Notes |
|---|---|---|---|---|
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 | — |
slowChangeVal | Dynamic | no | 1 | — |
minValue | Dynamic | no | null | — |
maxValue | Dynamic | no | null | — |
decimals | Int | no | 1 | — |
displayFormat | String | no | '%v' | — |
name | String | no | 'Unknown' | — |
Public methods
new (constructor)
function new(name:String, variable:String, type:String = 'bool', defaultValue:Dynamic = 'null variable value', options:Array<String> = null)
| Parameter | Type | Default |
|---|---|---|
name | 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 |
|---|---|---|
child | Alphabet | no |
variable | String | no |
| Method |
|---|
function get_text() |
function set_text(newValue:String = '') |
function get_type() |