diff --git a/HISTORY.md b/HISTORY.md index 36e8f2a3..30b8fe50 100755 --- a/HISTORY.md +++ b/HISTORY.md @@ -9,6 +9,9 @@ * **Documentation Updates:** * **Translation Updates:** +### 2022-03-10 +* gui: made dev-warning closeable and added official url + ### 2022-03-09 * new dev version * byob, store, gui: export / import sprite-local custom block definitions, under construction diff --git a/snap.html b/snap.html index 8fe7c0da..5f6ac733 100755 --- a/snap.html +++ b/snap.html @@ -20,7 +20,7 @@ - + diff --git a/src/gui.js b/src/gui.js index e63c14ca..c26f3902 100644 --- a/src/gui.js +++ b/src/gui.js @@ -86,7 +86,7 @@ BlockVisibilityDialogMorph, ThreadManager*/ // Global stuff //////////////////////////////////////////////////////// -modules.gui = '2022-March-09'; +modules.gui = '2022-March-10'; // Declarations @@ -7471,34 +7471,19 @@ IDE_Morph.prototype.isIE = function () { // IDE_Morph warn about saving project in the dev version IDE_Morph.prototype.warnAboutDev = function () { - var dlg, txt; if (!SnapVersion.includes('-dev')) { return; } - dlg = new DialogBoxMorph(); - txt = new TextMorph( + this.inform( + "CAUTION! Development Version", 'This version of Snap! is being developed.\n' + '*** It is NOT supported for end users. ***\n' + 'Saving a project in THIS version is likely to\n' + 'make it UNUSABLE or DEFECTIVE for current and\n' + - 'even future official versions!', - dlg.fontSize, - dlg.fontStyle, - true, - false, - 'center', - null, - null, - MorphicPreferences.isFlat ? null : new Point(1, 1), - WHITE + 'even future official versions!\n\n' + + 'visit https://snap.berkeley.edu/run\n' + + 'for the official Snap! installation.' ); - - dlg.key = 'Dev-Warning'; - dlg.labelString = "CAUTION! Development Version"; - dlg.createLabel(); - dlg.addBody(txt); - dlg.fixLayout(); - dlg.popUp(this.world()); }; // ProjectDialogMorph ////////////////////////////////////////////////////