added to API: "getScenes"

snap7
jmoenig 2021-11-16 14:15:53 +01:00
rodzic aa53bb2899
commit a612a21606
1 zmienionych plików z 5 dodań i 0 usunięć

Wyświetl plik

@ -68,6 +68,11 @@ window.onmessage = function (event) {
}
};
IDE_Morph.prototype.getScenes = function () {
// return an array of all scenenames
return this.scenes.itemsArray().map(each => each.name);
};
IDE_Morph.prototype.broadcast = function(message, callback) {
// same as using the broadcast block - launch all scripts
// in the current project reacting to the specified message,