mirror of
https://github.com/photonstorm/phaser
synced 2024-09-21 23:12:07 +00:00
Allow Text.style to be any type
To allow a configuration object to be used rather than a string
This commit is contained in:
parent
abdaaa0010
commit
47ee5a2c88
1 changed files with 3 additions and 3 deletions
6
build/phaser.d.ts
vendored
6
build/phaser.d.ts
vendored
|
@ -799,7 +799,7 @@ declare module Phaser {
|
|||
}
|
||||
|
||||
class Text {
|
||||
constructor(game: Phaser.Game, x: number, y: number, text: string, style: string);
|
||||
constructor(game: Phaser.Game, x: number, y: number, text: string, style: any);
|
||||
exists: boolean;
|
||||
alive: boolean;
|
||||
group: Phaser.Group;
|
||||
|
@ -809,7 +809,7 @@ declare module Phaser {
|
|||
type: number;
|
||||
text: string;
|
||||
angle: number;
|
||||
style: string;
|
||||
style: any;
|
||||
visible: boolean;
|
||||
position: Phaser.Point;
|
||||
anchor: Phaser.Point;
|
||||
|
@ -1967,4 +1967,4 @@ declare module Phaser {
|
|||
game: Phaser.Game;
|
||||
render(tilemap: Tilemap): void;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue