Remove built-in stop and done events

Events are plain again: no built-in names offered, locked or listed in the
Events window, and the game's copy of a trigger keeps its first event. The
list rows' rename lock and event_id_resolve go with them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
shweetandClaude Opus 5.5 committed 2026-10-21 00:20:11 -04:00
1 parent 5f01e8065d
commit 4141c53681
12 files changed
+21 -112

No files matched your search

-12
View File
@@ -22,18 +22,6 @@ namespace anm2ed::edit
}
}
// An event id from a choice: a built-in event not yet in the file is added (or found by name) first.
int event_id_resolve(Model& model, int id)
{
auto index = EVENT_BUILT_IN_ID_FIRST - id;
if (index < 0 || index >= (int)std::size(EVENT_BUILT_INS)) return id;
auto& events = model.content.events;
std::string name(EVENT_BUILT_INS[index]);
auto event = std::ranges::find(events, name, &Event::name);
if (event != events.end()) return event->id;
return events.emplace_back(Event{.id = item_next_id_get(events), .name = name}).id;
}
bool is_region_matched(const Region& region, const Frame& frame)
{
return glm::ivec2(region.crop) == glm::ivec2(frame.crop) && glm::ivec2(region.size) == glm::ivec2(frame.size) &&