# mathu-lmn/mth-cutscenes architecture

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

- Interactive diagram: https://gitdiagram.com/mathu-lmn/mth-cutscenes
- Repository: https://github.com/mathu-lmn/mth-cutscenes

## Overview

This resource is documented as a standalone in-game cutscene browser: a player runs `/cutscenes` to toggle a menu and test game cutscenes. The tree also contains a Lua menu framework and a configuration file, but no source excerpts were provided, so their implementation details and connections are not established here. Edges reflect only relationships stated in the README.

Main entry points: [`client.lua`](https://github.com/mathu-lmn/mth-cutscenes/blob/main/client.lua) (Client runtime), [`RageUI/menu/MenuController.lua`](https://github.com/mathu-lmn/mth-cutscenes/blob/main/RageUI/menu/MenuController.lua) (Menu controller)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_runtime["Cutscene browser"]
  node_client["Client runtime<br/>[client.lua]"]
  node_cutscene_catalog["Game cutscenes"]
end

subgraph group_ui["Menu framework"]
  node_rageui["RageUI framework"]
  node_menu_controller["Menu controller<br/>[MenuController.lua]"]
  node_menu["Menu<br/>[Menu.lua]"]
  node_menu_items["Menu items"]
  node_menu_panels["Menu panels"]
  node_menu_windows["Menu windows"]
  node_components["UI components"]
end

subgraph group_settings["Configuration"]
  node_config["Resource config<br/>[config.json]"]
end

node_player(("Player"))

node_player -->|"runs command"| node_client
node_client -->|"toggles menu"| node_menu_controller
node_client -->|"tests cutscenes"| node_cutscene_catalog

click node_client "https://github.com/mathu-lmn/mth-cutscenes/blob/main/client.lua"
click node_config "https://github.com/mathu-lmn/mth-cutscenes/blob/main/config.json"
click node_rageui "https://github.com/mathu-lmn/mth-cutscenes/tree/main/RageUI"
click node_menu_controller "https://github.com/mathu-lmn/mth-cutscenes/blob/main/RageUI/menu/MenuController.lua"
click node_menu "https://github.com/mathu-lmn/mth-cutscenes/blob/main/RageUI/menu/Menu.lua"
click node_menu_items "https://github.com/mathu-lmn/mth-cutscenes/tree/main/RageUI/menu/items"
click node_menu_panels "https://github.com/mathu-lmn/mth-cutscenes/tree/main/RageUI/menu/panels"
click node_menu_windows "https://github.com/mathu-lmn/mth-cutscenes/tree/main/RageUI/menu/windows"
click node_components "https://github.com/mathu-lmn/mth-cutscenes/tree/main/RageUI/components"

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_client,node_cutscene_catalog toneBlue
class node_rageui,node_menu_controller,node_menu,node_menu_items,node_menu_panels,node_menu_windows,node_components toneAmber
class node_config toneMint
class node_player toneIndigo
```

## Components

### Cutscene browser

- [Client runtime](https://github.com/mathu-lmn/mth-cutscenes/blob/main/client.lua): `client.lua`
- **Game cutscenes**

### Menu framework

- [RageUI framework](https://github.com/mathu-lmn/mth-cutscenes/tree/main/RageUI): `RageUI`
- [Menu controller](https://github.com/mathu-lmn/mth-cutscenes/blob/main/RageUI/menu/MenuController.lua): `RageUI/menu/MenuController.lua`
- [Menu](https://github.com/mathu-lmn/mth-cutscenes/blob/main/RageUI/menu/Menu.lua): `RageUI/menu/Menu.lua`
- [Menu items](https://github.com/mathu-lmn/mth-cutscenes/tree/main/RageUI/menu/items): `RageUI/menu/items`
- [Menu panels](https://github.com/mathu-lmn/mth-cutscenes/tree/main/RageUI/menu/panels): `RageUI/menu/panels`
- [Menu windows](https://github.com/mathu-lmn/mth-cutscenes/tree/main/RageUI/menu/windows): `RageUI/menu/windows`
- [UI components](https://github.com/mathu-lmn/mth-cutscenes/tree/main/RageUI/components): `RageUI/components`

### Configuration

- [Resource config](https://github.com/mathu-lmn/mth-cutscenes/blob/main/config.json): `config.json`

### Other components

- **Player**

## Connections

- Player → Client runtime: runs command (evidence: `README.md`)
- Client runtime → Menu controller: toggles menu (evidence: `README.md`)
- Client runtime → Game cutscenes: tests cutscenes (evidence: `README.md`)
