mirror of
https://github.com/enzet/map-machine.git
synced 2025-04-29 10:17:23 +02:00
Add building color option.
This commit is contained in:
parent
d1071afc59
commit
e23b36d50f
2 changed files with 9 additions and 0 deletions
|
@ -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:
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue