Loading

Paste #p4qukyqv2

  1. // graphics chain for vehicle platform
  2.         spriteset(intermodal_car_pony_gen_6C_ss_unreversed_unflipped, "generated/graphics/intermodal_car_pony_gen_6C.png") {
  3.           spriteset_template_symmetric_unreversed_8_8_unflipped(10 + 0)
  4.         }
  5.         spriteset(intermodal_car_pony_gen_6C_ss_unreversed_flipped, "generated/graphics/intermodal_car_pony_gen_6C.png") {
  6.           spriteset_template_symmetric_unreversed_8_8_flipped(10 + 0)
  7.         }
  8.     // handle user flipped state
  9.     switch (FEAT_TRAINS, SELF, intermodal_car_pony_gen_6C_switch_graphics_unreversed, vehicle_is_flipped) {
  10.         1: return intermodal_car_pony_gen_6C_ss_unreversed_flipped;
  11.         return intermodal_car_pony_gen_6C_ss_unreversed_unflipped;
  12.     }
  13. random_switch (FEAT_TRAINS, SELF, intermodal_car_pony_gen_6C_switch_graphics_vehicle_platform) {
  14.     independent: intermodal_car_pony_gen_6C_switch_graphics_vehicle_containers;
  15.         1: return intermodal_car_pony_gen_6C_switch_graphics_unreversed;
  16. }
  17. // graphics chain for containers
  18. spriteset(intermodal_car_pony_gen_6C_ss_containers_temp_1, "src/containers_temp.png") {
  19.   spriteset_template_symmetric_unreversed_8_8_unflipped(10)
  20. }
  21. spriteset(intermodal_car_pony_gen_6C_ss_containers_temp_2, "src/containers_temp.png") {
  22.   spriteset_template_symmetric_unreversed_8_8_unflipped(40)
  23. }
  24. random_switch (FEAT_TRAINS, SELF, intermodal_car_pony_gen_6C_switch_graphics_vehicle_containers, bitmask(TRIGGER_VEHICLE_NEW_LOAD)) {
  25.     independent: intermodal_car_pony_gen_6C_switch_graphics_vehicle_platform;
  26.     1: return intermodal_car_pony_gen_6C_ss_containers_temp_1;
  27.     1: return intermodal_car_pony_gen_6C_ss_containers_temp_2;
  28. }
  29. // switch layers: base platform / containers
  30. switch (FEAT_TRAINS, SELF, intermodal_car_pony_gen_6C_switch_graphics_vehicle, getbits(extra_callback_info1, 8, 8)) {
  31.     0: return intermodal_car_pony_gen_6C_switch_graphics_vehicle_platform;
  32.     1: return intermodal_car_pony_gen_6C_switch_graphics_vehicle_containers;
  33. }

Comments