# XWUIGameCastBar

An animated spell cast/channel bar that fills over the cast duration, showing the `spellName`, an optional `spellIcon` on the left, and a remaining-time countdown. When `interruptible` is set it draws a border glow, and calling `cancel()` flashes an interrupted state. Start a cast with `startCast(spellName, duration, spellIcon)`, which runs a `requestAnimationFrame` fill from 0 to 100%; use `barColor` to override the default accent fill.

## Basic Usage

A cast bar that fills over the spell duration with an icon, name, and countdown timer.

```example
file: examples/BasicUsage.ts
html: examples/BasicUsage.html
title: Basic Usage
description: A cast bar that fills over the spell duration with an icon, name, and countdown timer.
```

## Interrupted Cast

An interruptible cast that gets kicked mid-channel via cancel(), flashing the interrupt state.

```example
file: examples/InterruptedCast.ts
html: examples/InterruptedCast.html
title: Interrupted Cast
description: An interruptible cast that gets kicked mid-channel via cancel(), flashing the interrupt state.
```

## Channel Chain

Two casts back to back - a quick heal, then a longer nuke - re-driven through one bar.

```example
file: examples/ChannelChain.ts
html: examples/ChannelChain.html
title: Channel Chain
description: Two casts back to back - a quick heal, then a longer nuke - re-driven through one bar.
```

```api
```
