1
0
Fork 0
Commit graph

950 commits

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