kopia lustrzana https://github.com/backface/turtlestitch
fixed saving/loading of new mouse coordinate watchers
rodzic
be3562ed89
commit
e9020b4ed3
|
@ -2039,3 +2039,8 @@ ______
|
||||||
131212
|
131212
|
||||||
------
|
------
|
||||||
* Objects, Morphic: fixed #277, #279 (blitting null-canvasses fails)
|
* 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
|
||||||
|
|
|
@ -124,7 +124,7 @@ PrototypeHatBlockMorph*/
|
||||||
|
|
||||||
// Global stuff ////////////////////////////////////////////////////////
|
// Global stuff ////////////////////////////////////////////////////////
|
||||||
|
|
||||||
modules.objects = '2013-December-18';
|
modules.objects = '2013-December-19';
|
||||||
|
|
||||||
var SpriteMorph;
|
var SpriteMorph;
|
||||||
var StageMorph;
|
var StageMorph;
|
||||||
|
@ -3972,7 +3972,7 @@ StageMorph.prototype.getLastMessage = function () {
|
||||||
// StageMorph Mouse Corridnates
|
// StageMorph Mouse Corridnates
|
||||||
|
|
||||||
StageMorph.prototype.reportMouseX = function () {
|
StageMorph.prototype.reportMouseX = function () {
|
||||||
var world = this.world();
|
var world = this.world();
|
||||||
if (world) {
|
if (world) {
|
||||||
return (world.hand.position().x - this.center().x) / this.scale;
|
return (world.hand.position().x - this.center().x) / this.scale;
|
||||||
}
|
}
|
||||||
|
@ -6045,7 +6045,7 @@ WatcherMorph.prototype.object = function () {
|
||||||
WatcherMorph.prototype.isGlobal = function (selector) {
|
WatcherMorph.prototype.isGlobal = function (selector) {
|
||||||
return contains(
|
return contains(
|
||||||
['getLastAnswer', 'getLastMessage', 'getTempo', 'getTimer',
|
['getLastAnswer', 'getLastMessage', 'getTempo', 'getTimer',
|
||||||
'reportMouseX', 'reportMouseY'],
|
'reportMouseX', 'reportMouseY'],
|
||||||
selector
|
selector
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
6
store.js
6
store.js
|
@ -61,7 +61,7 @@ SyntaxElementMorph*/
|
||||||
|
|
||||||
// Global stuff ////////////////////////////////////////////////////////
|
// Global stuff ////////////////////////////////////////////////////////
|
||||||
|
|
||||||
modules.store = '2013-November-15';
|
modules.store = '2013-December-19';
|
||||||
|
|
||||||
|
|
||||||
// XML_Serializer ///////////////////////////////////////////////////////
|
// XML_Serializer ///////////////////////////////////////////////////////
|
||||||
|
@ -263,7 +263,9 @@ SnapSerializer.prototype.watcherLabels = {
|
||||||
getScale: 'size',
|
getScale: 'size',
|
||||||
getLastAnswer: 'answer',
|
getLastAnswer: 'answer',
|
||||||
getTimer: 'timer',
|
getTimer: 'timer',
|
||||||
getCostumeIdx: 'costume #'
|
getCostumeIdx: 'costume #',
|
||||||
|
reportMouseX: 'mouse x',
|
||||||
|
reportMouseY: 'mouse y'
|
||||||
};
|
};
|
||||||
|
|
||||||
// SnapSerializer instance creation:
|
// SnapSerializer instance creation:
|
||||||
|
|
Ładowanie…
Reference in New Issue