diff --git a/gui.js b/gui.js index 497776c8..9e3163fe 100644 --- a/gui.js +++ b/gui.js @@ -75,7 +75,7 @@ isRetinaSupported, SliderMorph, Animation, BoxMorph, MediaRecorder*/ // Global stuff //////////////////////////////////////////////////////// -modules.gui = '2018-April-27'; +modules.gui = '2018-May-03'; // Declarations @@ -2293,14 +2293,15 @@ IDE_Morph.prototype.addNewSprite = function () { this.stage.add(sprite); // randomize sprite properties - if (this.world().currentKey === 16) { // shift-click - sprite.setHue(rnd.call(this, 0, 100)); - sprite.setBrightness(rnd.call(this, 50, 100)); - sprite.turn(rnd.call(this, 1, 360)); - } + sprite.setHue(rnd.call(this, 0, 100)); + sprite.setBrightness(rnd.call(this, 50, 100)); sprite.setXPosition(rnd.call(this, -220, 220)); sprite.setYPosition(rnd.call(this, -160, 160)); + if (this.world().currentKey === 16) { // shift-click + sprite.turn(rnd.call(this, 1, 360)); + } + this.sprites.add(sprite); this.corral.addSprite(sprite); this.selectSprite(sprite); diff --git a/history.txt b/history.txt index c93f194e..528fce07 100755 --- a/history.txt +++ b/history.txt @@ -4103,3 +4103,7 @@ in development: * updated German translation * disabled keyboard shortcuts for green-flag (cmd-enter) and stop (esc) in presentation mode * Blocks, Threads: added options for sprite attributes to the SET block + +180503 +------ +* GUI: (again) randomize pen color when creating a new sprite