Sim/graphics/view/view type

From X-Plane SDK
Jump to: navigation, search
This page was imported from the previous wiki engine. It needs a review and cleanup of formatting. Please see this page for more information.
The enums for this dataref changed from 6.70 to 7.xx. Also in 6.70 the dataref was not writable. If you must detect the current view in 6.70 and 7.xx you will need to check the sim version to modify your eunms. If you need to set the view, use XPLMCommandKeyStroke with the appropriate enums.

The enums for view_type in 7.xx are:

1000 Forwards
1001 Down 4 Degrees*
1002 Down 8 Degrees*
1004 Left 45 Degrees
1005 Right 45 Degrees
1006 Left 90 Degrees
1007 Right 90 Degrees
1008 Left 135 Degrees
1009 Right 135 Degrees
1010 Backward
1011 Left and up
1012 Right and up
1014 Airport Beacon Tower
1015 On Runway
1017 Chase
1018 Follow
1019 Follow with Panel
1020 Spot
1021 Spot Moving
1023 Full screen with HUD
1024 Full screen no HUD
1025 Straight Down+
1026 3D Cockpit+
* These enums do not work in 7.40 since panning and looking up and down are not specific view modes, but just changes in the camera angle with an existing view mode.
+ These enums were added in 8.60.

The enums for view_type in 6.70 were:

600 Forwards
601 Down 4 Degrees
602 Down 8 Degrees
604 Left 45 Degrees
605 Right 45 Degrees
606 Left 90 Degrees
607 Right 90 Degrees
608 Left 135 Degrees
609 Right 135 Degrees
610 Backwards
611 Left and Up
612 Right and Up
614 Airport Beacon Tower
615 On Runway
617 Chase
618 Follow
619 Follow + Panel
620 Spot
622 Full Screen with HUD
623 Full Screen no HUD