User manual

F4-BMS 2.0 Technical Manual
functions.
"SetTextOrientation <integer>"
Sets the orientation of of the text relative to the
cursor position. Acceptable values are 0, 1
and 2. 0 = left justified text, 1 = centered text,
2 = right justified text. This function affects all
print functions.
"SetViewCallback <callback>"
Searches the panels for a button using
<callback>, and then sets the current view to
that panel. If the callback is not found, the view
is left unchanged. This can be used to write
scripts that are compatible with multiple
different 2d cockpits.
"SetViewDial <callback>"
Searches the panels for a dial using
<callback>, and then sets the current view to
that panel. If the callback is not found, the view
is left unchanged. This can be used to write
scripts that are compatible with multiple
different 2d cockpits.
"SetPanTilt <float (x)> <float (y)>"
Sets the current 3d view to the coordinates
specified by <float (x)> and <float (y)>. These
coordinates are in radians, and 0.0f is straight
ahead in the 3d cockpit.
"MovePanTilt <float (x)> <float (y)>"
Offsets the current 3d view from its current
position by the amounts specified by <float (x)>
and <float (y)>. These coordinates are in
radians.
"SetCursor3D <float (x)> <float (y)> <float (z)>"
Takes a camera centric point defined by the x,
y and z coordinate, converts that into 2d
screen space, and sets the cursor to that
location.
157