@@ -2857,6 +2857,10 @@ public ThreeDimentionCabViewer(Viewer viewer, MSTSLocomotive car, MSTSLocomotive
28572857 case CABViewControlTypes . MIRRORS :
28582858 case CABViewControlTypes . LEFTDOOR :
28592859 case CABViewControlTypes . RIGHTDOOR :
2860+ case CABViewControlTypes . ORTS_ITEM1CONTINUOUS :
2861+ case CABViewControlTypes . ORTS_ITEM2CONTINUOUS :
2862+ case CABViewControlTypes . ORTS_ITEM1TWOSTATE :
2863+ case CABViewControlTypes . ORTS_ITEM2TWOSTATE :
28602864 break ;
28612865 default :
28622866 //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)
29622966 case CABViewControlTypes . MIRRORS :
29632967 p . Value . UpdateState ( Locomotive . MirrorOpen , elapsedTime ) ;
29642968 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 ;
29652981 default :
29662982 break ;
29672983 }
0 commit comments