Actually load the values for screenshot text, etc. correctly from the config. Pass them into draw_text which doesn't have them readily available.

This commit is contained in:
yrriban 2025-07-04 11:50:10 -04:00
parent b14c12c609
commit 1ac3851065
4 changed files with 42 additions and 19 deletions

View file

@ -85,7 +85,14 @@ class Concat(dcc.doom_base.Wad):
)
mapstring = v.name[-6:-4]
text = self._config["map_names"][f"map{mapstring}"]
dcc.text.draw_text(img, f"MAP{mapstring}: {text}", font_size=120)
dcc.text.draw_text(
img,
f"MAP{mapstring}: {text}",
self.thumbnail_font,
self.thumbnail_text_fill,
self.thumbnail_text_stroke,
font_size=120
)
img.trim(reset_coords=True)
img.border("graya(25%, 25%)", 10, 10)
img.border(dcc.config.TEXT_STROKE_COLOR, 16, 16)