Skip to content

Commit 4b88dfe

Browse files
committed
Minor CVF bits
1 parent 95810d7 commit 4b88dfe

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

source/Plugins/Train.MsTs/Panel/CvfParser.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ internal static bool ParseCabViewFile(string fileName, ref CarBase Car)
152152
Plugin.currentHost.RegisterTexture(CabViews[0].fileName, new TextureParameters(null, null), out Texture tday, true);
153153
PanelBitmapWidth = tday.Width;
154154
PanelBitmapHeight = tday.Height;
155-
CreateElement(ref Car.CarSections[0].Groups[0], 0.0, 0.0, PanelBitmapWidth, PanelBitmapHeight, new Vector2(0.5, 0.5), 0.0, Car.Driver, tday, null, new Color32(255, 255, 255, 255));
155+
CreateElement(ref Car.CarSections[0].Groups[0], 0.0, 0.0, 1024, 768, new Vector2(0.5, 0.5), 0.0, Car.Driver, tday, null, new Color32(255, 255, 255, 255));
156156
}
157157
else
158158
{
@@ -594,6 +594,10 @@ private void ReadSubBlock(Block block)
594594
_panelSubject = PanelSubject.TrainBrakeHandle;
595595
Units = "brake";
596596
break;
597+
case "whistle two_state":
598+
_panelSubject = PanelSubject.Horn;
599+
Units = "klaxon";
600+
break;
597601
}
598602

599603
break;

0 commit comments

Comments
 (0)