1
0
Fork 0
Commit graph

10299 commits

Author SHA1 Message Date
Erik Hofman
a18808fae6 Add a Canvas test pattern dialog 2023-02-28 13:31:23 +01:00
Stuart Buchanan
71bdd9e99b WS30 - Improved coastline shader
Make the coastline shader consistent between
the coastline texture and the underlying landclass
texture, irrespective of materials.
2023-02-27 22:02:34 +00:00
Roman Ludwicki
bc2f4b4c80 Update Polish translation 2023-02-27 01:05:25 +01:00
Roman Ludwicki
b6b8e10d69 Update Polish translations 2023-02-27 00:42:34 +01:00
Erik Hofman
50b3f3913e Move the shaders from ShaderVG to fgdata 2023-02-26 10:30:07 +01:00
Erik Hofman
03a898faf9 Switch to the Noto font for authors 2023-02-22 15:59:14 +01:00
Erik Hofman
3b282843eb Remove unused DDS texture files. They'll get moved to the FGAddon attic. 2023-02-21 09:58:01 +01:00
Erik Hofman
21a5d6de00 Remove a stale README file about DDS textures which where replaced with the DDS cache 2023-02-21 09:37:49 +01:00
Erik Hofman
16d277e5c4 Add the Noto font:
https://en.wikipedia.org/wiki/Noto_fonts

Noto is a font family comprising over 100 individual fonts, which are together designed to cover all the scripts encoded in the Unicode standard.
2023-02-21 09:17:53 +01:00
Erik Hofman
f92170dcb6 Colin Geniet:
There are 3 relevant render bins for aircraft models:
- 0: default
- 10: depth sorted, automatically selected for transparent objects.
- 111: depth sorted, explicitly set by some transparent effects (hud, glass)

The model-default effect does not set <render-bin> on purpose, to allow
automatic selection of bin 0 or 10. So my second patch which added <render-bin>
to model-default is wrong.
It is only model-transparent which should explicitly set bin 111
to interact well with hud/glass effects.
2023-02-20 09:03:02 +01:00
Erik Hofman
4cb01f0ee7 Demonstrate the new machwave effect 2023-02-20 09:03:02 +01: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
TheFGFSEagle
a5f2e19c12 Pass node in the config hash instead of as an argument 2023-02-10 13:01:20 +00:00
TheFGFSEagle
06dc27d631 Added method to find a list item by its data 2023-02-10 13:01:20 +00:00
TheFGFSEagle
305d88f601 Added more property-synced widgets 2023-02-10 13:01:20 +00:00
TheFGFSEagle
da894c87c5 Add popup border, added option to enable popups taking focus (disabled by default) 2023-02-10 13:01:20 +00:00
TheFGFSEagle
0f1ac87cae Added methods to set, get and clear radio button data 2023-02-10 13:01:20 +00:00
TheFGFSEagle
6f5581ac50 Added method to get all tabs of the TabWidget 2023-02-10 13:01:20 +00:00
Benedikt Wolf
51ede47c5a Cleanup some canvas instruments 2023-02-10 10:40:36 +01:00
Benedikt Wolf
1be001a18c Fix wingflex shader to use current effect code. A better way would probably be to just keep the wing flexing part there and then include model-combined, but I couldnt get that to work unfortunately 2023-02-10 10:40:36 +01:00
Benedikt Wolf
13b24e5290 Improve hitch.nas, work in progress 2023-02-10 10:40:35 +01:00
TheFGFSEagle
3e4b6ff9c8 Make combo box menu work 2023-02-03 11:28:29 +00:00
TheFGFSEagle
8a1192c918 Added Switch class, added group-checked-radio-changed signal for radio buttons 2023-02-03 11:28:29 +00:00
Erik Hofman
e700c54ece Move exclude-from-gui inder /sim 2023-02-02 12:33:53 +01:00
Florent Rougon
4dd2b09d5f aisim-set.xml: use ASCII quotes for XML attribute---not UTF-8 curly quotes 2023-02-01 14:19:04 +01:00
Erik Hofman
661e46e85f exclude-from-gui 2023-02-01 14:07:19 +01:00
Richard Harrison
aeae504d47 emexec: rewrite rate adjust logic
Change to calculate the frame rate ourselves because /sim/frame-rate doesn't take into account freeze and has a transient ridiculous value after a pause. Instead we calculate the average rate over a period and then LP filter this.

This also removes the annoying frame rate update messages

Cofiguration now comes from /sim/emexec

* /sim/emexec/monitor-period is the period to reset the average; the LP filter isn't reset.
* /sim/emexec/max-rate-hz is the upper limit on the emexec update rate. defaults to 50 and a model can override this. It's probably not a user setting

output of

* current emexec rate into /sim/emexec/rate-hz
* smoothed / LP filtered frame rate into /sim/emexec/frame-rate
2023-01-29 14:31:51 +00:00
TheFGFSEagle
7274ec886a Added some utility functions (all, any, map and filter) 2023-01-24 19:03:52 +00:00
James Turner
b3b2871523 GUI style: make sizes parametric 2023-01-24 18:49:32 +00:00
TheFGFSEagle
7dd431cbbd Implemented canvas radio button 2023-01-24 14:09:22 +00:00
TheFGFSEagle
f569a5ac29 Added property tree widget and browser dialog 2023-01-24 13:59:47 +00:00
TheFGFSEagle
f1e099641f Center canvas windows on screen upon creation, add methods to center canvas window on screen and to get their current position 2023-01-24 13:58:52 +00:00
James Turner
f0737a8c40 Revert "Fix issue 2537, re-enable the wind interpolation when live data is (temporarily) unavailable."
This reverts commit 0c07fce69f.
2023-01-24 13:28:55 +00:00
James Turner
151486219d Add ComboBox widget 2023-01-24 13:27:04 +00:00
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