You've already forked pokecrystal-board
mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2025-09-08 08:13:02 -07:00
gfx.py automatically converts tilesets to 128-px wide pngs
This commit is contained in:
6
gfx.py
6
gfx.py
@@ -83,6 +83,9 @@ 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']
|
||||
@@ -102,6 +105,9 @@ def filepath_rules(filepath):
|
||||
args['pic_dimensions'] = 6, 6
|
||||
else:
|
||||
args['pic_dimensions'] = 7, 7
|
||||
|
||||
if args.get('tileset'):
|
||||
args['width'] = 128
|
||||
return args
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user