Draggable
Draggable
Todo
SH: Strip the Chef Leo logic from this class and make it generic and customizable
Extends
Constructors
new Draggable()
new Draggable():
Draggable
Returns
Overrides
Selectable.constructor
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
onDeselected
readonly
onDeselected: (p
) =>void
[]
Inherited from
Source
onSelected
readonly
onSelected: (p
) =>void
[]
Inherited from
Source
__dill_pixel_top_level_class
static
__dill_pixel_top_level_class:boolean
=true
Inherited from
Selectable
.__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
dragThreshold
set
dragThreshold(pValue
):void
Sets drag threshold
Parameters
• pValue: number
Source
editMode
get
editMode():boolean
set
editMode(value
):void
Parameters
• value: boolean
Returns
boolean
Source
src/gameobjects/Container.ts:107
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
isDragging
get
isDragging():boolean
Gets whether is dragging
Returns
boolean
Source
isSelected
get
isSelected():boolean
Gets whether is selected
Returns
boolean
Source
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
visuals
get
visuals():Container
<DisplayObject
>
Gets visuals
Returns
Container
<DisplayObject
>
Source
voiceover
get
voiceover():string
set
voiceover(value
):void
Parameters
• value: string
Returns
string
Source
src/gameobjects/Container.ts:69
Methods
addVisual()
addVisual(
pVisual
):void
Parameters
• pVisual: Container
<DisplayObject
>
Returns
void
Source
attachVisuals()
attachVisuals():
void
Attaches visuals
Returns
void
Source
deselect()
deselect():
void
Deselects draggable
Returns
void
Overrides
Source
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
drop()
drop():
void
Drops draggable
Returns
void
Source
enableEditMode()
enableEditMode():
void
Returns
void
Inherited from
Source
src/gameobjects/Container.ts:169
getFocusPosition()
getFocusPosition():
Point
Gets focus position
Returns
Point
PIXI.Point
Inherited from
Source
getFocusSize()
getFocusSize():
IPoint
Gets focus size
Returns
IPoint
PIXI.Point
Inherited from
Source
isFocusable()
isFocusable():
boolean
Returns
boolean
true if this focusable can be focused Defaults to this.interactive && this.worldVisible
Inherited from
Source
src/gameobjects/Container.ts:165
onFocusActivated()
onFocusActivated():
void
onFocusActivated
Returns
void
Inherited from
Source
onFocusBegin()
onFocusBegin():
void
onFocusBegin
Returns
void
Inherited from
Source
onFocusEnd()
onFocusEnd():
void
onFocusEnd
Returns
void
Inherited from
Source
onResize()
onResize(
_size
):void
Parameters
• _size: IPoint
Returns
void
Inherited from
Source
src/gameobjects/Container.ts:179
removeAppListeners()
removeAppListeners():
void
Returns
void
Source
select()
select():
void
Selects draggable
Returns
void
Overrides
Source
toggleSelected()
toggleSelected():
void
Toggles selected
Returns
void
Inherited from
Source
update()
update(
_deltaTime
):void
Parameters
• _deltaTime: number
Returns
void