示例#1
0
 public static void Prefix(ControlSpec spec)
 {
     if (spec.name == "C horn" && spec is Lever leverSpec && TrainCar.Resolve(spec.gameObject).carType == TrainCarType.LocoDiesel)
     {
         leverSpec.jointLimitMin = 0;
     }
 }
示例#2
0
 public static void Prefix(ControlSpec spec)
 {
     if (spec.name == "C throttle" && spec is Lever leverSpec)
     {
         leverSpec.invertDirection        ^= true;
         leverSpec.scrollWheelHoverScroll *= -1;
     }
 }
示例#3
0
 public static void Prefix(ControlSpec spec)
 {
     if (spec.name == "C throttle" && spec is Lever leverSpec)
     {
         leverSpec.invertDirection = true;
         leverSpec.notches         = ThrottleNotching.NumNotches + 1; // +1 for notch "0" (idle position)
     }
 }
示例#4
0
 public static void Prefix(ControlSpec spec)
 {
     if (spec.name == "C BrakeWheel(Clone)" && spec is Wheel wheel)
     {
         wheel.scrollWheelHoverScroll     = 1f;
         wheel.nonVrStaticInteractionArea = null;
     }
 }