shibbo / Fushigi

An editor for Super Mario Bros. Wonder.
MIT License
133 stars 30 forks source link

Add support for creating and editing terrain wall units. #30

Closed KillzXGaming closed 11 months ago

KillzXGaming commented 11 months ago

This is initial support for creating and editing wall rails.

image

Walls are now stored under a list of WallUnitRenderers in CourseArea. These control all functionality for editing the wall units. Beltrails have a similar treatment but I decided to hide them for now. I am not sure how we should handle these yet.

This also adds support for undo/redo handling by using CTRL + Z and CTRL + R for redo. Simply creating a IRevertable state, then adding to AddToUndo in the viewport to use. I currently have both transform, add, and delete states for the points for an idea on how I added this. This also includes a begin/end undo states for doing collection of states at once.