# maxnut/gdmegaoverlay architecture

> Architecture diagram of the GitHub repository maxnut/gdmegaoverlay, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-14). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/maxnut/gdmegaoverlay
- Repository: https://github.com/maxnut/gdmegaoverlay

## Overview

GD Mega Overlay is a Geode mod menu for Geometry Dash. The user opens the overlay with Tab, configures features in its GUI, and uses those features during gameplay; the documented capabilities include gameplay hacks, start-position switching, macro recording/playback, and internal recording. The graph also shows settings and patch management as supporting layers. Some feature implementations were not sampled, so their runtime links are omitted rather than inferred from the file tree.

Main entry points: [`src/main.cpp`](https://github.com/maxnut/gdmegaoverlay/blob/geode/src/main.cpp) (Mod entry), [`src/GUI/GUI.cpp`](https://github.com/maxnut/gdmegaoverlay/blob/geode/src/GUI/GUI.cpp) (Overlay GUI), [`src/Macrobot/Macrobot.cpp`](https://github.com/maxnut/gdmegaoverlay/blob/geode/src/Macrobot/Macrobot.cpp) (Macro bot), [`src/DiscordRPCManager/DiscordRPCManager.cpp`](https://github.com/maxnut/gdmegaoverlay/blob/geode/src/DiscordRPCManager/DiscordRPCManager.cpp) (Discord presence)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Overlay entry"]
  node_main["Mod entry<br/>[main.cpp]"]
end

subgraph group_interface["GUI and settings"]
  node_gui["Overlay GUI<br/>[GUI.cpp]"]
  node_widgets["GUI widgets<br/>[Widgets.cpp]"]
  node_windows["GUI windows<br/>[Window.cpp]"]
  node_blur["Blur effect<br/>[Blur.cpp]"]
  node_directory["Directory picker<br/>[DirectoryCombo.cpp]"]
  node_settings[("Saved settings<br/>[Settings.hpp]")]
end

subgraph group_gameplay["Gameplay features"]
  node_patches["JSON patches<br/>[JsonPatches.cpp]"]
  node_hacks["Gameplay hacks"]
  node_labels["Gameplay labels<br/>[Labels.cpp]"]
  node_trajectory["Trajectory display<br/>[ShowTrajectory.cpp]"]
  node_startpos["Start-position tools"]
end

subgraph group_macro["Macro and recording"]
  node_macrobot["Macro bot<br/>[Macrobot.cpp]"]
  node_macroeditor["Macro editor<br/>[MacroEditor.cpp]"]
  node_recorder["Internal recorder<br/>[Record.cpp]"]
  node_clickpacks["Clickpacks<br/>[Clickpacks.cpp]"]
end

subgraph group_support["Supporting services"]
  node_common["Game utilities<br/>[Common.cpp]"]
  node_discord["Discord presence"]
end

node_player(("Player"))
node_game["Geometry Dash"]
node_discordsvc["Discord RPC"]

node_player -->|"opens with Tab"| node_gui
node_main -->|"builds windows"| node_gui
node_gui -.->|"uses controls"| node_widgets
node_gui -->|"manages windows"| node_windows
node_gui -->|"uses effect"| node_blur
node_gui -->|"stores preferences"| node_settings
node_main -->|"draws patch controls"| node_patches
node_labels -->|"toggles noclip patch"| node_patches
node_main -->|"configures features"| node_hacks
node_main -->|"configures start positions"| node_startpos
node_main -.->|"configures player tools"| node_trajectory
node_main -->|"configures playback"| node_macrobot
node_macrobot -->|"records and plays inputs"| node_game
node_macrobot -->|"uses simulation"| node_trajectory
node_macrobot -->|"uses clickpacks"| node_clickpacks
node_main -.->|"configures recorder"| node_recorder
node_main -.->|"configures clickpacks"| node_clickpacks
node_main -.->|"initializes presence"| node_discord
node_discord -.->|"updates presence"| node_discordsvc

click node_main "https://github.com/maxnut/gdmegaoverlay/blob/geode/src/main.cpp"
click node_gui "https://github.com/maxnut/gdmegaoverlay/blob/geode/src/GUI/GUI.cpp"
click node_widgets "https://github.com/maxnut/gdmegaoverlay/blob/geode/src/GUI/Widgets.cpp"
click node_windows "https://github.com/maxnut/gdmegaoverlay/blob/geode/src/GUI/Window.cpp"
click node_blur "https://github.com/maxnut/gdmegaoverlay/blob/geode/src/GUI/Blur.cpp"
click node_directory "https://github.com/maxnut/gdmegaoverlay/blob/geode/src/GUI/DirectoryCombo.cpp"
click node_settings "https://github.com/maxnut/gdmegaoverlay/blob/geode/src/Settings.hpp"
click node_patches "https://github.com/maxnut/gdmegaoverlay/blob/geode/src/JsonPatches/JsonPatches.cpp"
click node_hacks "https://github.com/maxnut/gdmegaoverlay/tree/geode/src/Hacks"
click node_labels "https://github.com/maxnut/gdmegaoverlay/blob/geode/src/Hacks/Labels.cpp"
click node_trajectory "https://github.com/maxnut/gdmegaoverlay/blob/geode/src/Hacks/ShowTrajectory.cpp"
click node_startpos "https://github.com/maxnut/gdmegaoverlay/tree/geode/src/Hacks"
click node_macrobot "https://github.com/maxnut/gdmegaoverlay/blob/geode/src/Macrobot/Macrobot.cpp"
click node_macroeditor "https://github.com/maxnut/gdmegaoverlay/blob/geode/src/Macrobot/MacroEditor.cpp"
click node_recorder "https://github.com/maxnut/gdmegaoverlay/blob/geode/src/Macrobot/Record.cpp"
click node_clickpacks "https://github.com/maxnut/gdmegaoverlay/blob/geode/src/Macrobot/Clickpacks.cpp"
click node_common "https://github.com/maxnut/gdmegaoverlay/blob/geode/src/Common.cpp"
click node_discord "https://github.com/maxnut/gdmegaoverlay/blob/geode/src/DiscordRPCManager/DiscordRPCManager.cpp"

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_main toneBlue
class node_gui,node_widgets,node_windows,node_blur,node_directory,node_settings toneAmber
class node_patches,node_hacks,node_labels,node_trajectory,node_startpos toneMint
class node_macrobot,node_macroeditor,node_recorder,node_clickpacks toneRose
class node_common,node_discord,node_player,node_game,node_discordsvc toneIndigo
```

## Components

### Overlay entry

- [Mod entry](https://github.com/maxnut/gdmegaoverlay/blob/geode/src/main.cpp): `src/main.cpp`

### GUI and settings

- [Overlay GUI](https://github.com/maxnut/gdmegaoverlay/blob/geode/src/GUI/GUI.cpp): `src/GUI/GUI.cpp`
- [GUI widgets](https://github.com/maxnut/gdmegaoverlay/blob/geode/src/GUI/Widgets.cpp): `src/GUI/Widgets.cpp`
- [GUI windows](https://github.com/maxnut/gdmegaoverlay/blob/geode/src/GUI/Window.cpp): `src/GUI/Window.cpp`
- [Blur effect](https://github.com/maxnut/gdmegaoverlay/blob/geode/src/GUI/Blur.cpp): `src/GUI/Blur.cpp`
- [Directory picker](https://github.com/maxnut/gdmegaoverlay/blob/geode/src/GUI/DirectoryCombo.cpp): `src/GUI/DirectoryCombo.cpp`
- [Saved settings](https://github.com/maxnut/gdmegaoverlay/blob/geode/src/Settings.hpp): `src/Settings.hpp`

### Gameplay features

- [JSON patches](https://github.com/maxnut/gdmegaoverlay/blob/geode/src/JsonPatches/JsonPatches.cpp): `src/JsonPatches/JsonPatches.cpp`
- [Gameplay hacks](https://github.com/maxnut/gdmegaoverlay/tree/geode/src/Hacks): `src/Hacks`
- [Gameplay labels](https://github.com/maxnut/gdmegaoverlay/blob/geode/src/Hacks/Labels.cpp): `src/Hacks/Labels.cpp`
- [Trajectory display](https://github.com/maxnut/gdmegaoverlay/blob/geode/src/Hacks/ShowTrajectory.cpp): `src/Hacks/ShowTrajectory.cpp`
- [Start-position tools](https://github.com/maxnut/gdmegaoverlay/tree/geode/src/Hacks): `src/Hacks`

### Macro and recording

- [Macro bot](https://github.com/maxnut/gdmegaoverlay/blob/geode/src/Macrobot/Macrobot.cpp): `src/Macrobot/Macrobot.cpp`
- [Macro editor](https://github.com/maxnut/gdmegaoverlay/blob/geode/src/Macrobot/MacroEditor.cpp): `src/Macrobot/MacroEditor.cpp`
- [Internal recorder](https://github.com/maxnut/gdmegaoverlay/blob/geode/src/Macrobot/Record.cpp): `src/Macrobot/Record.cpp`
- [Clickpacks](https://github.com/maxnut/gdmegaoverlay/blob/geode/src/Macrobot/Clickpacks.cpp): `src/Macrobot/Clickpacks.cpp`

### Supporting services

- [Game utilities](https://github.com/maxnut/gdmegaoverlay/blob/geode/src/Common.cpp): `src/Common.cpp`
- [Discord presence](https://github.com/maxnut/gdmegaoverlay/blob/geode/src/DiscordRPCManager/DiscordRPCManager.cpp): `src/DiscordRPCManager/DiscordRPCManager.cpp`

### Other components

- **Player**
- **Geometry Dash**
- **Discord RPC**

## Connections

- Player → Overlay GUI: opens with Tab (evidence: `README.md`)
- Mod entry → Overlay GUI: builds windows (evidence: `src/main.cpp`)
- Overlay GUI → GUI widgets: uses controls
- Overlay GUI → GUI windows: manages windows (evidence: `src/GUI/GUI.cpp`)
- Overlay GUI → Blur effect: uses effect (evidence: `src/GUI/GUI.cpp`)
- Overlay GUI → Saved settings: stores preferences (evidence: `src/GUI/GUI.cpp`)
- Mod entry → JSON patches: draws patch controls (evidence: `src/main.cpp`)
- Gameplay labels → JSON patches: toggles noclip patch (evidence: `src/Hacks/Labels.cpp`)
- Mod entry → Gameplay hacks: configures features (evidence: `src/main.cpp`)
- Mod entry → Start-position tools: configures start positions (evidence: `src/main.cpp`)
- Mod entry → Trajectory display: configures player tools
- Mod entry → Macro bot: configures playback (evidence: `src/main.cpp`)
- Macro bot → Geometry Dash: records and plays inputs (evidence: `src/Macrobot/Macrobot.cpp`)
- Macro bot → Trajectory display: uses simulation (evidence: `src/Macrobot/Macrobot.cpp`)
- Macro bot → Clickpacks: uses clickpacks (evidence: `src/Macrobot/Macrobot.cpp`)
- Mod entry → Internal recorder: configures recorder
- Mod entry → Clickpacks: configures clickpacks
- Mod entry → Discord presence: initializes presence
- Discord presence → Discord RPC: updates presence
