Drag Race Editor
Main editor extension for drag racing content. Provides a two-column layout with facilities, strips, and drag settings management. Integrates with the modular `gameplay/drag/saveSystem`.
Main editor extension for drag racing content. Provides a two-column layout with facilities, strips, and drag settings management. Integrates with the modular gameplay/drag/saveSystem.
Public API
| Function | Signature | Description |
|---|---|---|
M.onEditorInitialized() | Registers window, menu item, loads all data | |
M.onEditorGui() | Renders the main editor window | |
M.onSerialize() | → table | Serializes editor state for persistence |
M.onDeserialized(data) | Restores editor state | |
M.show() | Opens the Drag Race Editor window | |
M.selectFacility | Exposed from facilities module | |
M.selectStrip | Exposed from strips module | |
M.selectWaypoint | Exposed from waypoints module |
Window Layout
| Column | Content |
|---|---|
| Left | Facilities list, Strips list, Drag Settings list |
| Right | Detail view for selected facility, strip, or settings |
Menu Bar
| Menu | Items |
|---|---|
| File | New/Load/Save Drag Settings, New/Load/Save Mission, Undo, Redo |
| Edit | Add/Remove Lane, Clear All |
| View | Show Transforms, Show Waypoints |
| Help | Documentation, About |
Sub-Modules
| Module | Path | Purpose |
|---|---|---|
constants | dragRaceEditor/constants | Window size, drag types, colors, defaults |
state | dragRaceEditor/state | Centralized editor state management |
facilities | dragRaceEditor/facilities | Facility CRUD and UI |
strips | dragRaceEditor/strips | Strip management (external module) |
waypoints | dragRaceEditor/waypoints | Waypoint management (external module) |
dragSettings | dragRaceEditor/dragSettings | Settings file management |
utils | dragRaceEditor/utils | Undo/redo, error display, mouse info |
Notes
- Window registered as "Drag Race Editor" under Gameplay menu group
- Initializes by loading all facilities, strips, waypoints, and settings
- Draw previews rendered in 3D viewport for all selected components
- Uses
gameplay/drag/saveSystemfor file I/O
See Also
- Editor AI Tests - Related reference
- Editor AI Visualization - Related reference
- Editor – Assembly Spline Tool - Related reference
- World Editor Guide - Guide
Documentation Helper
Minimal extension that provides `editor.openHelp()` and `editor.openCodingHelp()` to open BeamNG documentation pages in the system web browser.
Drift Data Editor
Full-featured editor for drift gameplay data. Two tabs: **Drift Stunt Zones** (donut, driftThrough, hitPole zone placement with scoring) and **Drift Spots** (freeroam drift spot management with spatia