Skip to content

Commit

Permalink
Fixed IC125 and MPV purchase sprites, updated changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
audigex committed Mar 26, 2024
1 parent 4e00256 commit 9bd5afd
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 7 deletions.
2 changes: 2 additions & 0 deletions docs/changelog.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# v2.7
- Added Class 50
- Added Class 805
- Added Class 810
- Added Class 807
Expand All @@ -9,6 +10,7 @@
- Added a small early lumber wagon
- Improved Class 730 liveries (replaced placeholder with real world)
- Fixed some internal templates
- Fixed IC125 and MPV purchase sprites

# v2.6 (18/03/24)
- Added Class 231
Expand Down
11 changes: 6 additions & 5 deletions src/templates.pnml
Original file line number Diff line number Diff line change
Expand Up @@ -201,20 +201,21 @@ template template_train70pt(x,y){
[ x+153, y, 22, 20, -4, -11]
}


// Only used by MPV
template template_purchaseptdual(x,y){
// Used by units with the Multiple Unit flag - eg IC125 and MPV
template template_mu_purchase(x,y){
//left_x, upper_y, width, height, offset_x, offset_y
[ ]
[ ]
[ x+32, y, 32, 12, -13, -7]
[x, y, 1, 1, -10,- 6, NOANIM|NOWHITE]
[ ]
[ ]
[ ]
[ x+120, y, 32, 12, -11, -7]
[x, y, 87, 12, -10,- 6, NOANIM|NOWHITE]
[ ]
}



template template_purchase(x,y){
//xpos, ypos, width, height, xoffset, yoffset, Flags
[x, y, 87, 12, -25,- 6, NOANIM|NOWHITE]
Expand Down
2 changes: 1 addition & 1 deletion src/trains/_spriteset/DMU_Sprites/BR253.pnml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
spriteset(spriteset_BR253_Purchase, "gfx/BR253.png") {
template_train32px(0, 13)
template_mu_purchase(0, 0)
}

spriteset(spriteset_BR253_BRBlue, "gfx/BR253.png") {
Expand Down
2 changes: 1 addition & 1 deletion src/trains/dmu/BRMPV.pnml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
spriteset(spriteset_DR98_9_Purchase, "gfx/DR98_9.png") {
template_purchaseptdual(0, 14)
template_mu_purchase(0, 0)
}

spriteset(spriteset_DR98_9_NRWhite, "gfx/DR98_9.png") {
Expand Down

0 comments on commit 9bd5afd

Please sign in to comment.