Squashed 'deps/nostalgia/' changes from 1af4da43..1cc1d561
1cc1d561 [studio] Add a file explorer to NewMenu to choose where new files go d15a0df7 [studio] Make reusable FileTreeModel e1282b6b [studio] Fix build 5fe7c14c [nostalgia/sample_project] Rename TileSheet files using new file ext 42165ba2 [nostalgia/gfx] Change default file extension for TileSheets to nts git-subtree-dir: deps/nostalgia git-subtree-split: 1cc1d561e2edfd454335b0cb4d85332e8588237d
This commit is contained in:
@@ -13,6 +13,7 @@ constexpr auto TileHeight = 8;
|
||||
constexpr auto PixelsPerTile = TileWidth * TileHeight;
|
||||
|
||||
constexpr ox::StringLiteral FileExt_ng("ng");
|
||||
constexpr ox::StringLiteral FileExt_nts("nts");
|
||||
constexpr ox::StringLiteral FileExt_npal("npal");
|
||||
|
||||
}
|
||||
|
@@ -14,14 +14,14 @@ namespace nostalgia::gfx {
|
||||
static class: public studio::Module {
|
||||
ox::Vector<studio::EditorMaker> editors(studio::StudioContext &ctx) const noexcept final {
|
||||
return {
|
||||
studio::editorMaker<TileSheetEditorImGui>(ctx, FileExt_ng),
|
||||
studio::editorMaker<TileSheetEditorImGui>(ctx, {FileExt_ng, FileExt_nts}),
|
||||
studio::editorMaker<PaletteEditorImGui>(ctx, FileExt_npal),
|
||||
};
|
||||
}
|
||||
|
||||
ox::Vector<ox::UPtr<studio::ItemMaker>> itemMakers(studio::StudioContext&) const noexcept final {
|
||||
ox::Vector<ox::UniquePtr<studio::ItemMaker>> out;
|
||||
out.emplace_back(ox::make<studio::ItemMakerT<TileSheet>>("Tile Sheet", "TileSheets", FileExt_ng));
|
||||
out.emplace_back(ox::make<studio::ItemMakerT<TileSheet>>("Tile Sheet", "TileSheets", FileExt_nts));
|
||||
out.emplace_back(ox::make<studio::ItemMakerT<Palette>>("Palette", "Palettes", FileExt_npal, Palette{
|
||||
.colorNames = {},
|
||||
.pages = {{"Page 1", ox::Vector<PaletteColor>{}}},
|
||||
|
Reference in New Issue
Block a user