@@ -1022,6 +1022,80 @@ Gauges may have Style POINTER or SOLID.
1022
1022
1023
1023
Rotation may be applied, with the same syntax, also to DigitalClock cab controls.
1024
1024
1025
+ Display and animation of cabview controls in side views of 2D cabs
1026
+ ------------------------------------------------------------------
1027
+
1028
+ This is possible adding after the CabViewControls ( ) compound block an
1029
+ ORTSCabviewControls ( ) compound block, that has the same format as the
1030
+ CabViewControls ( ) block. The selection of the CabviewPoint where the control
1031
+ is displayed/animated is performed by a line::
1032
+
1033
+ ORTSCabviewPoint ( n )
1034
+
1035
+ where n is the ordinal position of the cabview point in the header of the .cvf file.
1036
+
1037
+ Here an example::
1038
+
1039
+ Tr_CabViewFile (
1040
+
1041
+ CabViewType ( 1 )
1042
+
1043
+ CabViewFile ( CV_Front.ace )
1044
+ CabViewWindow ( 0 0 1024 768 )
1045
+ CabViewWindowFile ( "" )
1046
+ Position ( -0.517699 2.78 8.63 )
1047
+ Direction ( 0 0 0 )
1048
+
1049
+ CabViewFile ( CV_Left.ace )
1050
+ CabViewWindow ( 0 0 1024 768 )
1051
+ CabViewWindowFile ( "" )
1052
+ Position ( -0.517699 2.78 8.63 )
1053
+ Direction ( 0 -48 0 )
1054
+
1055
+ CabViewFile ( CV_Right.ace )
1056
+ CabViewWindow ( 0 0 1024 768 )
1057
+ CabViewWindowFile ( "" )
1058
+ Position ( -0.517699 2.78 8.63 )
1059
+ Direction ( 0 71.5 0 )
1060
+
1061
+ EngineData ( BStE-ET_169a_Jm )
1062
+
1063
+ CabViewControls ( 10
1064
+ Dial (
1065
+ Type ( MAIN_RES DIAL )
1066
+ Position ( 163 32 8 30 )
1067
+ Graphic ( CV_Pointer.ace )
1068
+ Style ( POINTER )
1069
+ ScaleRange ( 0 10 )
1070
+ ScalePos ( 227 152 )
1071
+ Units ( BAR )
1072
+ Pivot ( 20 )
1073
+ DirIncrease ( 0 )
1074
+ )
1075
+
1076
+ ...
1077
+
1078
+ )
1079
+
1080
+ ORTSCabviewControls ( 12
1081
+ TwoState ( Comment( Wiperswitch in right cabviewpoint )
1082
+ Type ( WIPERS TWO_STATE )
1083
+ Position ( 500 165 13 24 )
1084
+ Graphic ( CV_WIPERSSwitch.ace )
1085
+ NumFrames ( 2 2 1 )
1086
+ Style ( ONOFF )
1087
+ MouseControl ( 1 )
1088
+ ORTSCabviewPoint ( 2 )
1089
+ )
1090
+
1091
+ ...
1092
+ )
1093
+
1094
+
1095
+ In this example ORTSCabviewPoint refers to the 3rd viewpoint ( 0 refers to the main-central viewpoint ) defined
1096
+ in the .cvf header, that is the right side viewpoint.
1097
+
1098
+ Note that in Open Rails you may have more than three cabviewpoints defined for 2D cabs.
1025
1099
1026
1100
3D cabs
1027
1101
=======
0 commit comments