hyperized "VIDEO _ ON _" reporter primitive

pull/95/head
jmoenig 2020-11-21 15:00:22 +01:00
rodzic b27ed84aa6
commit e879808217
2 zmienionych plików z 11 dodań i 0 usunięć

Wyświetl plik

@ -7,6 +7,7 @@
* hyperized "atrribute OF sprite" reporter primitive in the sensing category
* show the common attributes for sprites in the OF-dropdown by default
* hyperized "color/sprite AT location" reporter primitive
* hyperized "VIDEO _ ON _" reporter primitive
* **Documentation Updates:**
* API update for "loadProjectXML"
@ -17,6 +18,7 @@
* threads: hyperized "atrribute OF sprite" reporter primitive
* blocks: show the common attributes for sprites in the OF-dropdown by default
* threads: hyperized "color/sprite AT location" reporter primitive
* threads: hyperized "VIDEO _ ON _" reporter primitive
## 6.3.6
* **Notable Changes:**

Wyświetl plik

@ -5272,6 +5272,15 @@ Process.prototype.doSetVideoTransparency = function(factor) {
};
Process.prototype.reportVideo = function(attribute, name) {
// hyper-dyadic
return this.hyperDyadic(
(att, obj) => this.reportBasicVideo(att, obj),
attribute,
name
);
};
Process.prototype.reportBasicVideo = function(attribute, name) {
var thisObj = this.blockReceiver(),
stage = thisObj.parentThatIsA(StageMorph),
thatObj = this.getOtherObject(name, thisObj, stage);