SVG sheets: draw tool hint, convert to PNG for Rebirth; game copy skips built-in events
Drawing or erasing on an SVG spritesheet shows why it can't be edited (and no longer leaves an empty undo step). Saving a Rebirth document whose layers show SVG spritesheets first offers to convert them into PNGs beside them (one undoable edit); keeping them counts them in the Isaac warning. The game's copy of a trigger keeps its first event that isn't stop or done, and only further custom events count as dropped. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
5d274e547a
commit
280adaa189
14 files changed
+154
-10
No files matched your search
@@ -450,5 +450,11 @@ TEST_CASE("a trigger fires several events; built-in events join a file when firs
|
||||
auto text = model::model_to_string(model);
|
||||
CHECK(model_load(text).frame_get({0, TRIGGER, -1, 0})->eventIds == std::vector{0, stopId, 1});
|
||||
CHECK(model_load(game_document_get(text)).frame_get({0, TRIGGER, -1, 0})->eventIds == std::vector{0});
|
||||
CHECK(model::isaac_issues_get(model).extraEvents == 2);
|
||||
CHECK(model::isaac_issues_get(model).extraEvents == 1);
|
||||
|
||||
// The game's copy skips built-in events for the first custom one.
|
||||
model.frame_edit({0, TRIGGER, -1, 0})->eventIds = {stopId, 1};
|
||||
CHECK(model_load(game_document_get(model::model_to_string(model))).frame_get({0, TRIGGER, -1, 0})->eventIds ==
|
||||
std::vector{1});
|
||||
CHECK(model::isaac_issues_get(model).extraEvents == 0);
|
||||
}
|
||||
Reference in new issue
Block a user