Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 4b88dfe

Browse files
committedDec 26, 2024·
Minor CVF bits
1 parent 95810d7 commit 4b88dfe

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed
 

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

+5-1
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)
Please sign in to comment.