[nostalgia/core/studio] Add insert/delete tile actions and make double click on subsheet open SubsheetEditor

This commit is contained in:
2022-05-22 16:15:58 -05:00
parent 4a921cf65f
commit 74effd3611
6 changed files with 210 additions and 33 deletions
@@ -78,10 +78,15 @@ class TileSheetEditorImGui: public studio::BaseEditor {
studio::UndoStack *undoStack() noexcept final;
[[nodiscard]]
static geo::Vec2 clickPos(const ImVec2 &winPos, geo::Vec2 clickPos) noexcept;
protected:
ox::Error saveItem() noexcept override;
private:
void showSubsheetEditor() noexcept;
[[nodiscard]]
constexpr auto model() const noexcept {
return m_tileSheetEditor.model();