Add building color option.

This commit is contained in:
Sergey Vartanov 2022-02-12 23:58:29 +03:00
parent d1071afc59
commit e23b36d50f
2 changed files with 9 additions and 0 deletions

View file

@ -55,6 +55,7 @@ class MapConfiguration:
country: str = "world"
ignore_level_matching: bool = False
draw_roofs: bool = True
use_building_colors: bool = False
@classmethod
def from_options(
@ -73,6 +74,7 @@ class MapConfiguration:
options.country,
options.ignore_level_matching,
options.roofs,
options.building_colors,
)
def is_wireframe(self) -> bool:

View file

@ -194,6 +194,13 @@ def add_map_arguments(parser: argparse.ArgumentParser) -> None:
action=argparse.BooleanOptionalAction,
default=True,
)
parser.add_argument(
"--building-colors",
help="paint walls (if isometric mode is enabled) and roofs with "
"specified colors",
action=argparse.BooleanOptionalAction,
default=False,
)
def add_tile_arguments(parser: argparse.ArgumentParser) -> None: