Skip to content

convert debriefing editor to modeless; add focus_sexp(); fix bugs#7307

Open
Goober5000 wants to merge 1 commit intoscp-fs2open:masterfrom
Goober5000:debriefing_modeless
Open

convert debriefing editor to modeless; add focus_sexp(); fix bugs#7307
Goober5000 wants to merge 1 commit intoscp-fs2open:masterfrom
Goober5000:debriefing_modeless

Conversation

@Goober5000
Copy link
Contributor

@Goober5000 Goober5000 commented Mar 21, 2026

Convert debriefing_editor_dlg from a modal stack-allocated dialog to a modeless heap-allocated dialog, matching the pattern of the briefing editor. Update FRED infrastructure accordingly.

Add focus_sexp(int node) to debriefing_editor_dlg, mirroring the existing method in briefing_editor_dlg. Fix both focus_sexp() implementations to search all team debriefings/briefings instead of only the currently selected team, so nodes in non-zero teams are found correctly in TVT missions.

Fix debriefing set_modified() calls to only set the flag if the debriefing data actually changes, rather than every time the editor was opened.

@Goober5000 Goober5000 added the fred A feature or issue related to the FReespace EDitor (FRED) label Mar 21, 2026
@Goober5000 Goober5000 force-pushed the debriefing_modeless branch 2 times, most recently from 828adb8 to 7124bf3 Compare March 21, 2026 05:28
Convert `debriefing_editor_dlg` from a modal stack-allocated dialog to a modeless heap-allocated dialog, matching the pattern of the briefing editor.  Update FRED infrastructure accordingly.

Add `focus_sexp(int node)` to `debriefing_editor_dlg`, mirroring the existing method in `briefing_editor_dlg`.  Fix both `focus_sexp()` implementations to search all team debriefings/briefings instead of only the currently selected team, so nodes in non-zero teams are found correctly in TVT missions.

Fix `debriefing set_modified()` calls to only set the flag if the debriefing data actually changes, rather than every time the editor was opened.
@Goober5000 Goober5000 force-pushed the debriefing_modeless branch from 7124bf3 to a56bded Compare March 21, 2026 05:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fred A feature or issue related to the FReespace EDitor (FRED)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant