How jacobtheidiot/dbd-crosshair-overlay works
DbD Crosshair Overlay is a Windows overlay for customizing a centered crosshair in Dead by Daylight. The main workflow finds the game window, attaches the overlay with the GUI initializer, exposes crosshair settings, and draws the selected crosshair each frame; right-click gating is optional. The README also documents hiding the overlay from capture software. The graph groups the bundled OS-ImGui and Dear ImGui runtime layers rather than mapping their internal helpers individually. Some integration implementation files were not excerpted, so uncertain internal links are omitted.
Main entry points: main.cpp Window startup · OS-ImGui Overlay runtime · gui.cpp Settings GUI · crosshair.cpp Crosshair renderer
Components 9
Overlay application
- Window startup
src/main.cpp
Crosshair features
- Crosshair settings
src/config/config.h - Settings GUI
src/gui/gui.cpp - Crosshair renderer
src/features/crosshair.cpp
Overlay platform
- Overlay runtime
ext/OS-ImGui-master/OS-ImGui - MinHook library
ext/OS-ImGui-master/OS-ImGui/Minhook
Dear ImGui runtime
- ImGui core
ext/OS-ImGui-master/OS-ImGui/imgui
Other components
- Overlay user
- Dead by Daylight
Connections 11
- Overlay user → Window startup: starts
- Window startup → Dead by Daylight: finds window
src/main.cpp - Window startup → Overlay runtime: attaches overlay
src/main.cpp - Window startup → Settings GUI: registers initializer
src/main.cpp - Overlay user → Settings GUI: adjusts settings
src/gui/gui.cpp - Settings GUI → Crosshair settings: updates
src/gui/gui.cpp - Settings GUI → Crosshair renderer: invokes each frame
src/gui/gui.cpp - Crosshair renderer → Crosshair settings: reads
src/features/crosshair.cpp - Overlay runtime → ImGui core: uses UI runtime
ext/OS-ImGui-master/OS-ImGui/imgui/imgui_widgets.cpp - Overlay runtime → MinHook library: references hooking API
ext/OS-ImGui-master/OS-ImGui/OS-ImGui_Internal.h - Overlay runtime → Dead by Daylight: overlays window