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:
parent
2823009955
commit
f0463b345f
1 changed files with 7 additions and 2 deletions
|
@ -384,8 +384,13 @@ _setlistener("/sim/signals/nasal-dir-initialized", func {
|
|||
}
|
||||
});
|
||||
|
||||
foreach (var n; props.globals.getChildren("display"))
|
||||
property_display.add(n.getValue());
|
||||
foreach (var n; props.globals.getChildren("display")) {
|
||||
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");
|
||||
|
||||
setlistener("/sim/gui/current-style", func {
|
||||
|
|
Loading…
Add table
Reference in a new issue