Mission Editor - Additional Attributes
Sub-editor module for mission additional attributes including author, date, difficulty, grouping, time-of-day settings, and custom key-value attributes.
Sub-editor module for mission additional attributes including author, date, difficulty, grouping, time-of-day settings, and custom key-value attributes.
Class Methods
| Method | Signature | Description |
|---|---|---|
C:init | (missionEditor) | Initializes with attribute definitions |
C:setMission | (mission) | Binds to a mission and initializes input buffers |
C:getMissionIssues | (m) → issues[] | Returns validation issues (missing difficulty, author, date, etc.) |
C:draw | () | Renders the additional attributes ImGui panel |
Validated Fields
| Field | Required | Issue Severity |
|---|---|---|
difficulty | Yes | error |
author | Yes | error |
date | Yes | error |
grouping.label translation | No | minor |
devMission in shipping | Yes | error |
Attributes System
Missions can have additional attributes defined by gameplay_missions_missions.getAdditionalAttributes(). Each attribute has:
- A key (e.g.,
difficulty) - Possible values with labels
- UI rendered as combo dropdowns
Time-of-Day (ToD)
Converts ToD float values (0.0–1.0) to human-readable time format (HH:MM:SS).
-- Usage: managed internally by the mission editor
-- No direct external APIDependencies
gameplay_missions_missions- Attribute definitionsui_imgui
Functions
updateDateHumanReadable()
Updates date human readable.
Returns: string.format("%02d:%02d:%02d", hours, mins, secs)
openTimeUpdater()
Handles open time updater.
Returns: o
timeUpdaterPopup()
Handles time updater popup.
Returns: o
Functions
updateDateHumanReadable()
Updates date human readable.
Returns: string.format("%02d:%02d:%02d", hours, mins, secs)
openTimeUpdater()
Handles open time updater.
Returns: o
timeUpdaterPopup()
Handles time updater popup.
Returns: o
See Also
- Mission Editor - Career Setup - Related reference
- Mission Editor - Conditions - Related reference
- Mission Editor - Dev Notes - Related reference
- World Editor Guide - Guide
Mesh Spline - Spline Manager
Core data management module for the Mesh Spline tool. Handles creation, deletion, serialization, undo/redo, linking to master splines, and mesh spline presets.
Mission Editor - Career Setup
Sub-editor module for configuring mission career integration: career/freeroam visibility, star rewards, attribute rewards (money, vouchers, branch XP), and skill requirements.