Skip to content

Commit

Permalink
Split the fonts from tiled maps
Browse files Browse the repository at this point in the history
  • Loading branch information
pushfoo committed Jan 14, 2025
1 parent ddce5d6 commit e24e2f5
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions util/create_resources_listing.py
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,7 @@ def process_resource_directory(out, dir: Path):
'.avi': 'avi'
}


def process_resource_files(out, file_list: List[Path]):
cell_count = 0

Expand Down Expand Up @@ -343,8 +344,12 @@ def process_resource_files(out, file_list: List[Path]):
elif suffix == ".glsl":
file_path = FMT_URL_REF_PAGE.format(resource_path)
out.write(f" {start_row} - `{path} <{file_path}>`_\n")
# Link Tiled maps
elif suffix in (".json", ".ttf"):
# Fonts
elif suffix == ".ttf":
file_path = FMT_URL_REF_PAGE.format(resource_path)
out.write(f" {start_row} - `{name} <{file_path}>`_\n")
# Tiled maps
elif suffix == ".json":
file_path = FMT_URL_REF_PAGE.format(resource_path)
out.write(f" {start_row} - `{name} <{file_path}>`_\n")
else:
Expand Down

0 comments on commit e24e2f5

Please sign in to comment.