diff options
Diffstat (limited to 'tools/gfx.py')
-rw-r--r-- | tools/gfx.py | 49 |
1 files changed, 35 insertions, 14 deletions
diff --git a/tools/gfx.py b/tools/gfx.py index ff0802c7..ba3e3d3d 100644 --- a/tools/gfx.py +++ b/tools/gfx.py @@ -93,12 +93,12 @@ def filepath_rules(filepath): # args['animate'] = True # startswith to handle back_gold / back_silver elif name.startswith('back'): - args['pal_file'] = os.path.join(filedir, 'shiny.pal') + args['pal_file'] = os.path.join(filedir, 'normal.pal') args['pic'] = True elif 'gfx/trainers' in filedir: trainer_name = filedir.split('/')[-1] - args['pal_file'] = os.path.join(filedir, trainer_name + '.pal') + args['pal_file'] = os.path.join(filedir, name + '.pal') args['pic'] = True elif 'gfx/battle' in filedir: @@ -107,6 +107,10 @@ def filepath_rules(filepath): elif name == 'balls': args['width'] = 32 + elif 'gfx/debug' in filedir: + if name == 'color_test': + args['width'] = 176 + elif 'gfx/font' in filedir: if name == 'font_inversed': args['width'] = 128 @@ -148,7 +152,6 @@ def filepath_rules(filepath): elif 'gfx/overworld' in filedir: if name == 'heal_machine': args['width'] = 8 - args['pal_file'] = os.path.join(filedir, name + '.pal') elif name in overworld_px8: args['width'] = 8 elif name in overworld_px16: @@ -165,16 +168,36 @@ def filepath_rules(filepath): args['pic_dimensions'] = 6, 6 elif 'gfx/pokedex' in filedir: - if name in ['slowpoke', 'pokedex']: + if name in ['slowpoke', 'pokedex', 'pokedex_sgb']: args['width'] = 128 + elif name == 'question_mark': + args['width'] = 56 + args['pic_dimensions'] = 7, 7 + elif 'gfx/pokegear' in filedir: if name == 'pokegear_sprites': args['width'] = 16 + elif name == 'pokegear': + args['width'] = 128 + + elif 'gfx/mystery_gift' in filedir: + if name == 'mystery_gift': + args['width'] = 128 + args['rows'] = [(0, 15), (0, 15), (0, 2)] + elif name == 'mystery_gift_2': + args['width'] = 128 + # TODO: this is incomplete + elif name == 'question_mark': + args['width'] = 40 + args['rows'] = [(1, 4), (0, 0), (0, 0), (2, 3), (2, 1)] + elif name == 'border': + args['width'] = 56 + elif 'gfx/sgb' in filedir: args['width'] = 128 - args['pal_file'] = os.path.join(filedir, name + '.pal') + #args['pal_file'] = os.path.join(filedir, name + '.pal') elif 'gfx/slots' in filedir: if name == 'slots_1': @@ -194,6 +217,13 @@ def filepath_rules(filepath): else: args['width'] = 16 + elif 'gfx/tilesets' in filedir: + if filedir != 'gfx/tilesets': + args['width'] = 8 + else: + args['width'] = 128 + args['tileset'] = True + elif 'gfx/trainer_card' in filedir: if name in ['badges', 'trainer_card']: args['width'] = 16 @@ -217,18 +247,9 @@ def filepath_rules(filepath): elif name == 'game_boy': args['width'] = 56 - elif 'gfx/unknown' in filedir: - if name == 'gfx_170f1': - args['width'] = 128 - elif name == 'gfx_17079': - args['width'] = 16 - elif os.path.join(filedir, name) in pics: args['pic'] = True - elif filedir == 'gfx/tilesets': - args['tileset'] = True - if args.get('pal_file'): if os.path.exists(args['pal_file']): args['palout'] = args['pal_file'] |