replayfalsevboxhbox11
# Populate the view combo box with a list of the available views
var combo = cmdarg().getChildren("group")[1].getNode("combo");
combo.removeChildren("value");
var current_view = getprop("/sim/current-view/view-number");
var i = 0;
foreach (var v; view.views) {
var name = "Unnamed view " ~ v.getIndex();
if (v.getNode("name") != nil) {
name = v.getNode("name").getValue();
}
# Pre-populate the combo box selected value
if (v.getIndex() == current_view) {
setprop("/sim/replay/view-name", name);
}
combo.getNode("value[" ~ i ~ "]", 1).setValue(name);
i = i + 1;
}
table0