# XWUIGameBaseDashboard

A base-management overview that renders a row of resource gauges plus an alerts list, for survival/colony games. It draws Power, Water, and Population as labeled `current/max` bars (filled by percentage) and Defense as a standalone rating value, each toggled via `conf_comp.showPower`/`showWater`/`showDefense`/`showPopulation`. Feed the readings through `data.power`, `data.water`, `data.population` (each `{ current, max }`), `data.defense` (number), and `data.alerts` (warning strings rendered with a ⚠ icon). Call `updateData({ power, water, defense, population, alerts })` to refresh the gauges in place.

## Basic Usage

Displays power, water, defense, and population gauges with a list of base alerts.

```example
file: examples/BasicUsage.ts
html: examples/BasicUsage.html
title: Basic Usage
description: Base overview with power/water/population bars, a defense rating, and warning alerts.
```

## Live Updates

Drives the gauges with `updateData()` so power, defense, and alerts refresh in place as the base recovers.

```example
file: examples/LiveUpdates.ts
html: examples/BasicUsage.html
title: Live Updates
description: Refreshes the gauges in place with updateData() as the base recovers from a power and raid crisis.
```

## Utilities Only

Hides the defense and population gauges to focus two side-by-side dashboards on just power and water.

```example
file: examples/UtilitiesOnly.ts
html: examples/BasicUsage.html
title: Utilities Only
description: Power-and-water-only dashboards comparing a healthy main base against a struggling outpost.
```

```api
```
