# XWUIGameSpawnMenu

An in-engine spawner for dropping entities and items into a running scene. It shows a search box, a row of category tabs (default `characters`, `items`, `enemies`, `props`), and a grid of cards (icon + name) filtered to the active category and search text; clicking a card spawns that entity. Use it as a cheat/dev menu: feed it the `entities` array (each `{ id, name, icon, category }`), `selectedId`, and a `filter`, drive spawns programmatically with `spawn(id, position?)`, filter with `search(query)`, and react with `onSpawn(id, position)`. Set the tab list with `categories`, grid `columns`, and toggle the search box via `showSearch`.

## Basic Usage

Mounts the menu with no entities, so it renders the search box, the four default category tabs, and a `No entities found` empty grid for the first category.

```example
file: examples/BasicUsage.ts
html: examples/BasicUsage.html
title: Basic Usage
description: A populated spawn menu with entities across the four default category tabs and a working onSpawn callback.
```

## Item Browser

A single-category loot palette with the search box hidden and a wider four-column grid.

```example
file: examples/ItemBrowser.ts
html: examples/ItemBrowser.html
title: Item Browser
description: A flat loot palette using one category, showSearch off, and a four-column grid for quick visual picking.
```

## Boss Library

A custom-tab encounter spawner that opens with a pre-applied search filter.

```example
file: examples/BossLibrary.ts
html: examples/BossLibrary.html
title: Boss Library
description: An encounter spawner with custom bosses/minibosses tabs and an initial filter that narrows the grid on load.
```

```api
```
