# XWUIGameLegalScreen

A scrollable legal/EULA screen with optional accept and decline actions. It shows `data.title` over a scrollable body built from `data.text` (double newlines become separate paragraphs). When `data.requireAccept` is set it renders Decline and Accept buttons, and by default (`conf_comp.requireScrollToBottom`) the Accept button stays disabled until the user scrolls the text to the bottom. Cap the scroll area with `conf_comp.maxHeight`. Accept/decline dispatch `accept` and `decline` events; subscribe with `onAccept`/`onDecline`, and call `updateData()` to swap the title, text, or accept requirement and re-render.

## Basic Usage

Displays scrollable legal text with accept/decline buttons that gate acceptance on reaching the bottom.

```example
file: examples/BasicUsage.ts
html: examples/BasicUsage.html
title: Basic Usage
description: Scrollable EULA panel whose Accept button unlocks after scrolling to the end.
```

## Read-Only Notice

A scrollable legal notice with no accept gate, acting as a plain read-only panel for third-party attributions.

```example
file: examples/ScrollFreeNotice.ts
html: examples/BasicUsage.html
title: Read-Only Notice
description: A scrollable legal notice with no accept gate, acting as a plain read-only panel for third-party attributions.
```

## Live Document Swap

A documents submenu that flips between Terms of Service and Privacy Policy by calling updateData() to re-render in place.

```example
file: examples/LiveSwap.ts
html: examples/BasicUsage.html
title: Live Document Swap
description: A documents submenu that flips between Terms of Service and Privacy Policy by calling updateData() to re-render in place.
```

```api
```
