made "temporary?" attribute for clones settable

in the SET->my... block
pull/89/head
jmoenig 2019-08-07 12:27:00 +02:00
rodzic f22bc546ef
commit 4d9cc90c1f
3 zmienionych plików z 7 dodań i 7 usunięć

Wyświetl plik

@ -3,6 +3,7 @@
## in development:
* **New Features:**
* new "rgba" option in "(aspect) AT (location)" sensing reporter, returns a 4-item list of values from 0-255 (same is pixels from a costume)
* "temporary?" attribute is now programmatically settable (in the SET->my... block)
* **Notable Changes:**
* **Notable Fixes:**
* **Translation Updates:**
@ -10,6 +11,7 @@
### 2019-08-07
* new dev version
* blocks, threads: added "rgba" option to (aspect) AT (location) reporter in the sensing category
* blocks, threads: made "temporary?" attribute for clones settable (in the SET->my... block)
## v5.0.9
* **New Feature:**

Wyświetl plik

@ -622,7 +622,7 @@ SyntaxElementMorph.prototype.getVarNamesDict = function () {
'anchor' : ['anchor'],
'parent' : ['parent'],
'name' : ['name'],
// 'temporary?' : ['temporary?'],
'temporary?' : ['temporary?'],
'dangling?' : ['dangling?'],
'draggable?' : ['draggable?'],
'rotation style' : ['rotation style'],

Wyświetl plik

@ -4431,12 +4431,10 @@ Process.prototype.doSet = function (attribute, value) {
case 'temporary?':
this.assertType(rcvr, 'sprite');
this.assertType(value, 'Boolean');
if (rcvr.world().isDevMode) {
if (value) {
rcvr.release();
} else {
rcvr.perpetuate();
}
if (value) {
rcvr.release();
} else {
rcvr.perpetuate();
}
break;
case 'name':