# XWUIGameResourceRequirements

A crafting/building material checklist. Each entry in `data.materials` (`{ name, icon, required, available }`) renders a row with a green ✓ or red ✗ depending on whether `available >= required`, plus a count shown as `available/required`. When not compact it appends a summary line ("All requirements met" or "Missing materials") and computes an `allMet` flag. Drop the available count with `conf_comp.showAvailable: false` and use the single-line layout with `conf_comp.compact: true`. Call `updateData({ materials })` to recheck as inventory changes.

## Basic Usage

Lists materials with met/unmet checkmarks and a summary of whether all requirements are satisfied.

```example
file: examples/BasicUsage.ts
html: examples/BasicUsage.html
title: Basic Usage
description: Material checklist marking each resource met/unmet with an available/required count and summary.
```

## Compact Inline

Collapses the checklist into a single-line strip with `compact: true`, dropping the summary for a slim HUD overlay.

```example
file: examples/CompactInline.ts
html: examples/CompactInline.html
title: Compact Inline
description: A single-line material strip using compact:true with the summary line suppressed.
```

## Required Amounts Only

Hides owned counts with `showAvailable: false` so each row shows just the required amount while unmet rows still flag red.

```example
file: examples/RequiredOnly.ts
html: examples/RequiredOnly.html
title: Required Amounts Only
description: A recipe-style checklist showing only required quantities via showAvailable:false, still flagging unmet rows.
```

```api
```
