Timeline start/end markers
Right-clicking the numbered row offers Add Start/End Marker Here and Remove Markers; Shift+Comma / Shift+Period (configurable) set them at the playhead. Markers are faded playheads, with the numbers outside their range darkened, and playback loops within them. They are saved as StartMarker/EndMarker on the editor's copy (SourceDocument) only, as one undoable edit each. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
24af98a68e
commit
251d04848a
15 files changed
+147
-13
No files matched your search
@@ -153,8 +153,12 @@ namespace anm2ed::imgui
|
||||
actions.add(ACTION_CUT, [=, this]() { return !selectedFrames.empty(); }, [this]() { cut(); });
|
||||
actions.add(ACTION_COPY, [=, this]() { return !copyFrames.empty(); }, [this]() { copy(); });
|
||||
actions.add(ACTION_PASTE, [&]() { return !clipboard.is_empty(); }, [this]() { paste(); });
|
||||
actions_context_window_draw("##Context Menu", actions, settings, ImGuiPopupFlags_MouseButtonRight,
|
||||
ImGuiHoveredFlags_ChildWindows);
|
||||
// The numbered row has its own (marker) menu.
|
||||
if (isRulerHovered)
|
||||
actions_popup_draw("##Context Menu", actions, settings);
|
||||
else
|
||||
actions_context_window_draw("##Context Menu", actions, settings, ImGuiPopupFlags_MouseButtonRight,
|
||||
ImGuiHoveredFlags_ChildWindows);
|
||||
|
||||
ImGui::PopStyleVar(2);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user