Race Editor - Pacenotes Tab
Sub-module for creating and editing pacenotes (co-driver callout annotations) within race paths.
Sub-module for creating and editing pacenotes (co-driver callout annotations) within race paths.
Overview
Provides a list+detail panel for managing pacenotes. Each pacenote has a position, radius, normal direction, optional segment association, and a text note field. Supports gizmo-based translate/rotate/scale and Shift-drag creation in the viewport.
Class Methods
| Method | Signature | Description |
|---|---|---|
C:init | (raceEditor) | Initializes with parent editor reference |
C:setPath | (path) | Sets the race path to edit |
C:selected | () | Activates draw mode for all pacenotes |
C:unselect | () | Hides all pacenotes |
C:selectPacenote | (id) | Selects a pacenote by ID, highlights it |
C:draw | (mouseInfo) | Main draw loop - gizmo updates, input handling, UI |
C:beginDrag / C:dragging / C:endDragging | () | Gizmo manipulation with undo/redo |
C:createManualPacenote | () | Shift-drag to create a pacenote with position, radius, and normal |
C:input | () | Mouse input dispatcher (Shift=create, Click=select) |
C:drawPacenoteList | () | Renders the list panel and detail editor |
C:selector | (name, fieldName, tt) | Dropdown selector for linked segments with tooltip |
Pacenote Properties
| Property | Type | Description |
|---|---|---|
pos | vec3 | World position |
radius | float | Trigger/display radius |
normal | vec3 | Direction vector |
name | string | Display name |
note | string | Co-driver note text |
segment | int | Associated segment ID (-1 for none) |
Notes
- All property changes go through
editor.history:commitActionfor undo/redo. - Gizmo scale mode adjusts the pacenote radius.
- The segment selector highlights the associated segment in the viewport.
Module Variables
windowDescription(string) - Module variable.windowDescription(string) - Module variable.
Functions
updateTransform(index)
Updates transform.
index(number)
Returns: end
onEditModeActivate()
Callback for edit mode activate event.
Returns: end
mouseOverPacenotes()
Handles mouse over pacenotes.
Returns: end
init(raceEditor)
Initializes the module.
raceEditor(any)
Returns: end
onEditModeActivate()
Callback for edit mode activate event.
Returns: end
unselect()
Handles unselect.
Returns: end
beginDrag()
Handles begin drag.
Returns: end
dragging()
Handles dragging.
Returns: end
endDragging()
Handles end dragging.
Returns: end
See Also
- Race Editor - Pathnodes Tab - Related reference
- Race Editor - Segments Tab - Related reference
- Race Editor - Start Positions Tab - Related reference
- World Editor Guide - Guide
Playbook Unlocked Missions Viewer
Editor extension that displays a **three-column view** of mission unlock states (startable / visible / invisible) at each playbook step.
Race Editor - Pathnodes Tab
Sub-module for creating and editing race pathnodes (checkpoints) - supports manual and navgraph placement modes.