Skip to content

Commit

Permalink
(station) Make demo images with CZTR tiles (#98)
Browse files Browse the repository at this point in the history
Also restores the "normal" demo to the version without the station square. That purpose is now served with its own section.
  • Loading branch information
ahyangyi authored Feb 15, 2025
1 parent bdc967f commit 0b83a1c
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 7 deletions.
1 change: 1 addition & 0 deletions station/stations/dovemere_2018.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@
demos.special_demo_aq,
],
"Station Square": [demos.west_plaza],
"With Other NewGRF": [demos.cztr_demo],
},
road_stops=roadstops,
)
1 change: 1 addition & 0 deletions station/stations/dovemere_2018_lib/demos/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@
from .special_cp import special_demo_cp
from .special_aq import special_demo_aq
from .west_plaza import west_plaza
from .cztr import cztr_demo
10 changes: 10 additions & 0 deletions station/stations/dovemere_2018_lib/demos/cztr.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
from station.lib import Demo
from .normal import normal_demo
from station.lib.utils import get_1cc_remap
from agrf.graphics.palette import CompanyColour
from agrf.lib.building.layout import DefaultGraphics

for tile_id in [1011, 1012, 1313, 1314, 3981]:
DefaultGraphics.register_third_party_image(f"third_party/cztr/{tile_id}.png", "cztr", tile_id)

cztr_demo = Demo(normal_demo.tiles, "with CZTR", remap=get_1cc_remap(CompanyColour.RED), climate="cztr")
8 changes: 1 addition & 7 deletions station/stations/dovemere_2018_lib/demos/normal.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,6 @@
from station.stations.dovemere_2018_lib.roadstops import roadstops
from station.stations.dovemere_2018_lib.objects import objects

roadstops = [[roadstops[0].doc_layout.lower_tile()] * 5]
west_square = [[objects[0].doc_layout.lower_tile()] * 5]


normal_demo = Demo(
semitraversable.demo_1(5, 7) + roadstops + west_square,
"5×7 station layout (1 tile ≈ 40m)",
remap=get_1cc_remap(CompanyColour.WHITE),
semitraversable.demo_1(5, 7), "5×7 station layout (1 tile ≈ 40m)", remap=get_1cc_remap(CompanyColour.WHITE)
)
Binary file added third_party/cztr/1011.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added third_party/cztr/1012.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added third_party/cztr/1313.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added third_party/cztr/1314.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added third_party/cztr/3981.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 0b83a1c

Please sign in to comment.