From c8029a03e9d7720999d02d751abf49d52ec85e16 Mon Sep 17 00:00:00 2001 From: jmoenig Date: Tue, 14 May 2013 16:53:28 +0200 Subject: Paint editor fixes and credits --- gui.js | 1 + paint.js | 10 +++++----- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/gui.js b/gui.js index 96add06..8e6c412 100644 --- a/gui.js +++ b/gui.js @@ -2130,6 +2130,7 @@ IDE_Morph.prototype.aboutSnap = function () { creditsTxt = localize('Contributors') + '\n\nNathan Dinsmore: Saving/Loading, Snap-Logo Design, ' + 'countless bugfixes' + + '\nKartik Chandra: Paint Editor' + '\nIan Reynolds: UI Design, Event Bindings, ' + 'Sound primitives' + '\nIvan Motyashov: Initial Squeak Porting' diff --git a/paint.js b/paint.js index 0f1d8e1..a7b36e3 100644 --- a/paint.js +++ b/paint.js @@ -208,16 +208,15 @@ PaintEditorMorph.prototype.buildEdits = function() { PaintEditorMorph.prototype.openIn = function(world, oldim, oldrc, callback) { // Open the editor in a world with an optional image to edit - this.setCenter(world.center()); this.oldim = oldim; this.oldrc = oldrc.copy(); this.callback = callback || nop; - world.add(this); - this.world().keyboardReceiver = this; + this.processKeyUp = function() { this.shift = false; this.propertiesControls.constrain.refresh(); }; + this.processKeyDown = function() { this.shift = this.world().currentKey === 16; this.propertiesControls.constrain.refresh(); @@ -235,8 +234,9 @@ PaintEditorMorph.prototype.openIn = function(world, oldim, oldrc, callback) { ); this.paper.drawNew(); } - - this.fullChanged(); + + this.key = 'paint'; + this.popUp(world); }; PaintEditorMorph.prototype.fixLayout = function() { -- cgit v1.3.1