[nostalgia/core/studio] Add SubSheet editor

This commit is contained in:
2022-03-05 11:40:54 -06:00
parent 921cb97a14
commit 2f7c62f2ef
4 changed files with 107 additions and 1 deletions
@@ -21,6 +21,22 @@ namespace nostalgia::core {
class TileSheetEditorImGui: public studio::Editor {
private:
class SubSheetEditor {
ox::BString<100> m_name;
int m_cols = 0;
int m_rows = 0;
bool m_show;
public:
ox::Signal<ox::Error(const ox::String &name, int cols, int rows)> inputSubmitted;
constexpr void show(const ox::String &name, int cols, int rows) noexcept {
m_show = true;
m_name = name.c_str();
m_cols = cols;
m_rows = rows;
}
void draw() noexcept;
};
SubSheetEditor m_subsheetEditor;
ox::String m_itemPath;
ox::String m_itemName;
glutils::FrameBuffer m_framebuffer;