// graphics chain for vehicle platform
spriteset(intermodal_car_pony_gen_6C_ss_unreversed_unflipped, "generated/graphics/intermodal_car_pony_gen_6C.png") {
spriteset_template_symmetric_unreversed_8_8_unflipped(10 + 0)
}
spriteset(intermodal_car_pony_gen_6C_ss_unreversed_flipped, "generated/graphics/intermodal_car_pony_gen_6C.png") {
spriteset_template_symmetric_unreversed_8_8_flipped(10 + 0)
}
// handle user flipped state
switch (FEAT_TRAINS, SELF, intermodal_car_pony_gen_6C_switch_graphics_unreversed, vehicle_is_flipped) {
1: return intermodal_car_pony_gen_6C_ss_unreversed_flipped;
return intermodal_car_pony_gen_6C_ss_unreversed_unflipped;
}
random_switch (FEAT_TRAINS, SELF, intermodal_car_pony_gen_6C_switch_graphics_vehicle_platform) {
independent: intermodal_car_pony_gen_6C_switch_graphics_vehicle_containers;
1: return intermodal_car_pony_gen_6C_switch_graphics_unreversed;
}
// graphics chain for containers
spriteset(intermodal_car_pony_gen_6C_ss_containers_temp_1, "src/containers_temp.png") {
spriteset_template_symmetric_unreversed_8_8_unflipped(10)
}
spriteset(intermodal_car_pony_gen_6C_ss_containers_temp_2, "src/containers_temp.png") {
spriteset_template_symmetric_unreversed_8_8_unflipped(40)
}
random_switch (FEAT_TRAINS, SELF, intermodal_car_pony_gen_6C_switch_graphics_vehicle_containers, bitmask(TRIGGER_VEHICLE_NEW_LOAD)) {
independent: intermodal_car_pony_gen_6C_switch_graphics_vehicle_platform;
1: return intermodal_car_pony_gen_6C_ss_containers_temp_1;
1: return intermodal_car_pony_gen_6C_ss_containers_temp_2;
}
// switch layers: base platform / containers
switch (FEAT_TRAINS, SELF, intermodal_car_pony_gen_6C_switch_graphics_vehicle, getbits(extra_callback_info1, 8, 8)) {
0: return intermodal_car_pony_gen_6C_switch_graphics_vehicle_platform;
1: return intermodal_car_pony_gen_6C_switch_graphics_vehicle_containers;
}