Skip to content

Add event and message reordering to the FRED event editor#7539

Draft
Goober5000 wants to merge 2 commits into
scp-fs2open:masterfrom
Goober5000:feature/reorder_messages_events
Draft

Add event and message reordering to the FRED event editor#7539
Goober5000 wants to merge 2 commits into
scp-fs2open:masterfrom
Goober5000:feature/reorder_messages_events

Conversation

@Goober5000

Copy link
Copy Markdown
Contributor

Add "Move to top / up / down / to bottom" controls -- vertical icon-button strips beside both the event tree and the message list -- so events and messages can be reordered in place.

Also add an "Insert Msg" button that inserts a message at the current selection, mirroring the existing "Insert Event".

Tweak the message-area layout, drop the "Messages" label, and edit the AFX_DIALOG_LAYOUT table for proper behavior when the dialog is resized.

Depends on #7538; in draft until that is merged.

@Goober5000 Goober5000 added enhancement A new feature or upgrade of an existing feature to add additional functionality. fred A feature or issue related to the FReespace EDitor (FRED) labels Jun 19, 2026
Goober5000 and others added 2 commits June 19, 2026 02:17
Event annotations cache the tree item they point to as a handle (HTREEITEM in
FRED, QTreeWidgetItem* in qtFRED). The handle was silently invalidated whenever
the tree control deleted-and-recreated an item, so annotations got decoupled.

Fix: notify when a node's handle changes. move_branch reports old->new, and
free_node2 / the root-delete path report old->null (deleted). The event tree
remaps the annotation's handle to follow a move, or clears it on delete (the path
is left intact, so a cleared annotation is dropped at save but survives a Cancel).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Add "Move to top / up / down / to bottom" controls -- vertical icon-button
strips beside both the event tree and the message list -- so events and
messages can be reordered in place.

Also add an "Insert Msg" button that inserts a message at the current
selection, mirroring the existing "Insert Event".

Tweak the message-area layout, drop the "Messages" label, and edit the
AFX_DIALOG_LAYOUT table for proper behavior when the dialog is resized.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@Goober5000 Goober5000 force-pushed the feature/reorder_messages_events branch from d9d4e8f to 91c6ab9 Compare June 19, 2026 06:17
@Sessile-Nomad

Copy link
Copy Markdown

Noice! I was going to request this but you done beat me to it. It's a good thing 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement A new feature or upgrade of an existing feature to add additional functionality. fred A feature or issue related to the FReespace EDitor (FRED)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants