added a /sim/view-name-popup bool to enable / disable the viewname popup ... enabled by default
This commit is contained in:
parent
a2a0534aab
commit
4dbe45348c
1 changed files with 371 additions and 371 deletions
|
@ -6,7 +6,7 @@
|
|||
var index = nil; # current view index
|
||||
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 view_popup = props.globals.initNode("/sim/view-name-popup",1,"BOOL");
|
||||
|
||||
var hasmember = func(class, member) {
|
||||
if (contains(class, member))
|
||||
|
@ -104,7 +104,7 @@ var stepView = func(step, force = 0) {
|
|||
setprop("/sim/current-view/view-number", n);
|
||||
|
||||
# And pop up a nice reminder
|
||||
gui.popupTip(views[n].getNode("name").getValue());
|
||||
if (view_popup.getValue()) gui.popupTip(views[n].getNode("name").getValue());
|
||||
}
|
||||
|
||||
##
|
||||
|
|
Loading…
Add table
Reference in a new issue