Interrupt / delverengine

Delver game engine and editor
zlib License
794 stars 79 forks source link

Adding Entity Field Changes To History #282

Open PythooonUser opened 2 years ago

PythooonUser commented 2 years ago

Summary

Relates to #273.

Entity field changes are now persisted in history, therefore, can be undone.

Interrupt commented 1 year ago

Taking the case of changing a light color for example, saving the whole level state when dragging through the color slider might be way too many updates since the property value could change every tick for many ticks. Not sure offhand a quick fix for that, might need to commit the change after the mouse is released.

PythooonUser commented 1 year ago

Good point. Didn't think of that. Listening for that mouse down/up event could be the solution.