[nostalgia/core/studio] Start tile sheet editor

This commit is contained in:
2019-11-26 23:23:12 -06:00
parent 69666a0b31
commit 8f21670439
13 changed files with 334 additions and 19 deletions
+12 -3
View File
@@ -8,6 +8,7 @@
#include "new_tilesheet_wizard.hpp"
#include "import_tilesheet_wizard.hpp"
#include "tilesheeteditor.hpp"
#include "plugin.hpp"
@@ -15,9 +16,6 @@ using namespace nostalgia::studio;
namespace nostalgia::core {
Plugin::Plugin() {
}
QVector<studio::WizardMaker> Plugin::newWizards(const Context *ctx) {
return {
{
@@ -45,4 +43,15 @@ QVector<studio::WizardMaker> Plugin::importWizards(const studio::Context *ctx) {
};
}
QVector<studio::EditorMaker> Plugin::editors(const studio::Context *ctx) {
return {
{
{"ng"},
[ctx](QString path) {
return new TileSheetEditor(path, ctx, ctx->tabParent);
}
}
};
}
}