# XWUIGameQuestDebug

A collapsible quest-flow debugger. The list shows every quest with a state badge (`ACT`/`OK`/`FAIL`/`LOCK`, color-coded for active/completed/failed/locked) and a `stage/maxStages` counter, with filter buttons (ALL, ACTIVE, COMPLETED, FAILED, LOCKED) above it. Selecting a quest opens a detail panel with its id/state/stage fields, a numbered stage-progression bar, and a condition checklist (✓/✗ per condition). Use it to inspect quest-system state at runtime: feed it the `quests` array (each `{ id, name, state, stage, maxStages?, conditions? }`) and `activeQuest` via `updateData()`, drive selection with `selectQuest()` and filtering with `setFilter()`, start collapsed via the `collapsed` flag, and toggle the `showFilters`/`showConditions` sections.

## Basic Usage

Mounts the debugger with no quests, so it renders the `Quest Debug (0)` header with the filter buttons and an empty list.

```example
file: examples/BasicUsage.ts
html: examples/BasicUsage.html
title: Basic Usage
description: An empty quest debugger showing the Quest Debug (0) header, state filter buttons, and no quests.
```

## Filter to Active Quests

Drives the debugger imperatively with `setFilter()` and `selectQuest()`.

```example
file: examples/FilteredActive.ts
html: examples/FilteredActive.html
title: Filter to Active Quests
description: Filters the list to active quests, then opens one to show its stage bar and condition checklist.
```

## Compact Quest List

A minimal log with the filter bar and condition checklist disabled.

```example
file: examples/CompactList.ts
html: examples/CompactList.html
title: Compact Quest List
description: Shows just the badge/name/stage rows by turning off showFilters and showConditions.
```

```api
```
