Compare commits
	
		
			2 Commits
		
	
	
		
			1af4da43ad
			...
			5fe7c14ccb
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 5fe7c14ccb | |||
| 42165ba2d6 | 
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										352
									
								
								sample_project/TileSheets/Chester.nts
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										352
									
								
								sample_project/TileSheets/Chester.nts
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,352 @@
 | 
				
			|||||||
 | 
					K1;5667c759-7ba1-470a-8860-72f0720dc58c;O1;net.drinkingtea.nostalgia.gfx.TileSheet;5;{
 | 
				
			||||||
 | 
						"bpp" : 4,
 | 
				
			||||||
 | 
						"defaultPalette" : "uuid://14fc3dd8-42ff-4bf9-81f1-a010cc5ac251",
 | 
				
			||||||
 | 
						"idIt" : 7,
 | 
				
			||||||
 | 
						"subsheet" : 
 | 
				
			||||||
 | 
						{
 | 
				
			||||||
 | 
							"columns" : -1,
 | 
				
			||||||
 | 
							"name" : "Root",
 | 
				
			||||||
 | 
							"rows" : -1,
 | 
				
			||||||
 | 
							"subsheets" : 
 | 
				
			||||||
 | 
							[
 | 
				
			||||||
 | 
								{
 | 
				
			||||||
 | 
									"columns" : 1,
 | 
				
			||||||
 | 
									"id" : 5,
 | 
				
			||||||
 | 
									"name" : "Blank",
 | 
				
			||||||
 | 
									"pixels" : 
 | 
				
			||||||
 | 
									[
 | 
				
			||||||
 | 
										0,
 | 
				
			||||||
 | 
										0,
 | 
				
			||||||
 | 
										0,
 | 
				
			||||||
 | 
										0,
 | 
				
			||||||
 | 
										0,
 | 
				
			||||||
 | 
										0,
 | 
				
			||||||
 | 
										0,
 | 
				
			||||||
 | 
										0,
 | 
				
			||||||
 | 
										0,
 | 
				
			||||||
 | 
										0,
 | 
				
			||||||
 | 
										0,
 | 
				
			||||||
 | 
										0,
 | 
				
			||||||
 | 
										0,
 | 
				
			||||||
 | 
										0,
 | 
				
			||||||
 | 
										0,
 | 
				
			||||||
 | 
										0,
 | 
				
			||||||
 | 
										0,
 | 
				
			||||||
 | 
										0,
 | 
				
			||||||
 | 
										0,
 | 
				
			||||||
 | 
										0,
 | 
				
			||||||
 | 
										0,
 | 
				
			||||||
 | 
										0,
 | 
				
			||||||
 | 
										0,
 | 
				
			||||||
 | 
										0,
 | 
				
			||||||
 | 
										0,
 | 
				
			||||||
 | 
										0,
 | 
				
			||||||
 | 
										0,
 | 
				
			||||||
 | 
										0,
 | 
				
			||||||
 | 
										0,
 | 
				
			||||||
 | 
										0,
 | 
				
			||||||
 | 
										0,
 | 
				
			||||||
 | 
										0,
 | 
				
			||||||
 | 
										0,
 | 
				
			||||||
 | 
										0,
 | 
				
			||||||
 | 
										0,
 | 
				
			||||||
 | 
										0,
 | 
				
			||||||
 | 
										0,
 | 
				
			||||||
 | 
										0,
 | 
				
			||||||
 | 
										0,
 | 
				
			||||||
 | 
										0,
 | 
				
			||||||
 | 
										0,
 | 
				
			||||||
 | 
										0,
 | 
				
			||||||
 | 
										0,
 | 
				
			||||||
 | 
										0,
 | 
				
			||||||
 | 
										0,
 | 
				
			||||||
 | 
										0,
 | 
				
			||||||
 | 
										0,
 | 
				
			||||||
 | 
										0,
 | 
				
			||||||
 | 
										0,
 | 
				
			||||||
 | 
										0,
 | 
				
			||||||
 | 
										0,
 | 
				
			||||||
 | 
										0,
 | 
				
			||||||
 | 
										0,
 | 
				
			||||||
 | 
										0,
 | 
				
			||||||
 | 
										0,
 | 
				
			||||||
 | 
										0,
 | 
				
			||||||
 | 
										0,
 | 
				
			||||||
 | 
										0,
 | 
				
			||||||
 | 
										0,
 | 
				
			||||||
 | 
										0,
 | 
				
			||||||
 | 
										0,
 | 
				
			||||||
 | 
										0,
 | 
				
			||||||
 | 
										0,
 | 
				
			||||||
 | 
										0
 | 
				
			||||||
 | 
									],
 | 
				
			||||||
 | 
									"rows" : 1
 | 
				
			||||||
 | 
								},
 | 
				
			||||||
 | 
								{
 | 
				
			||||||
 | 
									"columns" : 2,
 | 
				
			||||||
 | 
									"id" : 6,
 | 
				
			||||||
 | 
									"name" : "Dirt",
 | 
				
			||||||
 | 
									"pixels" : 
 | 
				
			||||||
 | 
									[
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										2,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										2,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										2,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										2,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										2,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										2,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										2,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										2,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										2,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										2,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1,
 | 
				
			||||||
 | 
										1
 | 
				
			||||||
 | 
									],
 | 
				
			||||||
 | 
									"rows" : 2
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
							]
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
							
								
								
									
										
											BIN
										
									
								
								sample_project/TileSheets/SC9K_Logo.nts
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								sample_project/TileSheets/SC9K_Logo.nts
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							@@ -13,6 +13,7 @@ constexpr auto TileHeight = 8;
 | 
				
			|||||||
constexpr auto PixelsPerTile = TileWidth * TileHeight;
 | 
					constexpr auto PixelsPerTile = TileWidth * TileHeight;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
constexpr ox::StringLiteral FileExt_ng("ng");
 | 
					constexpr ox::StringLiteral FileExt_ng("ng");
 | 
				
			||||||
 | 
					constexpr ox::StringLiteral FileExt_nts("nts");
 | 
				
			||||||
constexpr ox::StringLiteral FileExt_npal("npal");
 | 
					constexpr ox::StringLiteral FileExt_npal("npal");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -14,14 +14,14 @@ namespace nostalgia::gfx {
 | 
				
			|||||||
static class: public studio::Module {
 | 
					static class: public studio::Module {
 | 
				
			||||||
	ox::Vector<studio::EditorMaker> editors(studio::StudioContext &ctx) const noexcept final {
 | 
						ox::Vector<studio::EditorMaker> editors(studio::StudioContext &ctx) const noexcept final {
 | 
				
			||||||
		return {
 | 
							return {
 | 
				
			||||||
			studio::editorMaker<TileSheetEditorImGui>(ctx, FileExt_ng),
 | 
								studio::editorMaker<TileSheetEditorImGui>(ctx, {FileExt_ng, FileExt_nts}),
 | 
				
			||||||
			studio::editorMaker<PaletteEditorImGui>(ctx, FileExt_npal),
 | 
								studio::editorMaker<PaletteEditorImGui>(ctx, FileExt_npal),
 | 
				
			||||||
		};
 | 
							};
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	ox::Vector<ox::UPtr<studio::ItemMaker>> itemMakers(studio::StudioContext&) const noexcept final {
 | 
						ox::Vector<ox::UPtr<studio::ItemMaker>> itemMakers(studio::StudioContext&) const noexcept final {
 | 
				
			||||||
		ox::Vector<ox::UniquePtr<studio::ItemMaker>> out;
 | 
							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{
 | 
							out.emplace_back(ox::make<studio::ItemMakerT<Palette>>("Palette", "Palettes", FileExt_npal, Palette{
 | 
				
			||||||
			.colorNames = {},
 | 
								.colorNames = {},
 | 
				
			||||||
			.pages = {{"Page 1", ox::Vector<PaletteColor>{}}},
 | 
								.pages = {{"Page 1", ox::Vector<PaletteColor>{}}},
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user