new LocText(game, x, y, text, options)
Create a LocText.
Parameters:
Name | Type | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
game |
Phaser.Game | A Phaser Game instance. |
||||||||||||||||||||||||||||||||||||||||||||||||||
x |
Number | x coordinate. |
||||||||||||||||||||||||||||||||||||||||||||||||||
y |
Number | y coordinate. |
||||||||||||||||||||||||||||||||||||||||||||||||||
text |
string | the translation key to be localized. |
||||||||||||||||||||||||||||||||||||||||||||||||||
options |
Object | An optional list of options. Properties
|
Extends
- Phaser.Text
Members
-
localizationKey
-
Setter for the localization key
-
textHeight
-
Setter for text height
-
textWidth
-
Setter for text width
Methods
-
refit()
-
Refits the text inside the box provided