Skip to content

Refactor editor clipboard logic as blitting logic#21642

Merged
PunkPun merged 1 commit into
OpenRA:bleedfrom
ashleynewson:ashleynewson/editor-blit-pr
Nov 15, 2024
Merged

Refactor editor clipboard logic as blitting logic#21642
PunkPun merged 1 commit into
OpenRA:bleedfrom
ashleynewson:ashleynewson/editor-blit-pr

Conversation

@ashleynewson

Copy link
Copy Markdown
Contributor
  • Refactors internal editor clipboard logic into reusable map contents "Blitting" functionality.
  • Fix actor processing being unnecessarily (cell) looped within CopySelectionContents (now CopyRegionContents).
  • Deduplicates largely repeated code.
  • Minor code simplifications and renames.

This is a refactor with no expected user-visible changes. These changes have been split out from #21637 and are ultimately motivated by that work.

- Refactors internal editor clipboard logic into reusable map contents
  "Blitting" functionality.
- Fix actor processing being unnecessarily (cell) looped within
  CopySelectionContents (now CopyRegionContents).
- Deduplicates largely repeated code.
- Minor code simplifications and renames.
@ashleynewson
ashleynewson marked this pull request as ready for review November 13, 2024 01:47

@RoosterDragon RoosterDragon left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did some copy-paste testing in RA and TS. Worked fine with all the various toggles for what to copy. After doing a lot of operations was able to undo and redo parts of as well as the whole history stack and get the same output. This passing is TS gives me confidence it's working okay with isometric and height.

@PunkPun PunkPun left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works as advertised

@PunkPun
PunkPun merged commit 7401182 into OpenRA:bleed Nov 15, 2024
@PunkPun

PunkPun commented Nov 15, 2024

Copy link
Copy Markdown
Member

changelog

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.

3 participants