Allow configuration of the thumbnail icon overlay.
Previously this was hardcoded to be M_DOOM_scaled.png.
This commit is contained in:
parent
c1e4156f3c
commit
fcc6b22785
3 changed files with 10 additions and 9 deletions
|
|
@ -69,6 +69,12 @@ class Wad(dcc.config.Base):
|
|||
return ["-assign", ",".join(options)]
|
||||
return []
|
||||
|
||||
def thumb_overlay_path(self):
|
||||
return (
|
||||
self._ensure(self.fabricate.joinpath(self.wad))
|
||||
.joinpath(self.thumbnail_overlay_name)
|
||||
)
|
||||
|
||||
|
||||
class WadMap(Wad):
|
||||
def get_parser(self, prog_name):
|
||||
|
|
@ -82,7 +88,7 @@ class WadMap(Wad):
|
|||
self._name = parsed_args.name
|
||||
self.wad_init(parsed_args)
|
||||
|
||||
self.take_action(parsed_args)
|
||||
return self.take_action(parsed_args)
|
||||
|
||||
@property
|
||||
def map(self):
|
||||
|
|
@ -162,12 +168,6 @@ class WadMap(Wad):
|
|||
.joinpath(self._file_base("_base.png"))
|
||||
)
|
||||
|
||||
def m_doom_path(self):
|
||||
return (
|
||||
self._ensure(self.fabricate.joinpath(self.wad))
|
||||
.joinpath("M_DOOM_scaled.png")
|
||||
)
|
||||
|
||||
def text_thumb_path(self):
|
||||
return (
|
||||
self._ensure(self.fabricate.joinpath(self.wad))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue