UNPKG

@mai3/phaser-sdk

Version:

A UI component library based on the Phaser game engine

24 lines 792 B
import { CheckboxConfig } from "../types"; import { BaseScene } from "../game"; import { BaseButton } from "./BaseButton"; export declare class Checkbox extends BaseButton<CheckboxConfig> { private _value; protected _config: CheckboxConfig; isChecked: boolean; private label?; private checkboxButton?; constructor(scene: BaseScene, config: CheckboxConfig); private init; protected handleDown(): void; private toggle; reDraw(config?: CheckboxConfig): void; private reDrawLabel; private alignLabelWithCheckboxButton; private getLabelFontSize; private reDrawCheckboxButton; private createCheckboxButton; set value(v: string); get value(): string; destroy(fromScene?: boolean): void; } //# sourceMappingURL=Checkbox.d.ts.map