made dev-warning closeable and added official url

snap8
Jens Mönig 2022-03-10 17:00:16 +01:00
rodzic b502d5dbb8
commit 75e118b61d
3 zmienionych plików z 10 dodań i 22 usunięć

Wyświetl plik

@ -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

Wyświetl plik

@ -20,7 +20,7 @@
<script src="src/threads.js?version=2022-03-03"></script>
<script src="src/objects.js?version=2022-03-09"></script>
<script src="src/scenes.js?version=2022-03-03"></script>
<script src="src/gui.js?version=2022-03-09"></script>
<script src="src/gui.js?version=2022-03-10"></script>
<script src="src/paint.js?version=2021-07-05"></script>
<script src="src/lists.js?version=2022-02-07"></script>
<script src="src/byob.js?version=2022-03-09"></script>

Wyświetl plik

@ -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 ////////////////////////////////////////////////////