[nostalgia/studio] Add export option to tilesheet editor

This commit is contained in:
2022-05-25 21:21:28 -05:00
parent 2448bdcc82
commit 0adfaa7901
6 changed files with 103 additions and 31 deletions
@@ -43,7 +43,7 @@ class TileSheetEditorImGui: public studio::BaseEditor {
};
std::size_t m_selectedPaletteIdx = 0;
Context *m_ctx = nullptr;
ox::Vector<ox::String> m_paletteList;
ox::Vector<ox::String> m_paletteList{};
SubSheetEditor m_subsheetEditor;
ox::String m_itemPath;
ox::String m_itemName;
@@ -87,6 +87,8 @@ class TileSheetEditorImGui: public studio::BaseEditor {
private:
void showSubsheetEditor() noexcept;
void exportSubhseetToPng() noexcept;
[[nodiscard]]
constexpr auto model() const noexcept {
return m_tileSheetEditor.model();