1
0
Fork 0
Commit graph

1080 commits

Author SHA1 Message Date
Julian Smith
eebf07d9f6 Add user control of whether mouse controls elevator when left button is down.
defaults.xml
    Set new property /sim/mouse/mouse-rudder-elevator to false, but with
    userarchive="y".
gui/dialogs/input-config.xml
    Added checkbox to control /sim/mouse/mouse-rudder-elevator.
mice.xml:
    Allow mouse control of elevator with button 0 down if
    /sim/mouse/mouse-rudder-elevator is true.
2020-11-21 12:18:18 +00:00
James Turner
f125b75429 Joystick-config: fix ToggleButton, add AP-DISC
Fix the created binding for toggle buttons.

Add autopilotDisconnect helper to controls.nas, and expose the new
function in the joystick configurator dialog. 

Fixes from Henning Stahlke
2020-11-19 21:17:51 +00:00
Julian Smith
c79f3f0551 gui/dialogs/rendering.xml: added checkbox for shadows.
Has a note saying 'May need restart to take affect' because it seems that
shadows never work unless enabled on startup. Note that the property setting is
persisted.
2020-11-17 20:15:43 +00:00
Erik Hofman
7f66257bfb Add climate selection options to set the environment and weather based on climate data. Setting the weather is not yet implemented in the code but eventually it will be. 2020-11-09 11:44:08 +01:00
Julian Smith
dffa547c1c gui/dialogs/radios.xml: added controls of ATIS speech. 2020-11-01 09:32:39 +00:00
Julian Smith
1d4bc4cc1a gui/dialogs/instruments.xml: added control of panel/instrument lighting. 2020-11-01 09:32:39 +00:00
Stuart Buchanan
a60f5fd3fe Checklist: Improve robustness 2020-10-31 20:35:33 +00:00
Stuart Buchanan
9e2ee8b969 Checklist/Tutorial: Auto view direction to marker
This change automatically changes the view direction to look
at a <marker> if any is defined for a checklist item or tutorial
step.

Both the tutorial and checklist features support a <marker> element
which can be used by an aircraft developer to display a magenta
circle around an item of interest (typically a control in the
cockpit).

Previously aircraft developers had to add a <view> element to move
the viewpoint to look at the marker, while users of checklists had
to look for the marker manually.

Now:
- For checklists, pressing the "?" button on a checklist will pan the viewpoint
to the marker.
- For tutorials, if there is not a <view> element defined for a
tutorial step, the view will automatically pan to the marker.
2020-10-31 16:00:51 +00:00
Stuart Buchanan
88dd4468e5 Remember checklist page across close/open of dlg
Path from Michael DANILOV
2020-10-28 22:34:43 +00:00
Stuart Buchanan
7414c50305 Sort checklist groups alphabetically
Patch from Michael DANILOV
2020-10-11 19:58:44 +01:00
Stuart Buchanan
5e24ce0684 Remember selected checklist
Bug fix from Michael DANILOV
2020-10-08 19:01:15 +01:00
Stuart Buchanan
134e0fdc5b Improve GPS dialog wording for linking NAV1 to GPS 2020-08-26 13:44:09 +01:00
James Turner
045c8f4815 Fix in-air reposition runway heading
When repositioning to an airport runway, clear the heading preset
so we use the runway heading.

https://sourceforge.net/p/flightgear/codetickets/2283/
2020-07-14 17:16:07 +01:00
Stuart Buchanan
3f5f1a2570 FG1000: Correct Debug menu item to display MFD 2020-07-11 21:46:55 +01:00
Julian Smith
0bbc7d9f1c Small improvement to terrasync download dialogue.
Show number of errors separately, don't override status if there are a non-zero
number of errors - this was unhelpful if we've managed to resume after errors.
2020-06-28 11:03:54 +01:00
James Turner
986369f6ea Use logprint in more places
Trying to reduce Nasal alert-level output for non-alert-y things.
2020-06-28 07:27:29 +01:00
Julian Smith
2a44dba040 Created new dialogue to control flight recorder.
New dialogue is accesible from the File menu.

Allows enable/disable of three new features: multiplayer record, continuous
record and recovery snapshot. Also moved load/save tape from the file menu into
the new dialogue.

Also removed recently-added flight recorder items from the multiplayer dialogue.

The recovery snapshot interval is 1s second if enabled. Might be better to make
it longer, e.g. 5s, but don't know how to change checkbox value.
2020-06-20 00:26:39 +01:00
Julian Smith
8b2a9204d5 gui/dialogs/flight-recorder-save.xml: renamed internal variable for clarity.
New name Extra corresponds to the new name used in the C++ code. (Used to be
called Config which was misleading and ambiguous.)
2020-06-20 00:24:46 +01:00
Julian Smith
df0cf86bd6 gui/dialogs/multiplayer.xml: added checkbox for Continuous record to file.
Also did some very minor cleanup of ordering within file.
2020-06-17 22:40:31 +01:00
Richard Harrison
d006f00cd4 Remove Debug from scenario dialog 2020-06-15 13:31:52 +02:00
Richard Harrison
f0aa44c834 Fix location dialog to understand initial carrier position from launcher/args 2020-06-15 13:31:51 +02:00
James Turner
47a5ffe3d1 Updated pilot offset dialog from Henning
(Happy birthday!)
2020-06-08 19:41:33 +01:00
Julian Smith
1941900058 In multiplayer setttings window, added checkbox for multiplayer record.
Also mark the setting (/sim/replay/multiplayer) as userarchive so it is
preserved across fg sessions.
2020-06-06 10:04:41 +01:00
Henning Stahlke
e1bda05f7d add dialogs/nasal-test.xml 2020-05-31 20:16:31 +01:00
Stuart Buchanan
07c21660d8 FG1000 - make Debug menu items more efficient
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.
2020-05-26 22:20:38 +01:00
Stuart Buchanan
0ce0e436ec Generalize pilot model support
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.
2020-05-24 19:05:14 +01:00
James Turner
d046ad09d2 Airport dlg: making parking availability update
Patch by Gaétan Allaert
2020-05-21 23:18:47 +01:00
James Turner
2483b86939 remove deprecated printlog() from a dialog 2020-05-21 22:47:14 +01:00
fly
b44a1c1a7c Added autopush
Signed-off-by: fly <merspieler@airmail.cc>
2020-05-15 11:29:07 +01:00
Stuart Buchanan
f8fdd58c43 Add max-paged-lod, triangle-directional-lights
Also restructure dialog somewhat.
2020-05-10 16:23:54 +01:00
Stuart Buchanan
49874ceff3 Align heading with runway on Select Airport
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.
2020-05-05 08:04:33 +01:00
Julian Smith
7a93a630ae gui/dialogs/map.xml: added 'Pan with keys' button.
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.
2020-05-02 10:27:13 +01:00
Stuart Buchanan
5448a995f3 Don't reload materials on LoD change
https://sourceforge.net/p/flightgear/codetickets/2224/

Speculative fix that reloading materials might impact
scenery reloading.  No reason to reload materials on
an LoD change, so removing it.
2020-04-29 22:41:07 +01:00
Stuart Buchanan
6d44030df5 Improve UI for select carrier start locations
Add dynamic combo boxes for users to select from the available
carriers and parking position/catapults/FLOLS/Abeam positions
in-sim.
2020-04-18 18:10:17 +01:00
Richard Harrison
7abf6cfdce Position dialog rework
Change to have radio buttons for each option on the left and the details for the selected option on the right and hide unrelated elements
2020-04-10 15:25:41 +02:00
Richard Harrison
b30a5b1d01 Basic carrier support for the reposition dialog 2020-04-09 23:56:41 +02:00
Richard Harrison
3cf50aec3e Tidy up scenarios dialog
- scenarios presented in alpha order (top to bottom, left to right)
- Inactive elements hidden (wake active and wake radius)
2020-04-09 23:56:40 +02:00
Richard Harrison
5f1784937e Added Joystick Sensitivity Reduction to dialog.
This allows the setting of the <power> tag - which in turn will decreases the sensitivity around the zero position
2020-04-09 23:56:37 +02:00
Stuart Buchanan
7605fee09f Fix multiple openings of FG1000 windows
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.
2020-04-08 20:13:47 +01:00
Lars Toenning
713149ceb6
Update replay dialog 2020-03-25 17:23:09 +01:00
Joni
a33de462d6 GUI modifications: Show/hide checklist marker with a button. Display local magnetic variation in Instruments dialog. 2020-03-03 12:45:17 +01:00
Slawek Mikula
92da35082a - ATC radio list - adding selectors to radio R1/R2 for corresponding frequencies 2020-02-24 14:07:22 +00:00
jano
6e30ada029 add a help link to the wiki page for the lag settings 2020-01-27 01:13:04 +01:00
jano
b72262e0e8 added the clock offset and max simtime per frame in the lag menu to ease lag settings 2020-01-14 12:52:59 +01:00
Julian Smith
a14f11b68a gui/dialogs/weather*: minor cleanup.
gui/dialogs/weather-metar-description.xml
    removed top-level width/height, fixes odd size affects.
gui/dialogs/weather.xml
    removed code that was disabled in recent commit.
2019-11-07 15:29:02 +00:00
Julian Smith
b21ecb2315 gui/dialogs/weather*: show METAR description in separate window.
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.
2019-11-06 17:53:03 +00:00
Julian Smith
807b35eab7 gui/dialogs/weather.xml: added human-readable metar info.
Relies on associated recent changes to flightgear and simgear, which put
human-readable metar text into /environment/metar/description.
2019-11-01 22:56:36 +00:00
Julian Smith
c984ac4021 gui/menubar.xml: always open mpcarriers dialogue.
Avoids need to retry opening dialogue after getting 'Found no MPCarriers for
activated carrier AI scenarios within range' diagnostic.
2019-10-25 21:03:36 +01:00
Thorsten Renk
8efa938ace Add volcanic activity for Surtsey 2019-10-19 10:27:33 +03:00
Stuart Buchanan
ed375fa632 Fix display of Random Buildings settings. 2019-09-25 20:56:24 +01:00
Stuart Buchanan
d02ad7922b FG1000 bugfixes
- Simulate solid-state gyro for orientation
- Improve behaviour restarting interfaces
- Improve generic support through Debug menu.
2019-09-25 20:52:54 +01:00
Julian Smith
a651665368 gui/styles/anthrax.xml: fix <style-name> => <name>. 2019-08-29 00:11:51 +01:00
Julian Smith
f591120032 Disabled old 'Model View' selector by default.
It is now called 'Legacy multiplayer view selector', and enabled/disabled via
new checkbox in the 'View - View Options' dialogue.
2019-08-05 07:31:47 +01:00
Julian Smith
72e2aa8c1e gui/dialogs/pilot_offset.xml: in 'Adjust View Position', added 'Zero' buttons. 2019-07-09 16:25:11 +01:00
Julian Smith
944cddcb49 gui/dialogs/model-view-select.xml: move list to left to line up with <> buttons. 2019-07-09 16:25:11 +01:00
Richard Harrison
38ffb88511 Fix lost button due to incorrect row for thrust reverser 2019-06-11 14:41:09 +02:00
James Turner
217417373b Merge /u/ltoenning/fgdata/ branch swift_connection into next
https://sourceforge.net/p/flightgear/fgdata/merge-requests/136/
2019-05-22 13:35:53 +00:00
Thorsten Renk
33e1404c51 Katla and Eyjafjallajokull volcano definitions 2019-05-20 10:07:46 +03:00
Richard Harrison
2a748fdc70 Add thrust reverser to joystick bindings.
This can either be a button (which toggles) or an axis (variable)
2019-05-01 13:43:16 +02:00
Lars Toenning
f9cbb4f708 Adding dialog for swift connection 2019-05-01 13:20:48 +02:00
Richard Harrison
c44d39ec28 Scenery Download (Terrasync) dialog
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)
2019-04-08 14:19:46 +02:00
Gijs de Rooy
1d8656347a Update about dialog date 2019-03-26 10:11:22 +01:00
Richard Harrison
4c6b103293 Add support for FGCom multiple radio support
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.
2019-03-19 21:16:33 +01:00
Richard Harrison
6c4d8b44e4 Improved Tower Location dialog
Add ICAO for closest airport (auto mode)

Hide textbox (auto mode)

Allow selection based on tuned frequency
2019-03-10 15:25:43 +01:00
Richard Harrison
67e8c14ec6 Add logging control to developer dialog 2019-03-10 15:25:43 +01:00
James Turner
867d898b68 Adapt scenarios dialog for revised AIManager
AIManager now takes care of finding scenarios which can be loaded, so
the work here is much simpler.
2019-02-03 12:19:42 +00:00
James Turner
29ec71b3a6 Route-manager dialog: default to appending
Rather than warning in the case where there is no selected, default
to appending new waypoints, since this is a fairly common case.
2019-01-16 11:12:34 +00:00
James Turner
f6fd864394 Route-manager dialog: improve on-screen help 2019-01-16 11:12:34 +00:00
James Turner
8eb2033a97 Heliport support in the map dialog
Patch from Daniel Wickstrom, requires corresponding change in FlightGear
2019-01-15 11:21:21 +00:00
James Turner
baa33f40b3 Airport-list: allow filtering by type for helipads
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.
2019-01-14 12:16:22 +00:00
Stuart Buchanan
3b92497769 Joystick Config fixes from Ron HAERTEL 2019-01-06 20:48:47 +00:00
Scott Giese
09d99a2a6d "Very Low Density" missing from random-vegetation nasal script.
Courtesy of wkitty
2018-12-28 00:45:46 -06:00
Richard Harrison
b66682cd7d Add texture-cache defaults 2018-11-25 22:50:36 +01:00
Richard Harrison
3257e667df Added UI checkbox for DDS Texture Cache 2018-11-24 20:06:52 +01:00
James Turner
726b770db6 Revert "Route-manager: UI for cruise and alternate"
This reverts commit 4320f8403a.
2018-11-05 12:56:39 +01:00
Richard Harrison
2d3042abf9 LOD: Increase detailed range to 100km, fix reload when changed 2018-11-01 01:39:18 +01:00
Richard Harrison
160abde2a6 LOD dialogs rework.
Big rework of the Adjust LOD ranges dialog to hopefully make it easier to understand, and harder to setup so that models aren't visible by accident.

All range entry is now via sliders.

The sliders are deltas from the previous value.

There is now the option to specifically choose either low detail or high detail AI/MP models. *NOTE* that for models without a fallback index the low detail model will be the blue yellow glider.

There is now clear indication of what happens for the Meters or Pixel modes.

Added a defaults button that will restore a reasonable set of default values.

The properties that were used have been renamed to ensure that sensible defaults will be picked, ideally we'd have a way to migrate things like this but I don't think we do, so this is a reasonable alternative.
2018-10-30 20:19:10 +01:00
James Turner
cad41649dc Fix property browser #0 not working on second open
Since we mutate the (cached) definition properties on each call to
clone(), we need to reset these values back, or the non-clone()-ed
instance gets confused paths to its input and list widgets.

https://sourceforge.net/p/flightgear/codetickets/2044/
2018-10-25 16:23:19 +01:00
James Turner
4320f8403a Route-manager: UI for cruise and alternate
Revise the UI for specifying cruise now the route-manager properties
are hooked up.
2018-10-12 15:28:53 +01:00
Gijs de Rooy
238d48de0b Revert "Correct shader slider fractions"
Fractions are intentionally the same for all sliders to create an uniform appearance.

This reverts commit 4ad180a145.
2018-09-19 10:24:42 +02:00
Richard Harrison
acb8fea841 Add ability to specify TACAN frequency on radios dialog.
This will only work for valid VORTAC or TACAN stations.

Not all frequencies can be mapped to VOR frequency range. These will be displayed (and entered) without a decimal place to differentiate them.
2018-09-15 18:35:37 +02:00
Gijs de Rooy
4ad180a145 Correct shader slider fractions 2018-09-15 11:23:12 +02:00
Thorsten Renk
2e38b20030 New active volcano: Beerenberg on Jan Mayen 2018-09-15 10:32:58 +03:00
Richard Harrison
da089c843a Change default height of property browswer to 500 pixels.
Realistically 768 pixels is the minimum height for most displays these days, so 500 is a reasonable figure for all displays, and it does make it easier to operate.
2018-09-02 13:57:29 +02:00
Thorsten Renk
cce0fac2f8 ALS: New cloud rendering detail level with more dramatic Mie scattering at cloud fringes done inside fragment shader 2018-08-30 09:17:36 +03:00
Richard Harrison
2322d0dbe8 Joystick binding changes;
- added extra bindings
- reworked the view axis (usually bound to the hat); to move at a better rate.
- trim to elevator position. When selected this will remember the current position and when the joystick is centered it will apply this as the trim. Very useful for carrier approaches; and also it helps to do something that is much easier with loaded controls when you can feel the pressure being reduced by the operations of the trim switch
2018-07-28 00:39:22 +02:00
Stuart Buchanan
7a8dc7d2d9 Fallback AI model list.
By setting /sim/model/fallback-model-index, an MP model
can transmit an index into the AI/Aircraft/fallback_models.xml
file which will be used if the aircraft model cannot be found
in other instances Aircraft or AI/Aircraft directories.
2018-07-27 18:39:53 +01:00
Stuart Buchanan
9f9ea1cf8e Rendering options to set preferred MP model
GUI and default property for /sim/multiplay/use-detailed-models
to indicated if we prefer to use detailed models from Aircraft (true)
or simpler models from AI (false).
2018-05-28 20:56:28 +01:00
Stuart Buchanan
9f7e17a434 Support for <group> of checklists.
Checklists now support grouping by placing a group of checklists
under a <group> node.

e.g. /sim/checklists/group/checklist

The group can have a <name>, which is used by the checklist dialog
and can be used by other interfaces, such as the FG1000.
2018-04-12 22:24:57 +01:00
Stuart Buchanan
98e11ec207 Initial FG1000 PFD 2018-02-26 21:24:21 +00:00
Stuart Buchanan
91dd762736 Support for Runway numbers on RWY MapStructure layer
- Change getInstance to getOrCreateInstance for FG1000.
- Implement runway numbering on AirportInformation page.
2018-02-18 21:41:17 +00:00
Richard Harrison
d7a9b36c08 Joystick dialog changes
- Engines control now use the same axis methods as the flight controls; which allows for these to have an inverted checkbox.

- Change the axis combo boxes to instead show a popup dialog (much like the button config). This is better because the items can be grouped sensibly.

- Changed the way that the "all engines" controls work - the dialog binds these to a "engines/XXXX-all" for which there is a listener in controls.nas which propogates over all engines.

- Added extra bindings to both the buttons and the axis dialogs.

- moved the "None" button to the bottom and renamed it to the more comprehensible "Remove assignment"
2018-02-16 19:35:50 +01:00
Richard Harrison
9aea8096cc Reduce transparency of alternate theme. 2018-02-16 19:35:49 +01:00
Stuart Buchanan
be5e16f382 Factory methods for FG1000
- Use Factories to handle multiple FG1000 calls better.
- Fix DirectTo Map center.
2018-02-09 17:26:57 +00:00
Stuart Buchanan
9156006183 3D Model support for GDU-1045, general refactor
- Add GDU-1045 3d model courtesy of Jean-Paul ANCEAUX (www2).
- Refactor to simplify deployment in aircraft
- Add README file
2018-02-09 15:01:33 +00:00
Stuart Buchanan
a2b17b4085 Refactor FG1000 in preparation for PFD, 3D model. 2018-02-05 19:33:28 +00:00
Richard Harrison
8380519a46 Multiplay/Emesary: revised defaults for new properties for 2018.1
The multiplayer "transmit filter" defaulted to off, with the flag that indicates if this should be available on the MP dialgo to also be set to off
2018-02-04 17:12:44 +01:00
Thorsten Renk
3d1921dd1f Add volcano simulation for Etna 2018-01-30 10:28:08 +02:00
Thorsten Renk
d9e55dc2e5 Improvements to Earthview: enable changing cloud density, fix aurora z-ordering issue, let moonlight give a relief effect to clouds 2018-01-29 09:25:38 +02:00
Richard Harrison
d287f23ad8 Emesary notifications: change explanation to match revised property for filtering outgoing properties
Change /sim/multiplay/transmit-only-generics to /sim/multiplay/transmit-filter-property-base, which can be 1 to transmit only generics, or a number greater than 1 to indicate the start index to transmit (e.g. 12000 for new emesary mp bridge properties)
2018-01-28 15:51:44 +01:00