added "costume" selector to MY dropdown

pull/89/head
jmoenig 2019-04-30 08:37:28 +02:00
rodzic 5cde6b6040
commit cb8bfd25ba
3 zmienionych plików z 6 dodań i 2 usunięć

Wyświetl plik

@ -31,6 +31,7 @@
* added "neg", "lg" (log2) and "2^" selectors to monadic function reporter in Operators
* added "^" reporter (power of) in the Operators category
* added "width" and "height" as attribute selectors of the OF primitive for the stage
* added "costume" selector to the MY attributes dropdown
* special context-aware drop-downs for custom blocks
* new "stick to" submenu in the sprite context menu where applicable
* multi-line and monospaced "code" input slots for custom blocks
@ -75,6 +76,8 @@
### 2019-04-30
* Blocks, Threads: added "id" to image attributes dropdown
* Blocks, Threads: removed "id" from image attributes
* Blocks, Threads: added "costume" selector to MY dropdown
### 2019-04-29
* optimized animation library

Wyświetl plik

@ -1015,7 +1015,6 @@ SyntaxElementMorph.prototype.labelPart = function (spec) {
null, // text
false, // numeric?
{
'id' : ['id'],
'name' : ['name'],
'width' : ['width'],
'height' : ['height'],
@ -8859,6 +8858,7 @@ InputSlotMorph.prototype.gettablesMenu = function () {
}
}
dict.name = ['name'];
dict.costume = ['costume'];
dict.costumes = ['costumes'];
dict.sounds = ['sounds'];
dict['dangling?'] = ['dangling?'];

Wyświetl plik

@ -4102,6 +4102,8 @@ Process.prototype.reportGet = function (query) {
return thisObj.name;
case 'stage':
return thisObj.parentThatIsA(StageMorph);
case 'costume':
return thisObj.costume;
case 'costumes':
return thisObj.reportCostumes();
case 'sounds':
@ -4574,7 +4576,6 @@ Process.prototype.reportGetImageAttribute = function (choice, name) {
return cst.height();
case 'pixels':
return cst.rasterized().pixels();
case 'id':
default:
return cst;
}