API ReferenceGE ExtensionseditorraceEditor
Race Editor - Time Trials Tab
Sub-module for editing time trial metadata - name, description, authors, difficulty, prefabs, and preview images.
Sub-module for editing time trial metadata - name, description, authors, difficulty, prefabs, and preview images.
Overview
Manages the descriptive metadata for a race/time trial track. Includes fields for name, description, authors, difficulty rating, and prefab file references (default, forward-only, reverse-only). Also shows track classification and preview image status.
Class Methods
| Method | Signature | Description |
|---|---|---|
C:init | (raceEditor) | Initializes with parent editor reference |
C:setPath | (path) | Sets the race path and refreshes UI fields |
C:selected | () | Populates text buffers and loads prefab filenames |
C:unselect | () | No-op |
C:draw | () | Renders the general info panel |
C:changeField | (field, new, add) | Commits a field change with undo/redo |
C:drawGeneralInfo | () | Main UI: name, description, difficulty, classification, prefabs |
C:drawPrefabs | (fieldName, default) | Renders prefab file list with add/remove/browse |
C:findPreview | () | Checks for and loads the preview JPG image |
C:displayClassification | (classification, name, field, tt) | Shows check/X icon for a classification flag |
C:existsIcon | (f, inPathFolder) | Shows check/error icon based on file existence |
Track Metadata Fields
| Field | Type | Description |
|---|---|---|
name | string | Track display name |
description | string | Multi-line description |
authors | string | Creator credits |
difficulty | int | 0-99 mapped to Easy/Medium/Hard/Very Hard |
prefabs | array | Always-loaded prefab files |
forwardPrefabs | array | Forward-direction-only prefabs |
reversePrefabs | array | Reverse-direction-only prefabs |
Classification Indicators
| Indicator | Description |
|---|---|
| Reversible | Both default and reverse start positions set |
| Rolling Start | Rolling start position set (and reverse if reversible) |
| Preview | JPG file exists at <dir>/<filename>.jpg |
Notes
- Preview image is shown on hover when found.
- Prefab entries support file dialog browsing for
.prefaband.prefab.jsonfiles. - Default prefab (
<filename>.prefab) is always auto-loaded if it exists.
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