breadloaf64 / Chime

A cute little breakout-inspired game
0 stars 0 forks source link

change clear level to new level button in editor #44

Closed breadloaf64 closed 3 years ago

breadloaf64 commented 3 years ago

right now we have a clear level button, which just clears the blocks in the level.

Instead, we should have a "new level" button. This will clear the level and level name and level text in onw fell swoop. On this button we have a dialog saying "save changes to current level?" with options for yes no and cancel.

breadloaf64 commented 3 years ago

Done did it, son. Made the YesNoCancel dialog. The dialogue comes up only when changes have been made since saving. To do this we use the changedSinceSave bool in LevelEditor.