mirror of
https://github.com/enzet/map-machine.git
synced 2025-05-10 15:46:51 +02:00
Rename data/tags.yml to scheme/default.yml.
This commit is contained in:
parent
cbbd7bcf05
commit
0f3888430b
7 changed files with 5 additions and 5 deletions
BIN
doc/grid.png
BIN
doc/grid.png
Binary file not shown.
Before Width: | Height: | Size: 73 KiB After Width: | Height: | Size: 73 KiB |
|
@ -127,7 +127,7 @@ def draw_element(target: str, tags_description: str):
|
|||
comma, key from value is separated by equals sign.
|
||||
"""
|
||||
tags = dict([x.split("=") for x in tags_description.split(",")])
|
||||
scheme = Scheme("data/tags.yml")
|
||||
scheme = Scheme("scheme/default.yml")
|
||||
icon_extractor = IconExtractor("icons/icons.svg")
|
||||
icon, priority = scheme.get_icon(icon_extractor, tags)
|
||||
is_for_node: bool = target == "node"
|
||||
|
|
|
@ -27,7 +27,7 @@ def draw_all_icons(
|
|||
:param columns: the number of columns in grid
|
||||
:param step: horizontal and vertical distance between icons
|
||||
"""
|
||||
tags_file_name: str = "data/tags.yml"
|
||||
tags_file_name: str = "scheme/default.yml"
|
||||
scheme: Scheme = Scheme(tags_file_name)
|
||||
|
||||
to_draw: List[Set[str]] = []
|
||||
|
|
|
@ -22,7 +22,7 @@ from roentgen.point import Occupied, Point
|
|||
from roentgen.scheme import Scheme
|
||||
|
||||
ICONS_FILE_NAME: str = "icons/icons.svg"
|
||||
TAGS_FILE_NAME: str = "data/tags.yml"
|
||||
TAGS_FILE_NAME: str = "scheme/default.yml"
|
||||
MISSING_TAGS_FILE_NAME: str = "missing_tags.yml"
|
||||
|
||||
AUTHOR_MODE = "user-coloring"
|
||||
|
|
|
@ -16,7 +16,7 @@ def test_icons() -> None:
|
|||
|
||||
|
||||
def get_icon(tags: Dict[str, str]):
|
||||
scheme = Scheme("data/tags.yml")
|
||||
scheme = Scheme("scheme/default.yml")
|
||||
icon_extractor = IconExtractor("icons/icons.svg")
|
||||
icon, _ = scheme.get_icon(icon_extractor, tags)
|
||||
return icon
|
||||
|
|
|
@ -5,7 +5,7 @@ from roentgen.scheme import Scheme
|
|||
|
||||
|
||||
def get_text(tags):
|
||||
scheme = Scheme("data/tags.yml")
|
||||
scheme = Scheme("scheme/default.yml")
|
||||
return scheme.construct_text(tags, True)
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue