UNPKG

@robingamedev/visual-novel-dialogue

Version:

A minimal, JSON-driven dialogue plugin for Phaser 3 games with support for branching choices, typewriter effects, and simple inline formatting.

17 lines 730 B
import { Scene, GameObjects } from 'phaser'; import { DialogueConfig, TextStyle } from './VisualNovelDialogue'; export declare class DialogueBox extends GameObjects.Container { private background; private text; private nameplate?; private config; constructor(scene: Scene, config: DialogueConfig); setBoxPosition(position: 'bottom' | 'top' | 'center', screenW: number, screenH: number, boxW: number, boxH: number): void; setText(text: string): void; setTextWithStyle(text: string, style?: TextStyle): void; resetTextStyle(): void; setNameplate(name: string, color: string): void; hideNameplate(): void; destroy(fromScene?: boolean): void; } //# sourceMappingURL=DialogueBox.d.ts.map