Advertisement
Guest User

Untitled

a guest
Dec 28th, 2021
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.45 KB | None | 0 0
  1. // Bus Stops
  2. // ----------------
  3.  
  4. if (traffic_side == TRAFFIC_SIDE_RIGHT) { // Switch sprites for drive on right
  5.  
  6. if (style_param == 0) {
  7. replacenew replace_stop_A_T_01 (ROAD_STOPS, "images/Stop-A-T_test_1X.png") {
  8. tmpl_busstop()
  9. }
  10. alternative_sprites(replace_stop_A_T_01, ZOOM_LEVEL_IN_4X, BIT_DEPTH_8BPP, "images/Stop-A-T_test_4X.png") { // 4x zoom sprites
  11. tmpl_busstop_4X()
  12. }
  13.  
  14. }
  15. if (style_param == 1) { // switch to double shelters based on parameter
  16. replacenew replace_stop_AA_T_01 (ROAD_STOPS, "images/Stop-AA-T_1X.png") {
  17. tmpl_busstop()
  18. }
  19. alternative_sprites(replace_stop_AA_T_01, ZOOM_LEVEL_IN_4X, BIT_DEPTH_8BPP, "images/Stop-AA-T_4X.png") { // 4x zoom sprites
  20. tmpl_busstop_4X()
  21. }
  22.  
  23. }
  24.  
  25.  
  26. else { // Switch sprites for drive on left
  27. if (style_param == 0) {
  28. replacenew replace_stop_A_T_L_01 (ROAD_STOPS, "images/Stop-A-T-L_test_1X.png") {
  29. tmpl_busstop()
  30. }
  31. alternative_sprites(replace_stop_A_T_L_01, ZOOM_LEVEL_IN_4X, BIT_DEPTH_8BPP, "images/Stop-A-T-L_test_4X.png") { // 4x zoom sprites
  32. tmpl_busstop_4X()
  33. }
  34.  
  35. }
  36. if (style_param == 1) { // switch to double shelters based on parameter
  37. replacenew replace_stop_AA_T_L_01 (ROAD_STOPS, "images/Stop-AA-T-L_1X.png") {
  38. tmpl_busstop()
  39. }
  40. alternative_sprites(replace_stop_AA_T_L_01, ZOOM_LEVEL_IN_4X, BIT_DEPTH_8BPP, "images/Stop-AA-T-L_4X.png") { // 4x zoom sprites
  41. tmpl_busstop_4X()
  42. }
  43.  
  44. }
  45. }
  46. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement