select motion category when switching to a scene that doesn't have the current custom category

snap7
jmoenig 2021-12-09 13:15:05 +01:00
rodzic 9932f6ba2f
commit 931b937558
4 zmienionych plików z 9 dodań i 5 usunięć

Wyświetl plik

@ -71,6 +71,7 @@
### 2021-12-09
* blocks, threads: never push untested last minute changes that might break everything
* gui: select motion category when switching to a scene that doesn't have the current custom category
### 2021-12-08
* blocks: refactored syntax trees

Wyświetl plik

@ -1,7 +1,7 @@
<!DOCTYPE html>
<html>
<head>
<title>Snap! 7 - rc1 - Build Your Own Blocks</title>
<title>Snap! 7 - rc2 - Build Your Own Blocks</title>
<link rel="icon" href="src/favicon.ico" type="image/x-icon">
<link rel="manifest" href="manifest.json">
<link rel="apple-touch-icon" href="img/snap-icon-152.png">
@ -20,7 +20,7 @@
<script src="src/threads.js?version=2021-12-09"></script>
<script src="src/objects.js?version=2021-12-07"></script>
<script src="src/scenes.js?version=2021-11-24"></script>
<script src="src/gui.js?version=2021-12-08"></script>
<script src="src/gui.js?version=2021-12-09"></script>
<script src="src/paint.js?version=2021-07-05"></script>
<script src="src/lists.js?version=2021-07-19"></script>
<script src="src/byob.js?version=2021-11-23"></script>

Wyświetl plik

@ -86,7 +86,7 @@ BlockVisibilityDialogMorph, ThreadManager*/
// Global stuff ////////////////////////////////////////////////////////
modules.gui = '2021-December-08';
modules.gui = '2021-December-09';
// Declarations
@ -4770,7 +4770,7 @@ IDE_Morph.prototype.aboutSnap = function () {
module, btn1, btn2, btn3, btn4, licenseBtn, translatorsBtn,
world = this.world();
aboutTxt = 'Snap! 7 - rc1 -\nBuild Your Own Blocks\n\n'
aboutTxt = 'Snap! 7 - rc2 -\nBuild Your Own Blocks\n\n'
+ 'Copyright \u24B8 2008-2021 Jens M\u00F6nig and '
+ 'Brian Harvey\n'
+ 'jens@moenig.org, bh@cs.berkeley.edu\n\n'
@ -5912,6 +5912,9 @@ IDE_Morph.prototype.switchToScene = function (
}
});
scene.applyGlobalSettings();
if (!SpriteMorph.prototype.allCategories().includes(this.currentCategory)) {
this.currentCategory = 'motion';
}
if (!this.setUnifiedPalette(scene.unifiedPalette)) {
this.createCategories();
this.createPaletteHandle();

2
sw.js
Wyświetl plik

@ -1,4 +1,4 @@
var snapVersion = '7-rc1'
var snapVersion = '7-rc2'
var cacheName = 'snap-pwa',
filesToCache = [