Here is a patch to add an extra widget for the cockpit.
Actually, I took the idea in this post :
http://forums.armagetronad.net/viewtopic.php?t=1856
Here is an example and some details about it :
<Camview camera="in" view="in">
<Position x="-0.95" y="-0.95" />
<Size height="0.15" width="0.3" />
<Translation x="0.5" y="0" z="0" />
<Rotation value="150" />
<Mirror value="true" />
</Camview>
Some explaination:
-> Camera, position and size are standard elements as for all other widget.
-> View accept the same parameters as camera except * and all. It defines the camera to use in the view.
-> Translation move the camera from his normal position according to his direction (assuming the direction is (0,1,0)).
-> Rotation, hmmm, rotate the camera on Z axis (what a surprise)
-> Mirror flip the image
other params :
<Rise value="0" />
<FOV value="100" />
<MainCameraDir value="true" />
-> Rise overwrite the rise of the camera
-> FOV, same
-> MainCameraDir force the widget to use the main viewport camera as a original direction (it still apply the rotation on it) so glancing affect the widget as well
I've tested the patch on ubuntu gg and macos 10.5 for a few days, works fine so it's time to share it.
I hope you'll like it. Have fun
