Loading

Refit menu greyed out

  1. switch (FEAT_TRAINS, SELF, switch_railjet_position_default, position_in_articulated_veh) {
  2.     0: set_railjet_taurus;
  3.     1: set_railjet_bmpvz;
  4.     2: set_railjet_bmpz;
  5.     3: set_railjet_bmpz;
  6.     4: set_railjet_bmpz;
  7.     5: set_railjet_arbmpz;
  8.     6: set_railjet_ampz;
  9.     7: set_railjet_afmpz;
  10. }
  11.  
  12. switch (FEAT_TRAINS, SELF, switch_railjet_position_skiaustria, position_in_articulated_veh) {
  13.     0: set_railjet_taurus;
  14.     1: set_railjet_bmpvz_skiaustria;
  15.     2: set_railjet_bmpz_skiaustria;
  16.     3: set_railjet_bmpz_skiaustria;
  17.     4: set_railjet_bmpz_skiaustria;
  18.     5: set_railjet_arbmpz_skiaustria;
  19.     6: set_railjet_ampz_skiaustria;
  20.     7: set_railjet_afmpz_skiaustria;
  21. }
  22.  
  23. switch (FEAT_TRAINS, SELF, switch_railjet, cargo_subtype) {
  24.     0: switch_railjet_position_default;
  25.     1: switch_railjet_position_skiaustria;
  26. }
  27.  
  28. switch (FEAT_TRAINS, SELF, switch_railjet_text, cargo_subtype) {
  29.     0: return string(STR_RAILJET_LIVERY_DEFAULT);
  30.     1: return string(STR_RAILJET_LIVERY_SKIAUSTRIA);
  31.     return CB_RESULT_NO_TEXT;
  32. }
  33.  
  34. item (FEAT_TRAINS, i_railjet) {
  35.     property {
  36.         default_cargo_type: PASS;
  37.         refittable_cargo_classes: bitmask(PASS);
  38.     }
  39.     graphics {
  40.         default: switch_railjet;
  41.         cargo_subtype_text: switch_railjet_text;
  42.     }
  43. }

Comments