Previously a completely new PFD or MFD was created when the Debug
menu items were used. This cause significant slowdown if used
multiple times. Now we just create one instance of each and re-use it.
Also clean up redundant code in the GUI.
Adds standard view option to enable pilot models.
Set /sim/rendering/pilot-model/available=true in aircraft
using pilot models.
/sim/rendering/pilot-model/enabled is used by users to
enable/disable the pilot models from the View Options dialog.
Note that pilot models are only visible for non-internal views.
Previously the Select Airport dialog set
the heading preset to 0. A recent change in the
reposition code meant that this was now being
complied with. This change fixes it by setting
the heading to the "uninitialized" special value
of 9999.0.
Checked by default. If unchanged, cursor keys are ignored instead of panning
the map; e.g. this allows them to be used with autopilot.
This requires associated flightgear commit.
Previously on the first call to display an FG1000 PFD/MFD from
the Debug menu worked, because only one index was used, which was
subsequently deleted when the window was closed.
Now a new PFD/MFD instance is created each time the Debug menu is used.
This isn't ideal, and probably exposes Nasal memory issues if used
many times, but is fine for the moment.
METAR description is too big to fit in 'Weather Conditions' window.
Also moved the description of item selected in the popup (Live data, Manual
input, ... etc.) so it is immediately below the popup. Used to be the other
side of the METAR info, which was a little confusing.
Consolidate the two nasal sections into one (only one nasal section would be used).
Make controls work properly and accurately reflect status.
Remove OK and Apply as enable/disable takes effect immediately.
Comment out unsupported "Download other data files" checkbox.
Revised logic of AI Traffic to reflect status; added button to force update (normally AI Traffic update is only performed during startup)
PTT now in
/controls/radios/comm-ptt as an int; non zero indicates which comm radio to use
/comm-radio-selected is the default comm channel to use. This should usually be the same as will be set by PTT into /controls/radios/comm-ptt
NOTE: that PTT will switch the FG comm inbound and outbound frequency to whichever radio was PTT'd.
Patch by Daniel Wickstrom, requires a corresponding FLightGear change
to extend the special search function used by this dialog to add
support for a type-prefix.