//COLOURED SPRITESETS (ENGINES AND WAGONS) spriteset(spriteset_railcom1_CC_pass, "gfx/RailCommuter1.png") {template_engine32WTF(0,0)} spriteset(spriteset_railcom1_black_pass, "gfx/RailCommuter1.png") {template_engine32WTF(0,1)} spriteset(spriteset_railcom1_gray_pass, "gfx/RailCommuter1.png") {template_engine32WTF(0,2)} spriteset(spriteset_railcom1_white_pass, "gfx/RailCommuter1.png") {template_engine32WTF(0,3)} spriteset(spriteset_railcom1_ltblue_pass, "gfx/RailCommuter1.png") {template_engine32WTF(0,4)} spriteset(spriteset_railcom1_blue_pass, "gfx/RailCommuter1.png") {template_engine32WTF(0,5)} spriteset(spriteset_railcom1_darkblue_pass, "gfx/RailCommuter1.png") {template_engine32WTF(0,6)} spriteset(spriteset_railcom1_mauve_pass, "gfx/RailCommuter1.png") {template_engine32WTF(0,7)} spriteset(spriteset_railcom1_purple_pass, "gfx/RailCommuter1.png") {template_engine32WTF(0,8)} spriteset(spriteset_railcom1_pink_pass, "gfx/RailCommuter1.png") {template_engine32WTF(0,9)} spriteset(spriteset_railcom1_brown_pass, "gfx/RailCommuter1.png") {template_engine32WTF(0,10)} spriteset(spriteset_railcom1_red_pass, "gfx/RailCommuter1.png") {template_engine32WTF(0,11)} spriteset(spriteset_railcom1_orange_pass, "gfx/RailCommuter1.png") {template_engine32WTF(0,12)} spriteset(spriteset_railcom1_yellow_pass, "gfx/RailCommuter1.png") {template_engine32WTF(0,13)} spriteset(spriteset_railcom1_green_pass, "gfx/RailCommuter1.png") {template_engine32WTF(0,14)} spriteset(spriteset_railcom1_palegreen_pass, "gfx/RailCommuter1.png"){template_engine32WTF(0,15)} spriteset(spriteset_railcom1_darkgreen_pass, "gfx/RailCommuter1.png") {template_engine32WTF(0,16)} random_switch (FEAT_TRAINS, SELF, random_railcom1_pass){ 1: return spriteset_railcom1_black_pass; 1: return spriteset_railcom1_gray_pass; 1: return spriteset_railcom1_white_pass; 1: return spriteset_railcom1_ltblue_pass; 1: return spriteset_railcom1_blue_pass; 1: return spriteset_railcom1_darkblue_pass; 1: return spriteset_railcom1_mauve_pass; 1: return spriteset_railcom1_purple_pass; 1: return spriteset_railcom1_pink_pass; 1: return spriteset_railcom1_brown_pass; 1: return spriteset_railcom1_red_pass; 1: return spriteset_railcom1_orange_pass; 1: return spriteset_railcom1_yellow_pass; 1: return spriteset_railcom1_green_pass; 1: return spriteset_railcom1_palegreen_pass; 1: return spriteset_railcom1_darkgreen_pass; } switch(FEAT_TRAINS, SELF, railcom1_subtype_text, cargo_subtype) { 0: return string(STR_subtype_CC); 1: return string(STR_subtype_RANDOM); 2: return string(STR_subtype_BLACK); 3: return string(STR_subtype_GRAY); 4: return string(STR_subtype_WHITE); 5: return string(STR_subtype_LTBLUE); 6: return string(STR_subtype_BLUE); 7: return string(STR_subtype_DKBLUE); 8: return string(STR_subtype_MAUVE); 9: return string(STR_subtype_PURPLE); 10: return string(STR_subtype_PINK); 11: return string(STR_subtype_BROWN); 12: return string(STR_subtype_RED); 13: return string(STR_subtype_ORANGE); 14: return string(STR_subtype_YELLOW); 15: return string(STR_subtype_GREEN); 16: return string(STR_subtype_PALEGREEN); 17: return string(STR_subtype_DKGREEN); return CB_RESULT_NO_TEXT; } switch(FEAT_TRAINS, SELF, switch_subtypes_railcom1_pass, cargo_subtype){ 0: return spriteset_railcom1_CC_pass; 1: return random_railcom1_pass; //randomswitch later 2: return spriteset_railcom1_black_pass; 3: return spriteset_railcom1_gray_pass; 4: return spriteset_railcom1_white_pass; 5: return spriteset_railcom1_ltblue_pass; 6: return spriteset_railcom1_blue_pass; 7: return spriteset_railcom1_darkblue_pass; 8: return spriteset_railcom1_mauve_pass; 9: return spriteset_railcom1_purple_pass; 10: return spriteset_railcom1_pink_pass; 11: return spriteset_railcom1_brown_pass; 12: return spriteset_railcom1_red_pass; 13: return spriteset_railcom1_orange_pass; 14: return spriteset_railcom1_yellow_pass; 15: return spriteset_railcom1_green_pass; 16: return spriteset_railcom1_palegreen_pass; 17: return spriteset_railcom1_darkgreen_pass; return spriteset_railcom1_CC_pass; } switch(FEAT_TRAINS, SELF, switch_railcom1_x, cargo_type_in_veh){ PASS: switch_subtypes_railcom1_pass; MAIL: switch_subtypes_railcom1_mail; GOLD: switch_subtypes_railcom1_gold; VALU: switch_subtypes_railcom1_gold; DIAM: switch_subtypes_railcom1_gold; return switch_subtypes_railcom1_pass; } graphics{ default: switch_railcom1_x; cargo_subtype_text: railcom1_subtype_text; }