1
0
Fork 0

add some documentation about the property display

This commit is contained in:
mfranz 2008-12-23 10:03:26 +00:00
parent a539007e3b
commit 087494abf5

View file

@ -369,6 +369,11 @@ var log = nil;
var property_display = nil;
var controls = nil;
# Shift-click in the property browser adds the selected property to the property display
# Shift-Alt-click adds all children of the selected property to the property display
# Shift-Ctrl-click removes all properties from the display
#
_setlistener("/sim/signals/nasal-dir-initialized", func {
property_display = display.new(5, -25);
listener.display = setlistener("/sim/gui/dialogs/property-browser/selected", func(n) {
@ -404,6 +409,10 @@ _setlistener("/sim/signals/nasal-dir-initialized", func {
});
# --prop:display=/sim/frame-rate ... adds this property to the property display
# --prop:display=/position/ ... adds all properties under /position/ (ends with slash!)
#
_setlistener("/sim/signals/fdm-initialized", func {
foreach (var n; props.globals.getChildren("display")) {
var prop = n.getValue();