[nostalgia/core/studio] Add palette picker combo box

This commit is contained in:
2022-03-24 20:54:17 -05:00
parent ef3a28846c
commit 6eb4070d97
5 changed files with 82 additions and 7 deletions
@@ -6,9 +6,7 @@
#include <ox/model/def.hpp>
#include <nostalgia/geo/bounds.hpp>
#include <nostalgia/geo/vec.hpp>
#include <nostalgia/core/gfx.hpp>
#include <nostalgia/glutils/glutils.hpp>
#include <nostalgia/studio/studio.hpp>
@@ -43,6 +41,9 @@ class TileSheetEditorImGui: public studio::Editor {
}
void draw() noexcept;
};
std::size_t m_selectedPaletteIdx = 0;
Context *m_ctx = nullptr;
ox::Vector<ox::String> m_paletteList;
SubSheetEditor m_subsheetEditor;
ox::String m_itemPath;
ox::String m_itemName;
@@ -103,7 +104,7 @@ class TileSheetEditorImGui: public studio::Editor {
void drawTileSheet(const geo::Vec2 &fbSize) noexcept;
void drawPalettePicker() noexcept;
void drawPaletteSelector() noexcept;
ox::Error updateActiveSubsheet(const ox::String &name, int cols, int rows) noexcept;