[nostalgia/core/studio] Get Undo/Redo working

This commit is contained in:
2022-02-16 20:17:33 -06:00
parent c92ecdf499
commit 302dd23a36
6 changed files with 39 additions and 14 deletions
@@ -28,9 +28,6 @@ class TileSheetEditorImGui: public studio::Editor {
float m_palViewWidth = 200;
geo::Vec2 m_prevMouseDownPos;
// palette view vars
std::size_t m_palIdx = 0;
public:
TileSheetEditorImGui(Context *ctx, const ox::String &path);
@@ -50,6 +47,8 @@ class TileSheetEditorImGui: public studio::Editor {
void draw(core::Context*) noexcept override;
virtual studio::UndoStack *undoStack() noexcept override;
protected:
void saveItem() override;