1
0
Fork 0

screen.nas: display option (final version)

- use --prop:display=fdm/jsbsim/fcs   to display this node only
- use --prop:display=fdm/jsbsim/fcs/  to display this node's children
This commit is contained in:
mfranz 2008-08-05 12:20:27 +00:00
parent 2823009955
commit f0463b345f

View file

@ -384,8 +384,13 @@ _setlistener("/sim/signals/nasal-dir-initialized", func {
} }
}); });
foreach (var n; props.globals.getChildren("display")) foreach (var n; props.globals.getChildren("display")) {
property_display.add(n.getValue()); var prop = n.getValue();
if (size(prop) and prop[-1] == `/`)
property_display.add(props.globals.getNode(prop, 1).getChildren());
else
property_display.add(prop);
}
props.globals.removeChildren("display"); props.globals.removeChildren("display");
setlistener("/sim/gui/current-style", func { setlistener("/sim/gui/current-style", func {