diff options
| author | Gubolin <gubolin@fantasymail.de> | 2014-09-08 12:27:01 +0200 |
|---|---|---|
| committer | Gubolin <gubolin@fantasymail.de> | 2014-09-08 12:27:01 +0200 |
| commit | a7b3c537edf83b8415716f930fd3fe518638c4db (patch) | |
| tree | ab92fea0390ee62aab2b55dab2bd2e829a6f033c /objects.js | |
| parent | 8433b79d9363dea79e139cbdc3a9811495694753 (diff) | |
| download | snap-a7b3c537edf83b8415716f930fd3fe518638c4db.tar.gz snap-a7b3c537edf83b8415716f930fd3fe518638c4db.zip | |
add notification blocks
Diffstat (limited to 'objects.js')
| -rw-r--r-- | objects.js | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -415,6 +415,11 @@ SpriteMorph.prototype.initBlocks = function () { spec: 'go back %n layers', defaults: [1] }, + doNotify: { + type: 'command', + category: 'looks', + spec: 'notification with title %s and content %s' + }, doScreenshot: { type: 'command', category: 'looks', @@ -1762,6 +1767,8 @@ SpriteMorph.prototype.blockTemplates = function (category) { blocks.push('-'); blocks.push(block('comeToFront')); blocks.push(block('goBack')); + blocks.push('-'); + blocks.push(block('doNotify')); // for debugging: /////////////// @@ -4905,6 +4912,8 @@ StageMorph.prototype.blockTemplates = function (category) { blocks.push('-'); blocks.push(block('show')); blocks.push(block('hide')); + blocks.push('-'); + blocks.push(block('doNotify')); // for debugging: /////////////// |
