# XWUIGameBestiary

A monster compendium that lays out creature entries in a configurable card grid and opens a detail modal (stats/HP, weakness, drop tags, and lore) when a discovered card is clicked. Undiscovered creatures render as locked silhouettes showing `???` and `?` until `discovered` is set. Populate the `creatures` data array (`name`, `icon`, `type`, `hp`, `weakness`, `drops`, `lore`, `discovered`) and control layout/visibility with `columns`, `showStats`, `showWeakness`, and `showDrops`; selecting a creature emits a `creature-selected` event.

## Basic Usage

Instantiates the bestiary against the `#app` container as a three-column grid of discovered creatures, each opening a stats/drops/lore modal on click.

```example
file: examples/BasicUsage.ts
html: examples/BasicUsage.html
title: Basic Usage
description: A three-column XWUIGameBestiary populated with discovered creatures and their drop/weakness data.
```

## Partial Discovery

A four-column bestiary mixing fully catalogued creatures with locked silhouettes that stay hidden until discovered.

```example
file: examples/PartialDiscovery.ts
html: examples/PartialDiscovery.html
title: Partial Discovery
description: A bestiary mid-playthrough where some creatures are still undiscovered silhouettes showing ???.
```

## Compact Codex

A dense two-column index with drops and weakness hidden, exposing only name, type, and HP in the detail modal.

```example
file: examples/CompactCodex.ts
html: examples/CompactCodex.html
title: Compact Codex
description: A spoiler-free two-column monster index with showDrops and showWeakness disabled.
```

```api
```
