Button
Implements
Description
A class representing a button.
Extends
Implements
Constructors
new Button()
new Button(
config
):Button
Parameters
• config: Partial
<ButtonConfig
>
The configuration for the button.
Returns
Overrides
Source
Properties
childrenEditable
childrenEditable:
boolean
=true
Inherited from
Source
src/gameobjects/Container.ts:22
editable
editable:
boolean
=true
Inherited from
Source
src/gameobjects/Container.ts:21
isDown
isDown:
boolean
Source
onDown
onDown:
Signal
<() =>void
>
Source
onOut
onOut:
Signal
<() =>void
>
Source
onOver
onOver:
Signal
<() =>void
>
Source
onPress
onPress:
Signal
<() =>void
>
Source
onUp
onUp:
Signal
<() =>void
>
Source
view
view:
Sprite
Source
__dill_pixel_top_level_class
static
__dill_pixel_top_level_class:boolean
=true
Inherited from
Container
.__dill_pixel_top_level_class
Source
src/gameobjects/Container.ts:20
Accessors
add
get
add():Add
Returns
Source
src/gameobjects/Container.ts:120
app
get
app():T
Returns
T
Source
src/gameobjects/Container.ts:128
cursor
get
cursor():string
Description
Gets the cursor of the button.
set
cursor(cursor
):void
Description
Sets the cursor of the button.
Parameters
• cursor: string
The cursor of the button.
Returns
string
The cursor of the button.
Source
editMode
get
editMode():boolean
set
editMode(value
):void
Parameters
• value: boolean
Returns
boolean
Source
src/gameobjects/Container.ts:107
enabled
set
enabled(enabled
):void
Description
Sets the enabled state of the button.
Parameters
• enabled: boolean
Whether the button is enabled.
Source
focusPosition
get
focusPosition():Point
set
focusPosition(value
):void
Parameters
• value: Point
Returns
Point
Source
src/gameobjects/Container.ts:83
focusSize
get
focusSize():Point
set
focusSize(value
):void
Parameters
• value: Point
Returns
Point
Source
src/gameobjects/Container.ts:91
focusable
get
focusable():boolean
set
focusable(value
):void
Parameters
• value: boolean
Returns
boolean
Source
src/gameobjects/Container.ts:99
make
get
make(): typeofMake
Returns
typeof Make
Source
src/gameobjects/Container.ts:124
useAsCaptionTarget
get
useAsCaptionTarget():boolean
set
useAsCaptionTarget(value
):void
Parameters
• value: boolean
Returns
boolean
Source
src/gameobjects/Container.ts:61
voiceover
get
voiceover():string
set
voiceover(value
):void
Parameters
• value: string
Returns
string
Source
src/gameobjects/Container.ts:69
Methods
destroy()
destroy(
_options
?):void
Parameters
• _options?: boolean
| IDestroyOptions
Returns
void
Inherited from
Source
src/gameobjects/Container.ts:132
disableEditMode()
disableEditMode():
void
Returns
void
Inherited from
Source
src/gameobjects/Container.ts:173
enableEditMode()
enableEditMode():
void
Returns
void
Inherited from
Source
src/gameobjects/Container.ts:169
getFocusPosition()
getFocusPosition():
Point
Gets the position in global coordinate space that the focus should be centred around.
Returns
Point
The position that the focus should be centred around.
Implementation of
Inherited from
Source
src/gameobjects/Container.ts:157
getFocusSize()
getFocusSize():
Point
Returns
Point
The focus size.
Implementation of
Overrides
Description
Gets the focus size of the button.
Source
isFocusable()
isFocusable():
boolean
Returns
boolean
true if this focusable can be focused Defaults to this.interactive && this.worldVisible
Implementation of
Inherited from
Source
src/gameobjects/Container.ts:165
onFocusActivated()
onFocusActivated():
void
Returns
void
Implementation of
Overrides
Description
Handles the focus activated event.
Source
onFocusBegin()
onFocusBegin():
void
Returns
void
Implementation of
Overrides
Description
Handles the focus begin event.
Source
onFocusEnd()
onFocusEnd():
void
Returns
void
Implementation of
Overrides
Description
Handles the focus end event.
Source
onResize()
onResize(
_size
):void
Parameters
• _size: IPoint
Returns
void
Inherited from
Source
src/gameobjects/Container.ts:179
update()
update(
_deltaTime
):void
Parameters
• _deltaTime: number
Returns
void