Constructors
constructor
- new default(textureManager, x, y, content, styleOptions): default
Parameters
- textureManager: any
- x: any
- y: any
- content: any
- styleOptions: any
Properties
Private
phaserText
phaserText: any
Private
splitRegExp
splitRegExp: any
Private
textureManager
textureManager: any
Private
wordWrapWidth
wordWrapWidth: any
Methods
add
- add(obj): void
Returns void
addAt
- addAt(obj, index): void
Returns void
addToDisplayList
- addToDisplayList(): void
Returns void
addedToScene
- addedToScene(): void
Returns void
destroy
- destroy(): void
Returns void
getAll
- getAll(): any[]
Returns any[]
getAt
- getAt(index): any
Returns any
getBottomLeft
- getBottomLeft(): {
x: number;
y: number;
} Returns {
x: number;
y: number;
}
getBounds
- getBounds(): {
width: number;
} Returns {
width: number;
}
getIndex
- getIndex(obj): number
Returns number
getTopLeft
- getTopLeft(): {
x: number;
y: number;
} Returns {
x: number;
y: number;
}
off
- off(event, callback, obj): void
Parameters
- event: any
- callback: any
- obj: any
Returns void
once
- once(event, callback, source): void
Parameters
- event: any
- callback: any
- source: any
Returns void
remove
- remove(obj): void
Returns void
removeAll
- removeAll(): void
Returns void
removeFromDisplayList
- removeFromDisplayList(): void
Returns void
removedFromScene
- removedFromScene(): void
Returns void
runWordWrap
- runWordWrap(text): string
Returns string
setAlign
- setAlign(align): void
Returns void
setAlpha
- setAlpha(alpha): void
Returns void
setAngle
- setAngle(angle): void
Returns void
setColor
- setColor(color): void
Returns void
setFontSize
- setFontSize(fontSize): void
Returns void
setLineSpacing
- setLineSpacing(lineSpacing): void
Returns void
setMask
- setMask(): void
Returns void
setName
- setName(name): void
Returns void
setOrigin
- setOrigin(x, y): void
Returns void
setPosition
- setPosition(x?, y?, z?, w?): void
Parameters
Optional
x: numberOptional
y: numberOptional
z: numberOptional
w: number
Returns void
setPositionRelative
- setPositionRelative(source, x, y): void
Returns void
setScale
- setScale(scale): void
Returns void
setShadow
- setShadow(shadowXpos, shadowYpos, shadowColor): void
Parameters
- shadowXpos: any
- shadowYpos: any
- shadowColor: any
Returns void
setShadowColor
- setShadowColor(color): void
Returns void
setShadowOffset
- setShadowOffset(offsetX, offsetY): void
Returns void
setStroke
- setStroke(color, thickness): void
Returns void
setStrokeStyle
- setStrokeStyle(thickness, color): void
Returns void
setText
- setText(text): void
Returns void
setTint
- setTint(color): void
Returns void
setVisible
- setVisible(visible): void
Returns void
setWordWrapWidth
- setWordWrapWidth(width): void
Returns void
setX
- setX(x): void
Returns void
setY
- setY(y): void
Returns void
showText
- showText(text, delay, callback, callbackDelay, prompt, promptDelay): void
Parameters
- text: any
- delay: any
- callback: any
- callbackDelay: any
- prompt: any
- promptDelay: any
Returns void
Sets the position of this Game Object.