fly
71019b7d15
Fix uses or surface type
...
Signed-off-by: fly <merspieler@alwaysdata.com>
2024-02-25 22:33:26 +01:00
Benedikt Wolf
23a8e974f2
hitch.nas: Fix documentation typo
2024-02-07 14:42:47 +01:00
TheFGFSEagle
06b7ccd3d1
Add support for submenus
...
Fix submenu bugs
2024-01-30 15:43:43 +01:00
Gijs de Rooy
096aad963a
Advanced weather: match thunderstorm pressure to scenario METAR
2024-01-23 09:27:54 +01:00
Gijs de Rooy
e61faa738b
Canvas tooltips: respect position from node
...
Previous (faulty) behavior was to always set x and y to 1 when non-nil
2024-01-19 17:25:52 +01:00
TheFGFSEagle
1b13c1cc43
Make dialog close button actually close the dialog
2024-01-11 14:11:53 +00:00
TheFGFSEagle
ac4b64a01d
Add global canvas menu bar
2024-01-11 14:11:53 +00:00
Fernando García Liñán
497f73de80
HDR: Fix incorrect constants
2024-01-08 18:33:17 +01:00
Fernando García Liñán
6041eed8f7
HDR: Improve the parametrization of the atmosphere
2024-01-08 18:26:24 +01:00
Benedikt Wolf
476a7bccb5
Nasal hitch.nas: Update by D-NXKT and Bea Wolf
2023-12-13 17:42:44 +01:00
Gijs de Rooy
9e9c0252f7
Update German map tile URLs
2023-12-11 11:49:20 +01:00
TheFGFSEagle
724fad6701
Fix placements not being removed when destroying a canvas
...
Canvas placements are being added / removed through a listener on "placement" node adds / removals on the canvas's node.
Previously, when the canvas's del method was called, the canvas's node was removed, but not its "placement" subnodes.
This caused the canvas to be destroyed without the placements being removed.
This in turn causes problems when setting up a canvas with the same placement(s).
This is fixed by this commit by removing the "placement" nodes separately before destroying the canvas.
2023-12-09 18:08:55 +00:00
TheFGFSEagle
de7a49a456
Fix both left and right keys being shown when repr'ing a KeyBinding's function (Shift, Ctrl, Alt) keys
2023-12-09 04:04:16 +01:00
Stuart Buchanan
ba10103ccd
Support multiple directories in OverlaySelector
...
Previously only a single directory of logos etc. were
supported by OverlaySelector. Now multiple directories
may be passed in.
Patch from MERSPIELER.
2023-12-07 11:29:34 +00:00
Henning
e83cc5678f
canvas:svg: Fix SVG parser to accept rect without optional x,y
...
In evalCSSNum return if arg is empty.
Set missing x or y in rect to 0.
2023-12-03 11:16:49 +01:00
Roman Ludwicki
a25c607e01
Change notation "CoG vs Mean Aero Chord" to "Center of Gravity %MAC"
2023-11-21 23:10:22 +01:00
Erik Hofman
b1b768c540
Update fog density when the visibility change
2023-11-20 10:31:29 +01:00
James Turner
53a6e3b8f8
Add CG-MAC to weights dialog
...
Patch from Huntley Palmer
2023-11-11 14:19:11 +00:00
Roman Ludwicki
3f9dc54c85
For PropertyTreeBrowser, set the path in the title as "/" when the node returns an empty string
...
Set the title in one place (in a separate function).
2023-10-25 17:09:46 +02:00
Roman Ludwicki
0cd24b172e
Fix nasal runtime error "non-objects have no members" for PropertyTreeBrowser
2023-10-25 17:02:10 +02:00
Fernando García Liñán
8b91f660bc
HDR: Better handling of time warp when updating the envmap
2023-10-09 05:52:11 +02:00
TheFGFSEagle
5f66773605
canvas.Keybinding.parseShortcut: Accept nil and empty strings, returning nil
...
This can be used to unset the key binding of a Canvas menu item by using item.setShortcut(nil);
2023-10-06 20:17:25 +02:00
TheFGFSEagle
10306ea92d
canvas.gui.MenuItem: Add optional argument for setting the me reference for the callback function (see call for details)
2023-10-06 20:15:20 +02:00
Fernando García Liñán
6cb051369b
HDR: Force an envmap update when the view changes
2023-10-05 05:57:05 +02:00
TheFGFSEagle
d65228be6c
props.nas: Add function to swap the values of two property nodes
2023-10-03 21:49:32 +02:00
TheFGFSEagle
590770e555
KeyBinding.nas:parseShortcut: Better handling of empty shortcut string
2023-10-02 03:41:26 +02:00
TheFGFSEagle
a82424e03f
canvas.gui.widgets.MenuBar: Automatically call setCanvasItem from the constructor
2023-09-30 02:42:15 +02:00
TheFGFSEagle
72d9aef42b
Nasal math module: Add math.sign -> math.sgn alias
2023-09-20 00:46:12 +02:00
Roman Ludwicki
ee14849016
Fix calculate temerature for ISA METAR scenario
2023-09-19 12:27:11 +01:00
James Turner
3d47bc2325
Canvas KeyBindings support
...
- use new built-in KeyBinding in Widget, Menu
2023-08-31 08:59:52 +02:00
Roman Ludwicki
4f7a93d0ba
Add /environment/atmosphere/is-isa
property for ISA METAR
2023-07-26 12:14:41 +01:00
Benedikt Wolf
28548229d2
hitch.nas: Minor fix to aerotow code
2023-06-17 10:50:44 +02:00
James Turner
549507874b
Nasal: extend props.Node alias() API
...
Add optional argument to specify if lisenters should work
on aliased properties or not. Current default is false for
backwards compatability.
2023-06-13 14:24:22 +01:00
Benedikt Wolf
a301094022
Towing: Fix small bug
2023-05-29 12:36:47 +02:00
Fernando García Liñán
7ca349b82e
HDR: More robust envmap updating
...
- Use the frame signal instead of settimer() with interval 0 to get more
consistent behaviour.
- Update the envmap more often when time warp is active.
- Use maketimer() instead of settimer().
2023-05-04 06:09:36 +02:00
Fernando García Liñán
1e66c4104a
HDR: Improved environment mapping
...
- Terrain and clouds and now rendered on the envmap, with correct aerial
perspective.
- Each face is rendered on a separate frame to help with performance.
- All faces are updated every 1.5 minutes. This can be changed through a
property.
2023-05-03 02:03:10 +02:00
Fernando García Liñán
691337a00e
HDR: Add separate fog layer to atmosphere
...
Also use Nasal to feed the shaders' uniforms. Much better than running
the computations on the GPU.
2023-04-21 02:15:42 +02:00
TheFGFSEagle
4c398de46c
More robust rotation center handling
2023-04-17 15:13:18 +01:00
TheFGFSEagle
e5f4915e89
canvas.gui.widgets PropertyWidgets: Add functionality to temporarily disable property syncedness for property-synced widgets
...
This is needed for example to prevent writing to the bound property while adding items to a PropertyComboBox
2023-04-17 15:13:17 +01:00
TheFGFSEagle
ad266eb743
canvas.gui.widgets.ComboBox: Bug fixes, implement findByValue and findByText methods, add placeholders for missing artwork
2023-04-17 15:13:17 +01:00
TheFGFSEagle
51e16819be
aircraft.data: Enable method chaining and add method to remove properties from the catalog
2023-04-17 15:13:17 +01:00
TheFGFSEagle
d70d073a22
Added property-synced dial and slider
2023-04-17 15:13:17 +01:00
TheFGFSEagle
638b6182d6
Implemented dial with optional value display, ticks and wrapping
2023-04-17 15:13:17 +01:00
TheFGFSEagle
4fb22e821a
Fix menus popping back up when clicking on a menu bar item / combo box with the respective menu open
2023-04-17 15:13:17 +01:00
TheFGFSEagle
921df08a61
Check for each key passed to Shortcut.match whether it is contained in the shortcut's keys, instead of comparing the first argument key to the first member key, the second to the second, etc.
2023-02-28 12:47:00 +00:00
TheFGFSEagle
372d68a775
Canvas slider widget:
...
Added value display
Add ticks, round mouse dragging result to nearest multiple of step size,
implement scroll handler
Add keybindings for adjusting slider value
2023-02-28 12:47:00 +00:00
TheFGFSEagle
be80d67754
Added option to make tabs closeable
2023-02-28 12:47:00 +00:00
TheFGFSEagle
8277a6d608
LineEdit: selection work
...
Implemented line edit selection highlighting and Shift+arrow keys,
mouse dragging, and mouse double-clicking text selection
2023-02-13 11:11:42 +00:00
TheFGFSEagle
8b0da63e7c
Make list items align to the top properly
2023-02-13 11:05:48 +00:00
TheFGFSEagle
00efa2d01a
Make std.algorithm conditions more efficient
2023-02-13 11:05:48 +00:00