# XWUIGameDiscoveryLog

Scrollable discovery log. It renders timestamped `entries` (each `text`, optional `type`, `timestamp`, `icon`) with type-colored category badges and a new-entry animation. `conf_comp` caps the list with `maxEntries` (default 100), toggles `showTimestamp`, and constrains the allowed `categories` (default `["location", "item", "creature", "lore", "quest"]`). `addEntry(entry)` prepends a discovery and trims to the max; `updateData({ entries })` replaces the whole log.

## Basic Usage

Mounts the discovery log with timestamped, category-tagged entries.

```example
file: examples/BasicUsage.ts
html: examples/BasicUsage.html
title: Basic Usage
description: Mounts the scrollable discovery log with timestamped entries and color-coded category icons.
```

## Compact (No Timestamps)

Drops the time column with `showTimestamp: false` for a tighter, text-forward log.

```example
file: examples/CompactNoTimestamps.ts
html: examples/CompactNoTimestamps.html
title: Compact (No Timestamps)
description: A discovery log with showTimestamp off, showing only category icons and entry text.
```

## Rolling Window

Caps the log at `maxEntries: 3` and pushes four discoveries via `addEntry()` so the oldest is trimmed.

```example
file: examples/RollingWindow.ts
html: examples/RollingWindow.html
title: Rolling Window
description: A 3-entry log where each addEntry() prepends and trims the oldest discovery.
```

```api
```
