Skip to content

feat: edit a mission's records in the inspector, and add new ones - #28

Merged
vdmkenny merged 1 commit into
mainfrom
feat/record-forms
Oct 15, 2026
Merged

vdmkenny merged 1 commit into
mainfrom
feat/record-forms

Conversation

@vdmkenny

Copy link
Copy Markdown
Contributor

The inspector edits the selected record as a form, and the outline adds records (#8).

  • Forms. Each record's fields and their kinds come from OpenReliant's tables of the language (dte.source.language), through the game's profile: lists of the mission's records or of the game's values (with a find box for long ones), X/Y/Z boxes for a vector, number boxes, checkboxes, and the value's source for the rest. The ship's form follows the Scene design: a Place heading, X/Y/Z, and Angles on one row. A trigger's form sets what it watches, its condition and the values it checks, Repeats and Deferred.
  • Edits. Each change rewrites one span of the source, as one step of Undo, in the table's own layout (mission/edit.zig): OpenReliant's syntax tree gives where a value starts, and the editor reads the text for where it ends.
  • Adding. The outline's + (Mission · Add a record) adds a ship, a nav point, a waypoint, a flight group, a part, a trigger or a global after the last record of its kind, and selects it. A Problems card's Declare adds one under the name that isn't declared.
  • Settings has a back button; the design's three settings pages have it too, with their pictures taken again.
  • Queued changes. The interface queues a change while a frame draws, and the app makes it once the frame is drawn, since making it checks the source again and replaces the outline the panels draw from. This also fixes the Problems card's Use fix, which checked the source again while the panel drew its list.

Not in this PR: renaming a record (Declared as), forms of their own for Launch, formation points and a counted trigger's count (their source can be typed), and adding squads, formations and curves.

Docs: docs/editing.md, and Editing records in docs/architecture.md.

Checks: make check (58 tests), and the forms tried in the editor on the guide's first mission.

Closes #8

The inspector shows the selected record as a form, built from
OpenReliant's tables of the language through the game's profile, and
each change rewrites one span of the source as one step of Undo, in
the table's own layout. The outline's + and a Problems card's Declare
add records. Settings gets a back button, in the design too.

Changes are queued while a frame draws and made after it: making one
checks the source again, which replaces the outline the panels draw
from. This also fixes the Use fix, which checked the source again
while the Problems panel drew its list.
@vdmkenny
vdmkenny merged commit 104aac1 into main Oct 15, 2026
3 checks passed
@vdmkenny
vdmkenny deleted the feat/record-forms branch October 15, 2026 10:14
vdmkenny pushed a commit that referenced this pull request Oct 15, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.2.0](v0.1.1...v0.2.0)
(2026-10-15)


### Features

* edit a mission's records in the inspector, and add new ones
([#28](#28))
([104aac1](104aac1)),
closes [#8](#8)
* the Scene view maps a mission's ships, markers, ranges and routes
([#31](#31))
([4e5061e](4e5061e)),
closes [#2](#2)


### Fixes

* icons on their own sit in the middle of their boxes
([#30](#30))
([58c23a4](58c23a4))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add and edit records with forms

1 participant