[nostalgia/core/studio] Add NewPaletteWizard and implement NewTileSheetWizard

This commit is contained in:
2020-03-31 21:11:41 -05:00
parent 5cec2cf819
commit 64ee637b74
7 changed files with 107 additions and 8 deletions
@@ -564,9 +564,7 @@ void TileSheetEditor::restoreState() {
}
QString TileSheetEditor::paletteName(QString palettePath) const {
const auto begin = ox_strlen(PaletteDir);
const auto end = palettePath.size() - (ox_strlen(FileExt_npal) + ox_strlen(PaletteDir));
return palettePath.mid(begin, end);
return studio::filePathToName(palettePath, PaletteDir, FileExt_npal);
}
QString TileSheetEditor::palettePath(QString paletteName) const {