mirror of
https://github.com/wassname/phaser.git
synced 2026-07-17 01:30:32 +08: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:
Vendored
+3
-3
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user