API ReferenceGE ExtensionseditorraceEditor
Race Editor - Track Layout Tab
Sub-module for configuring the structural layout of a race track - start/end nodes, starting positions, and lap settings.
Sub-module for configuring the structural layout of a race track - start/end nodes, starting positions, and lap settings.
Overview
Defines the race topology: which pathnodes are start/end, which start positions are used for default/reverse/rolling modes, and the default lap count. Displays track classification (reversible, rolling start, closed, branching) and renders stop zones and split markers.
Class Methods
| Method | Signature | Description |
|---|---|---|
C:init | (raceEditor) | Initializes with parent editor reference |
C:setPath | (path) | Sets the race path |
C:selected / C:unselect | () | No-op |
C:draw | () | Renders the layout configuration panel |
C:drawGeneralInfo | () | Main UI: laps, node/position selectors, classification |
C:changeField | (field, new) | Commits a field change with undo/redo |
C:displayClassification | (classification, name, field, tt) | Shows check/X icon |
C:selector | (name, objects, fieldName, clrI, tt) | Dropdown selector with debug draw label |
C:drawStopZone | () | Draws "Stop Control" label at STOP_ZONE position |
C:drawSplits | () | Draws numbered "Split" labels at split pathnodes |
Layout Configuration
| Field | Collection | Description |
|---|---|---|
| Lap Count | - | Default number of laps (min 1, open tracks = 1) |
| Start Node | pathnodes | Start/finish line node |
| End Node | pathnodes | Finish line for open tracks |
| Default Starting Position | startPositions | Normal mode spawn |
| Reverse Starting Position | startPositions | Reverse mode spawn |
| Rolling Starting Position | startPositions | Rolling start spawn |
| Reverse Rolling Starting Position | startPositions | Reverse rolling start spawn |
Track Classification
| Flag | Condition |
|---|---|
| Reversible | Default + Reverse start positions set (+ End Node for open) |
| Rolling Start | Rolling start position set (+ reverse rolling if reversible) |
| Closed | Track loops back to start (allows multiple laps) |
| Branching | Track has branching paths (disables time comparison) |
Notes
- Stop zones are detected by start position names:
STOP_ZONE,SS_stop_control,TC_out. - Split markers are drawn for pathnodes with
useAsSplit = true(excludes the last node). - Selected selectors draw debug text labels at the object's world position.
Module Variables
windowDescription(string) - Module variable.
Module Variables
windowDescription(string) - Module variable.
See Also
- Race Editor - Pacenotes Tab - Related reference
- Race Editor - Pathnodes Tab - Related reference
- Race Editor - Segments Tab - Related reference
- World Editor Guide - Guide