refresh IDE when changing the pen color model

snap7
jmoenig 2021-11-14 16:39:17 +01:00
rodzic 825de3a30b
commit 2284252d4c
2 zmienionych plików z 11 dodań i 7 usunięć

Wyświetl plik

@ -16,7 +16,7 @@
* block-instances can be dragged off from templates in the "export blocks", "unused blocks" and "hide blocks" dialogs * block-instances can be dragged off from templates in the "export blocks", "unused blocks" and "hide blocks" dialogs
* added "enter" key to key-pressed dropdown * added "enter" key to key-pressed dropdown
* added "green flag" symbol to message drop-down * added "green flag" symbol to message drop-down
* new preference setting per scene for pen color model and graphic effects, HSV or HSL, default is HSL * new preference setting per scene for pen color model and graphic effects, HSV or HSL, default is HSV
* new preference setting per scene to "disable click-to-run" on blocks, for use in micro-world extensions * new preference setting per scene to "disable click-to-run" on blocks, for use in micro-world extensions
* **Notable Changes:** * **Notable Changes:**
* saved projects remember the last edited sprite * saved projects remember the last edited sprite
@ -56,6 +56,7 @@
### 2021-11-12 ### 2021-11-12
* locale: contextualize translations * locale: contextualize translations
* gui: refresh IDE when changing the pen color model
### 2021-11-12 ### 2021-11-12
* store: fixed importing custom categories from libraries, thanks, Eckart, for reporting this! * store: fixed importing custom categories from libraries, thanks, Eckart, for reporting this!

Wyświetl plik

@ -86,7 +86,7 @@ BlockVisibilityDialogMorph, ThreadManager*/
// Global stuff //////////////////////////////////////////////////////// // Global stuff ////////////////////////////////////////////////////////
modules.gui = '2021-November-12'; modules.gui = '2021-November-14';
// Declarations // Declarations
@ -4235,12 +4235,15 @@ IDE_Morph.prototype.settingsMenu = function () {
addPreference( addPreference(
'HSL pen color model', 'HSL pen color model',
() => SpriteMorph.prototype.penColorModel = () => {
SpriteMorph.prototype.penColorModel === 'hsl' ? 'hsv' : 'hsl', SpriteMorph.prototype.penColorModel =
SpriteMorph.prototype.penColorModel === 'hsl' ? 'hsv' : 'hsl';
this.refreshIDE();
},
SpriteMorph.prototype.penColorModel === 'hsl', SpriteMorph.prototype.penColorModel === 'hsl',
'uncheck to switch pen colors\nand graphic effects\nto HSV', 'uncheck to switch pen colors\nand graphic effects\nto HSV',
'check to switch pen colors\nand graphic effects\nfrom to HSL', 'check to switch pen colors\nand graphic effects\n to HSL',
true false
); );
addPreference( addPreference(
@ -4731,7 +4734,7 @@ IDE_Morph.prototype.aboutSnap = function () {
module, btn1, btn2, btn3, btn4, licenseBtn, translatorsBtn, module, btn1, btn2, btn3, btn4, licenseBtn, translatorsBtn,
world = this.world(); world = this.world();
aboutTxt = 'Snap! 7 - dev211112 -\nBuild Your Own Blocks\n\n' aboutTxt = 'Snap! 7 - dev211114 -\nBuild Your Own Blocks\n\n'
+ 'Copyright \u24B8 2008-2021 Jens M\u00F6nig and ' + 'Copyright \u24B8 2008-2021 Jens M\u00F6nig and '
+ 'Brian Harvey\n' + 'Brian Harvey\n'
+ 'jens@moenig.org, bh@cs.berkeley.edu\n\n' + 'jens@moenig.org, bh@cs.berkeley.edu\n\n'