Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Overhaul copy-paste behavior #23

Draft
wants to merge 16 commits into
base: master
Choose a base branch
from

Conversation

zacharied
Copy link
Contributor

@zacharied zacharied commented Feb 20, 2025

This PR is a draft while I find bugs and adjust behavior.

My goal is to make the copy-paste functionality more useful for copying lanes, while keeping the original behavior for floating objects.

I rewrote the entire DefaultFumenEditorClipboard.

Changes

  • Use XGrid/TGrid coordinates when copy-pasting instead of screen coordinates
  • Ignore editor vertical scaling when pasting
  • Copy lanes that only have Next nodes selected

Coordinate changes

Copy-paste code is easier to work with.

Also allows for pasting objects after changing editor vertical scale.

OngekiFumenEditor_7SHdbVzm3Y.mp4

Partial lane copying

Lanes can be copied without having to select the start node.
image

Lane generation on dockables

If a dockable object is selected and is outside of the bounds of selected lane nodes, start/next node(s) will automatically be created in the clipboard. The original lanes are not modified at all.

Examples (left is selection, right is result of paste)
image

image

image

image

Hold copying

Holds with a selected HoldEnd will copy the HoldEnd into the clipboard. If only the HoldEnd is is selected, it will be ignored when copying.

Examples (left is selection, right is result of paste)
image

image

image

@zacharied zacharied marked this pull request as draft February 20, 2025 00:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant