1
0
Fork 0
Commit graph

1056 commits

Author SHA1 Message Date
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