1
0
Fork 0

added a /sim/view-name-popup bool to enable / disable the viewname popup ... enabled by default

This commit is contained in:
sydadams 2009-10-08 02:21:18 +00:00
parent a2a0534aab
commit 4dbe45348c

View file

@ -6,7 +6,7 @@
var index = nil; # current view index var index = nil; # current view index
var views = nil; # list of all view branches (/sim/view[n]) as props.Node var views = nil; # list of all view branches (/sim/view[n]) as props.Node
var current = nil; # current view branch (e.g. /sim/view[1]) as props.Node var current = nil; # current view branch (e.g. /sim/view[1]) as props.Node
var view_popup = props.globals.initNode("/sim/view-name-popup",1,"BOOL");
var hasmember = func(class, member) { var hasmember = func(class, member) {
if (contains(class, member)) if (contains(class, member))
@ -104,7 +104,7 @@ var stepView = func(step, force = 0) {
setprop("/sim/current-view/view-number", n); setprop("/sim/current-view/view-number", n);
# And pop up a nice reminder # And pop up a nice reminder
gui.popupTip(views[n].getNode("name").getValue()); if (view_popup.getValue()) gui.popupTip(views[n].getNode("name").getValue());
} }
## ##