All of the above is still true, but now I turned the property
display dialog into a regular class, so you can also create
your own temporary displays for development purposes. For
example, to show a list of live-updated properties (separate
from the global one described before), this is all you need:

  var display = screen.display.new(500, -100);
  display.setcolor(1, 0, 1);
  display.add("/position/latitude-deg", "/position/longitude-deg");

Or, just

  screen.display.new(-300, -1).add("/sim/time/gmt-string");

to show the time in the upper right corner. Or what about
showing everything under "/position" in red?

  var pos = props.globals.getNode("/position");
  screen.display.new(-300, -50).setcolor(1, 0, 0).add(pos.getChildren());

The displays are now by default updated 10 times per second.
You can drag a dialog on its left edge -- and only there. Most
of the dialog is transparent for mouse clicks, so as not to disturb
interaction with hotspots/terrain clicks.

m.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft 
Defy all challenges. Microsoft(R) Visual Studio 2008. 
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to