summaryrefslogtreecommitdiff
path: root/objects.js
diff options
context:
space:
mode:
Diffstat (limited to 'objects.js')
-rw-r--r--objects.js14
1 files changed, 12 insertions, 2 deletions
diff --git a/objects.js b/objects.js
index 41b511d..9f892d4 100644
--- a/objects.js
+++ b/objects.js
@@ -124,7 +124,7 @@ PrototypeHatBlockMorph*/
// Global stuff ////////////////////////////////////////////////////////
-modules.objects = '2013-December-19';
+modules.objects = '2014-January-08';
var SpriteMorph;
var StageMorph;
@@ -591,6 +591,11 @@ SpriteMorph.prototype.initBlocks = function () {
category: 'control',
spec: 'stop all %stop'
},
+ doStopOthers: {
+ type: 'command',
+ category: 'control',
+ spec: 'stop %stopOthersChoices'
+ },
doRun: {
type: 'command',
category: 'control',
@@ -1649,6 +1654,7 @@ SpriteMorph.prototype.blockTemplates = function (category) {
blocks.push(block('doStopBlock'));
blocks.push(block('doStop'));
blocks.push(block('doStopAll'));
+ blocks.push(block('doStopOthers'));
blocks.push('-');
blocks.push(block('doRun'));
blocks.push(block('fork'));
@@ -4355,6 +4361,7 @@ StageMorph.prototype.blockTemplates = function (category) {
blocks.push(block('doStopBlock'));
blocks.push(block('doStop'));
blocks.push(block('doStopAll'));
+ blocks.push(block('doStopOthers'));
blocks.push('-');
blocks.push(block('doRun'));
blocks.push(block('fork'));
@@ -5263,7 +5270,10 @@ Costume.prototype.edit = function (aWorld, anIDE, isnew, oncancel, onsubmit) {
function (img, rc) {
myself.contents = img;
myself.rotationCenter = rc;
- myself.shrinkWrap();
+ if (anIDE.currentSprite instanceof SpriteMorph) {
+ // don't shrinkwrap stage costumes
+ myself.shrinkWrap();
+ }
myself.version = Date.now();
aWorld.changed();
if (anIDE) {