public CircularSpeedGaugeRenderer(Viewer viewer, MSTSLocomotive locomotive, CabViewDigitalControl control, CabShader shader) : base(viewer, locomotive, control, shader) { // Height is adjusted to keep compatibility driverMachineInterface = new DriverMachineInterface((int)(Control.Bounds.Width * 640 / 280), (int)(Control.Bounds.Height * 480 / 300), locomotive, viewer, control); viewer.UserCommandController.AddEvent(CommonUserCommand.AlternatePointerPressed, MouseRightButtonPressed); viewer.UserCommandController.AddEvent(CommonUserCommand.AlternatePointerReleased, MouseRightButtonReleased); }
//[CallOnThread("Loader")] public CabViewCircularSpeedGaugeRenderer(Viewer viewer, MSTSLocomotive locomotive, CabViewDigitalControl control, CabShader shader) : base(viewer, locomotive, control, shader) { CircularSpeedGauge = new CircularSpeedGauge( control.Bounds.Width, Control.Bounds.Height, (int)Control.ScaleRangeMax, Control.ControlUnit == CabViewControlUnit.Km_Per_Hour, true, Control.ScaleRangeMax == 240 || Control.ScaleRangeMax == 260, (int)Control.ScaleRangeMin, Locomotive, Viewer, shader ); }