s/show_widgets/enable_widgets/ (the function doesn't show anything)
This commit is contained in:
parent
c404626aa8
commit
2040b96b4f
3 changed files with 5 additions and 5 deletions
|
@ -436,11 +436,11 @@ var dialog_update = func(dialog, objects...) {
|
|||
|
||||
##
|
||||
# Searches a dialog tree for widgets with a particular <name> entry and
|
||||
# sets their <hide> according to "show".
|
||||
# sets their <hide> flag according to "show".
|
||||
#
|
||||
var show_widgets = func(node, name, show = 1) {
|
||||
var enable_widgets = func(node, name, show = 1) {
|
||||
foreach (var n; node.getChildren())
|
||||
show_widgets(n, name, show);
|
||||
enable_widgets(n, name, show);
|
||||
if ((var n = node.getNode("name")) != nil and n.getValue() == name)
|
||||
node.getNode("hide", 1).setBoolValue(!show);
|
||||
}
|
||||
|
|
|
@ -170,7 +170,7 @@
|
|||
|
||||
<nasal>
|
||||
<open>
|
||||
gui.show_widgets(cmdarg(), "devel-stuff", getprop("/sim/gui/devel-widgets"));
|
||||
gui.enable_widgets(cmdarg(), "devel-stuff", getprop("/sim/gui/devel-widgets"));
|
||||
</open>
|
||||
</nasal>
|
||||
</PropertyList>
|
||||
|
|
|
@ -298,7 +298,7 @@
|
|||
|
||||
<nasal>
|
||||
<open>
|
||||
gui.show_widgets(cmdarg(), "shadows-debug", getprop("/sim/gui/devel-widgets"));
|
||||
gui.enable_widgets(cmdarg(), "shadows-debug", getprop("/sim/gui/devel-widgets"));
|
||||
</open>
|
||||
</nasal>
|
||||
</PropertyList>
|
||||
|
|
Loading…
Add table
Reference in a new issue