Skip to content

Commit 02d9fa5

Browse files
authored
Feature: Road waypoints (#90)
1 parent 0dc8ced commit 02d9fa5

5 files changed

Lines changed: 13 additions & 1 deletion

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ The OpenGFX source is available in a git repository or as gzip'ed tarball. You c
102102
Prerequisites to building OpenGFX:
103103

104104
- gcc (the pre-processor is needed)
105-
- [NML 0.5+](https://github.com/OpenTTD/nml)
105+
- [NML 0.7.6+](https://github.com/OpenTTD/nml)
106106
- grfid from the [grfcodec package](https://www.openttd.org/downloads/grfcodec-releases/latest)
107107
- some gnu utils: `make`, `cat`, `sed`, `awk` and you might additionally want a text editor of your choice and a graphics programme suitable to handle palettes.
108108

ogfxe_extra.pnml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
#include "sprites/extra/extra-openttd-gui.pnml"
2424
#include "sprites/extra/extra-openttd-airport-preview.pnml"
2525
#include "sprites/extra/extra-openttd-recolour.pnml"
26+
#include "sprites/extra/extra-road-waypoints.pnml"
2627

2728
#include "sprites/extra/extra-plus-canals.pnml"
2829
#include "sprites/extra/extra-plus-locks.pnml"
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
//Road waypoints
2+
replacenew(ROAD_WAYPOINTS, "sprites/png/infrastructure/roadwaypoints.png", 0) {
3+
tmpl_road_waypoints(0, 0)
4+
}
5.2 KB
Loading

sprites/templates/sprite_templates.pnml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,13 @@ template tmpl_canalsides(dike_ne, dike_nw, dike_se, dike_sw, corner_e, corner_s,
278278
[27, 1, 12, 5, -5, 0, smallcorners]
279279
}
280280

281+
template tmpl_road_waypoints(x, y) {
282+
[ 66, 66, 64, 64, -5, -46]
283+
[ 1, 66, 64, 64, -31, -33]
284+
[ 1, 1, 64, 64, -31, -33]
285+
[ 66, 1, 64, 64, -57, -46]
286+
}
287+
281288
/* Templates for 2x zoom */
282289
template tmpl_gui2x_file_toolbar(x, y, file) { [x, y, 40, 40, 0, 0, NOCROP, file] }
283290
template tmpl_gui2x_file_toolbar_wide(x, y, file) { [x, y, 80, 40, 0, 0, NOCROP, file] }

0 commit comments

Comments
 (0)