From dee0da87a013cea2d9299f45c2457235c1f0a01b Mon Sep 17 00:00:00 2001 From: John Date: Sat, 27 Dec 2014 16:43:52 +0100 Subject: make 'Obsolete!' label translatable (fix #677) --- store.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/store.js b/store.js index 8cbc10f..c1db123 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; }; -- cgit v1.3.1 From 2649d13306356ed2f7a0e5e07a6c894f2dcd8875 Mon Sep 17 00:00:00 2001 From: John Date: Sat, 27 Dec 2014 16:45:37 +0100 Subject: indentation fix --- store.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/store.js b/store.js index c1db123..3af3208 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(localize('Obsolete!')); + block.setSpec(localize('Obsolete!')); block.isDraggable = true; return block; }; -- cgit v1.3.1 From b315ac3c9b85a63b6c2ad644828c9b3f3f849345 Mon Sep 17 00:00:00 2001 From: John Date: Sat, 27 Dec 2014 22:06:03 +0100 Subject: draw rotation center coordinates near crosshairs --- paint.js | 7 +++++++ 1 file changed, 7 insertions(+) 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; -- cgit v1.3.1