1
0
Fork 0
Commit graph

16078 commits

Author SHA1 Message Date
Erik Hofman
6ff3f3f459 Calculate an approximate visibily based on chance of mist and fog derived from humidity and the difference between the temperature and dewpoint. Calculate fog-density. 2023-11-18 10:50:35 +01:00
Alexander Wilms
e7466ddbc6 Update metainfo file
The file now passes
flatpak run org.freedesktop.appstream.cli validate --strict --explain package/org.flightgear.FlightGear.metainfo.xml.in
except for the placeholders in the <release/> tag
2023-11-11 14:12:58 +00:00
Roman Ludwicki
2f0705bd49 Keep the same aircraft on sim reset
When user has installed more aircrafts with the same short ID, preserve
the selected dir, so we use the exact same aircraft.
2023-11-11 14:09:16 +00:00
Roman Ludwicki
857b163ee7 Add option to hide the aircraft on the map
As a student, I would like to be able to use the map for reading the flight plan, frequencies for VOR, NDB, ILS, but without giving away the position of my aircraft, so that I can train in IFR navigation using the instruments only in the cockpit.
2023-11-11 13:49:11 +00:00
James Turner
5e1be2d893 Add findCommByFrequencyMHz to Nasal
SF-ID: https://sourceforge.net/p/flightgear/codetickets/2836/
2023-11-11 13:47:48 +00:00
Stuart Buchanan
9eccf6b55b WS30 - Ground mesh material lookup
Squashed commit of the following:

commit a4dd860660db64053fb75d251d58194b1aa99d51
Author: Stuart Buchanan <stuart_d_buchanan@yahoo.co.uk>
Date:   Thu Oct 26 20:33:48 2023 +0100

    WS30 - Ground mesh material lookup
2023-10-30 18:34:30 +00:00
Stuart Buchanan
96d7762c78 Revert "WS30: BVH integration for ground materials"
This reverts commit 716f1fffab.
2023-10-26 20:22:57 +01:00
Stuart Buchanan
716f1fffab WS30: BVH integration for ground materials
See simgear 588536c67b731f7453220b164f4210ced9866e60
2023-10-24 21:59:47 +01:00
Stuart Buchanan
020fb88a80 Help message for fgelev 2023-10-24 18:21:29 +01:00
James Turner
4cd9f9094d Even more HAVE_PUI checks 2023-10-12 13:55:14 +01:00
James Turner
1e122913cb Fix a missing HAVE_PUI check 2023-10-12 13:50:35 +01:00
TheFGFSEagle
e7334856a2 Fix typo (seperator vs. separator) 2023-10-11 20:59:52 +01:00
TheFGFSEagle
4707ec469a Add field containing the (translated) label for menu and menu item ghosts 2023-10-11 20:59:52 +01:00
Fernando García Liñán
f4d9700eb3 Add a trivial passthrough shader to PUI
When vertex attribute aliasing is enabled we need shaders to display the
PUI texture on the screen. This change does not affect non-HDR.
2023-10-06 11:13:11 +02:00
James Turner
3986508911 GUI: more HAVE_PUI defines
Mostly done by Fernando to enable Core-profile testing
2023-10-05 15:55:02 +01:00
James Turner
ee3bab3437 CI: add helper file for Windows 2023-10-02 10:34:01 +01:00
James Turner
dd1293ff0a Add CI build file 2023-09-29 13:48:50 +01:00
Fernando García Liñán
f679764da2 Add a compile time flag to disable the default HUD
The default HUD still relies on legacy OpenGL features, which makes it
incompatible with the GL core profile. A replacement involving Canvas
has been discussed before, but for now a toggle switch is enough to test
the core profile.
2023-09-28 23:26:27 +02:00
Roman Ludwicki
d86425c8a2 Update completion scripts 2023-09-25 11:28:04 +01:00
Fernando García Liñán
8036e12236 Fix projection matrix clamping
See SimGear commit b16e0b08.
2023-09-24 02:31:16 +02:00
Fernando García Liñán
94340711d7 Use our own projection matrix utility functions 2023-09-24 00:33:16 +02:00
Roman Ludwicki
459242b9db Fix calculate temerature for ISA METAR scenario 2023-09-19 11:57:28 +01:00
Roman Ludwicki
4be74c8df5 Fix run Launcher with --restart-launcher option when user did not specify --launcher option 2023-09-19 11:56:36 +01:00
Roman Ludwicki
ac0bb71a84 Add support for <optional-arg> in help output 2023-09-13 20:43:58 +01:00
Roman Ludwicki
3711e23a0d Disable fullscreen mode for QT Launcher window by using --disable-fullscreen option 2023-09-13 20:42:23 +01:00
James Turner
fcd88ac845 Add Nasal callback to build menubar 2023-09-13 20:41:59 +01:00
Roman Ludwicki
50f487b589 Fix types name conflict on Windows platform 2023-09-13 15:03:39 +01:00
Roman Ludwicki
9efbdba004 Add unit tests for boolean options and space as value separator 2023-09-13 11:45:32 +01:00
Roman Ludwicki
768d24fa17 Fix BOOL and BOOLEAN conflict name on Windows platform 2023-09-13 11:45:18 +01:00
James Turner
17c76b66bb Nasal: add nil tests for ?? 2023-09-12 22:39:34 +01:00
James Turner
bb34c0514a Remove user of in-place strutils::lowercase 2023-09-12 22:39:34 +01:00
Roman Ludwicki
f40eaa7531 Extend command line options
Values for options can be separated by both the "=" character (the old way) and a space.
The switch options enable/disable, now have a third variant with a main name that can take the values true/false, 1/0 or yes/no. E.g., in addition to the pair of options `--enable-fullscreen` and `--disable-fullscreen`, we now also have an option `--fullscreen`, which can be used with no value (the default is enable) or with true/false, 1/0 or yes/no.
All existing options work as before.
2023-09-12 22:39:34 +01:00
James Turner
da70e43d3d Fix new Clang compielr warnings
* returning bool from main
* set-but-unused variables
* mismatch of bitwise and logical 'or'
2023-09-12 21:34:55 +01:00
James Turner
e10d827918 GUI: add non-PUI menu-bar backend 2023-09-12 21:33:57 +01:00
James Turner
a7e8b682b7 GUI: catch malformed dialogs
* report a failure when the dialog fails to construct
* fail the command
2023-09-11 11:52:05 +01:00
James Turner
168373af8a tests: add empty-condition test-case 2023-09-11 11:50:59 +01:00
James Turner
6c949c30d3 Test case for re-alias-ing
* Ensure alias()ing an already alisaed node fails, but also ensure it
  doesn't deadlock.
2023-09-06 21:42:52 +01:00
James Turner
d569d72ea8 Nasal: tests for new operators
- test for nil-member-access
- test for chained nil
2023-09-06 21:23:59 +01:00
James Turner
402690d43f Submodel crash fix
- fix a crash I introduced, and remove redundant _trgger_node member
  variable as a side-effect.
2023-09-06 21:23:05 +01:00
James Turner
1e6a4f8a99 Fix compilation of tests 2023-09-05 10:22:31 +01:00
TheFGFSEagle
60d5bba0c5 Move InputValue class into SimGear 2023-09-04 21:06:17 +01:00
James Turner
0f291ff417 Canvas: expose KeyBindings to Nasal 2023-08-30 16:29:37 +02:00
James Turner
5e1450c278 Fix build on non-Clang 2023-08-25 14:36:20 +01:00
James Turner
0f68b19648 Format-only fixes from previous commit, oops. 2023-08-25 12:30:35 +01:00
James Turner
8060051fc5 Props protocol: check args to seti/setd/setf
Fix a crash when passing incorrect number of arguments to
various telnet methods; check the number of tokens and
report an error if not as expected.

Also fix the file-name to avoid collison with the SGPropertyNode
implementation file

SF-ID: https://sourceforge.net/p/flightgear/codetickets/2823/
2023-08-25 12:23:16 +01:00
James Turner
56876e486f SGBinding: allow Nasal function bindings
Allow wrapping of a naFunc as a custom binding class, without
the need to create a proxy command in the global command
manager.

Requires corresponding SG commit.
2023-08-25 12:06:53 +01:00
Roman Ludwicki
1902a67611 Parametrize development years in Launcher 2023-08-16 10:01:27 +01:00
James Turner
9fcb9206f9 Improve errors around 2D panels 2023-08-12 13:08:20 +01:00
James Turner
128143fd9b 2D panels: improve error messages for missing textures
Check for a failed path resolve in FGTextrueManager, and report this
explicitly with the input path, to give the user some idea what is
going on.

Thanks to Huntely Palmer for the suggestion.

SF-ID: https://sourceforge.net/p/flightgear/codetickets/2820/
2023-08-12 12:58:36 +01:00
Roman Ludwicki
b97dcae5f0 Fix segfault when using --fgviewer command line option 2023-08-12 12:47:30 +01:00