Timeline: cut, copy and paste one frame property

In the frames context menu, Cut/Copy/Paste each open onto Frame (the whole
frame, as Ctrl+X/C/V) or Property, which lists the properties the frame
type has. Copying a property copies the focused (or first selected) frame;
pasting sets just that property on the selected frames, and is disabled
when a target lacks it or what it refers to (region on the target's
spritesheet, shader, event, sounds). Cutting resets it to the default.
Actions gained submenus; edit::frames_property_set does the work (tested).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
shweetandClaude Opus 5.5 committed 2026-10-03 21:11:09 -04:00
1 parent 8fb28ef30a
commit 97be81b5c1
11 files changed
+306 -9

No files matched your search

+9
View File
@@ -97,6 +97,14 @@ namespace anm2ed::imgui
bool isActive{};
};
// What the timeline last put on the clipboard: frames of a type, or one property of a frame.
struct FrameClipboard
{
std::string text{};
int itemType{NONE};
int property{-1};
};
struct FrameDurationDrag
{
Reference reference{};
@@ -113,6 +121,7 @@ namespace anm2ed::imgui
{
bool isDragging{};
bool isRulerHovered{};
FrameClipboard frameClipboard{};
int markerTime{};
bool isWindowHovered{};
bool isHorizontalScroll{};