1
0
Fork 0
Commit graph

10363 commits

Author SHA1 Message Date
James Turner
ede0844631 GUI MenuItem/menuBar fixes:
- ensure createItem returns the item
- add an accessor for text()
- don't do lazy view creation for now
- skip aboutToShow until item iteration works for me
2023-01-24 13:27:04 +00:00
James Turner
ba5fb926a2 remove duplicate MenuBar.nas 2023-01-24 13:17:05 +00:00
TheFGFSEagle
2b9d10804b Added list widget 2023-01-24 13:17:02 +00:00
TheFGFSEagle
8a953d71a3 Create WidgetFactoryDialog instances in the global namespace to facilitate debugging 2023-01-24 13:15:53 +00:00
TheFGFSEagle
2a95685eb7 Improve menu item styling 2023-01-24 13:15:53 +00:00
TheFGFSEagle
419de94e68 Fix layouting 2023-01-24 13:15:53 +00:00
TheFGFSEagle
0a6ddb689a Added label benchmarking functionality and a menu bar 2023-01-24 13:15:53 +00:00
TheFGFSEagle
1faedb04a2 Only hide popups when window is raised, not on every state change 2023-01-24 13:15:53 +00:00
TheFGFSEagle
3e861b0a44 Better menu item click and hover behaviour 2023-01-24 13:15:53 +00:00
Florent Rougon
b61f0c241e emesary_mp_bridge.nas: convert to UTF-8 encoding
This concerns a single character inside a comment, so won't change the
behavior of the Nasal code in any way. Beside using the favored encoding
in FlightGear, this little change allows scripts/python/nasal_api_doc.py
(from the FlightGear repository) to work again without having to teach
it to ignore encoding errors nor to play at guessing the encoding of the
files it reads.
2023-01-19 17:17:52 +01:00
Rick Gruber-Riemer
db6f223e55 Materials plus new texture for osm2city trees 2023-01-15 17:06:55 +00:00
James Turner
7651d66c38 Disable Canvas menubar for now 2023-01-13 14:42:41 +00:00
Florent Rougon
4846871a5c Fix handling of percent signs by gui.popupTip()
Since commit e41c0f099b, the Tooltip class has performed string
interpolation (i.e., sprintf()-style formatting) regardless of whether a
<property> was specified for the tooltip. This broke the API of
gui.popupTip(): all '%' characters in the message had to be doubled to
work as before. This commit restores the normal behavior of
gui.popupTip() where '%' characters aren't interpreted in any special
way.
2023-01-13 09:56:15 +01:00
Stuart Buchanan
29a0766cd9 WS30: Road rendering improvements
- Adjust traffic density depending on road type
- No snow build up on roads
2023-01-11 21:40:42 +00:00
James Turner
73fbeaade2 Canvas: keyboards bindings handled in widget 2023-01-11 11:47:27 +00:00
TheFGFSEagle
a5e30023bd Added menu bar widget and global menu bar, menu item improvements 2023-01-11 11:47:27 +00:00
TheFGFSEagle
2cf388e674 Added real keyboard shortcut support for menu items 2023-01-11 11:47:27 +00:00
TheFGFSEagle
66fcfce8af Added button to reload Nasal canvas module 2023-01-11 11:08:40 +00:00
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
Colin Geniet
44e6ea8f16 README.xmlsound: update doc for samples with mode 'once'
This is related to the changes done in
https://sourceforge.net/p/flightgear/simgear/merge-requests/120/
2023-01-10 09:27:36 +01: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
Erik Hofman
643e697ec0 Merge branch 'next' of ssh://git.code.sf.net/p/flightgear/fgdata into next 2023-01-04 08:57:53 +01:00
Erik Hofman
2528178893 Revert "Update to the latest timezones"
This reverts commit ec2f65000f.
2023-01-04 08:57:10 +01:00
Erik Hofman
a45cf52d7f Revert "Remove now unused Mideast and add a few missing timezone files."
This reverts commit 09fa5499bb.
2023-01-04 08:57:00 +01: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
Erik Hofman
09fa5499bb Remove now unused Mideast and add a few missing timezone files. 2022-12-16 11:41:18 +01:00
Erik Hofman
ec2f65000f Update to the latest timezones 2022-12-13 09:35:45 +01:00
James Turner
7b43ca3cf4 When reloading Autopilot, also reload Prop-Rules 2022-12-01 09:43:01 +00:00
James Turner
844c24a085 Updated ZoneDetect file 2022-12-01 09:28:34 +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
Stuart Buchanan
ff8cfed80e WS30: Water texture for photoscenery 2022-11-20 19:51:12 +00:00
Hans Kunkell
79b0eb5730 Phi: Fix runways and comms in leaflet popups
The popup of an airport showed:
runways: [Object object] [Object object] ....
This fix will instead print the runway's ID, ie:
runways: 08L, 26R, 08R, 26L

Same issue solved with communication frequencies.
2022-11-18 21:38:50 +01:00
Chris Ringeval
d3f0a87f96 Remove predicate from an unset property 2022-11-17 23:25:18 +01:00
Josh Davidson
6e33987a91 Control: New speed on pitch for generic autopilot 2022-11-14 20:09:24 +00:00
Josh Davidson
b9b496d33b Control: Generic AP now drives locks/passive (thanks polly!) 2022-11-14 20:06:19 +00:00