TheFGFSEagle
f1d7848a6b
Added keyboard Nasal module
2023-01-11 11:08:40 +00:00
TheFGFSEagle
ef602c0d3a
Improved resize buttons by Hooray
2023-01-11 11:08:40 +00:00
TheFGFSEagle
d21158fdbf
Added more key bindings and a context menu
2023-01-11 11:08:40 +00:00
TheFGFSEagle
a25674337d
Added shortcut option for menu items
2023-01-11 11:05:01 +00:00
TheFGFSEagle
764e6f0ced
Added Popup, Menu and MenuItem classes
2023-01-11 11:05:01 +00:00
James Turner
581f8d163f
GUI: add PUI combo-box mapping
2023-01-11 10:57:42 +00:00
James Turner
aa57b7992f
Canvas: rule lines working with styling
...
PUI uses these a lot, so good to have them working
2023-01-11 10:57:42 +00:00
James Turner
d00c983429
Canvas widgets: style for Slider
...
Only horizontal mode for now, and not quite right visually,
but usable enough to start with.
2023-01-11 10:57:42 +00:00
James Turner
b93ecb962b
Canvas: add unload logic
...
Clean up various global things, especially commands, when
unloading the Canvas. This means reloads of Canvas are
clean.
2023-01-06 10:57:00 +00:00
James Turner
b359fc88cb
TabWidget: make setCurrentTab lazy
2023-01-05 14:39:43 +00:00
James Turner
333321556f
Add example of coordinate conversion
2023-01-05 14:28:20 +00:00
James Turner
df43cb2554
Canvas: make setVisible chainable
...
Change Element.setVisible to return self, so it can be chain
called like most other setters. Note this also requires some C++
changes in FlightGear.
2023-01-04 15:32:26 +00:00
TheFGFSEagle
074e2511de
Fixed some more typos
2023-01-04 12:35:04 +00:00
TheFGFSEagle
114694cbbe
Fix inheritance mistake, add resizing test button
2023-01-04 10:03:27 +00:00
TheFGFSEagle
b2f37b67f8
Added usage example for the TabWidget
2023-01-03 13:49:56 +00:00
TheFGFSEagle
4bc559bcf4
Added canvas widget factory dialog
2023-01-03 13:49:56 +00:00
TheFGFSEagle
09e15ddf16
Added canvas checkbox subclass whose check state is always the bool value of a node and vice versa
2023-01-03 12:39:51 +00:00
TheFGFSEagle
8d5e4aaf1c
Added basic tab widget
2023-01-03 12:39:51 +00:00
James Turner
aef16be4f0
Revert "Add option to read upper winds from simbrief"
...
As requested by Lars, revert these commits since they don't
work as hoped, reliably.
This reverts commit 55b17f4c5e
.
This reverts commit 91401a95b0
.
2022-11-24 12:17:49 +00:00
James Turner
1e1f974b76
Clean up autopush attribution
2022-10-18 10:08:41 +01:00
James Turner
6e8520dbb5
Canvas windows: allow hiding without deletion
...
Optionally, allow Canvas windows to persist (and be shown again) when
closed.
2022-10-14 09:01:52 +01:00
James Turner
4fd8092e38
Canvas GUI: left position for checkbox text
2022-10-14 09:00:02 +01:00
Roman Ludwicki
41006285d5
Fix description for Shift-F10
2022-09-29 00:45:58 +02:00
James Turner
312822e4b0
Canvas: reduce SVG console spam
...
Ignore certain standard elements added by Sodipodi / Inkscape, to
reduce console spam loading SVGs.
2022-09-26 08:59:18 +01:00
James Turner
459dea77e5
Add more Nasal skeleton for new UI objects
2022-09-26 08:58:24 +01:00
James Turner
82cb79feb3
Add additional widgets for PUI compat
...
Styling of these is not complete yet.
2022-09-09 12:19:33 +01:00
Lars Toenning
55b17f4c5e
Block metar winds if simbrief winds are active
2022-08-21 15:57:34 +02:00
Lars Toenning
91401a95b0
Add option to read upper winds from simbrief
2022-08-16 08:33:35 +01:00
Roman Ludwicki
1c5fcf3cef
Add missing button "Rudder Trim Pos" for joystick assignment
2022-07-17 19:55:23 +02:00
James Turner
3965f216e5
Gui: add some helpers:
...
- clear() function on LineEdit
- setDefault/Destructive flags on Button
- check if focus is set on a Widget
2022-06-30 12:41:17 +02:00
James Turner
fe7c87b21a
Nasal glue for building widgets from XML compat
2022-06-30 12:41:10 +02:00
Josh Davidson
918b5fd72f
Canvas: Add an option for Canvas dialogs to not take focus from the simulator
2022-06-30 11:33:40 +02:00
Julian Smith
c55c17dd64
Nasal/multiplayer.nas: always enable multiplayer chat when replaying.
...
This is an additional fix for bug 2731, ensuring that replay includes chat
messages even if we are not connected to an MP server.
2022-04-22 20:38:00 +01:00
Julian Smith
e0070501e6
Nasal/multiplayer.nas: always enable multiplayer menu items when replaying.
...
This fixes bug 2731, where MP menu items were greyed out if we are not
connected to MP server, even if we are replaying a recording with MP aircraft.
2022-04-22 00:27:54 +01:00
James Turner
e945dafca3
Props: add defaultValue to getInt|Double Value
...
Simplify handling where the property value might be nil.
2022-04-06 07:49:39 +01:00
Richard Harrison
a395423f27
Nsasl: Added Exec Scheduler
...
see also https://wiki.flightgear.org/Nasal_Optimisation#Emesary_real_time_executive
Using a scheduler to manage the invocation of Nasal modules provides a more predictable and efficient way to replace update loops and also optimises property tree access to one access per property per frame by using a hash that contains the property values.
There is a default global object created (emexec.ExecScheduler) that should be used in most circumstances.
Each Nasal object simply has to have an update(notification) method. This will be called on a schedule and the notification will contain any requested property values.
The exec will also adapt the rate to the frame rate; with a maximum of 50hz, but this will drop to as low as 4hz based on the frame rate to optimise workload.
The modules will be called in the order in which they were added; so it is possible to have modules in the right sequence (i.e. an earlier module calculates values that are used by a later module)
A simple example is below. The VSD_device has the update method
------
# list of prooperties to include in the notification hash
var properties_to_monitor = {
OrientationHeadingDeg : "orientation/heading-deg",
OrientationPitchDeg : "orientation/pitch-deg",
OrientationRollDeg : "orientation/roll-deg",
GroundspeedKts : "velocities/groundspeed-kt",
radar2_range : "instrumentation/radar/radar2-range",
target_display : "sim/model/f15/instrumentation/radar-awg-9/hud/target-display",
vc_kts : "instrumentation/airspeed-indicator/true-speed-kt",
};
# create Canvas based device (that has an update method)
VSD = VSD_Device.new(designation, textureImage, notification.Ident, root_node);
# register with the exec;
# - ident
# - proprties to include in notification hash
# - object (with an .update(notification) method
# - rate (4 = 1/4)
emexec.ExecModule.register("F15-VSD", properties_to_monitor, VSD, 4);
2022-04-04 17:23:12 +02:00
Richard Harrison
304836f41a
Nasal: optimises properties in lp filter
...
Use geNode instead of getprop
2022-04-03 18:30:17 +02:00
Richard Harrison
2fe23785d5
Multiplayer pilot list fixes
...
- made it more robust so that bad data doesn't stop it from working.
- optimised to store the prop nodes that we use in the list
2022-03-17 19:27:13 +01:00
James Turner
2fb18ceed6
ProperyElement: remove dependency on aircraft.nas
...
Make a local copy of the makeNode helper, so Canvas doesn't depend on
aircraft.nas
2022-03-06 10:59:06 +00:00
Richard Harrison
8419dec54a
Fix Tyre Smoke/Spray in air.
...
Previously it was possible that the smoke/spray would continue if the aircraft went weight off wheels whilst smoke was active.
2022-03-02 14:16:19 +01:00
Richard Harrison
09adb59959
Controls: Added trim to position for rudder and aileron
2022-03-02 14:16:18 +01:00
Erik Hofman
1012c49143
Add a copyright header and
...
make the heading relative to make it usefull for cockput cubemaps
2022-02-10 15:00:15 +01:00
Erik Hofman
216f3fbf0c
Add a Nasal module to create a cubemap or panorama view
...
Inspiration taken from:
https://wiki.flightgear.org/Howto:Make_full_spherical_panorama
2022-02-09 15:49:23 +01:00
James Turner
2d17217a01
Marker-pins FGData changes
...
From Tobias Dammers
2022-01-27 12:11:24 +00:00
Scott Giese
61bf4c2858
Canvas Map: Add outline to aircraft symbol
2022-01-14 01:12:26 -06:00
Julian Smith
e951ae9e9a
Nasal/multiplayer.nas: append +/- to indicate change in distance.
2022-01-08 16:16:21 +00:00
Jonathan Redpath
18eaba13f4
Apply patch by Tobias Dammers - correct RTE.lcontroller equals function to fix the infamous model not found error
2022-01-03 15:51:22 +00:00
Henning
1890502283
Add argument validation in canvas_efis/eicas-message-sys.nas
2021-12-04 14:50:01 +01:00
Henning
28e865f1e6
Bugfix for aircraft.nas: declare missing member variable
2021-12-04 14:47:22 +01:00
Richard Harrison
b5b9568bc7
Local weather: change unknown landcover message to use logprint
2021-10-18 15:31:19 +02:00