UNPKG

@petkoneo/phaser3-rex-plugins

Version:
52 lines (40 loc) 1.24 kB
import ContainerLite from '../containerlite/ContainerLite'; export default ImageBox; declare namespace ImageBox { interface IConfig { x?: number, y?: number, texture?: string, frame?: string, scaleUp?: boolean, width?: number, height?: number, background?: Phaser.GameObjects.GameObject, image?: Phaser.GameObjects.GameObject, } } declare class ImageBox extends ContainerLite { constructor( scene: Phaser.Scene, x?: number, y?: number, texture?: string, frame?: string, config?: ImageBox.IConfig ); constructor( scene: Phaser.Scene, x?: number, y?: number, config?: ImageBox.IConfig ); constructor( scene: Phaser.Scene, config?: ImageBox.IConfig ); image: Phaser.GameObjects.GameObject; setTexture(texture?: string, frame?: string): this; readonly texture: Phaser.Textures.Texture | Phaser.Textures.CanvasTexture; readonly frame: Phaser.Textures.Frame; setFlipX(value: boolean): this; setFlipY(value: boolean): this; toggleFlipX(): this; toggleFlipY(): this; setFlip(x: boolean, y: boolean): this; flipX: boolean; flipY: boolean; }