@@ -2857,6 +2857,10 @@ public ThreeDimentionCabViewer(Viewer viewer, MSTSLocomotive car, MSTSLocomotive
2857
2857
case CABViewControlTypes . MIRRORS :
2858
2858
case CABViewControlTypes . LEFTDOOR :
2859
2859
case CABViewControlTypes . RIGHTDOOR :
2860
+ case CABViewControlTypes . ORTS_ITEM1CONTINUOUS :
2861
+ case CABViewControlTypes . ORTS_ITEM2CONTINUOUS :
2862
+ case CABViewControlTypes . ORTS_ITEM1TWOSTATE :
2863
+ case CABViewControlTypes . ORTS_ITEM2TWOSTATE :
2860
2864
break ;
2861
2865
default :
2862
2866
//cvf file has no external wipers, left door, right door and mirrors key word
@@ -2962,6 +2966,18 @@ public override void PrepareFrame(RenderFrame frame, ElapsedTime elapsedTime)
2962
2966
case CABViewControlTypes . MIRRORS :
2963
2967
p . Value . UpdateState ( Locomotive . MirrorOpen , elapsedTime ) ;
2964
2968
break ;
2969
+ case CABViewControlTypes . ORTS_ITEM1CONTINUOUS :
2970
+ p . Value . UpdateLoop ( Locomotive . GenericItem1 , elapsedTime ) ;
2971
+ break ;
2972
+ case CABViewControlTypes . ORTS_ITEM2CONTINUOUS :
2973
+ p . Value . UpdateLoop ( Locomotive . GenericItem2 , elapsedTime ) ;
2974
+ break ;
2975
+ case CABViewControlTypes . ORTS_ITEM1TWOSTATE :
2976
+ p . Value . UpdateState ( Locomotive . GenericItem1 , elapsedTime ) ;
2977
+ break ;
2978
+ case CABViewControlTypes . ORTS_ITEM2TWOSTATE :
2979
+ p . Value . UpdateState ( Locomotive . GenericItem2 , elapsedTime ) ;
2980
+ break ;
2965
2981
default :
2966
2982
break ;
2967
2983
}
0 commit comments