Add fallback terrain icons in campaign selector (#80)

This commit is contained in:
MetalStormGhost
2023-01-14 16:33:05 +02:00
committed by GitHub
parent cccc6e5a44
commit 3313535b27
11 changed files with 15 additions and 0 deletions

View File

@@ -32,6 +32,7 @@ DEFAULT_BUDGET = 2000
class Campaign:
name: str
menu_thumbnail_dcs_relative_path: Path
fallback_icon_path: Path
authors: str
description: str
@@ -90,6 +91,7 @@ class Campaign:
return cls(
data["name"],
TheaterLoader(data["theater"].lower()).menu_thumbnail_dcs_relative_path,
TheaterLoader(data["theater"].lower()).icon_path,
data.get("authors", "???"),
data.get("description", ""),
(version.major, version.minor),