DialogWidget beta
Function of @v12-engine/client/hud
ts
export declare function DialogWidget(props: {
client: HudClient;
}): JSX.Element;The dialog box: the line said to the player now (the head of client.dialog), drawn as the dialog's look says (GameView.cinematics.dialog: where, a compact transmission beside the console when left out; how wide, scaled as the HUD is; the portrait and the name, subtitles), its words revealed by a typewriter as the line's pace says. Four ways: the look declared, changed in code (client.setDialogLook), a box of the game's own as a component or an element (DialogLook.component, mount; one line's own: DialogLine.ui), or the whole part drawn by the game (hud.widgets: [{ id: 'dialog', component }]). A click, or Enter, shows the rest of the words, then moves on