summaryrefslogtreecommitdiff
path: root/tools/gfx.py
diff options
context:
space:
mode:
authorentrpntr <entrpntr@gmail.com>2020-05-23 02:18:35 -0400
committerentrpntr <entrpntr@gmail.com>2020-05-23 03:47:57 -0400
commit7abda2aeff11e39ee29d875c2cf9c17fec191d97 (patch)
tree1a44487235bccf4b70213927c0b53c0cc84d1080 /tools/gfx.py
parentec7271ec261ba5162764eabe4ef94f2f4a7fdf1b (diff)
Updates to add pngs.
Diffstat (limited to 'tools/gfx.py')
-rw-r--r--tools/gfx.py19
1 files changed, 15 insertions, 4 deletions
diff --git a/tools/gfx.py b/tools/gfx.py
index c4996552..5abbb029 100644
--- a/tools/gfx.py
+++ b/tools/gfx.py
@@ -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
@@ -179,6 +183,11 @@ def filepath_rules(filepath):
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 'gfx/sgb' in filedir:
args['width'] = 128
args['pal_file'] = os.path.join(filedir, name + '.pal')
@@ -201,8 +210,13 @@ def filepath_rules(filepath):
else:
args['width'] = 16
+
elif 'gfx/tilesets' in filedir:
- args['width'] = 128
+ if filedir in ['gfx/tilesets/flower', 'gfx/tilesets/lava', 'gfx/tilesets/tower-pillar', 'gfx/tilesets/water', 'gfx/tilesets/whirlpool']:
+ args['width'] = 8
+ else:
+ args['width'] = 128
+ args['tileset'] = True
elif 'gfx/trainer_card' in filedir:
if name in ['badges', 'trainer_card']:
@@ -236,9 +250,6 @@ def filepath_rules(filepath):
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']