mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2025-01-23 09:16:20 -08:00
gfx.py automatically converts tilesets to 128-px wide pngs
This commit is contained in:
parent
98f443f70c
commit
87368a08a2
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
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user