You are browsing as a guest. Sign up (or log in) to start making projects!

3h 56m 7s logged

Undo/Redo …again!

been working on the editor again

the undo/redo system now covers a lot more than just gizmo transforms. but there’s still a few things left (entity creation/deletion mainly).

changes

undo/redo

expanded the command system to cover most editor actions.

currently supports:

  • entity transforms
  • adding/removing components
  • adding/removing scripts
  • editing project settings
  • editing scene properties

also fixed the undo/redo shortcuts so they only trigger once per key press instead of repeatedly firing while the keys are held… which is probably how they should’ve worked from the start

map editor

continued working on map editing.

painting and erasing now properly integrate with the command system. also, an entire brush stroke is treated as a single undo step instead of undoing one tile at a time.

also cleaned up a couple of edge cases while doing this, like preserving existing tile data and avoiding unnecessary commands when nothing actually changed.

misc

did a bit of cleanup around the editor while wiring everything together.

  • centralized a few bits of duplicated UI logic
  • cleaned up window title updates
  • continued refactoring the command system

the undo system is still unfinished, but it covers most of the important stuff and feels nice..


also.. still gotta fix some ui window-size stuff soon too but .. thats for later

0
10

Comments 1

@sol4r_on_hackclub

prolly one of the most important QoL, looking good