Several events per trigger, built-in stop and done events

A trigger holds a list of events (Frame Properties lists them like sounds);
the first stays its EventId, the rest are <Event Id> children in the
editor's copy, and the Isaac warning counts the dropped ones. In extended
documents, stop and done are offered as built-in events: listed in italics
at the top of Events, locked from renaming, and added to the file when a
trigger first uses one.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
shweetandClaude Opus 5.5 committed 2026-10-08 17:35:11 -04:00
1 parent 4375844c84
commit b31a28ebe9
19 files changed
+195 -101

No files matched your search

+3 -3
View File
@@ -372,9 +372,9 @@ namespace anm2ed::imgui
if (property == edit::FrameProperty::SHADER && source->shaderId != -1 &&
!model::item_get(content.shaders, source->shaderId))
return false;
if (property == edit::FrameProperty::EVENT && source->eventId != -1 &&
!model::item_get(content.events, source->eventId))
return false;
if (property == edit::FrameProperty::EVENT)
for (auto eventId : source->eventIds)
if (eventId != -1 && !model::item_get(content.events, eventId)) return false;
if (property == edit::FrameProperty::SOUNDS)
for (auto soundId : source->soundIds)
if (soundId != -1 && !model::item_get(content.sounds, soundId)) return false;