diff options
| author | Viraj Mahesh <virajmahesh@gmail.com> | 2014-05-08 12:06:16 -0700 |
|---|---|---|
| committer | Viraj Mahesh <virajmahesh@gmail.com> | 2014-05-08 12:06:16 -0700 |
| commit | 094b5120e46478af501e46da8e58811b97da0739 (patch) | |
| tree | 7e36a1da2efffbc7f93d749a1453517ff5edceaf /objects.js | |
| parent | cdecbf86aee44226f864efd26fbd0930b309a875 (diff) | |
| download | snap-094b5120e46478af501e46da8e58811b97da0739.tar.gz snap-094b5120e46478af501e46da8e58811b97da0739.zip | |
Moved the screenshot block to looks
Diffstat (limited to 'objects.js')
| -rw-r--r-- | objects.js | 20 |
1 files changed, 10 insertions, 10 deletions
@@ -387,6 +387,12 @@ SpriteMorph.prototype.initBlocks = function () { spec: 'go back %n layers', defaults: [1] }, + doScreenshot: { + type: 'command', + category: 'looks', + spec: 'save %imgsource as costume named %s', + defaults: [['pen trails'], 'screenshot'] + }, // Looks - Debugging primitives for development mode alert: { @@ -809,12 +815,6 @@ SpriteMorph.prototype.initBlocks = function () { category: 'sensing', spec: 'current %dates' }, - doScreenshot: { - type: 'command', - category: 'sensing', - spec: 'save %imgsource as costume named %s', - defaults: [['pen trails'], 'screenshot'] - }, // Operators reifyScript: { @@ -1616,6 +1616,8 @@ SpriteMorph.prototype.blockTemplates = function (category) { blocks.push('-'); blocks.push(block('comeToFront')); blocks.push(block('goBack')); + blocks.push('-'); + blocks.push(block('doScreenshot')); // for debugging: /////////////// @@ -1754,8 +1756,6 @@ SpriteMorph.prototype.blockTemplates = function (category) { blocks.push(block('reportIsFastTracking')); blocks.push(block('doSetFastTracking')); blocks.push('-'); - blocks.push(block('doScreenshot')); - blocks.push('-'); blocks.push(block('reportDate')); // for debugging: /////////////// @@ -4409,6 +4409,8 @@ StageMorph.prototype.blockTemplates = function (category) { blocks.push(block('changeEffect')); blocks.push(block('setEffect')); blocks.push(block('clearEffects')); + blocks.push('-'); + blocks.push(block('doScreenshot')); // for debugging: /////////////// @@ -4525,8 +4527,6 @@ StageMorph.prototype.blockTemplates = function (category) { blocks.push(block('doSetFastTracking')); blocks.push('-'); blocks.push(block('reportDate')); - blocks.push('-'); - blocks.push(block('doScreenshot')); // for debugging: /////////////// |
