Skip to content

Commit

Permalink
BR158 - Added TfW livery
Browse files Browse the repository at this point in the history
  • Loading branch information
audigex committed Aug 22, 2021
1 parent 0235df0 commit b7c0992
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 0 deletions.
Binary file modified gfx/BR158a.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 modified gfx/BR158b.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 modified gfx/BR158c.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 11 additions & 0 deletions src/trains/dmu/BR158.pnml
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,10 @@ spriteset(spriteset_BR158a_SWR, "gfx/BR158a.png") {
template_train32px(0, 613)
}

spriteset(spriteset_BR158a_TfW, "gfx/BR158a.png") {
template_train32px(0, 638)
}

spriteset(spriteset_BR158b_ATW, "gfx/BR158b.png") {
template_train32px(0, 13)
}
Expand Down Expand Up @@ -210,6 +214,10 @@ spriteset(spriteset_BR158b_SWR, "gfx/BR158b.png") {
template_train32px(0, 613)
}

spriteset(spriteset_BR158b_TfW, "gfx/BR158b.png") {
template_train32px(0, 638)
}



switch(FEAT_TRAINS,SELF, sw_BR158a,cargo_subtype){
Expand Down Expand Up @@ -239,6 +247,7 @@ switch(FEAT_TRAINS,SELF, sw_BR158a,cargo_subtype){
23: spriteset_BR158a_EMRMaroonWhite;
24: spriteset_BR158a_EMRTransition;
25: spriteset_BR158a_SWR;
26: spriteset_BR158a_TfW;
}

switch(FEAT_TRAINS,SELF, sw_BR158b,cargo_subtype){
Expand Down Expand Up @@ -268,6 +277,7 @@ switch(FEAT_TRAINS,SELF, sw_BR158b,cargo_subtype){
23: spriteset_BR158b_EMRMaroonWhite;
24: spriteset_BR158b_EMRTransition;
25: spriteset_BR158b_SWR;
26: spriteset_BR158b_TfW;
}

switch (FEAT_TRAINS, SELF, switch_articulated_BR158, extra_callback_info1) {
Expand Down Expand Up @@ -302,6 +312,7 @@ switch(FEAT_TRAINS,SELF,sw_BR158_cargo_subtype_text,cargo_subtype){
23: return string(str_EMRMaroonWhite);
24: return string(str_EMRTransition);
25: return string(str_SWR);
26: return string(str_TfW);
return CB_RESULT_NO_TEXT;
}

Expand Down

0 comments on commit b7c0992

Please sign in to comment.