Support setting a name for a demo, supporting more than one demo stored at a time for a map.
This commit is contained in:
parent
c73c7dd457
commit
85d3686f1c
11 changed files with 35 additions and 30 deletions
|
@ -10,8 +10,8 @@ class Thumb(dcc.doom_base.WadMap):
|
|||
return parser
|
||||
|
||||
def take_action(self, parsed_args):
|
||||
base = dcc.config.BaseThumbPath(parsed_args.wad, parsed_args.map)
|
||||
text = dcc.config.TextThumbPath(parsed_args.wad, parsed_args.map)
|
||||
base = dcc.config.BaseThumbPath(parsed_args.wad, parsed_args.map, parsed_args.name)
|
||||
text = dcc.config.TextThumbPath(parsed_args.wad, parsed_args.map, parsed_args.name)
|
||||
mdoom = dcc.config.MDoomPath(parsed_args.wad)
|
||||
with wand.image.Image(filename=base) as bi, wand.color.Color("transparent") as tc:
|
||||
with wand.image.Image(filename=text) as ti:
|
||||
|
@ -27,4 +27,4 @@ class Thumb(dcc.doom_base.WadMap):
|
|||
di.border(tc, 1, 1)
|
||||
bi.composite(di, gravity="north_east")
|
||||
|
||||
bi.save(filename=dcc.config.ThumbPath(parsed_args.wad, parsed_args.map))
|
||||
bi.save(filename=dcc.config.ThumbPath(parsed_args.wad, parsed_args.map, parsed_args.name))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue