Name row drops, merge sources, playback looping and spritesheet merge options

items_move takes a DropZone, animations_merge MergeSources, Playback::tick PlaybackLoop, and spritesheets_merge SpritesheetMergeOptions.
This commit is contained in:
shweet committed 2026-11-22 18:58:37 -05:00
1 parent 228a15b5b3
commit ada48aefdd
19 files changed
+78 -53

No files matched your search

+2 -1
View File
@@ -110,8 +110,9 @@ std::optional<Image> spritesheet_pack(Model& model, int id, const Image& sheet,
// Appends sheets to the first, right or below. The result is an SVG (holding any PNG sheets as images) when any of
// them is one. The first sheet's path takes the result's extension.
std::optional<Image> spritesheets_merge(Model& model, const std::set<int>& ids, const ImageGet& image_get,
bool isAppendRight, bool isMakeRegions, bool isMakePrimaryRegion, Origin origin)
SpritesheetMergeOptions options)
{
auto [isAppendRight, isMakeRegions, isMakePrimaryRegion, origin] = options;
if (ids.size() < 2)
return {};
for (auto id : ids)