Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ogfxe_extra.pnml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
#include "sprites/extra/extra-openttd-recolour.pnml"
#include "sprites/extra/extra-road-waypoints.pnml"
#include "sprites/extra/extra-overlay-rocks.pnml"
#include "sprites/extra/extra-bridge-decks.pnml"

#include "sprites/extra/extra-plus-canals.pnml"
#include "sprites/extra/extra-plus-locks.pnml"
Expand All @@ -41,4 +42,3 @@ if (climate == CLIMATE_TROPICAL) {
if (climate == CLIMATE_TOYLAND) {
#include "sprites/extra/extra-plus-toyland-infrastructure.pnml"
}

Comment thread
2TallTyler marked this conversation as resolved.
30 changes: 30 additions & 0 deletions sprites/extra/extra-bridge-decks.pnml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
// Bridge deck overlays
template tmpl_bridgedeckoverlay_general(x, y) {
[ 1+x, 1+y, 64, 47-1, -31, -16 ]
[ 131+x, 1+y, 64, 47-1, -31, -16 ]

[ 261+x, 1+y, 64, 55-1, -31, -24 ]
[ 456+x, 1+y, 64, 55-1, -31, -24 ]
[ 326+x, 1+y, 64, 55-1, -31, -24 ]
[ 391+x, 1+y, 64, 55-1, -31, -24 ]
}

template tmpl_bridgedeckoverlay_road(x, y) {
[ 131+x, 1+y, 64, 47-1, -31, -16 ]
[ 1+x, 1+y, 64, 47-1, -31, -16 ]

[ 261+x, 1+y, 64, 55-1, -31, -24 ]
[ 456+x, 1+y, 64, 55-1, -31, -24 ]
[ 326+x, 1+y, 64, 55-1, -31, -24 ]
[ 391+x, 1+y, 64, 55-1, -31, -24 ]
}

replacenew bridge_decks_spr6(BRIDGE_DECKS, "sprites/png/infrastructure/ramps_deckonly_monorail_8bpp.png", 6) { tmpl_bridgedeckoverlay_general(0, 0) }
replacenew bridge_decks_spr12(BRIDGE_DECKS, "sprites/png/infrastructure/ramps_deckonly_maglev_8bpp.png", 12) { tmpl_bridgedeckoverlay_general(0, 0) }
if (climate != CLIMATE_TOYLAND) {
replacenew bridge_decks_spr0(BRIDGE_DECKS, "sprites/png/infrastructure/ramps_deckonly_rail_8bpp.png", 0) { tmpl_bridgedeckoverlay_general(0, 0) }
replacenew bridge_decks_spr18(BRIDGE_DECKS, "sprites/png/infrastructure/ramps_deckonly_road_8bpp.png", 18) { tmpl_bridgedeckoverlay_road(0, 0) }
} else if (climate == CLIMATE_TOYLAND) {
replacenew bridge_decks_toyland_spr0(BRIDGE_DECKS, "sprites/png/infrastructure/ramps_deckonly_toyland_rail_8bpp.png", 0) { tmpl_bridgedeckoverlay_general(0, 0) }
replacenew bridge_decks_toyland_spr18(BRIDGE_DECKS, "sprites/png/infrastructure/ramps_deckonly_toyland_road_8bpp.png", 18) { tmpl_bridgedeckoverlay_road(0, 0) }
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.