Explicitly enable button-down behavior in scripts

This commit is contained in:
David Rowe 2016-03-17 11:49:49 +13:00
parent 004a694741
commit 62b24e6626
4 changed files with 11 additions and 1 deletions

View file

@ -71,6 +71,7 @@ var toolBar = (function() {
height: toolHeight,
alpha: 0.9,
visible: true,
showButtonDown: true
});
toolBar.showTool(browseDirectoryButton, true);

View file

@ -215,6 +215,7 @@ var toolBar = (function() {
width: toolWidth,
height: toolHeight,
alpha: 0.9,
showButtonDown: true,
visible: false
});
@ -229,6 +230,7 @@ var toolBar = (function() {
width: toolWidth,
height: toolHeight,
alpha: 0.9,
showButtonDown: true,
visible: false
});
@ -243,6 +245,7 @@ var toolBar = (function() {
width: toolWidth,
height: toolHeight,
alpha: 0.9,
showButtonDown: true,
visible: false
});
@ -257,6 +260,7 @@ var toolBar = (function() {
width: toolWidth,
height: toolHeight,
alpha: 0.9,
showButtonDown: true,
visible: false
});
@ -271,6 +275,7 @@ var toolBar = (function() {
width: toolWidth,
height: toolHeight,
alpha: 0.9,
showButtonDown: true,
visible: false
});
@ -285,6 +290,7 @@ var toolBar = (function() {
width: toolWidth,
height: toolHeight,
alpha: 0.9,
showButtonDown: true,
visible: false
});
@ -299,6 +305,7 @@ var toolBar = (function() {
width: toolWidth,
height: toolHeight,
alpha: 0.9,
showButtonDown: true,
visible: false
});
@ -313,6 +320,7 @@ var toolBar = (function() {
width: toolWidth,
height: toolHeight,
alpha: 0.9,
showButtonDown: true,
visible: false
});

View file

@ -126,7 +126,7 @@ Tool = function(properties, selectable, selected) { // selectable and selected a
if (update) {
if (selectable) {
this.toggle();
} else {
} else if (properties.showButtonDown) {
this.buttonDown(true);
}
}

View file

@ -76,6 +76,7 @@ var toolBar = (function() {
height: toolHeight,
alpha: 0.9,
visible: true,
showButtonDown: true
});
toolBar.showTool(browseMarketplaceButton, true);