Thomas Geymayer
a5401c19c7
canvas: update for new bounding box getters.
2014-03-31 13:34:50 +02:00
Hyde Yamakawa
da76bc635e
Canvas ND:GS pointer, LOC pointer and dme source fix from Soitenen
2014-03-25 17:55:06 -04:00
Thomas Geymayer
04c40a4232
canvas.gui.ScrollArea: check for valid content bounding box.
2014-03-24 00:18:29 +01:00
Thomas Geymayer
e593ee2c30
canvas.gui: Update for 'file'->'src' rename.
2014-03-20 11:46:48 +01:00
Thomas Geymayer
cf05294b84
canvas.gui: Basic demo showing how to use windows and widgets.
2014-03-19 23:51:34 +01:00
Thomas Geymayer
d7ddeb7183
canvas.gui: Basic ScrollArea widget.
2014-03-19 23:51:33 +01:00
Thomas Geymayer
313175b943
canvas: add helper to get translation of canvas.Elements.
2014-03-19 23:51:19 +01:00
D-NXKT
dd8f8f8c8a
towing: replace 3 JSBSim-forces with one direction with 1 force and 3 directions
2014-03-18 22:03:27 +01:00
D-NXKT
6c0763c7bc
winch/aerotowing support for JSBSim-aircrafts; visible tow- and winch-ropes for YASim and JSBSim-planes
2014-03-12 20:44:47 +01:00
Thorsten Renk
3a87e5a514
Experimental support for cloud shadows on the terrain
2014-03-10 10:29:14 +02:00
James Turner
2e451f292f
Switch GUI to use new reposition command.
...
(Must have latest FG or you'll get a crash due to old ATIS subsystem)
2014-03-05 16:46:10 +00:00
Hyde Yamakawa
db3948728c
CanvasND: Add 777 track bug implementation
2014-02-23 23:56:25 -05:00
Hyde Yamakawa
3b9b9988ad
Fix of previos canvas mod, PLAN mode change
2014-02-23 13:43:54 -05:00
Hyde Yamakawa
8b691f6e60
CanvasND fixes #1317,1325 and wind ind, active WP, route discrepancy
2014-02-23 00:02:28 -05:00
Philosopher
642ebfa696
Some changes/additions to debug.nas
...
Add benchmark_time, rank, and print_rank. Modify benchmark to return/
pass-through the values of the function, appending to a vector if there
are multiple executions.
2014-02-20 11:47:27 -06:00
Thorsten Renk
22e3852cad
Impostors simulating distant clouds for Advanced Weather / ALS
2014-02-17 10:21:26 +02:00
Gijs de Rooy
79726c6ec6
NavDisplay: 4 -> 6 on compass
2014-02-16 18:57:47 +01:00
Gijs de Rooy
9d64f98090
NavDisplay: waypoint drawing fix
2014-02-16 17:23:13 +01:00
Gijs de Rooy
69280a75c9
NavDisplay: fix route drawing
2014-02-13 19:36:27 +01:00
Gijs de Rooy
c7007cd545
NavDisplay fixes:
...
- correct VOR/ADF pointer and ILS rotation center
- display proper ETA hours
- fix DME range property
2014-02-11 19:45:39 +01:00
Philosopher
6de533b71b
Canvas ND: disable MapStructure TFC layer
2014-02-10 16:00:34 -06:00
Philosopher
4b2cb3a07c
Fix string.compileTemplate algorithms
2014-02-09 20:21:23 -06:00
Thomas Geymayer
bab393aa0c
Canvas/SVG parser: fix bounding box and rotation center.
...
- Calculate bounding box after adding all children.
- Apply rotation after all SVG defined rotations to use correct
center of rotation (as defined in Inkscape)
This (together with the SimGear and FlightGear commits) fixes
the core problems of #1333 .
2014-02-08 00:43:13 +01:00
Gijs de Rooy
4d7509e198
NavDisplay bug fixes:
...
- tru/mag and hdg/trk are now correctly handled
- heading 000 is replaced by 360
- NM font size fixed
- several rotation centers fixed
2014-02-04 22:07:35 +01:00
Philosopher
e9b1a89052
Clean up some global wrappers
2014-02-02 12:31:48 -06:00
Philosopher
73c21e0df4
Remove canvas.Map.df_controller
2014-02-02 12:25:45 -06:00
Gijs de Rooy
653d86db46
NavDisplay bug fixes:
...
- NM font correction
- Range displayed in PLAN mode
- ETA seconds format correction
- Calculate wind arrow based on track/heading
2014-01-31 23:36:41 +01:00
Thomas Geymayer
cab89b1b5a
Nasal: new function string.compileTemplate
...
This allows to create functions to build string based on
templates used for examample with most common tilemap
engines.
2014-01-30 11:23:14 +01:00
Thorsten Renk
1c1bcda8d6
Support for creating high altitude noctilucent clouds in Advanced Weather/ALS
2014-01-30 11:08:35 +02:00
Philosopher
83d53e906d
Canvas ND: fix altitude as rotation bug
...
;-)
2014-01-28 19:39:20 -06:00
Philosopher
4a2dab6f21
Canvas ND: small tweaks
2014-01-27 20:53:46 -06:00
Philosopher
0d4a86e3d4
Canvas ND: use MapStructure for TFC, other misc.
...
Implement traffic in MapStructure and use it. Various other hacks and/or
cleanup. Feedback required on whether this is a lot better than before.
Also partially revert 9c018d94c4d88dad7476ec250fa3b52024526f4b to add
feature to geo.PositionedSearch: it me._equals is overridden then the
old mechanism is used instead of the new C++ function, so that the
custom equality can be used. (In particular for the Fixes with the
TrafficModel class).
2014-01-26 20:26:25 -06:00
Hyde Yamakawa
21fe2f4489
Add altitude profile T/C, T/D, S/C and E/D mark on ND route
2014-01-26 12:07:18 -05:00
Philosopher
381aeb918e
Canvas ND: keep canvases through reinit
...
Make fdm listener single-fire, don't listen to /sim/signals/reinit. This
allows the Canvas to stay with the same placement through reinit, after
both the 777 and 747 were having problems. I don't see any reason for
having to recreate it all, and the cleanup function is still there (e.g.
for independent windows, to have their .del() call the ND's .del()).
renamed handle_reinit() -> del()
2014-01-25 21:13:49 -06:00
Philosopher
99fb72d26a
Canvas ND: obey traffic switch
2014-01-25 19:24:30 -06:00
Philosopher
a4f289ecee
Canvas ND: Do del() on reinit
...
This also makes sure the /canvas/by-index/canvas[3/4]/ nodes are removed
and then recrated, as well as making sure the MapStructure del() path is
followed and working. Unfortunately the NDs are still blank after reinit.
2014-01-23 21:21:49 -06:00
Thomas Geymayer
e7900e3791
Canvas: remove API for FlightGear 2.8
...
The old API is not used with newer versions of FG. If an old
version of FG is used, also the according version of fgdata
should be used, which also includes the correct API wrappers.
2014-01-20 23:25:15 +01:00
Philosopher
a3e6108aa1
Fix #1310 - typo in material.nas
...
A small processing mistake on my part during commit d8b23d94.
2014-01-19 15:52:38 -06:00
Gijs de Rooy
73c2c0c8bb
Navigation display: fix map range, hide HDG bug after 10 sec, fix route predicates, fix SVG centers
2014-01-18 15:22:42 +01:00
James Turner
510357492d
Bug-fix: cap model shader quality to 1.0
...
When using the slider, model shader should be capped to 1, not 3.
2014-01-18 08:47:33 +00:00
James Turner
0b6dbe9ad0
Bug-fix: only set AP altitude for 'at' constraint.
2014-01-18 08:45:20 +00:00
Thomas Geymayer
785a334628
Nasal: fix gui.setCursor without cursor (aka warp)
2014-01-17 01:06:36 +01:00
Thorsten Renk
df82561b75
Separate, non-agricultural texture definition for Grassland landclass, corrsponding fix for correct cloud generation on the landclass in Advanced Weather
2014-01-13 10:54:07 +02:00
Stuart Buchanan
c014e35aec
Add ability to clear screen.window, and use it.
2014-01-12 19:52:30 +00:00
Philosopher
7ca8482b07
MapStructure work & (partial) integration
...
In time for 3.0. The API is still not fully complete, and not fully
cleaned up, but this is good enough for this release cycle (and it
should offer benefit longer term, if not now -- hopefully performance as
well).
Many thanks to Hooray as well, who has helped prepare things while I
could not, and often suggested ideas.
2014-01-09 21:24:22 -06:00
Gijs de Rooy
9af485ad93
Navigation display:
...
- remove debug prints
- proper ADF/ILS display
- add LCD/CRT option
- fix ranges
2014-01-08 21:45:48 +01:00
Stuart Buchanan
645cfac648
Use separate non-scrolling message display for tutorials.
2014-01-01 23:17:39 +00:00
James Turner
e4ec7a6e56
Fix z/Z key-binding.
...
Don't require the Environment dialog to have been opened, before
this keybinding works for basic (global) weather.
2014-01-01 21:49:17 +00:00
Gijs de Rooy
2b6964911f
Boeing ND:
...
- add VOR, APP, PLAN and CTR modes.
- add true/mag switch
- display waypoint altitudes
2013-12-28 16:18:35 +01:00
James Turner
163b8ca6d8
Bug 1273, message popups hide timeout ignored.
...
Stop the tooltip code from prematurely hiding message popups.
https://code.google.com/p/flightgear-bugs/issues/detail?id=1273
2013-12-09 22:02:06 +00:00
Thomas Geymayer
5e2801461c
Nasal: use new positioned.diff
2013-12-08 20:34:20 +01:00
Anton Gomez Alvedro
6ae3fae393
Add io.include() function to Nasal base library
...
io.inlude() loads and executes a Nasal file in place, effectively embedding
the script in the calling namespace. The function adds a symbol mark in the
namespace to avoid duplicate loading.
Additionally, in this path:
+ io.basename() & io.dirname(): Convenience functions for managing path
strings. Designed after their unix counterparts.
+ string.normpath(): Improved support for relative paths. It can now handle
paths starting with double dots, like ../../Directory
2013-12-08 11:51:34 -06:00
Thomas Geymayer
4766ed21a6
Nasal: use new built-in props.Node.removeAllChildren()
...
This require less interaction between Nasal and C++ and
also does not need to create a list of removed children
which was not used anyway. Now it require about 70% less
time to execute.
2013-12-07 13:48:55 +01:00
Gijs de Rooy
c409864dac
Navigation display:
...
- move SVG to Canvas directory
- add basic wxradar
- differentiate between track and heading
- improve altitude arc
- add range arcs
- display correct ETA for next waypoint
2013-12-04 23:22:51 +01:00
mhab
1d9ff30420
Close dialogs with Esc-key
2013-12-02 21:32:05 +01:00
Thomas Geymayer
748f1d4d29
parsesvg: rename canvas.num to canvas.evalCSSNum
2013-12-01 14:05:12 +01:00
Tomash Brechko
2e6ba5f8c0
SVG parser: Add num() wrapper for <rect> attributes.
2013-12-01 14:05:11 +01:00
Gijs de Rooy
a9576e8c8d
Canvas Navigational Display:
...
- get rid of global variables and use instance variables
- identified all important drawing routines and move them into *.draw files
- changed to dynamic loading of *.draw *.model and *.layer files
- implemented poor-man's controller hash to move use-case specific conditionals out of the draw files, and back into the instantiation, i.e. Gijs' EFIS class
- started identifying stuff that is not specific to drawing, but to what is to be drawn, i.e. Model stuff - such as positioned queries, moved those out into *.model files
- some more work on supporting more than a single ND MFD instance per aircraft
- renamed a handful of SVG identifiers to avoid naming conflicts and to simplify usage of SVG IDs as member fields
- moved all of the setlistener setup out of the fdm-initialized stub right into the ctor of the Efis class (actually that's controller stuff...)
- initial MapStructure framework
- aircraft-agnostic NavDisplay class
- preparations for deprecating map.nas
- additions to canvas.map
- preparations for making NDStyles configurable via XML
2013-12-01 13:36:23 +01:00
Philosopher
730145eec0
Add condition axis as per issue 1249
2013-11-05 14:38:43 -06:00
Thomas Geymayer
9687784128
Canvas API: constants for clip-frame reference frames
2013-11-03 21:01:33 +01:00
Thomas Geymayer
fed49956e6
IOrules: add writeable cache directory (for downloaded data)
2013-10-28 12:35:47 +01:00
janodesbois
5ce7d55342
FPS2KT and KT2FPS added to Nasal/global.nas
2013-10-27 13:50:39 +01:00
James Turner
27afea985a
Updated UI to configure tooltips, mouse input
...
Replace the temporary UI with real solutions, in the view dialog
(for tooltips/popups) and a new 'input config' dialog accessed via
the file menu.
Make the mouse-cycle popup explicitly optional since some people
strongly dislike it.
2013-10-25 17:22:12 +01:00
James Turner
74e49dd65d
Avoid tooltip breakage when property is nil
2013-10-25 17:19:35 +01:00
Thomas Geymayer
5f54a68491
Canvas: add helper to get parent of canvas.Element
2013-10-23 17:33:12 +02:00
Thomas Geymayer
7e0797b1be
svg parser: read line-height
2013-10-20 23:41:19 +02:00
Philosopher
36305939f3
Nasal/*.nas: named arguments
...
Instead of var (name) = arg[0..n], which doesn't give a "missing
argument" error.
2013-10-20 13:07:09 -05:00
Philosopher
51c66c3df4
Fix defined() implementation
2013-10-20 13:06:51 -05:00
Philosopher
9a3bf2d0a7
Update view.screenWidthCompens
...
* make into singleton class
* make sure FOV changes take place *immediately* when required
* current FOV is scaled with changes, though being preserved: resizing
window and going back ends up with the same FOV
2013-10-19 21:27:21 -05:00
Thorsten Renk
23ee32f1ec
Changed Nimbostratus placement avoiding the rectangular appearance of tiles
2013-10-17 11:15:48 +03:00
Philosopher
24ab67fa32
Use resolvepath() for canvas SVGs
2013-10-06 11:52:30 -05:00
James Turner
60da2d4da8
Remove items implement natively in Nasal.
...
mathlib.c now defines more of these. Remaining items (abs, sgn, min, max)
are likely faster using Nasal than switching to C and back again.
Also add a comment about mod(), clarifying that a native fmod() exists.
2013-10-03 17:42:20 +01:00
Philosopher
819aa8a988
Fix for #1185
2013-09-30 13:53:10 -05:00
Philosopher
b4675c62b2
Fix popupTip handling
...
delay argument was being ignored and popdown didn't work anymore.
2013-09-27 12:09:44 +02:00
Clément de l'Hamaide
6ca29b6fe9
Fix controls.ptt(-1) to controls.ptt(0) in Nasal/joystick.nas
2013-09-24 13:29:37 +02:00
Thomas Geymayer
078e422faa
Canvas GUI: check if canvas is valid on resize.
2013-07-27 22:23:00 +02:00
Thomas Geymayer
b8d6997497
Canvas GUI: mouse based window resizing.
2013-07-27 12:58:02 +02:00
Thomas Geymayer
a13add166b
Canvas GUI: Basic widget, focus and theming support.
2013-07-27 12:57:52 +02:00
Thomas Geymayer
187883563a
Canvas GUI: update window for core change (size -> content-size).
2013-07-27 00:33:08 +02:00
Thomas Geymayer
589d021e1c
Canvas API: access to canvas "desktop".
2013-07-25 01:02:37 +02:00
James Turner
43a8b16dab
Fix altitude constrain handling.
...
Thanks to Curt for spotting the issue.
2013-07-22 18:04:14 +01:00
Thomas Geymayer
7bf96db691
canvas.Window: Do not delete canvas on close if other placements exist.
2013-07-21 11:33:47 +02:00
Thomas Geymayer
c8a5c507bc
Canvas: Fix placing existing canvas on window.
...
- Canvas window placements now use 'id' instead of 'index'...
- Provide Dialog class for backwards compatibilty (but print a
warning that it will be removed)
2013-07-20 18:10:31 +02:00
Thomas Geymayer
68efae1cd8
canvas.parsesvg: fix handling text without tspan or empty text.
2013-07-20 00:54:42 +02:00
Thomas Geymayer
ce4d7964f6
canvas.parsesvg: Be more tolerant instead of failing.
...
- Remove 'px' suffix from numbers to be used as valid numbers.
- Automatically update the rotation center if it the according
values are present.
- Fix text only partially set if containing xml entities.
2013-07-15 22:37:05 +02:00
Thomas Geymayer
4a6cbb8ff1
Canvas GUI: set standard alpha blending as default inside windows
2013-07-14 13:44:34 +02:00
Thomas Geymayer
d580464095
Prevent name clash with future canvas.gui namespace.
2013-07-04 21:58:00 +02:00
Thomas Geymayer
eaf4c60cfb
Canvas GUI: don't drag window on close button.
2013-06-29 14:49:43 +02:00
Thomas Geymayer
d7d871cc83
Canvas API: do not skip first index for cmds/coords
...
Start cmd/coord indices really at 0 and allow removing first/last
segment.
2013-06-27 23:16:45 +02:00
Thorsten Renk
9fbb4a2c00
Bugfix preventing visibility from jumping when leaving an Advanced Weather effect volume
2013-06-26 12:33:07 +03:00
Thomas Geymayer
44050c8011
Delay pilot_view_limiter.start after reinit to prevent using wrong heading-offset
2013-06-22 17:11:22 +02:00
Thomas Geymayer
8c23d095b0
Create geo.normdeg180 function
2013-06-17 21:40:29 +02:00
Thomas Geymayer
84b4da563e
Inch/Meter conversion factors IN2M/M2I
2013-06-17 21:20:00 +02:00
Thomas Geymayer
35a2045123
Update for core changes
2013-06-14 20:32:14 +02:00
Thomas Geymayer
c759a3e57f
Canvas window: allow gc to release resources
2013-06-08 13:08:16 +02:00
Thomas Geymayer
ca5c8463ab
Use integer coordinates for placing canvas dialog title
2013-06-07 00:20:09 +02:00
Thomas Geymayer
72e3937ec6
Basic window decorator with title bar and close button.
...
Extend the canvas.Window class to create a simple window decoration
if a type for it (currently every type maps to the same style) is
given. It supports moving the window by dragging inside the title
bar and setting a window title.
2013-06-06 23:27:11 +02:00
James Turner
246f4e2bac
Fix an issue with circular flight-plans.
...
Hyde identified a problem where the departure and destination
runway are identical; the logic would detect a 'landing' on
activation and immediately deactivate the FP again.
2013-06-01 11:12:23 +01:00
Anders Gidenstam
7b277810a8
Nasal/view.nas: Honour the configured directional offsets on view reset.
...
Thanks to Patrick Melanson, who noticed the problem and suggested the solution.
2013-05-28 22:35:32 +02:00
Vivian Meazza
d2b384ffad
Add ID code to pilot list
...
Signed-off-by: Vivian Meazza <vivian.meazza@lineone.net>
2013-05-14 17:16:06 +01:00
Ryan M
9b19d5e20e
Animated jetways: Remove obsolete use-custom-scenery-data property
2013-05-08 22:39:29 +01:00
Thomas Geymayer
d80722065f
Fix path validation (ensure listeners are attached to existing nodes)
2013-04-29 22:27:26 +02:00
Stuart Buchanan
cad64a9711
Normalize angles for bearings on tanker.
...
Patch from Jean PELLOTIER.
2013-04-12 20:52:04 +01:00
Stuart Buchanan
fd4e61869b
Add support for <nasal> blocks in the joystick nasal config library.
2013-04-12 20:24:53 +01:00
Stuart Buchanan
5fc821c4c1
Further AAR improvements:
...
- Make the A330-MRTT drogues HOT=false so you can't crash into them
- Add offset for the probe on the A-4F
- Correct the deviation due to roll, making it match the piloted aircraft.
2013-04-10 21:53:21 +01:00
Stuart Buchanan
e969dbc8f4
Improve air-to-air refueling by supporting multiple contact points
...
offset from the tanker center, and an offset probe/recepticle position
on the receiving aircraft.
2013-04-10 21:25:59 +01:00
James Turner
b64dd768d3
Move more high-level GPS logic to Nasal/XML.
2013-04-10 18:52:34 +01:00
James Turner
4d3a00bf68
Use Nasal to provide GPS search functions.
2013-04-10 18:52:34 +01:00
Thorsten Renk
2c6a962a34
Modified cloud lighting with dependence on air pollution
2013-04-09 09:52:19 +03:00
Thorsten Renk
2f01deb6bd
Advanced Weather update - new cloud placement algorithms part I
2013-04-09 09:41:27 +03:00
James Turner
7e0a45c798
Tooltips and knobs for the C172P.
...
This is proof of concept, not a complete conversion.
2013-04-06 17:36:25 +01:00
James Turner
57dd7cb95f
Give balloons scenario a load script.
...
This makes balloons.nas obsolete.
2013-03-28 17:46:13 +00:00
James Turner
4f66ca4a8f
Use Tooltip instead of PUI dialog for gui.popupTip.
...
Hopefully everything works as expected, seems to for the cases I know about (changing view / FoV / visibility).
2013-03-16 12:48:18 +00:00
James Turner
29438e1e7d
Message feedback when changing sim speed-up.
2013-03-16 12:48:17 +00:00
James Turner
e740b916d3
Make tooltip also work for on-screen messages.
...
Required new (in flightgear) Nasal timer to work, so make sure your fg is up-to-date.
2013-03-16 12:48:15 +00:00
James Turner
5c4142ed6d
Option to disable mouse-mode feedback.
...
Drive off the 'show view names' checkbox in the view dialog for now, this might
evolve into a generic 'on-screen hints' control to avoid an explosion of
GUI checkboxes.
Also add a GUI checkbox (oh the irony...) to disable mouse flight-controls, to
keep AndersG and Emilian happy.
2013-03-12 21:45:06 +00:00
Thomas Geymayer
0980f6302a
Rework tooltip size calculations to get rid of delayed update.
2013-03-11 19:25:39 +01:00
James Turner
5b84e09572
Fix phantom tooltips, more mapping modes.
...
Null the tooltip ID in update-hover, regardless of visibility. Avoids later tooltips when picking other (tooltip-less) pickable objects.
Also add two more mapping models for bools: up-down and down-up.
2013-03-11 17:19:32 +00:00
James Turner
7679078aa7
Tooltip tweaks
...
add a 'heading' mapping mode, normalises to 0..360
support a 'measure text' property used to compute the tooltip size (and hence avoid visual jitter when value is changed)
2013-03-10 10:13:47 +00:00
Thomas Geymayer
226d11b104
Tooltips: Use (hopefully) nice background image for tooltips.
2013-03-09 14:03:33 +01:00
Thomas Geymayer
bf3cd83c61
Canvas API: allow passing image size as vector
2013-03-09 14:03:32 +01:00
James Turner
72a1a0047e
Work on tooltips, mouse-input config.
2013-03-08 16:47:00 +00:00
James Turner
6fefc775d7
Ignore tab-switches-mouse-mode if modifiers are set.
...
Clement confirmed that we're still get the tab key for alt-tab and ctrl-tab, which is bad. Explicitly ignore it for now.
2013-03-08 14:02:19 +00:00
James Turner
ce2d316e6d
Tooltip class.
...
This is work in progress, and not visible without additional patches.
2013-03-07 19:51:06 +00:00
James Turner
f2b984f709
User-interface config dialog.
...
This is temporary (hopefully!), to allow experimentation with different UX options in the near future. Right now it basically does nothing. As part of this, factor mouse-mode cycling into a separate command, and add some feedback. Feedback mechanism needs work, currently abusing the copilot facility.
2013-03-07 19:36:54 +00:00
Vivian Meazza
9b697adb4f
Use z/Z to control Max. Vis. when using Detailed Weather
...
Signed-off-by: Vivian Meazza <vivian.meazza@lineone.net>
2013-03-02 19:38:50 +00:00
Christian Schmitt
312862271d
Position tower on canvas map at the correct place, not at the airport center
2013-03-01 17:16:01 +01:00
Christian Schmitt
0484849b67
Add helipads to the canvas map (grey rectangle for now).
2013-03-01 14:54:33 +01:00
Christian Schmitt
9dff0b4221
Canvas map: cleanup the runway routines. Simplify by using new functions and two runway ends
2013-03-01 14:54:13 +01:00
Thorsten Renk
f2ebbbbc70
Updates to Advanced Weather and cloud shaders - better support for low visibility conditions, improved framerates for Thunderstorm scenario
2013-03-01 09:40:05 +02:00
Christian Schmitt
51936dcff1
Adapt Canvas map to changed runway/taxiway internals
2013-02-28 13:39:07 +01:00
Stuart Buchanan
82f2de2fbc
Support <marker> and <page> tags in the conversion of checklists to tutorials.
2013-02-27 22:46:37 +00:00
Stuart Buchanan
0fc2bf56fb
Air-to-air refueling enhancements
...
- Support selectable tankers
- allow configuration of refueling radius, speed
- add optional reporting of contact
2013-02-24 22:34:11 +00:00
Thomas Geymayer
7027c604de
Tweak SVG parser id handling of text elements
2013-02-23 20:05:13 +01:00
Thomas Geymayer
71f3f878c6
SVG rect rounded corner and refactor rect helper
2013-02-23 19:19:53 +01:00
Thomas Geymayer
5d54d3c504
Improve SVG/Inkscape text parsing/interpretation
2013-02-23 18:27:35 +01:00
Thomas Geymayer
95109b7b0c
Fix parsing multiple SVG transforms and implement scale and rotation
2013-02-23 14:46:26 +01:00
Thorsten Renk
9b6578dcc0
Advanced Weather wind model selection bugfixes
2013-02-11 14:29:15 +02:00
Stuart Buchanan
1539891aa8
Bugfix for aircraft without checklists.
2013-02-09 20:27:05 +00:00
Thomas Geymayer
0bb3a1fe95
Remove CanvasText space hack.
...
With corrected alginment calculations within latest SimGear this
hack is not needed anymore.
2013-02-09 12:25:28 +01:00
Stuart Buchanan
402627b595
Auto-generate tutorials from checklists.
2013-02-07 22:14:19 +00:00
Anders Gidenstam
235c21985e
Nasal/scenery.nas: Handle joining/leaving the MP network at run time.
2013-02-03 19:27:47 +01:00
Anders Gidenstam
7ef68c310a
Nasal/mp_broadcast.nas: Handle joining/leaving the MP network at run time.
2013-02-03 19:27:35 +01:00
Emilian Huminiuc
e8bcd26450
Fix shader dialog.
...
Signed-off-by: Emilian Huminiuc <emilianh@gmail.com>
2013-02-01 13:21:58 +02:00
Thomas Geymayer
4374ab0ce8
Use new built-in string functions
2013-01-31 22:56:43 +01:00
Thomas Geymayer
8b3fa6f2fe
Fix std.string handling out of range indices in search methods
2013-01-31 20:20:36 +01:00
James Turner
124017a696
GUI: switch to internal file dialog interface.
...
This should give no visible change on platforms other than Mac. On Mac file-dialogs (open, save, choose dir) are now Cocoa native panels, not PUI. If someone wants to create a Windows equivalent, the API is pretty trivial.
2013-01-26 14:16:00 +00:00
Thorsten Renk
1c9f110192
Replace Nasal loop for camera altitude computation by property rule
2013-01-25 14:55:58 +02:00
Stuart Buchanan
840595fa8d
Add support for the Fuel and payload dialog to display the maximum arrested landing weight. Useful for carrier aircraft.
2013-01-22 21:35:33 +00:00
Thomas Geymayer
91ae186330
Canvas API: draw (rounded) rect and rename Dialog to Window.
...
- std.string:
* Add method compare
* Add method starts_with
- canvas.Group:
* Add method rect for drawing (rounded) rectangles
- Rename canvas.Dialog to canvas.Window to free the name Dialog
for real dialogs.
2013-01-22 18:02:20 +01:00
Thomas Geymayer
23c72fd53b
Fix #956 , cleanup canvas map listeners
2013-01-16 23:57:08 +01:00
Thomas Geymayer
ef95c4cf10
parsesvg: fix checking for relative/absolute path
2013-01-11 19:56:42 +01:00
Thorsten Renk
6d8940c4e0
Bugfix creating well-defined starting and re-starting conditions for Advanced Weather precipitation
2013-01-10 13:21:14 +02:00
Thomas Geymayer
73fcf429d0
Canvas/SVG fix calculating transformation center (Group)
2013-01-09 12:14:31 +01:00
Thomas Geymayer
530db2e97a
Ensure canvas dialogs clean up all references to canvas ghosts on destruction
2013-01-01 13:16:19 +01:00
James Turner
6612848745
Explicit 'cleared' callback for FP Delegate.
...
Fix bug 940, where GPS remains in active LEG mode when the route is cleared. (there is an associated flight gear code change). With this fix, the work-around in the GUI dialog is no longer required.
2012-12-31 17:38:18 +00:00
Thomas Geymayer
e9a40e7a79
remove old code (Canvas GUI constants)
2012-12-16 22:36:57 +01:00
Thomas Geymayer
9af21f41c0
Absolute placement for canvas gui dialogs (CSS like right/bottom margin)
2012-12-14 17:25:34 +01:00
Thorsten Renk
28b3d77566
Advanced Weather side fix for precipitation bug
2012-12-13 12:15:21 +02:00
Stuart Buchanan
abcfc2073b
Allow users to reset their joystick configuration from the Joystick Configuration dialog.
2012-12-07 22:42:18 +00:00
alexis
2188eb6b75
- Makes the AI tanker visible by the legacy radar.
...
Signed-off-by: Yeti des neiges (Jano)
2012-12-06 22:59:48 +01:00
Thorsten Renk
ed80612c98
Atmospheric Light Scattering update
2012-12-05 20:31:27 +00:00
Thomas Geymayer
cf27a29da4
Airport dialog: Basic support for drag/zoom with the mouse
2012-12-03 00:39:13 +01:00
Thomas Geymayer
ccee791529
Canvas API: Use more exposed core functions
2012-11-30 17:40:03 +01:00
Thomas Geymayer
10c635752a
Use latest core API and fix FG 2.8 support
2012-11-18 23:29:24 +01:00
Emilian Huminiuc
b650a0eb51
Make sure shaders are disabled as long as /sim/rendering/shaders/quality-level is 0 or non existing.
...
This should help those checking out models in fgviewer
To enable effects in fgviewer run it with:
fgviewer --prop /sim/rendering/shaders/quality-level -1
Also fix random buildings not showing up when model shader was set to 0 and generic was enabled.
Signed-off-by: Emilian Huminiuc <emilianh@gmail.com>
2012-11-18 00:39:02 +02:00
ThorstenB
a8cc15ab73
#600 : allow speed-up value to use fractions
...
Remove restrictions allowing speed-up < 1 for replay mode only.
2012-11-17 20:15:00 +01:00
ThorstenB
6662ba5006
Access checker: properly convert paths to the norm.
...
The same was already done for fg-root and fg-home paths - it was only
missing for fg-scenery and fg-aircraft paths.
2012-11-16 20:34:32 +01:00
Thomas Geymayer
bc63ff3ea8
Use Canvas and CanvasGroup ghosts provided by fgfs core
2012-11-16 12:35:49 +01:00
Thomas Geymayer
fa97e5ea7a
Use core Canvas Nasal helpers
2012-11-15 14:19:09 +01:00
alexis
f069dfdc99
- Revert to previous behavior when changing view which shouldn't trigger a FOV reset.
2012-11-11 17:51:18 +01:00
Thomas Geymayer
7477ffed74
Update Canvas API for latest core changes
2012-11-04 15:15:11 +01:00
Stuart Buchanan
9c6a35012b
Manual merge of merge request 95 from Hooray
2012-11-03 22:06:51 +00:00
Thomas Geymayer
7f1117a537
Use new props.addChildren method to speed up 'Select Aiport' dialog
2012-10-14 17:33:31 +02:00
Thomas Geymayer
a15d582937
Use newly exposed props.Node.addChild method
2012-10-13 15:20:27 +02:00
Alexis
bc4371bcd4
view.ScreenWidthCompens() : optional FOV compensation for wider screens.
...
It keeps an equivalent of 55° FOV on a 4:3 zone centered on the screen
whichever is the screen width/height ratio. Works only if width >= height.
2012-10-04 22:15:52 +02:00
Stuart Buchanan
3656ff92c6
Fix bug where last axis of the joystick was written out with the original bindings of all buttons.
2012-09-29 21:24:12 +01:00
Hooray
e510c8917f
Canvas Scripting Layer (Mapping):
...
- first stab at refactoring the map.nas module, and trying to let the API evolve according to our requirements
- split up the module into separate files (some of them will disappear soon)
- split up the "drawing" loops into separate functions so that they can be individually called
- move actual "drawing" to map_layers.nas
- introduce some OOP helpers to prepare a pure Layer-based design
- prepare helpers: LayeredMap, GenericMap, AirportMap (TODO: use a real "Layer" class)
- move airport features (taxiways, runways, parking, tower) to separate layers (i.e. canvas groups)
- avoid using a single update callback and use different layer-specific callbacks to update individual layers more efficiently
- add some boilerplate hashes to prepare the MVC design
- allow lazy updating of layers, where canvas groups are only populated on demand, to save some time during instantiation, i.e. loading an airport without "parking" selected, will only populate the layer once the checkbox is checked
- extend the original code such that it supports showing multiple airports at once
- add some proof of concept "navaid" layer using SVG files for navaid symbols (added only NDB symbol from wikimedia commons)
regressions:
- runway highlighting needs to be re-implemented
- parking highlighting will be done differently
- enforcing a specific drawing order for layers is currently not explicitly supported, so that taxiways may be rendered on top of runways
Also:
- integrated with the latest changes in git/master (HEAD) -i.e. metar support
- further generalized map.nas
- partially moved instantiation from Nasal space to XML space (WIP)
- create "toggle layer" checkboxes procedurally in Nasal space
- prepared the code to be better reusable in other dialogs (e.g. route manager, map dialog etc)
- completely removed the "highlighting" (runway/parking) feature for now, because we talked about re-implementing it anyhow
2012-09-29 21:16:31 +01:00
Thomas Geymayer
5650e97397
Canvas: Bounding box may not exist
2012-09-25 22:20:39 +02:00
ThorstenB
ecbce19b47
Sound: trigger subsystem reinit instead of relying on property listener.
...
Disable sound dialog when sound system is globally disabled (command-line/
compile-time).
2012-09-21 21:11:57 +01:00
Stuart Buchanan
60e6be0e0f
Improved maps display and Airports dialog
...
- Display taxiways
- Display different surface types
- control over components (taxiways, parking positions, towers) displayed
- include distance and course to airport.
2012-09-19 22:35:56 +01:00
Stuart Buchanan
d214a6fcf8
Add highlighting of selected runway/parking position. Move tower definition and placement to map.nas.
2012-09-18 19:28:56 +01:00
Thomas Geymayer
d775c221b7
Move map helpers to canvas Nasal module
2012-09-18 13:19:26 +02:00
Stuart Buchanan
602ae34af4
Add support for a Aircraft Checklists GUI item.
2012-09-18 11:29:17 +01:00
Thomas Geymayer
86344dfe57
Canvas: Add method to retrieve all child elements of a group.
2012-09-17 18:16:30 +02:00
ThorstenB
fad306d364
#877 : MP chat sometimes not working
2012-09-16 14:00:40 +02:00
Thomas Geymayer
a4af6530e1
Canvas: Fix cubic/scubic typo.
2012-09-04 22:54:53 +02:00
Thomas Geymayer
16890bb5b8
Canvas: Experimental backward support for FlightGear 2.8
2012-09-01 22:37:25 +02:00
Stuart Buchanan
7a3d5dd0bf
Updates to the Joystick Configuration dialog.
2012-08-26 21:48:53 +01:00
Stuart Buchanan
4a70a703a8
Add Joystick Configuration dialog, allowing in-sim configuration of joysticks.
2012-08-24 22:53:21 +01:00
Anders Gidenstam
acd0091d9d
Updated Wildfire: Added support for synchronized loading of event logs.
...
A fire log can now be loaded at startup time with, e.g.,
--prop:environment/wildfire/events-file=$HOME/.fgfs/Wildfire/small_fire.xml
(Note: Wildfire is only authorized to load logs from ~/.fgfs/Wildfire .)
Additionally, a time at which the fire starts to evolve (past the event log)
can be specified with, e.g.,
--prop:environment/wildfire/time-hack-gmt='2012:08:23:15:15'
Instances of FlightGear that are started with the same event log and time-hack
should arrive at similar wildfire states (prior to new events).
2012-08-23 23:27:44 +02:00
Thomas Geymayer
52b89ed372
Canvas: Update API for core changes.
...
- Use only one node for colors and dash-array
- Update some property names to better match SVG/CSS
2012-08-23 21:05:52 +02:00
Anders Gidenstam
368fcc7976
Updated Wildfire: Added a model for dropped retardant.
2012-08-18 00:08:16 +02:00
Thomas Geymayer
20c6d48ee7
Canvas: Basic GUI API and API cleanup
2012-08-12 23:25:47 +02:00
Stuart Buchanan
8d32e19c63
Fix for isue 834 - fuel and payload gui broken for jsb aircraft
2012-08-10 22:25:20 +01:00
Thomas Geymayer
a129877eb8
Canvas: Add function to API for getting canvas path
2012-08-09 22:08:44 +02:00
Thomas Geymayer
c785b1bd1c
Canvas: Extend Image element and adapt for latest core changes.
2012-08-09 18:18:07 +02:00
James Turner
5862ada5f0
Add Image to Canvas API
2012-08-06 10:27:25 +01:00
Thomas Geymayer
7e641735cb
Canvas: Improve API and SVG parser.
...
- API:
* Rename setSize to setFontSize
* Add method getElementById to Group
* Rename name of element to id to show more prominent
that it should be unique.
* Add methods for hide/show elements.
* Fix: set correct id for cloned elements (parsesvg)
* Fix: retrieving group with getElementById failed.
* Parse SVG inkscape:transform-center-[xy]
* Allow rotation around given point (use values from inkscape
by default for SVG files)
* Use breadth-first search instead of depth-first search for
Element::getElementById (large speedup :))
* Add more convenience functions for path drawing.
* Add version check (useful if API files manually copied)
- SVG:
* Support <use> element
* Parse font-size
* Parse stroke-linecap
2012-08-02 01:40:00 +02:00
Thomas Geymayer
2e3aa2673b
Canvas: Update API to new geo coords and add map element
2012-08-02 01:40:00 +02:00
Thomas Geymayer
007e9bc33a
Canvas: Add a basic SVG parser.
...
- Add basic std::string implementation to a Nasal submodule named
std.
- Add basic SVG parser parsing its results into a canvas group
element.
2012-08-02 01:39:59 +02:00
Thomas Geymayer
07cb9e7df0
Canvas: Add Nasal API for using the Canvas.
2012-08-02 01:39:59 +02:00
Stuart Buchanan
f1adeec7cc
Enhancements to the Fuel and Payload dialog
...
- Fraction of each tank capacity displayed, along with pounds and gallons
- Total fuel is now displayed
- CofG displayed if available even if /limits/ not defined (bug fix)
- Tanks of capacity 0 ignored (bug fix)
- Some layout improvements.
Addresses issue #778
2012-07-29 22:44:14 +01:00
ThorstenB
121790f337
Make restore-defaults option also apply to aircraft-specific data
2012-07-15 11:07:23 +02:00
Stuart Buchanan
bd4e8764de
Correct waiting period for exit statements without conditions,
...
update tutorial README with <wait> tag.
2012-07-14 20:27:31 +01:00
Stuart Buchanan
359a8ce414
Fix exit-time, step-time tags, and make the <wait> tag only apply to the
...
first iteration of any step. Fix for issue #417
2012-07-14 20:20:21 +01:00
Ryan M
f5c1fbd167
Animated jetways : Fix infinite spawn glitch; Replace various for() loops with foreach() loops
2012-07-10 21:52:37 +02:00
ThorstenB
9856fdd452
#748 : keyboard bindings in control.nas must not rely on autopilot
...
Throttle/aileron/elevator keyboard bindings did not work on aircraft
without autopilots (= without A/P properties). Rearrange logic to make
basic axis/throttle control the default (i.e. when prop values are "nil").
2012-07-01 00:24:23 +02:00
Emilian Huminiuc
4587dc8bc5
gui.nas: make sure enabling Rembrandt disables the skydome-scattering shaders
...
Signed-off-by: Emilian Huminiuc <emilianh@gmail.com>
2012-06-28 01:37:31 +03:00
Markus Pargmann
b67a848bfc
pilot list direct chat button
...
This is a new button in the pilot list, left of the callsign. It's
binded to multiplayer.compose_message("<CALLSIGN>, ");
Signed-off-by: Anders Gidenstam <anders@gidenstam.org>
2012-06-16 18:38:45 +02:00
Markus Pargmann
fe68411d37
Custom message highlighting
...
By setting the property /sim/multiplay/chat_highlight . Especially
useful to highlight messages directed to ATCs.
2012-06-15 14:30:02 +01:00
Markus Pargmann
0920d46cac
use lowercase
2012-06-15 14:29:52 +01:00
Markus Pargmann
b188fdf017
chat callsign highlighting
2012-06-15 14:29:33 +01:00
Anders Gidenstam
3bcfe8296c
Nasal/globals.nas: Added a missing var-keyword.
2012-06-12 22:35:37 +02:00
Anders Gidenstam
e3e0defac9
Nasal/screen.nas: Added a missing 'me.'.
2012-06-12 22:34:33 +02:00
Stuart Buchanan
12595310e0
Correct use of getprop() so that --enable-real-weather-fetch works.
...
Fixes issue 789 on the FG bugtracker.
2012-06-12 11:09:50 +01:00
Flightgear Development
4df011cd63
Advanced Weather v1.5
2012-06-11 20:23:33 +02:00
Frederic Bouvier
be6c2e3fc6
Disable stereoscopic options in Rembrandt
2012-06-03 16:19:10 +02:00
Vivian Meazza
ce77e04690
Revert "add Model movement"
...
This reverts commit 7b8be5146ed2225828525a51a6167232a33e16b0.
Too soon!
Signed-off-by: Vivian Meazza <vivian.meazza@lineone.net>
2012-05-28 10:59:35 +01:00
Vivian Meazza
ee9fef9472
add Model movement
...
Signed-off-by: Vivian Meazza <vivian.meazza@lineone.net>
2012-05-27 22:08:34 +01:00
Anders Gidenstam
24d9e19cd8
Nasal/string.nas: Corrected a misspelled variable name.
2012-05-20 22:50:59 +02:00
Frederic Bouvier
eea2f89080
Fix menubar
2012-05-18 12:53:33 +02:00
James Turner
898b3769d3
Add default FlightPlan delegate for the route-manager.
2012-05-15 17:51:48 +01:00
Frederic Bouvier
1a5cc682a9
Add condition on ambient occlusion and a menu item to switch it on and off if the stage is enabled in the pipeline
2012-05-12 09:20:13 +02:00
ThorstenB
5057b49ed9
#669 : fix fly-by-view when aircraft skips position
...
Reposition when view position is too far away, i.e. due to replay,
relocation etc.
2012-05-03 00:00:56 +02:00
Flightgear Development
2b972341b3
Terrain Haze v1.3
2012-04-26 17:22:58 +03:00
James Turner
4c047c235f
Change geo.nas to use native helpers for bucket path/index
2012-04-26 00:01:47 +01:00
ThorstenB
ed0d58cd75
#705 : add sanity checks to fuel tank update
...
Just ignore incomplete tanks (without essential properties like "level_lbs")
and avoid Nasal run-time errors.
2012-04-22 15:19:20 +02:00
ThorstenB
278a7db2bf
Add missing name tags to menu items.
...
Also enable rendering buffer option for Rembrandt only.
2012-04-18 16:00:38 +02:00
ThorstenB
1867df11ce
performance monitor: improve layout
...
also change default measurement interval to 1 second
2012-04-09 00:00:13 +02:00
ThorstenB
ed5692f411
props.nas: allow "getBoolValue" to work with properties of UNSPECIFIED type.
2012-04-08 23:02:36 +02:00
ThorstenB
e57b96e448
performance monitor: show more details
2012-04-05 21:18:47 +02:00
Gijs de Rooy
f15b01df8e
Disable skydome shader when quality-level=0 via commandline.
2012-04-04 18:40:00 +02:00
ThorstenB
6651e5abcd
Fixed typo.
2012-04-01 21:07:58 +02:00
ThorstenB
a79a91a2aa
aircraft.nas: performance optimization
...
listeners at sim/rendering/precipitation-aircraft-enable triggered
excessively (every loop)
2012-04-01 13:06:40 +02:00
ThorstenB
cd10e3edd7
Fixed aircraft.teleport when parkpos is set.
...
/sim/presets/parkpos needs to be empty, otherwise runway position is
ignored.
2012-04-01 13:06:39 +02:00
ThorstenB
f3a3b9f45f
Use correct initializer signal.
2012-03-25 10:14:37 +02:00
ThorstenB
b62c1c01b7
Avoid duplication of "findElementByName" function.
...
Now moved to common gui.nas.
2012-03-24 12:45:58 +01:00
ThorstenB
ac132a2ce5
Remove property listener when deleting dialog.
2012-03-24 10:45:42 +01:00
Anders Gidenstam
6e5b38aebf
Nasal/props.nas: Added missing var keywords.
2012-03-23 22:29:35 +01:00
Anders Gidenstam
aef778a99b
Nasal/aircraft.nas: Added missing var keywords.
2012-03-23 22:27:02 +01:00
Anders Gidenstam
b024c81233
Nasal/gui.nas: Added missing var-keywords.
2012-03-23 22:25:31 +01:00
ThorstenB
e282a1e6ed
fgdata/Nasal: avoid performance drop after sim reset/relocate
...
"/sim/signals/fdm-initialized" triggers _every_ time the FDM is reset,
so for every sim reset/relocate.
We need to uninstall the listeners after its first execution, or guard
certain parts of the initialization, to avoid starting multiple
"timer/update loops", or installing multiple property listeners.
Repeating "sim reset" often enough would eventually completely block/
overload the system.
2012-03-20 21:18:20 +01:00
ThorstenB
f03eedab48
#708 : reset engine list on FDM reset
...
Need to clear the engine list before appending a new set of engines.
Engine list was growing on every FDM reset, causing weird control effects
after (multiple) sim resets.
2012-03-15 20:23:45 +01:00
Torsten Dreyer
abce54aa2a
backward compatibility for /sim/auto-coordination
...
please see fg commit 5caa42af8ec6a8971aef37777640dbe449eda5cf
2012-03-13 21:07:39 +01:00
Gijs de Rooy
8e863bbd28
Allow shaders to be disabled/set through a commandline option.
...
Use --prop:/sim/rendering/shaders/quality-level=-1 to enable the custom
settings in the Shader Options dialog.
Apart from that the quality-level property will work as before (0 disables
all shaders, 5 puts all shaders to max.
2012-03-10 17:09:23 +01:00
Frederic Bouvier
ebc1002139
Sunrises 1.2 by Thorsten Renk
2012-03-08 23:22:27 +01:00
ThorstenB
1d222c06a8
#683 Nasal error with mibs/video assistant
2012-02-25 15:43:20 +01:00
Stuart Buchanan
4981aeb6f3
Remove redundant menu enable/disable for local_weather_tiles menu item.
2012-01-22 20:04:40 +00:00
ThorstenB
06f910c0f6
#611 : write-message-log nasal error
...
Also fix issues when disconnecting/reconnecting MP at run-time.
2012-01-22 12:42:57 +01:00
Gijs de Rooy
3200e957f8
Hide load and save options from help menu, as they are broken/disabled.
2012-01-19 22:02:09 +01:00
Torsten Dreyer
edbff6bd34
Refactor weather-utility.nas
...
A bug in weather-utility.nas caused constant computation
of wave parameters due to the fact that the wind speed
was ignored.
That code was ugly anyway, so it has been replaced by
property rules which don't create work for the nasal
garbage collector.
All required properties for the wave shader are now in
interpolator.xml, the snow-line computation lives in
metarinterpolator.xml
2012-01-19 00:05:48 +01:00
Stuart Buchanan
9973a8a417
Fixes to local weather requested by Thorsten RENK.
2012-01-13 14:50:36 +00:00
ThorstenB
a195da8676
Stop message loop when disconnecting MP server
...
Also update status of menu items.
2012-01-07 16:17:02 +01:00
ThorstenB
e3fabacfc5
#558 : weather utility, performance drop on sim reset
...
Do not install another set of listeners on _every_ sim reset.
Also improve performance by removing a listener for a property which is
written in _every_ loop anyway (don't waste another Nasal context).
(Do we really need a _Nasal_ loop running at full speed just to convert
a bunch of properties? It increases the load on the Nasal GC and
is unconditionally active, even if all shaders are disabled etc).
2012-01-07 09:23:26 +01:00
Frederic Bouvier
dfea2249b5
Correct fix for Local Weather 1.4
2012-01-05 09:47:26 +01:00
Stuart Buchanan
0d9d60eca7
Fix MP chat to work when MP not enabled from the command line.
2012-01-04 22:54:21 +00:00
Stuart Buchanan
34eb640a76
Further updates to the Multiplayer Settings dialog
...
- Now enabled even when no MP settings configured on command-line
- Add Server Status button to launch the MP Server status URL
- Minor layout cleanup.
2012-01-04 21:53:25 +00:00
Frederic Bouvier
56afb80358
Local Weather 1.4 by Thorsten Renk : fixes lots of graphical errors and transparency issues and provides a consistent GUI.
2012-01-03 20:21:34 +01:00
Stuart Buchanan
3fb129923c
Fix for issue 526 - Not possible to restart YASim aircraft after fuel starvation
2011-12-28 09:09:28 +00:00
James Turner
4bb602c2f1
fgdata changes for HUD cycling
2011-12-11 18:07:54 +00:00
Gijs de Rooy
bbb3f9682e
Issue #429 : help dialog and keyboard.xml descriptions now match the key-bindings.
2011-12-07 16:47:42 +01:00
Gijs de Rooy
f852529e56
Adjust snow line based on METAR. Snow level is only adjusted when METAR reports snow below the user set altitude.
2011-12-06 20:39:05 +01:00
Vivian Meazza
b0f871a1e4
Add vars
...
Signed-off-by: Vivian Meazza <vivian.meazza@lineone.net>
2011-12-02 21:09:20 +00:00
Vivian Meazza
022c0fe433
Used to "untie" properties used by shaders
...
Signed-off-by: Vivian Meazza <vivian.meazza@lineone.net>
2011-12-01 22:31:26 +00:00
ThorstenB
32c204fe00
Add system performance dialog.
2011-11-19 15:56:44 +01:00
Anders Gidenstam
d699b3fea1
mp_broadcast,scenery: Improved consistency for the shared state.
2011-10-07 23:49:11 +02:00
Anders Gidenstam
52b3ab04c3
Added support for sharing scenery events (e.g. opening hangar doors) over MP.
...
Set the property /scenery/share-events to true to enabled the feature.
2011-10-05 21:57:51 +02:00
ThorstenB
5acd6d4c04
Improve keyboard control for replay system.
...
Keys should also work when dialog is hidden (but replay is active).
2011-10-03 20:27:19 +02:00
ThorstenB
5392614331
Don't crash when tank property doesn't (yet) exist.
2011-09-25 16:21:10 +02:00
Frederic Bouvier
a2b26f8d59
Local Weather 1.36 by Thorsten Renk
2011-09-23 23:25:15 +02:00
Frederic Bouvier
928789a0d5
Local Weather 1.35 by Thorsten Renk
2011-09-23 23:22:19 +02:00
ThorstenB
9195b36005
#441 : overlay dialog must be reinitialized after reloading GUI
2011-09-18 12:36:40 +02:00
Mathias Froehlich
558c321f94
Fix problem with the A320 family not starting up correctly.
2011-09-08 19:34:15 +02:00
ThorstenB
1a9a589452
Add documentation and more config options to tyre-smoke effect.
...
Make vspeed/diff_norm configurable. Allow effect to be independent of
vspeed, so it works for all gear (after main gear touch down, vspeed is 0,
so smoke effects for nose-gear usually wouldn't work).
2011-09-04 19:16:39 +02:00
ThorstenB
8421d75cb9
Fix low-pass filter and adapt to speed-up factor.
...
Low-pass filter should not use real-time, but simulation time to filter
effects. Obey speed-up factor.
2011-09-04 19:16:38 +02:00
ThorstenB
2a66a01fed
Apply defaults to each tutorial separately
...
Configured step/exit intervals configured for one tutorial affected all
following tutorials.
2011-08-28 10:08:15 +02:00
ThorstenB
fb984bf8ce
Option to set screenshot directory.
2011-08-21 15:17:16 +02:00
ThorstenB
8e7d7012ce
Directory dialog
...
New directory dialog - just an option for the existing file dialog really.
2011-08-21 15:00:45 +02:00
Torsten Dreyer
7937b78c80
Adjust local weather updraft property name
2011-08-03 14:31:32 +02:00
Martin Spott
d13214ebe9
Revert "Add minor pathname correction."
...
This reverts commit edd708b075b35ef549bf919b689f9a0d58b0f25a.
2011-07-16 15:39:41 +02:00
Martin Spott
0ca0ee6ad2
Add minor pathname correction.
2011-07-16 00:02:25 +02:00
Martin Spott
9a71b2d234
Merge commit 'refs/merge-requests/107' of git://gitorious.org/fg/fgdata
2011-07-15 23:56:03 +02:00
Torsten Dreyer
2abec7404a
Remove i/I keybindings
...
Removing the currently unused keybindings for [Shift]I used
for cycling of HUD types. Also remove this from the help
dialog.
May be re-added for the next release, but currently there is
no HUD-type cycling implemented.
2011-07-12 23:24:32 +02:00
ThorstenB
0ece95127c
Thorsten Renk: local weather 1.18
...
fixes for a couple of issues, some improved textures/cloud model changes,
smooth instead of hard visibility transitions, updated documentation.
Also removed 'Test' entries from the menu.
(ThorstenB: Also cleaned-up Docs/ folder, moving local weather
documentation images to sub folder).
2011-07-03 23:39:01 +02:00
ThorstenB
a0256e47ed
Fixed parentheses when checking conditional view-name property.
...
Avoids stepping through invalid views.
2011-07-03 16:06:14 +02:00
ThorstenB
9c55acfb46
#351 : fix listener sequence for local weather
...
Module relied on one listener to be called before the other.
Join listeners to avoid dependencies.
2011-06-25 20:08:39 +02:00
Ryan Miller
0685d0127d
Animated jetways: Fix shift-click in the jetway editor not setting _edit to false on the current jetway
2011-06-23 17:35:35 -04:00
Ryan Miller
8254ae53bd
Animated jetways: Change editor STG function to use new Models/Airport/Jetway directory
2011-06-22 12:12:43 -04:00
Ryan Miller
b030c2239d
Animated jetways: Small fix for the editor not converting STG jetways correctly
2011-06-22 12:10:03 -04:00
Martin Spott
1f64676296
Ryan Miller: Get rid of no-op jetway XML files.
2011-06-18 01:33:57 +02:00
Ryan Miller
2cb19bc34e
(Animated jetways) Fix nil velocities in AI aircraft crashing the whole thing (previous commit fixed MP aircraft, not AI)
2011-06-16 14:46:29 -07:00
Ryan Miller
a6acba8a87
(Animated jetways) Move AI and MP connecting code to load loop, increase load loop frequency to 10 seconds, fix nil velocities in AI aircraft crashing the whole thing
2011-06-16 14:45:39 -07:00
Ryan Miller
3a5b53c0e3
(Animated jetways) Updated core files and jetway definition files to use relative elevations, moved menubar item to AI/ menu, "enabled" and "debug" settings are now saved over multiple sessions, core files are now part of a Nasal subsystem, use airline-specific model files, put less load on the loop by using an _active property for each jetway object
2011-06-15 20:52:45 -07:00
Curtis L. Olson
052ae33034
Merge branch 'master' of gitorious.org:fg/fgdata
2011-06-15 13:53:32 -05:00
Curtis L. Olson
fa4743be24
Add a display.tagformat member that defaults to "%s". This is useful for
...
aligning property names so the '=' sign matches column position.
2011-06-15 13:51:03 -05:00
ThorstenB
1bf8b99bc9
Adapted local weather package and menu to new submodule structure.
2011-06-13 22:27:44 +02:00
ThorstenB
aea57a9882
Moved local weather module to subdirectory.
2011-06-13 22:08:43 +02:00
ThorstenB
cfe528617c
Thorsten Renk: local weather addon 1.15
...
Local weather now capable of controling the new scattering and overcast
rendering parameters.
2011-06-13 21:57:21 +02:00
ThorstenB
539716828b
Added GUI/menu item for scenery download/update.
2011-06-13 20:40:46 +02:00
ThorstenB
04fb5b3066
Adapting to new screen-shot command
...
Success/error report is now automatically displayed by a listener.
2011-06-13 20:38:04 +02:00
ThorstenB
3e3ecb49e2
Revert "issue #127 : make screen shots work with OSG multi-threading"
...
This reverts commit 5106935b92ad31be69d4ef82ebb34305a658948e.
2011-06-13 00:58:26 +02:00
ThorstenB
b8eecab9cf
Introduce "PRESERVE" flag to protect properties on sim reset.
...
Protect values of some specific properties on sim-reset.
2011-06-12 20:40:11 +02:00
ThorstenB
f84ce36d90
Fixed issue with "unnamed view".
...
Do not show "unnamed views" (views have no name when they belong to
another aircraft).
2011-06-12 15:31:57 +02:00
ThorstenB
7c8558274a
Turn atc-chatter.nas into a separate submodule.
...
Moved atc-chatter.nas into subdirectory (file unmodified).
Load atc-chatter.nas on demand only.
2011-06-05 23:22:12 +02:00
Durk Talsma
210516d969
Merge branch 'master' of git@gitorious.org:fg/fgdata
2011-06-05 22:20:39 +02:00
Durk Talsma
d97172dbc4
Removal (hopefully temporarily) of the animated jetway code.
...
Motivation for removal: The current implementation is problematic due to hardcoded elevations, and shows some problems when the code is disabled. Additionally, the preferred sequence for committing material to ${FG_ROOT}/data/Models is to commit them to the scenemodels database, from where they are synced with fgdata/GIT.
2011-06-05 22:10:38 +02:00
ThorstenB
c3f8c1478a
tutorial submodule, part #2 : adapt script/GUI to load module on demand
...
tutorial.nas is now loaded (only) when "Start Tutorial" button is pressed.
2011-06-05 21:37:58 +02:00
ThorstenB
f3ff41d3d4
tutorial submodule, part #1 : move existing sources into subdirectory
...
(non-functional, moved original scripts only)
2011-06-05 21:36:24 +02:00
ThorstenB
910cda3fce
Tutorials: improve timing when repeating messages
...
Don't confuse user by repeating messages when he just fulfilled the
tutorial's step exit condition.
2011-06-04 14:14:49 +02:00
ThorstenB
f2d2b8e8b1
issue #281 : tutorial's view direction messed-up/unusable by outside views
...
When user switched to a different view mode (e.g. chase/helicopter/tower
view) before or during a tutorial, everything went wrong...
Need to control (save/restore/switch) the view number (view mode) during
tutorials. Also adds an option to explicitly change view mode during
a tutorial, i.e. tutorials can switch to tower view, chase view, ... now.
2011-06-03 00:39:05 +02:00
ThorstenB
f082300e20
Tutorial improvements
...
Make tutorial dialog a proper window, clean-up menu.
Show welcome message to new user when tutorial available.
Repeat current tutorial message, when no user progress.
2011-06-02 19:11:05 +02:00
Durk Talsma
ecfc088a4f
Merge commit 'refs/merge-requests/95' of git://gitorious.org/fg/fgdata into merge-requests/95
2011-06-02 09:26:11 +02:00
Ryan Miller
8dcbb39e0f
Remove incorrect jetway editor export message
2011-05-30 17:13:19 -07:00
Torsten Dreyer
bef8f1fc6e
Fix bug #280 . Allow setting of weather-scenario at runtime
...
Add a listener to /environment/weather-scenario to allow setting
the scenario at runtime. Need some cleanup of the global weather
dialog to remove duplicate code.
2011-05-30 17:21:31 +02:00
ThorstenB
b34be9cf92
issue #127 : make screen shots work with OSG multi-threading
...
Use listener to report success/error messages for screen shots
(depends on simgear+fgdata update!)
2011-05-28 23:22:34 +02:00
ThorstenB
ac46479d0a
Adjust balloon position on sim-reset
...
It's annoying when balloons appear exactly at the current a/c position
on sim reset, since the a/c gets knocked over etc.
(Balloon scenario still won't work properly after a sim-reset, so another
fix is required...).
2011-05-27 22:10:52 +02:00
Ryan Miller
96da518d8d
New animated jetway system; add support for EGKK, EHAM, KDEN, KLAS, KSFO, PANC, 717, AI 737, AI 744, AI MD-80
2011-05-26 18:10:32 -07:00
James Turner
d4fb116cd2
Nasal IO changes to work with new loadxml features
2011-05-25 21:27:07 +01:00
Frederic Bouvier
aa6680b4a6
Local Weather 1.1 by Thorsten Renk
2011-05-14 15:18:40 +02:00
Durk Talsma
4a8dba3af8
Merge commit 'refs/merge-requests/87' of git://gitorious.org/fg/fgdata into merge-requests/87
2011-04-21 08:26:37 +02:00
Ryan Miller
36c48caaf2
Added crossfeed valve class to aircraft.nas, extended math.nas with min(), max(), and avg()
2011-04-20 16:25:41 -07:00
Frederic Bouvier
d151a25e94
Local Weather 1.02 by Thorsten Renk
2011-04-19 22:55:25 +02:00
ThorstenB
ab1d790d3b
Rendering cache / ATC-chatter fix.
2011-04-03 18:19:03 +02:00
ThorstenB
ec43493e91
Use local Nasal vars. Run ATC chatter handler when feature enabled only.
2011-04-02 11:48:39 +02:00
ThorstenB
2f00f31935
Make sure only one g-force/redout handler instance is running
...
Enabling redout/compression separately started two handlers - instead of one.
2011-04-02 11:46:04 +02:00
ThorstenB
1f1c752316
Improve multiplayer chat, stop sending expired messages.
...
Only transmit messages for a few seconds instead of forever.
Also remove two obsolete variables.
2011-04-02 11:41:32 +02:00
ThorstenB
346b47cd5a
Don't create properties for ghost tanks.
2011-04-02 11:29:40 +02:00
Anders Gidenstam
2f79bdb473
Disable most loops when wildfire is disabled.
2011-04-01 21:21:35 +02:00
ThorstenB
7299d07dab
New option to display frame latency.
...
Better property to evaluate simulation performance than frame rate.
2011-03-28 00:24:32 +02:00
ThorstenB
c26de5ce41
Only run target-tracker-timer when feature is enabled.
2011-03-27 21:02:26 +02:00
ThorstenB
afaaf62e18
Fixed some file modes (not executable).
2011-03-27 21:01:43 +02:00
Frederic Bouvier
65c166c12c
Local Weather 1.0 by Thorsten Renk
2011-03-19 14:03:28 +01:00
Torsten Dreyer
3d3fa8131e
Fix rendering bug: no precipitation
...
Synchronize /sim/rendering/precipitation-enable to
/sim/rendering/precipitation-gui-enable and
/sim/rendering/precipitation-aircraft-enable on startup
2011-03-14 20:51:56 +01:00
Csaba Halasz
2753432b92
Added tyresmoke_system class to aircraft.nas
2011-02-15 15:55:57 +01:00
Torsten Dreyer
5da86c6471
Remove code now performed in TankProperties
2011-02-14 23:13:12 +01:00
Gijs de Rooy
5c4bdb4a1f
Revert adb57b8: screenshot directory dialog
2011-01-22 22:49:25 +01:00
Torsten Dreyer
2cf9732978
Add ctrl-z to the help dialog (reset visibility)
2011-01-19 20:02:53 +01:00
Torsten Dreyer
b43b53c977
Fix bug #253 , at least partially
...
make options
--wind=nnn@mm
--visibility
--visibility-miles
--ceiling
--turbulence
work again. These options now write properties in the
/environment/config/presets
branch. The values will be applied in the property-rules
in FGDATA/Environment/interpolator.xml
Corresponds to commit e86cecf4704a4bdcf43114245d8ac94adb1f1eef
in fg/next
2011-01-19 19:42:40 +01:00
Curtis L. Olson
fa26992660
Merge branch 'master' of gitorious.org:fg/fgdata
2011-01-19 10:27:22 -06:00
Curtis L. Olson
1f4371245b
Address Melchior's concern about view prediction depending on a particular
...
aircraft system, rather than "core" data.
Fix a long standing annoyance (for me anyway) when the fly-by-view is first
instantiated, it never put a point forward very far so the first transtion
came very quickly and abruptly. Improve the forward prediction based on
ground speed and time when the view is reset (or switched to.) I like this
a lot better personally.
2011-01-18 11:47:15 -06:00
Torsten Dreyer
cdb21a52e4
GlobalWeather: (better) support for weather-scenario
...
- handle /environment/weather-scenario property on startup
- try to detect predefined scenario on startup of global
weather dialog box and select the corresponding entry in
the scenario combo box.
2011-01-17 21:05:01 +01:00
Gijs de Rooy
692d9c3717
Add screenshot dialog, to select directory
2011-01-15 22:48:43 +01:00
Curtis L. Olson
d9d6d1ed12
Add a variant of the tanker request function that produces a tanker with
...
a more random (challenging to intercept) starting point and heading.
2011-01-13 16:36:57 -06:00
Frederic Bouvier
3ff6a53bf1
Local weather 0.92 by Thorsten Renk
2011-01-05 13:36:10 +01:00
Stuart Buchanan
467b4eef16
Add function to allow the binding of a menu item to be configured
...
through Nasal using a symbolic name.
Usage:
gui.menuBind("radio", "dialogs.Radio.open()");
2011-01-03 17:28:40 +00:00
Torsten Dreyer
819d7ab811
controls.startEngine: allow selection of engine(s)
2011-01-01 10:35:15 +01:00
Curtis L. Olson
8ed16a4de2
Project "fly-by" vantage point ahead based on ground track direction instead
...
of aircraft body heading. This works better when there is significant
cross wind or side slipping.
2010-12-31 15:31:04 -06:00
Anders Gidenstam
1181987bca
Nasal/IOrules: Allow the wildfire simulation to save its state.
2010-12-30 15:00:50 +01:00
Stuart Buchanan
16b7ffba05
Consistent Close and title bars for Fuel & Payload, Wildfire and Route Manager dialogs.
2010-12-28 19:51:34 +00:00
ThorstenB
adbf344559
MP pilot list: fixed window behaviour and "--fg-aircraft" support.
...
Use new "model-installed" property instead of searching directories
directly - which didn't work with new "--fg-aircraft" dirs.
Also, pilot list now keeps its position. Avoid jumping to top-right
corner when updating.
2010-11-13 17:38:37 +01:00
Torsten Dreyer
b4e885e7fd
Obsolete startup.nas
...
logic from startup.nas is now handled during the initialization
sequence of the idle-loop.
2010-11-10 22:24:51 +01:00
Anders Gidenstam
d373245285
Nasal/controls.nas: Added per-engine axis handlers.
2010-10-30 13:26:55 +02:00
James Turner
c7560f61b4
Switch over to v2 HUD by default, v1 HUD is no longer used.
2010-10-29 00:56:42 +01:00
Frederic Bouvier
758f691a1c
Local Weather version 0.9 by Thorsten Renk
2010-10-26 21:42:36 +02:00
James Turner
0425ec0589
Torsten Brehm: catch NaNs in pilot list gui, and report only once per call-sign.
2010-10-16 17:31:19 +01:00
Torsten Dreyer
e7e8ac84f2
don't use printlog before nasal-dir-initialized
...
Thanks, Anders.
2010-10-13 20:46:31 +02:00
Torsten Dreyer
c6b2df2a6c
use printlog for "init contrail" and downgrade to debug
2010-10-11 21:29:01 +02:00
Torsten Dreyer
6ba8808039
Use printlog for "*** NEW LOCATION ***" and downgrade to info
2010-10-11 21:23:57 +02:00
Anders Gidenstam
66746acbab
Updated mp_broadcast.nas: Added missing var keywords.
2010-10-09 21:17:10 +02:00
Torsten Dreyer
0fcc99d9a3
startup.nas: just check for a valid METAR
...
and don't care if it's from realwx or static input. There is still
a timing issue, probably we should wait for a valid METAR
if realwx is enabled.
2010-10-07 17:59:38 +02:00
Anders Gidenstam
ee5eceb3da
Updated mp_broadcast.nas: Added missing var keyword.
2010-10-03 19:25:36 +02:00
Torsten Dreyer
351114b999
Fix line endings
2010-09-28 08:58:02 +02:00
Stuart Buchanan
7ee83e19df
Modify chat key handler, so excessive backspaces doesn't enable the autopilot.
2010-09-27 21:13:30 +01:00
Torsten Dreyer
5edf6cae9b
reflect recent weather changes in startup.nas
2010-09-26 17:07:24 +02:00
Frederic Bouvier
a0803ad074
Local Weather v0.85 by Thorsten Renk
2010-09-10 08:52:21 +02:00
Anders Gidenstam
c3617a9cd6
Updated Wildfire:
...
- Removed the reference to null.ac in wildfire.xml.
- Rearranged the animation order in the 3d model xml files.
- Fixed materials in the AC3D files.
- Separated 3d model handling from the cellular automaton.
2010-09-04 00:39:51 +02:00
BARANGER Emmanuel
6837a30398
- a small script of Melchior that can be improved (Start from a seaport with a seaplane).
2010-09-02 12:10:29 +02:00
Vivian Meazza
311e44c78c
Merge branch 'master' of \New Git\fgdata
2010-08-29 21:29:37 +01:00
Vivian Meazza
7b1387d521
Add impacts
...
Signed-off-by: Vivian Meazza <vivian.meazza@lineone.net>
2010-08-29 20:45:03 +01:00
James Turner
8fd716f2ca
Extend IORules system to permit aircraft dirs.
2010-08-16 11:08:24 +01:00
James Turner
83c9e8b157
Change Nasal to use relative not absolute data paths
...
(requires current FG git)
2010-08-15 11:27:15 +01:00
Vivian Meazza
be53f07e7a
Add script to calculate contrail temperature based on an approximation to the "Appleman Chart"
...
Signed-off-by: Vivian Meazza <vivian.meazza@lineone.net>
2010-08-04 23:22:38 +01:00
Frederic Bouvier
1e9a6c4cdf
Change edge_bias asked by Thorsten ( http://www.flightgear.org/forums/viewtopic.php?f=5&t=7358&p=89159#p89204 )
2010-08-03 19:20:20 +02:00
Frederic Bouvier
4dd0ef9a08
Local weather v0.81 by Thorsten Renk
2010-08-03 08:18:14 +02:00
Anders Gidenstam
229ee23103
Limit the rate a participant can send wildfire ignite events at.
2010-07-09 15:05:51 +02:00
Anders Gidenstam
4711f719ce
Make the mp_broadcast BroadcastChannel honour the ignore list.
2010-07-09 13:39:44 +02:00
Vivian Meazza
74df9856d7
Update
...
Signed-off-by: Vivian Meazza <vivian.meazza@lineone.net>
2010-07-05 13:25:53 +01:00
Stuart Buchanan
bb9e21f6e6
Revert "Initial check-in of MP groups function"
...
This reverts commit e9113980449fe50eb186a3b2e26bc88dc613d841.
2010-06-27 23:23:56 +01:00
Stuart Buchanan
d593c6a80a
Merge branch 'master' of gitorious.org:fg/fgdata
2010-06-18 21:14:42 +01:00
Stuart Buchanan
fee08cca57
Initial check-in of MP groups function
2010-06-18 21:13:47 +01:00
Frederic Bouvier
652070f265
Thorsten Renk: local weather 0.7
2010-06-15 20:54:44 +02:00
Vivian Meazza
4489d48e67
Merge branch 'master' of gitorious.org:fg/fgdata into Work
2010-06-04 23:24:41 +01:00
Vivian Meazza
8a4d78a7bb
Remove unwanted files
...
Signed-off-by: Vivian Meazza <vivian.meazza@lineone.net>
2010-06-04 23:05:27 +01:00
Frederic Bouvier
eb47297d94
Thorsten Renk: local weather 0.61
2010-06-04 23:05:32 +02:00
Vivian Meazza
2c7075a9b0
Minor updates
...
Signed-off-by: Vivian Meazza <vivian.meazza@lineone.net>
2010-06-04 11:14:33 +01:00
Stuart Buchanan
b53c16db1d
Update pilot list to use ignore property for AI objects
2010-05-21 22:09:38 +01:00
vmmeazza
a7ac90bac7
Bugfix
2010-04-25 21:05:30 +00:00
vmmeazza
9bd6191854
Add layered clouds
2010-04-12 20:51:46 +00:00
torsten
31df14b691
Initial import of the balloon scenario from gooneybird
2010-04-07 14:15:24 +00:00
vmmeazza
391b46612b
Update by Anders Gidenstein - an improved version of the buffer
2010-02-13 09:40:53 +00:00
vmmeazza
50adc28ff7
Update by Anders Gidenstein to prevent scripts producing the error:
...
"WARNING: PUI: Too many live puInterfaces open at once!"
due to multiple window/dialog updates during the same frame.
This error has been reported to cause FG to crash, but this cannot be
reliably reproduced.
2010-02-12 23:35:22 +00:00
torsten
a18db246f0
Disable the autopilot menu item if any of
...
KAP140
CENTURYIIB
CENTURYIII
autopilot is detected or the property
/autopilot/hide-menu
is present
2010-01-04 14:06:30 +00:00
ehofman
9c9ead857b
match sound code changes
2009-11-30 12:02:55 +00:00
torsten
e9bb24b8a2
Add the autovisibility functionality for the menubar.
...
If /sim/menubar/autovisibility/enabled is true, show the menubar when the mouse hits the upper edge of the window and hide the menubar on click outside a pui element.
2009-11-16 20:40:15 +00:00
vmmeazza
5cb130c313
Change tyresmoke parameter - by Heiko Schultz
2009-10-22 20:20:30 +00:00
sydadams
91c90c0679
added the view zoom popup to the enable property. Might
...
need it's own menu entry
2009-10-15 05:21:54 +00:00
torsten
823636811f
Anders Gidenstam:
...
Here is a new diff for the MP-chat ignore feature since multiplayer.nas
has been updated
2009-10-11 18:40:55 +00:00
torsten
862730999e
Anders Gidenstam:
...
I suspect that work around for the /ai/models/model-added listener problem
(i.e. that the listener is called in the middle of the process of
adding/removing a MP entry) isn't the right way to solve the problem.
The attached patch instead defer processing of the added/removed
MP entries in the multiplayer Nasal module until the next time the Nasal
subsystem is executed. This should prevent the problematic execution of
the Nasal listener callback in the middle of C++ MP code.
2009-10-11 11:57:58 +00:00
sydadams
a48eb09c7d
Updated the view popup , and restored the original indentation
2009-10-09 00:21:32 +00:00
sydadams
4dbe45348c
added a /sim/view-name-popup bool to enable / disable the viewname popup ... enabled by default
2009-10-08 02:21:18 +00:00
torsten
24204e2e75
don't ignore the latest multiplayer pilot
2009-09-05 20:22:14 +00:00
ehofman
bc05b9e26e
allow writing to the temp directory (for unix at least)
2009-06-17 15:38:29 +00:00
mfranz
bbf1004629
Anders GIDENSTAM: Fix send to self
2009-06-03 17:19:17 +00:00
mfranz
a13361766b
initialize view manager at nasal-dir-initialized sig (was: fdm-initialized)
2009-05-27 16:24:17 +00:00
mfranz
51ca35061d
add documentation about geo.elevation()'s optional arg
2009-05-19 20:02:43 +00:00
mfranz
e3743f2ae7
prop_key_handler: improve search function; update comments
2009-05-06 20:37:40 +00:00
mfranz
3a6315031e
door.setpos(): stop movement before setting absolute value
...
timer: stop and save/restore on reset
2009-05-06 18:49:06 +00:00
mfranz
b71c0c580e
add signum function sgn(); consistent use of braces
2009-05-05 18:34:53 +00:00
mfranz
233a9d27f4
- defined(): also consider the global namespace (as the comment implies)
...
- move local namespace container up
2009-05-05 18:33:43 +00:00
torsten
28018bd083
get rid of pushback.nas by instantiating the aircraft.door when opening the dialog.
2009-05-05 14:17:36 +00:00
abory
6a66414638
- Now the pushback "door" will be created only if /sim/model/pushback has
...
already been created by the modeler via the <aircraft>-set.xml file.
- Varified the code, removed the class structure, tests the nasal dir
initialization first.
- As part of the Nasal dir, the script must *not* be declared in the
<aircraft>-set.xml file.
2009-05-04 21:40:08 +00:00
abory
2bb2de3645
- Oooops, sorry for that.
2009-05-04 11:12:52 +00:00
abory
f5601ebf3a
- Ooops, sorry for that.
2009-05-04 11:03:39 +00:00
abory
36bad881f0
- Gijs de Rooy: Generic pushback.
2009-05-04 10:58:27 +00:00
mfranz
35d506bce1
isnan: shorter & faster
2009-04-24 08:12:21 +00:00
vmmeazza
9a2e19c234
Anders - Bugfix
2009-04-13 21:41:52 +00:00
mfranz
894003a865
tanker: avoid cloud layers; drop identity.init
2009-03-30 20:12:57 +00:00
mfranz
834afe5aa7
make file reloadable at runtime; minor fixes; cleanup
2009-03-29 08:04:35 +00:00
mfranz
715fec092b
add callsign to warning message, cleanup
2009-03-25 17:53:40 +00:00
mfranz
d1df1132c6
add tangens function
2009-03-25 17:52:43 +00:00
mfranz
7ef387cc0a
fly refueling pattern (leg length 50 nm)
2009-03-25 17:47:56 +00:00
mfranz
ecd8c1b71f
make model-not-installed message a little less noisy
2009-03-23 21:24:41 +00:00
mfranz
53e733d425
new isnan() that doesn't create a NaN itself
2009-03-21 18:17:59 +00:00
mfranz
7ee14f044c
fix removal of data entries if channel is used elsewhere
2009-03-20 11:08:09 +00:00
mfranz
2d4d0c81cc
fix comment
2009-03-19 20:06:58 +00:00
mfranz
16baea26b4
- vary callsign and tacan channel; use free AI id
...
- make update loop faster
- fix reinit listener
2009-03-19 16:44:12 +00:00
mfranz
fc9b2dd2a5
- geo.elevation: make intersection vector origin's altitude configurable
...
to allow measuring terrain elevation under solid objects
- coding style unification
2009-03-18 18:26:30 +00:00
mfranz
020e495197
... but without debug message. :-)
2009-03-18 13:46:57 +00:00
mfranz
080432cd17
- use new aircraft.nas functions: kias_to_ktas(), wind_speed_from()
...
- export radar values: bearing-deg, elevation-deg, range-nm
2009-03-18 13:46:07 +00:00
mfranz
dafeb03bf1
add simple wind_speed_from() function, and Jean PELLOTIER's not-so-simple
...
kias_to_ktas() function
2009-03-18 13:13:15 +00:00
mfranz
bd1c719d6f
make tanker appear on the radar
2009-03-17 22:07:43 +00:00
mfranz
abb13ca903
- make sure /systems/refuel/ exists
...
- cleanup
2009-03-15 20:19:17 +00:00
mfranz
dc7e8577d4
- put tanker nearer
...
- allow multiple instances
2009-03-15 19:57:13 +00:00
mfranz
5c41d1a99b
allow aar-equipped aircraft to request a tanker everywhere without scenario
2009-03-15 16:13:55 +00:00
mfranz
5237feb527
window.write: turn plain numbers into strings
2009-03-15 15:23:00 +00:00
mfranz
d6e96199eb
use controls.startEngine(0) for starter release (easier to override)
2009-03-14 20:56:06 +00:00
mfranz
2618b98b88
model: simplification using the new values() function
2009-02-16 23:35:54 +00:00
mfranz
1bf00fbc92
generally allow *.log files under /home/m/.fgfs
2009-02-16 15:48:02 +00:00
mfranz
315d48910a
message log: don't show seconds; new header/footer; minor improvements
2009-02-16 15:38:47 +00:00
mfranz
6a6861a5ff
mp log: use real time
2009-02-15 22:52:22 +00:00
mfranz
cf88f5e8a4
remove is{dir,reg,lnk,sock,fifo,blk,chr}. The vector returned by io.stat()
...
does now contain the type in element 11.
2009-02-15 21:08:55 +00:00
mfranz
fed30b2f05
io.nas: add deprecation warning to io.is{dir,fifo,lnk,...}
2009-02-15 18:26:20 +00:00
mfranz
9b8f29fdfe
use local hash (again) to store last messages per callsign
2009-02-15 17:50:13 +00:00
mfranz
b465bd27a8
--prop:sim/multiplay/write-message-log=1 enables logging of MP messages
...
to $FG_HOME/mp-messages.log
2009-02-15 17:36:47 +00:00
mfranz
efaa3d545d
- simplification (multiplayer.model does a lot of the checks already)
...
- write to /sim/messages/mp-plane (rather than ai-plane)
- screen.nas: better color?
2009-02-15 15:48:38 +00:00
mfranz
c77af3c4b6
map /sim/messages/mp-plane to screen/voice
2009-02-15 15:10:47 +00:00
mfranz
8f5304ad90
add values() function as a counterpiece to keys() (see Perl)
2009-02-15 14:13:49 +00:00
stuart
dfc22cf009
Use initNode for safe, effective relief from code bloat.
2009-02-12 21:14:54 +00:00
stuart
72cc845a63
Remove redundant (and ugly) set1 function
2009-02-12 20:32:04 +00:00
stuart
a0a493b8ce
Failure manager. Based on work by Erobo and John DENKER.
2009-02-12 20:24:06 +00:00
mfranz
824cff9192
comment out isnan()
...
It conflicts with Jester's debugging setup, and Andy says there should be
no NaN in the first place. This is a bug that needs to get fixed. Just
enable isnan() if you want to detect NaNs in the meantime. (The MP system
creates them ATM. The property getters shall turn them into nil.)
2009-02-12 16:59:03 +00:00
mfranz
a9afecf74b
debug.error: rename to warn, reduce default caller skip, documentation
2009-02-09 14:29:43 +00:00
mfranz
747d9dcbde
debug mode: fix slice
2009-02-09 00:24:23 +00:00
mfranz
6495f062d3
var++
2009-02-08 21:58:31 +00:00
mfranz
4757d49c0c
debug mode: add hint for why the write operation probably failed
2009-02-08 21:16:28 +00:00
mfranz
04511dbc8d
--prop:debug=1 enables a debug mode where some functions generate warnings.
...
setprop(), props.Node.set{,Int,Bool,Double}Value() complain if they couldn't
write, e.g. because the target property is write protected, or doesn't have
a tied setter function.
2009-02-08 20:46:55 +00:00
mfranz
a1c1018aa2
Anders GIDENSTAM: adapt for unified tank level property (and do it right :-)
2009-02-06 23:14:49 +00:00
sydadams
22b9c908a9
Update jsb aircraft to use the changed tank/level-lbs property
2009-02-06 22:56:00 +00:00
mfranz
1d783e03bb
remove debug.exit(); add debug.isnan()
...
- exit was only justified at times where fgcommand() needed an explicit
node statement, which made using it a bit clumsy. Nowadays that's only
fgcommand("exit"), which is as good as debug.exit() was.
- isnan() is really only for debugging and, thus, not in the global
namespace. Nasal code should never generate NaNs (though it's easy:
var nan = 1/0; There! :-), and NaNs imported from the C++ side (tied
properties!) should get fixed there. IOW: routine checks for nan in
Nasal can only be temporary hacks/debugging measures.
2009-02-06 14:41:13 +00:00
mfranz
1d50d3c086
dialog: show unavailable entries orange; cleanup
2009-02-06 12:03:31 +00:00
mfranz
540b9368fe
multiplayer.model: more containers, more data, variable renaming,
...
temporarily catching error exceptions, colored missing-ac message ...
2009-02-04 21:47:19 +00:00
mfranz
158c7ea800
- check for availability of MP models (add 'available' member)
...
- display "??? foo" if "foo" isn't available on the system
- make sure x/y/z are never nil (I think I had such a case)
2009-02-03 16:15:37 +00:00
mfranz
7985e6e984
model_view: add some orientation parameters
2009-02-01 21:59:41 +00:00
mfranz
afe8de52ab
- faster sorting
...
- update loop fix
2009-02-01 01:58:15 +00:00
mfranz
a644007c67
disabling the dialog in screenshots is nice in theory, but doesn't really work
2009-01-31 22:01:42 +00:00
mfranz
9fdec57110
dialog: don't start multiple loops
2009-01-31 21:53:54 +00:00
mfranz
ab1e00a81e
- re-open after gui-reinit
...
- only update once per sec
- cosmetics
2009-01-31 21:22:18 +00:00
mfranz
3cf6667328
gahh ... s/setlistener/_setlistener/
2009-01-31 20:29:20 +00:00
mfranz
8bb50c1871
model_view_handler: use multiplayer.model + add selection popup
2009-01-31 19:30:31 +00:00
mfranz
65e4b71406
factor the MP aircraft monitoring code out of the dialog class and let
...
the dialog use it. Other services need the same functionality and it
should only be done once.
2009-01-31 17:15:48 +00:00
mfranz
82d4864c24
model_view: remove stale/invalid entries
2009-01-31 10:24:08 +00:00
mfranz
9927e31504
- use "var" keywords everywhere
...
- bail out if there's no autopilot at all
2009-01-30 21:24:59 +00:00
mfranz
e31acedcfa
model_view: make it more reliable
2009-01-30 15:22:17 +00:00
mfranz
db1fcf2949
model_view: remove experimental mouse handling; cleanup
2009-01-30 12:05:29 +00:00
mfranz
cf69b0d01b
model_view: ignore AI models for now (make that configurable?)
2009-01-30 00:16:14 +00:00
mfranz
6aa74d2e7a
add model-view: switch through all AI/MP models via dialog in bottom/left corner
2009-01-29 23:57:57 +00:00
mfranz
c697394b1c
strip \n from own chat messages (again :-)
2009-01-27 20:12:19 +00:00
mfranz
9957c0a6e1
add eXtended isstring: isxstring(), which also applies to \n
2009-01-27 19:27:21 +00:00
mfranz
fedd64d89a
optimization & cleanup & var keyword:
...
- use find() instead of string.match() (way faster!)
- add a missing var keyword
- don't store old messages in a hash, but only store the respective last
message in the model's multiplayer branch
- keep history \n-trimmed (instead of removing \n only when concatenating)
2009-01-27 16:55:46 +00:00
mfranz
14a928f391
trim: allow to specify alternative trim class function
2009-01-27 01:42:46 +00:00
mfranz
9d4d61e2e8
don't close the dialog on Esc (Jester was right: that's annoying :-)
2009-01-25 15:18:51 +00:00
mfranz
2541ad8e30
All elements of a --prop:display expression containing a percent sign are
...
interpreted as number format. (They couldn't be valid property paths anyway.)
If there's more than one such element, then the last one counts.
--prop:display=%.2g,velocities/airspeed-kt,position/altitude-ft
2009-01-25 00:27:12 +00:00
mfranz
8d62bc2b0f
Anders GIDENSTAM: center dialog and print report only when there was a fire
2009-01-18 16:15:02 +00:00
mfranz
1fe5ace8b5
Anders GIDENSTAM: wildfire (read $FG_ROOT/Models/Effects/Wildfire/README)
2009-01-18 15:43:08 +00:00
mfranz
e8484502da
s/set_lonlat/set_latlon/
2009-01-15 00:39:51 +00:00
mfranz
64a22469ab
s/hdg/brg/
2009-01-12 21:50:43 +00:00
mfranz
c31ab0ea96
showHelpDialog(): leave some margin for resizing
2009-01-12 12:27:41 +00:00
mfranz
1fc7581f77
add symbols for new cursors
2009-01-11 15:04:55 +00:00
mfranz
e96322b351
OverlaySelector: don't choke if there are no options
2009-01-11 02:42:33 +00:00
mfranz
198d1cb60f
make dialog resizable with Ctrl-dragging
2009-01-10 22:31:30 +00:00
curt
278b0a7262
This should never really have been in the central nasal area.
2009-01-03 01:23:47 +00:00
mfranz
aff4cacf70
... and allow to specify several paths separated with comma. Of course,
...
multiple usage of --prop:display[*]=... is also supported.
2008-12-23 10:15:12 +00:00
mfranz
087494abf5
add some documentation about the property display
2008-12-23 10:03:26 +00:00
mfranz
bab238d58b
string(): make zero padding work if arg is 0
2008-12-22 01:50:48 +00:00
mfranz
58897fb5f4
revert init signal change -- better fix the real problem
2008-12-19 20:52:22 +00:00
mfranz
305cac01f3
use a more reliable property to detect real-weather-fetch
2008-12-19 13:50:44 +00:00
mfranz
8fc95fdde1
- add geo.viewer_position()
...
- make geo.{aircraft,click}_position() a bit faster
- no longer import the math functions (wasn't worth it)
2008-12-19 13:41:25 +00:00
mfranz
2d37f6c60b
- remove menu greying out (there's no such entry any more)
...
- start dynamic view at fdm-initialized to avoid nasal errors (math.cos)
2008-12-18 13:05:56 +00:00
mfranz
5df46f3e5c
- add controls.wingsDown() wrapper
...
- carrier-bindings.xml: remove trailing spaces & add some blanks
2008-12-17 18:42:41 +00:00