kopia lustrzana https://github.com/backface/turtlestitch
restore custom palettes when activating a scene
rodzic
1ace29c2e4
commit
a160520abb
|
@ -33,6 +33,7 @@
|
|||
* store: serialize user defined block palettes
|
||||
* objects: enabled custom categories for the stage
|
||||
* store: load user defined palettes
|
||||
* gui: restore custom palettes when activating a scene
|
||||
|
||||
### 2021-07-21
|
||||
* user defined custom block palettes, under construction
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
<script src="src/threads.js?version=2021-07-20"></script>
|
||||
<script src="src/objects.js?version=2021-07-22"></script>
|
||||
<script src="src/scenes.js?version=2021-07-21"></script>
|
||||
<script src="src/gui.js?version=2021-07-21"></script>
|
||||
<script src="src/gui.js?version=2021-07-22"></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-07-21"></script>
|
||||
|
|
|
@ -85,7 +85,7 @@ Animation, BoxMorph, BlockDialogMorph, RingMorph, Project, ZERO, BLACK*/
|
|||
|
||||
// Global stuff ////////////////////////////////////////////////////////
|
||||
|
||||
modules.gui = '2021-July-21';
|
||||
modules.gui = '2021-July-22';
|
||||
|
||||
// Declarations
|
||||
|
||||
|
@ -5717,7 +5717,12 @@ IDE_Morph.prototype.switchToScene = function (scene, refreshAlbum) {
|
|||
});
|
||||
scene.applyGlobalSettings();
|
||||
if (!this.setUnifiedPalette(scene.unifiedPalette)) {
|
||||
this.createCategories();
|
||||
this.createPaletteHandle();
|
||||
this.categories.fixLayout();
|
||||
this.fixLayout();
|
||||
this.flushBlocksCache();
|
||||
this.currentSprite.palette(this.currentCategory);
|
||||
this.refreshPalette(true);
|
||||
}
|
||||
this.world().keyboardFocus = this.stage;
|
||||
|
|
Ładowanie…
Reference in New Issue