Skip to content

Commit

Permalink
Merge pull request #284 from lhearachel/fix-window-frame-ncer
Browse files Browse the repository at this point in the history
Build pokemon_preview_cell.NCER from JSON source
  • Loading branch information
lhearachel authored Oct 28, 2024
2 parents 9cf012b + 1c3c72e commit 54856ad
Show file tree
Hide file tree
Showing 3 changed files with 279 additions and 3 deletions.
4 changes: 1 addition & 3 deletions res/graphics/windows/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,7 @@ pl_winframe_nclrs = nclr_gen.process(pl_winframe_pals,
'-bitdepth', '4',
]
)
pl_winframe_ncers = copy_gen.process(files('pokemon_preview_cell.NCER'))
# TODO: pending nitrogfx PR
# pl_winframe_ncers = ncer_gen.process(files('pokemon_preview_cell.json'))
pl_winframe_ncers = ncer_gen.process(files('pokemon_preview_cell.json'))
pl_winframe_nanrs = nanr_gen.process(files('pokemon_preview_anim.json'))

pl_winframe_order = files('pl_winframe.order')
Expand Down
Binary file removed res/graphics/windows/pokemon_preview_cell.NCER
Binary file not shown.
278 changes: 278 additions & 0 deletions res/graphics/windows/pokemon_preview_cell.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,278 @@
{
"labelEnabled": true,
"extended": true,
"vramTransferEnabled": false,
"cellCount": 2,
"mappingType": 0,
"cells": [{
"cellAttrs": {
"hFlip": false,
"vFlip": false,
"hvFlip": false,
"boundingRect": true,
"boundingSphereRadius": 14
},
"maxX": 39,
"maxY": 39,
"minX": -40,
"minY": -40,
"oamCount": 6,
"OAM": [{
"Attr0": {
"YCoordinate": 216,
"Rotation": false,
"SizeDisable": false,
"Mode": 0,
"Mosaic": false,
"Colours": 16,
"Shape": 0
},
"Attr1": {
"XCoordinate": 472,
"RotationScaling": 0,
"Size": 3
},
"Attr2": {
"CharName": 0,
"Priority": 0,
"Palette": 0
}
}, {
"Attr0": {
"YCoordinate": 216,
"Rotation": false,
"SizeDisable": false,
"Mode": 0,
"Mosaic": false,
"Colours": 16,
"Shape": 2
},
"Attr1": {
"XCoordinate": 24,
"RotationScaling": 0,
"Size": 2
},
"Attr2": {
"CharName": 64,
"Priority": 0,
"Palette": 0
}
}, {
"Attr0": {
"YCoordinate": 248,
"Rotation": false,
"SizeDisable": false,
"Mode": 0,
"Mosaic": false,
"Colours": 16,
"Shape": 2
},
"Attr1": {
"XCoordinate": 24,
"RotationScaling": 0,
"Size": 2
},
"Attr2": {
"CharName": 72,
"Priority": 0,
"Palette": 0
}
}, {
"Attr0": {
"YCoordinate": 24,
"Rotation": false,
"SizeDisable": false,
"Mode": 0,
"Mosaic": false,
"Colours": 16,
"Shape": 1
},
"Attr1": {
"XCoordinate": 472,
"RotationScaling": 0,
"Size": 2
},
"Attr2": {
"CharName": 80,
"Priority": 0,
"Palette": 0
}
}, {
"Attr0": {
"YCoordinate": 24,
"Rotation": false,
"SizeDisable": false,
"Mode": 0,
"Mosaic": false,
"Colours": 16,
"Shape": 1
},
"Attr1": {
"XCoordinate": 504,
"RotationScaling": 0,
"Size": 2
},
"Attr2": {
"CharName": 88,
"Priority": 0,
"Palette": 0
}
}, {
"Attr0": {
"YCoordinate": 24,
"Rotation": false,
"SizeDisable": false,
"Mode": 0,
"Mosaic": false,
"Colours": 16,
"Shape": 0
},
"Attr1": {
"XCoordinate": 24,
"RotationScaling": 0,
"Size": 1
},
"Attr2": {
"CharName": 96,
"Priority": 0,
"Palette": 0
}
}]
}, {
"cellAttrs": {
"hFlip": false,
"vFlip": false,
"hvFlip": false,
"boundingRect": true,
"boundingSphereRadius": 14
},
"maxX": 39,
"maxY": 39,
"minX": -40,
"minY": -40,
"oamCount": 6,
"OAM": [{
"Attr0": {
"YCoordinate": 216,
"Rotation": false,
"SizeDisable": false,
"Mode": 0,
"Mosaic": false,
"Colours": 16,
"Shape": 0
},
"Attr1": {
"XCoordinate": 472,
"RotationScaling": 0,
"Size": 3
},
"Attr2": {
"CharName": 100,
"Priority": 0,
"Palette": 0
}
}, {
"Attr0": {
"YCoordinate": 216,
"Rotation": false,
"SizeDisable": false,
"Mode": 0,
"Mosaic": false,
"Colours": 16,
"Shape": 2
},
"Attr1": {
"XCoordinate": 24,
"RotationScaling": 0,
"Size": 2
},
"Attr2": {
"CharName": 164,
"Priority": 0,
"Palette": 0
}
}, {
"Attr0": {
"YCoordinate": 248,
"Rotation": false,
"SizeDisable": false,
"Mode": 0,
"Mosaic": false,
"Colours": 16,
"Shape": 2
},
"Attr1": {
"XCoordinate": 24,
"RotationScaling": 0,
"Size": 2
},
"Attr2": {
"CharName": 172,
"Priority": 0,
"Palette": 0
}
}, {
"Attr0": {
"YCoordinate": 24,
"Rotation": false,
"SizeDisable": false,
"Mode": 0,
"Mosaic": false,
"Colours": 16,
"Shape": 1
},
"Attr1": {
"XCoordinate": 472,
"RotationScaling": 0,
"Size": 2
},
"Attr2": {
"CharName": 180,
"Priority": 0,
"Palette": 0
}
}, {
"Attr0": {
"YCoordinate": 24,
"Rotation": false,
"SizeDisable": false,
"Mode": 0,
"Mosaic": false,
"Colours": 16,
"Shape": 1
},
"Attr1": {
"XCoordinate": 504,
"RotationScaling": 0,
"Size": 2
},
"Attr2": {
"CharName": 188,
"Priority": 0,
"Palette": 0
}
}, {
"Attr0": {
"YCoordinate": 24,
"Rotation": false,
"SizeDisable": false,
"Mode": 0,
"Mosaic": false,
"Colours": 16,
"Shape": 0
},
"Attr1": {
"XCoordinate": 24,
"RotationScaling": 0,
"Size": 1
},
"Attr2": {
"CharName": 196,
"Priority": 0,
"Palette": 0
}
}]
}],
"labels": ["CellAnime0", "CellAnime1"],
"labelCount": 2
}

0 comments on commit 54856ad

Please sign in to comment.