# XWUIGameCritIndicator

A full-screen overlay that flashes a radial-gradient vignette from the screen edges on a critical hit, transparent at the center and fading to the configured `color` (default `#ff4444`) at the rim. Tune the flash with the `intensity` config (peak opacity 0-1) and `duration` (ms). Fire it with `trigger()`, which replays the animation and auto-clears after the duration; `isActive()` reports whether it is mid-flash.

## Basic Usage

Mounts the overlay with defaults (red flash, 0.6 intensity, 400ms) so a later `trigger()` call flashes the screen edges.

```example
file: examples/BasicUsage.ts
html: examples/BasicUsage.html
title: Basic Usage
description: A crit flash overlay with the default red color, 0.6 intensity, and 400ms duration.
```

## Golden Mega-Crit

A brighter, longer gold flash tuned through the `color`, `intensity`, and `duration` config for a high-stakes critical.

```example
file: examples/GoldenCrit.ts
html: examples/GoldenCrit.html
title: Golden Mega-Crit
description: A gold crit flash at 0.85 intensity and a 700ms duration, fired with trigger().
```

## Combo Re-Trigger

A combo that calls `trigger()` repeatedly, restarting the flash from the top on every hit even mid-animation.

```example
file: examples/ComboReplay.ts
html: examples/ComboReplay.html
title: Combo Re-Trigger
description: Repeated trigger() calls that reset and replay the flash for back-to-back crits.
```

```api
```
