James Turner
1cee9485c6
Fix Canvas-Map runway display.
...
Transformation was being applied twice.
Patch by Gaétan Allaert.
2020-07-01 11:44:22 +01:00
Henning Stahlke
5a5d958dd9
replace typeof() == foo with isFoo
2020-05-17 20:03:43 +01:00
Henning Stahlke
d1d3b6559e
compass.nas: add font to style hash; efis-canvas.nas: improve font mapping
2020-05-05 13:52:06 +01:00
Henning Stahlke
67c83d020f
make font_mapper more configurable
2020-05-05 13:52:00 +01:00
Henning Stahlke
551f4dab62
canvas/api/element.nas add getType
2020-04-30 08:59:25 +01:00
Henning Stahlke
e16bf79e91
move "hidden" constructor from api.nas to api/canvas.nas; add destructor support
2020-04-30 08:59:25 +01:00
Henning Stahlke
3892d2eddd
move fontmapper function from svg.nas to api/text.nas so it is generally avail
2020-04-30 08:59:25 +01:00
Henning Stahlke
e996f4c8c6
add getTranslation and setGeoPosition to transform.nas, adapt element.nas accordingly;
...
improve readability and comments
2020-04-30 08:59:25 +01:00
Henning Stahlke
2eb4c78794
improve code readability
2020-04-30 08:59:25 +01:00
Henning Stahlke
1094e5214e
split classes into separate files
2020-04-30 08:59:25 +01:00
Henning Stahlke
fba17e4d34
Replace printlog by logprint
2020-04-21 09:07:20 +02:00
Stuart Buchanan
3caa899068
FG1000 - NRST PFD Function
...
Implement the Nearest Airports PFD softkey, displaying a scrollable
list of the closest 25 airports within 200nm.
Also fix a couple of minor bugs and add self-checking to the
GroupElement
2020-03-12 21:39:23 +00:00
Stuart Buchanan
76cfa2c077
FG1000 and MFD handle non-MFD Emesary notifications
...
Previously the FG1000 and MFD assumed that all notifications received
via Emesary had a Device_Id field. This is true for
notifications.PFDEventNotification.DefaultType but not for other
messages - e.g. those generated by the AN SPN 46 system on the
carrier.
The effect of this was that when Nimitz was loaded, the FG1000 stopped
working with various errors.
This fix checks the notification type before the Device_Id.
2020-03-12 17:25:34 +00:00
Henning Stahlke
f547786fe4
add canvas/draw.nas library
2020-03-08 21:02:44 +01:00
Henning Stahlke
43efd64dd2
add aspect ratio lock feature to canvas window; user window.lockAspectRatio() to activate
2019-11-06 22:59:08 +01:00
Julian Smith
e41c0f099b
Nasal/canvas/tooltip.nas: handle multiple properties.
...
Allows sprintf string to contain multiple %'s, which are mapped to multiple
<property>...</property> tags.
2019-08-31 14:14:18 +01:00
James Turner
52373760e2
Canvas Map: tolerate empty paths in waypoints
...
This fixes bogus indexing warnings and thus Nasal failures when
processing certain kinds of FlightPlan leg, such as discontinuities
and skipped legs.
2019-06-24 16:39:51 +01:00
Henning Stahlke
6f4e7d91af
canvas/api.nas add getSize() method
2019-05-05 23:19:37 +02:00
Stuart Buchanan
6b1db73423
FG1000 - Improved timers
...
Implement single timer for all highlighting of elements.
2019-03-12 20:33:35 +00:00
Henning Stahlke
bdbd3848af
comments, bugfixes and use API
2019-02-27 08:09:25 +00:00
Henning Stahlke
fb73705281
svg.nas fix transformation problems and use setClipByBoundingBox() from API
2019-02-27 08:09:16 +00:00
Stuart Buchanan
9d353a3266
FG1000: GFC700 Autopilot Integration
...
Support for GFC700 autopilot. Current modes that work: AP, FD, ROL, PIT, HDG, VS
2019-02-10 22:06:31 +00:00
Henning Stahlke
72c4bde6e9
gui.nas use API functions
2019-01-13 21:03:32 +01:00
Henning Stahlke
9a4b898a27
svg.nas use setText method
2019-01-13 21:03:31 +01:00
Henning Stahlke
f8eb701d62
api.nas fix typos
2019-01-08 09:18:24 +00:00
Henning Stahlke
28183b7575
canvas/api.nas add setClipByBoundinbox and setClipByElement function
2019-01-07 18:00:08 +00:00
Henning Stahlke
a91ebe4676
canvas/svg.nas add optional basic support for linked images
...
canvas/api.nas add alternative signature for ellipse and circle
2018-12-16 02:15:35 +01:00
Henning Stahlke
f3548c561e
canvas/api.nas: add square, ellipse and circle to path; update svg.nas accordingly
2018-12-08 19:55:08 +01:00
Henning Stahlke
f6e3628b50
add Window.getSize() to canvas/gui.nas
2018-12-08 16:55:38 +01:00
Henning Stahlke
cce5b4ca1f
canvas/gui.nas prevent runtime error
2018-12-04 14:47:20 +01:00
Henning Stahlke
37adcd8051
canvas/svg.nas add support for circle und ellipse
2018-11-30 19:35:22 +01:00
Scott Giese
43ac415a8a
Bug Fix : #1732 Nasal runtime error with hovered tooltip
2018-10-03 01:49:50 -05:00
Richard Harrison
66c15d5b89
Canvas NavDisplay (map) fix nil waypoint when only one waypoint in flightplan.
...
Without this it will cause a nil dereference resulting in
Nasal runtime error: non-objects have no members
at D:/Program Files/FlightGear 2018.2.2/data/Nasal/canvas/map/WPT.lcontroller, line 57
called from: D:/Program Files/FlightGear 2018.2.2/data/Nasal/canvas/map/WPT.lcontroller, line 79
called from: D:/Program Files/FlightGear 2018.2.2/data/Nasal/canvas/MapStructure.nas, line 1088
called from: D:/Program Files/FlightGear 2018.2.2/data/Nasal/geo.nas, line 384
called from: D:/Program Files/FlightGear 2018.2.2/data/Nasal/canvas/MapStructure.nas, line 1051
called from: D:/Program Files/FlightGear 2018.2.2/data/Nasal/canvas/MapStructure.nas, line 1059
called from: D:/Program Files/FlightGear 2018.2.2/data/Nasal/canvas/map/WPT.lcontroller, line 26
called from: D:/Program Files/FlightGear 2018.2.2/data/Nasal/globals.nas, line 119
2018-09-29 13:41:01 +02:00
Thorsten Renk
a91bb4caa0
Update canvas dialog widget lib
2018-09-01 09:49:16 +03:00
Richard Harrison
6431d36166
Generic MFD: Nav display optimisation
...
Change the NavDisplay so that the updates are paused when not being displayed.
2018-04-30 11:42:19 +02:00
Stuart Buchanan
8fdffa16e6
FG1000 - Fix 3D model GDUs, find nearest ID on DTO
2018-04-29 21:15:18 +01:00
Stuart Buchanan
aa14289a79
FG1000: NDB and VOR Info pages, improved VOR icons
2018-04-16 13:38:41 +01:00
Stuart Buchanan
63ee35becd
FG1000 - Improvements to Checklists page, softkeys
2018-04-12 22:26:58 +01:00
Stuart Buchanan
7f09b1f3c6
FG1000: Active Flight Plan MFD Page
...
- View and edit the active flightplan
2018-04-06 19:52:18 +01:00
Stuart Buchanan
60352375d0
FG1000 - PFD Flightplan and improved GroupElement
2018-03-25 17:55:03 +01:00
Thomas Geymayer
8eb3707042
canvas.gui: Fix warning when deleting widget after canvas
2018-02-27 08:42:34 +01:00
Stuart Buchanan
91dd762736
Support for Runway numbers on RWY MapStructure layer
...
- Change getInstance to getOrCreateInstance for FG1000.
- Implement runway numbering on AirportInformation page.
2018-02-18 21:41:17 +00:00
Thorsten Renk
b09fcb593d
Start adding widget collection for aircraft-side canvas dialogs
2018-02-11 10:04:08 +02:00
Stuart Buchanan
c8072e5e2c
Fix badly flashing UI elements due to timers
2018-02-04 22:40:48 +00:00
Stuart Buchanan
e7a0fba8ac
FG1000-specific VOR symbols.
2018-02-03 20:26:26 +00:00
Stuart Buchanan
339064ce31
VOR symbology and Nearest VOR page.
2018-02-03 20:25:48 +00:00
Stuart Buchanan
6f6cc8f925
NDB Symbol for MapStructure Layers
2018-02-02 16:06:15 +00:00
Stuart Buchanan
67b95bb1fe
Fix highlighting of arrow elements
2018-02-01 22:28:39 +00:00
Stuart Buchanan
655c8719dc
Additional style options for FIX MapStructure layer
2018-01-31 22:46:32 +00:00
Stuart Buchanan
d244358320
Fix COM toggle and increase map coverage to MFD.
2018-01-30 21:00:01 +00:00