added 'volume' and 'balance' selectors to the OF block

pull/89/head
jmoenig 2019-04-04 15:32:36 +02:00
rodzic 3adfec9bed
commit 12c4a994fa
3 zmienionych plików z 10 dodań i 1 usunięć

Wyświetl plik

@ -61,6 +61,7 @@
* Objects, Store: renamed "pan left/right" to "balance"
* updated German translation
* moved "stage width" and "stage height" into attribute menu of the OF block for the stage
* added 'volume' and 'balance' selectors to the OF block
### 2019-04-03
* Objects, Threads: Safari compatibility tweaks (only use StereoPanner if available)

Wyświetl plik

@ -8839,12 +8839,16 @@ InputSlotMorph.prototype.attributesMenu = function () {
'direction' : ['direction'],
'costume #' : ['costume #'],
'costume name' : ['costume name'],
'size' : ['size']
'size' : ['size'],
'volume' : ['volume'],
'balance' : ['balance']
};
} else { // the stage
dict = {
'costume #' : ['costume #'],
'costume name' : ['costume name'],
'volume' : ['volume'],
'balance' : ['balance'],
'width': ['width'],
'height': ['height']
};

Wyświetl plik

@ -3611,6 +3611,10 @@ Process.prototype.reportAttributeOf = function (attribute, name) {
: localize('Empty');
case 'size':
return thatObj.getScale ? thatObj.getScale() : '';
case 'volume':
return thatObj.getVolume();
case 'balance':
return thatObj.getPan();
case 'width':
this.assertType(thatObj, 'stage');
return thatObj.dimensions.x;