summaryrefslogtreecommitdiff
path: root/objects.js
diff options
context:
space:
mode:
authorMichael Ball <cycomachead@gmail.com>2013-12-27 18:49:56 -0800
committerMichael Ball <cycomachead@gmail.com>2013-12-27 18:49:56 -0800
commitfaa8b4fe2243b1a8ef5cc4342183f4880b728a3d (patch)
treef158b1b8c6a3b7c0923ba0660f1fca4ba4c55635 /objects.js
parente9020b4ed3f7190dc78e622fbe3b2665e227c30f (diff)
downloadsnap-faa8b4fe2243b1a8ef5cc4342183f4880b728a3d.tar.gz
snap-faa8b4fe2243b1a8ef5cc4342183f4880b728a3d.zip
Add a 'get current DATE' block with various options, add some translations to FR and DE
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..a2caedd 100644
--- a/objects.js
+++ b/objects.js
@@ -124,7 +124,7 @@ PrototypeHatBlockMorph*/
// Global stuff ////////////////////////////////////////////////////////
-modules.objects = '2013-December-19';
+modules.objects = '2013-December-27';
var SpriteMorph;
var StageMorph;
@@ -786,6 +786,12 @@ SpriteMorph.prototype.initBlocks = function () {
category: 'sensing',
spec: 'set turbo mode to %b'
},
+ reportDate: {
+ type: 'reporter',
+ category: 'sensing',
+ spec: 'get current %dates',
+
+ },
// Operators
reifyScript: {
@@ -1700,6 +1706,8 @@ SpriteMorph.prototype.blockTemplates = function (category) {
blocks.push('-');
blocks.push(block('reportIsFastTracking'));
blocks.push(block('doSetFastTracking'));
+ blocks.push('-');
+ blocks.push(block('reportDate'));
// for debugging: ///////////////
@@ -4398,6 +4406,8 @@ StageMorph.prototype.blockTemplates = function (category) {
blocks.push('-');
blocks.push(block('reportIsFastTracking'));
blocks.push(block('doSetFastTracking'));
+ blocks.push('-');
+ blocks.push(block('reportDate'));
// for debugging: ///////////////
@@ -5147,7 +5157,7 @@ Costume.prototype.shrinkWrap = function () {
};
Costume.prototype.boundingBox = function () {
- // answer the rectangle surrounding my contents' non-transparent pixels
+ // answer the rectangle surrounding my contents' non-transparent pixels
var row,
col,
pic = this.contents,