UNPKG

@mai3/phaser-sdk

Version:

A UI component library based on the Phaser game engine

17 lines 727 B
import { TextButtonConfig, GridItem } from "../types"; import { BaseScene } from "../game"; import { BaseButton } from "./BaseButton"; export declare class TextButton extends BaseButton<TextButtonConfig> implements GridItem { protected _config: TextButtonConfig; bg?: Phaser.GameObjects.RenderTexture; label?: Phaser.GameObjects.Text; columnSpan?: number; image?: Phaser.GameObjects.NineSlice; constructor(scene: BaseScene, config: TextButtonConfig); reDraw(config: TextButtonConfig): void; drawIcon(config: TextButtonConfig): void; drawBackground(config: TextButtonConfig): void; set text(text: string); destroy(fromScene?: boolean): void; } //# sourceMappingURL=TextButton.d.ts.map