From a982c5b20cda99abb4ca5bb2e95310b118c6e779 Mon Sep 17 00:00:00 2001 From: yrriban Date: Thu, 16 Apr 2026 01:46:55 -0400 Subject: [PATCH 1/2] Add a means of indicating the tier of map when adding the index overlay. --- doomcc/thumb.py | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/doomcc/thumb.py b/doomcc/thumb.py index 5ee8265..6138278 100644 --- a/doomcc/thumb.py +++ b/doomcc/thumb.py @@ -7,7 +7,7 @@ import wand.image class Thumb(doomcc.doom_base.WadMap): def get_parser(self, prog_name): parser = super().get_parser(prog_name) - parser.add_argument("--index", action="store_true") + parser.add_argument("--index", nargs="?", const="none", default="") parser.add_argument("--noov", action="store_true") return parser @@ -28,11 +28,20 @@ class Thumb(doomcc.doom_base.WadMap): mdi.border(tc, 5, 5) bi.composite(mdi, gravity="north_west") - if parsed_args.index: + if parsed_args.index != "": with wand.image.Image( filename=self.fabricate.joinpath("doomed_index.png") ) as di: di.border(tc, 1, 1) bi.composite(di, gravity="north_east") + if parsed_args.index != "none": + ird = self._config.get("index_rating", {}) + if parsed_args.index in ird: + with wand.image.Image( + filename=self.fabricate.joinpath(self.fabricate.joinpath(ird[parsed_args.index]))) as ri: + ri.border(tc, 1, 1) + bi.composite(ri, top=di.height+5, left=int(bi.width-ri.width-(di.width-ri.width)/2)) + + bi.save(filename=self.thumb_path()) From cbf2ec2ca664187f3fe90c91ca96a6214e5bea63 Mon Sep 17 00:00:00 2001 From: yrriban Date: Wed, 6 May 2026 18:38:00 -0400 Subject: [PATCH 2/2] Take into account the demo name when using the RIB command. --- doomcc/rib.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doomcc/rib.py b/doomcc/rib.py index 6a456f7..a060561 100644 --- a/doomcc/rib.py +++ b/doomcc/rib.py @@ -26,6 +26,8 @@ class RIB(doomcc.doom_base.WadMap): demodir = demodir / "failed_demos" glob = f"*map{self.map}*" + if parsed_args.name is not None: + glob += f"{parsed_args.name}*" if parsed_args.attempt is not None: glob += f"{parsed_args.attempt}*"