summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjmoenig <jens@moenig.org>2013-12-19 17:54:40 +0100
committerjmoenig <jens@moenig.org>2013-12-19 17:54:40 +0100
commite9020b4ed3f7190dc78e622fbe3b2665e227c30f (patch)
tree98af4d6bc89b6b7b6e8988fba5535a4ae595d1a3
parentbe3562ed893548dcd98e0d9e0533a85e6882360f (diff)
downloadsnap-yow-e9020b4ed3f7190dc78e622fbe3b2665e227c30f.tar.gz
snap-yow-e9020b4ed3f7190dc78e622fbe3b2665e227c30f.zip
fixed saving/loading of new mouse coordinate watchers
-rwxr-xr-xhistory.txt5
-rw-r--r--objects.js6
-rw-r--r--store.js6
3 files changed, 12 insertions, 5 deletions
diff --git a/history.txt b/history.txt
index e1bd47d..642ea7f 100755
--- a/history.txt
+++ b/history.txt
@@ -2039,3 +2039,8 @@ ______
131212
------
* Objects, Morphic: fixed #277, #279 (blitting null-canvasses fails)
+
+131219
+------
+* Objects: stage watchers for „mouse x“ and „mouse y“ sensing reporters. Thanks, Michael!
+* Store: fixed saving/loading/localisation of new mouse coordinate stage watchers
diff --git a/objects.js b/objects.js
index 9f75a98..41b511d 100644
--- a/objects.js
+++ b/objects.js
@@ -124,7 +124,7 @@ PrototypeHatBlockMorph*/
// Global stuff ////////////////////////////////////////////////////////
-modules.objects = '2013-December-18';
+modules.objects = '2013-December-19';
var SpriteMorph;
var StageMorph;
@@ -3972,7 +3972,7 @@ StageMorph.prototype.getLastMessage = function () {
// StageMorph Mouse Corridnates
StageMorph.prototype.reportMouseX = function () {
- var world = this.world();
+ var world = this.world();
if (world) {
return (world.hand.position().x - this.center().x) / this.scale;
}
@@ -6045,7 +6045,7 @@ WatcherMorph.prototype.object = function () {
WatcherMorph.prototype.isGlobal = function (selector) {
return contains(
['getLastAnswer', 'getLastMessage', 'getTempo', 'getTimer',
- 'reportMouseX', 'reportMouseY'],
+ 'reportMouseX', 'reportMouseY'],
selector
);
};
diff --git a/store.js b/store.js
index 5a5605f..640f2d1 100644
--- a/store.js
+++ b/store.js
@@ -61,7 +61,7 @@ SyntaxElementMorph*/
// Global stuff ////////////////////////////////////////////////////////
-modules.store = '2013-November-15';
+modules.store = '2013-December-19';
// XML_Serializer ///////////////////////////////////////////////////////
@@ -263,7 +263,9 @@ SnapSerializer.prototype.watcherLabels = {
getScale: 'size',
getLastAnswer: 'answer',
getTimer: 'timer',
- getCostumeIdx: 'costume #'
+ getCostumeIdx: 'costume #',
+ reportMouseX: 'mouse x',
+ reportMouseY: 'mouse y'
};
// SnapSerializer instance creation: