# devbluen/textdraw-simple-click architecture

> Architecture diagram of the GitHub repository devbluen/textdraw-simple-click, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-26). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/devbluen/textdraw-simple-click
- Repository: https://github.com/devbluen/textdraw-simple-click

## Overview

Textdraw Simple Click is a small Pawn include for registering textdraw click handlers, including handlers with per-item parameters. The documented workflow is to create selectable textdraws, register a handler with SetClick, and handle the resulting click in a callback. The README describes this API and its intended dispatch behavior; no source excerpts were provided, so implementation details beyond that documented flow are omitted.

Main entry points: [`textdraw-simple-click.inc`](https://github.com/devbluen/textdraw-simple-click/blob/main/textdraw-simple-click.inc) (Click registration)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_modder(("Mod developer"))
node_click_api["Click registration"]
node_click_handler["Click callback"]
node_textdraw_runtime["Textdraw runtime"]

node_modder -->|"registers clicks"| node_click_api
node_textdraw_runtime -->|"reports clicks"| node_click_api
node_click_api -->|"dispatches callback"| node_click_handler

click node_click_api "https://github.com/devbluen/textdraw-simple-click/blob/main/textdraw-simple-click.inc"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_modder,node_click_handler,node_textdraw_runtime toneIndigo
class node_click_api toneTeal
```

## Components

### Other components

- **Mod developer**
- [Click registration](https://github.com/devbluen/textdraw-simple-click/blob/main/textdraw-simple-click.inc): `textdraw-simple-click.inc`
- **Click callback**
- **Textdraw runtime**

## Connections

- Mod developer → Click registration: registers clicks (evidence: `README.md`)
- Textdraw runtime → Click registration: reports clicks (evidence: `README.md`)
- Click registration → Click callback: dispatches callback (evidence: `README.md`)
