# XWUIGameDialogueHistory

A scrollable conversation log that renders past dialogue as chat bubbles, aligning each `entries` item left or right by its `isPlayer` flag and showing the `speaker`, `text`, optional `portrait`, and `timestamp`. Toggle `showPortraits` and `showTimestamp` and cap the list with `maxEntries` (default 100) via conf_comp; append lines with `addEntry()` (which auto-trims to `maxEntries`) and replace the whole log with `updateData()`. The list auto-scrolls to the latest entry. Use it to display the running history of an NPC conversation or quest dialogue.

## Basic Usage

A five-line back-and-forth between the player and Eldra the Sage, with portraits and timestamps, the player's bubbles aligned right and the NPC's left.

```example
file: examples/BasicUsage.ts
html: examples/BasicUsage.html
title: Basic Usage
description: A chat-bubble dialogue history showing a five-line player/NPC conversation with portraits and timestamps.
```

## NPC Interrogation

A long multi-turn interrogation log where the player detective presses a single suspect, with timestamps and portraits across every exchange.

```example
file: examples/NpcInterrogation.ts
html: examples/BasicUsage.html
title: NPC Interrogation
description: A nine-line interrogation transcript between the player and one suspect, with portraits and timestamps.
```

## Minimal Log

A clean text-only transcript with portraits and timestamps switched off, leaving just the aligned dialogue bubbles.

```example
file: examples/MinimalLog.ts
html: examples/BasicUsage.html
title: Minimal Log
description: A stripped-down log with showPortraits and showTimestamp off, rendering pure left/right-aligned text bubbles.
```

```api
```
