UNPKG

@mai3/phaser-sdk

Version:

A UI component library based on the Phaser game engine

20 lines 783 B
import { Container } from './Container'; import { PanelConfig } from '../types'; import { BaseScene } from "../game"; export declare class Panel<T extends PanelConfig = PanelConfig> extends Container<T> { protected bg?: Phaser.GameObjects.RenderTexture | Phaser.GameObjects.NineSlice; protected _config?: T; constructor(scene: BaseScene, config: T); render(): void; reDrawBackground(config: T): void; drawBackground(): void; private updateConfigDimensions; private shouldUseRenderTexture; private createOrUpdateRenderTexture; private createOrUpdateNineSlice; private createNineSlice; private updateNineSlice; reSize(width: number, height: number): void; destroy(fromScene?: boolean): void; } //# sourceMappingURL=Panel.d.ts.map