API ReferenceGE ExtensionseditormissionPlaybook
Playbook Unlocked Missions Viewer
Editor extension that displays a **three-column view** of mission unlock states (startable / visible / invisible) at each playbook step.
Editor extension that displays a three-column view of mission unlock states (startable / visible / invisible) at each playbook step.
Overview
Shows all career missions categorised by their current unlock state at the selected playbook page. Newly unlocked missions are highlighted in green.
Module Interface (M)
| Function | Description |
|---|---|
M.onEditorInitialized() | Registers window (500×500) and menu item under "Missions". |
M.onEditorGui() | Draws the three-column mission list (only if Mission Playbook is visible). |
M.show() | Shows both the playbook and this viewer window. |
M.onPlaybookLogAfterStep(resultData) | Hook: categorises all career missions into startable/visible/invisible. |
Display Columns
| Column | Description |
|---|---|
| Startable | Missions that are both visible and startable |
| Visible | Missions visible but not yet startable |
| Invisible | Missions not yet revealed |
Highlighting
Missions that became startable in the current step (present in resultData.funRet.unlockChange.byId) are shown in green.
Data Snapshot Format
resultData.unlockedMissions = {
startable = { "italy/race/001", "italy/race/002" },
visible = { "italy/delivery/003" },
invisible = { "west_coast/drift/010" }
}Usage Example
-- Automatically hooks into playbook execution
editor_missionPlaybook_unlockedMissionsViewer.show()Module Variables
onEditorRegisterPreferences(any) - Module variable.
Module Variables
onEditorRegisterPreferences(any) - Module variable.
Additional Exports
M.onEditorRegisterPreferences
See Also
- Playbook Attribute Viewer - Related reference
- Playbook Mission Tree Viewer - Related reference
- World Editor Guide - Guide