when creating a new sprite only randomize color and direction when shift-clicking

upd4.2
jmoenig 2018-04-27 08:57:22 +02:00
rodzic 05aeeb3b79
commit 3ab922ea99
2 zmienionych plików z 6 dodań i 2 usunięć

4
gui.js
Wyświetl plik

@ -75,7 +75,7 @@ isRetinaSupported, SliderMorph, Animation, BoxMorph, MediaRecorder*/
// Global stuff ////////////////////////////////////////////////////////
modules.gui = '2018-April-25';
modules.gui = '2018-April-27';
// Declarations
@ -2293,7 +2293,7 @@ IDE_Morph.prototype.addNewSprite = function () {
this.stage.add(sprite);
// randomize sprite properties
if (this.world().currentKey !== 16) { // shift-click
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));

Wyświetl plik

@ -4092,3 +4092,7 @@ in development:
* GUI: fixed rearranging sound icons in the jukebox
* GUI: fixed scrolling for the jukebox (updating the sounds list version)
* GUI: only randomize position when shift-clicking on new turtle-sprite button
180427
------
* GUI: when creating a new sprite only randomize color and direction when shift-clicking