|
| 1 | +pngs = [ |
| 2 | + 'balls', |
| 3 | +] |
| 4 | +foreach f : pngs |
| 5 | + gen = custom_target(output: '@0@_conv.png'.format(f), |
| 6 | + input: '@0@.png'.format(f), |
| 7 | + command: [rgbgfx, '-o', '@OUTPUT@', '@INPUT@']) |
| 8 | + gfx += custom_target(output: '@0@.2bpp'.format(f), |
| 9 | + input: gen, |
| 10 | + command: [tools_gfx, '-o', '@OUTPUT@', '@INPUT@']) |
| 11 | +endforeach |
| 12 | + |
| 13 | +pngs = [ |
| 14 | + 'move_anim_0', |
| 15 | + 'move_anim_1', |
| 16 | +] |
| 17 | +foreach f : pngs |
| 18 | + gen = custom_target(output: '@0@_conv.png'.format(f), |
| 19 | + input: '@0@.png'.format(f), |
| 20 | + command: [rgbgfx, '-o', '@OUTPUT@', '@INPUT@']) |
| 21 | + gfx += custom_target(output: '@0@.2bpp'.format(f), |
| 22 | + input: gen, |
| 23 | + command: [tools_gfx, '--trim-whitespace', '-o', '@OUTPUT@', '@INPUT@']) |
| 24 | +endforeach |
| 25 | + |
| 26 | +pngs = [ |
| 27 | + 'battle_hud_1', |
| 28 | + 'battle_hud_2', |
| 29 | + 'battle_hud_3', |
| 30 | +] |
| 31 | +foreach f : pngs |
| 32 | + gen = custom_target(output: '@0@_conv.png'.format(f), |
| 33 | + input: '@0@.png'.format(f), |
| 34 | + command: [rgbgfx, '--depth', '1', '-o', '@OUTPUT@', '@INPUT@']) |
| 35 | + gfx += custom_target(output: '@0@.1bpp'.format(f), |
| 36 | + input: gen, |
| 37 | + command: [tools_gfx, '--depth', '1', '-o', '@OUTPUT@', '@INPUT@']) |
| 38 | +endforeach |
| 39 | + |
| 40 | +pngs = [ |
| 41 | + 'oldmanb', |
| 42 | + 'ghost', |
| 43 | +] |
| 44 | + |
| 45 | +foreach f : pngs |
| 46 | + gen = custom_target(output: '@0@_conv.png'.format(f), |
| 47 | + input: '@0@.png'.format(f), |
| 48 | + command: [rgbgfx, '-o', '@OUTPUT@', '@INPUT@']) |
| 49 | + gen = custom_target(output: '@0@.2bpp'.format(f), |
| 50 | + input: gen, |
| 51 | + command: [tools_gfx, '-o', '@OUTPUT@', '@INPUT@']) |
| 52 | + gfx += custom_target(output: '@0@.pic'.format(f), |
| 53 | + input: gen, |
| 54 | + command: [tools_pkmncompress, '@INPUT@', '@OUTPUT@']) |
| 55 | +endforeach |
0 commit comments