summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGubolin <gubolin@fantasymail.de>2015-01-11 10:41:18 +0100
committerGubolin <gubolin@fantasymail.de>2015-01-11 10:41:18 +0100
commitb9a3ba8fcae035cf155cd6d4fc213bdc5d144913 (patch)
treec27db4ca24be53e5d1747a25c0b6ad3228b58c8d
parentc06a69aee72698b680682119b69832510d92e094 (diff)
parent7311c3ee0cc93e50e5adcb521a94e8738ed98eb2 (diff)
downloadsnap-b9a3ba8fcae035cf155cd6d4fc213bdc5d144913.tar.gz
snap-b9a3ba8fcae035cf155cd6d4fc213bdc5d144913.zip
Merge branch 'development' into gh-pages
-rw-r--r--paint.js7
-rw-r--r--store.js2
2 files changed, 8 insertions, 1 deletions
diff --git a/paint.js b/paint.js
index 65ae1f6..7e39671 100644
--- a/paint.js
+++ b/paint.js
@@ -657,6 +657,13 @@ PaintCanvasMorph.prototype.drawcrosshair = function (context) {
ctx.strokeStyle = 'black';
ctx.clearRect(0, 0, this.mask.width, this.mask.height);
+ //draw rotation center coordinates near crosshairs
+ ctx.globalAlpha = 1;
+ ctx.fillStyle = "blue";
+ ctx.font = "bold 10px Arial";
+ var coordinates = -Math.floor((this.mask.width/2 - rp.x)) + ', ' + Math.floor((this.mask.height/2 - rp.y));
+ ctx.fillText(coordinates, rp.x + 20, rp.y - 20);
+
// draw crosshairs:
ctx.globalAlpha = 0.5;
diff --git a/store.js b/store.js
index c6449fd..0044cbe 100644
--- a/store.js
+++ b/store.js
@@ -1015,7 +1015,7 @@ SnapSerializer.prototype.obsoleteBlock = function (isReporter) {
: new CommandBlockMorph();
block.selector = 'nop';
block.color = new Color(200, 0, 20);
- block.setSpec('Obsolete!');
+ block.setSpec(localize('Obsolete!'));
block.isDraggable = true;
return block;
};