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
@@ -347,7 +347,13 @@ namespace anm2ed::imgui
|
||||
if (isEnd) document_change_push(manager);
|
||||
}
|
||||
|
||||
if ((useTool == tool::DRAW || useTool == tool::ERASE) && texture)
|
||||
auto isDrawTool = useTool == tool::DRAW || useTool == tool::ERASE;
|
||||
if (isDrawTool && texture && texture->is_vector())
|
||||
{
|
||||
ImGui::SetMouseCursor(ImGuiMouseCursor_NotAllowed);
|
||||
if (isMouseDown) tooltip_lines_draw({localize.get(TEXT_SVG_NOT_EDITABLE)});
|
||||
}
|
||||
else if (isDrawTool && texture)
|
||||
{
|
||||
if (isMouseClicked) edit_begin_push(manager, useTool == tool::DRAW ? EDIT_DRAW : EDIT_ERASE);
|
||||
if (isMouseDown)
|
||||
|
||||
Reference in new issue
Block a user