kopia lustrzana https://github.com/backface/turtlestitch
removed obsolete dev comments
rodzic
f6b0eb5c06
commit
e7801f1ee2
|
@ -49,6 +49,7 @@
|
||||||
|
|
||||||
### 2021-10-29
|
### 2021-10-29
|
||||||
* objects: flood-fill edge case fix, thanks, Dariusz!
|
* objects: flood-fill edge case fix, thanks, Dariusz!
|
||||||
|
* gui: removed obsolete dev comments
|
||||||
|
|
||||||
### 2021-10-28
|
### 2021-10-28
|
||||||
* introduced default values for expandable slot specs
|
* introduced default values for expandable slot specs
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
<script src="src/threads.js?version=2021-10-22"></script>
|
<script src="src/threads.js?version=2021-10-22"></script>
|
||||||
<script src="src/objects.js?version=2021-10-29"></script>
|
<script src="src/objects.js?version=2021-10-29"></script>
|
||||||
<script src="src/scenes.js?version=2021-10-12"></script>
|
<script src="src/scenes.js?version=2021-10-12"></script>
|
||||||
<script src="src/gui.js?version=2021-10-28"></script>
|
<script src="src/gui.js?version=2021-10-29"></script>
|
||||||
<script src="src/paint.js?version=2021-07-05"></script>
|
<script src="src/paint.js?version=2021-07-05"></script>
|
||||||
<script src="src/lists.js?version=2021-07-19"></script>
|
<script src="src/lists.js?version=2021-07-19"></script>
|
||||||
<script src="src/byob.js?version=2021-10-25"></script>
|
<script src="src/byob.js?version=2021-10-25"></script>
|
||||||
|
|
28
src/gui.js
28
src/gui.js
|
@ -85,7 +85,7 @@ Animation, BoxMorph, BlockDialogMorph, RingMorph, Project, ZERO, BLACK*/
|
||||||
|
|
||||||
// Global stuff ////////////////////////////////////////////////////////
|
// Global stuff ////////////////////////////////////////////////////////
|
||||||
|
|
||||||
modules.gui = '2021-October-28';
|
modules.gui = '2021-October-29';
|
||||||
|
|
||||||
// Declarations
|
// Declarations
|
||||||
|
|
||||||
|
@ -279,7 +279,8 @@ IDE_Morph.prototype.init = function (isAutoFill) {
|
||||||
this.filePicker = null;
|
this.filePicker = null;
|
||||||
|
|
||||||
// incrementally saving projects to the cloud is currently unused
|
// incrementally saving projects to the cloud is currently unused
|
||||||
this.hasChangedMedia = false; // +++ sceneify, or get of it
|
// and needs to be extended to work with scenes before reactivation
|
||||||
|
this.hasChangedMedia = false;
|
||||||
|
|
||||||
this.isAnimating = true;
|
this.isAnimating = true;
|
||||||
this.paletteWidth = 200; // initially same as logo width
|
this.paletteWidth = 200; // initially same as logo width
|
||||||
|
@ -2283,7 +2284,7 @@ IDE_Morph.prototype.setProjectName = function (string) {
|
||||||
if (name !== projectScene.name) {
|
if (name !== projectScene.name) {
|
||||||
projectScene.name = name;
|
projectScene.name = name;
|
||||||
projectScene.stage.version = Date.now();
|
projectScene.stage.version = Date.now();
|
||||||
this.recordUnsavedChanges(); // +++ sceneify this
|
this.recordUnsavedChanges();
|
||||||
if (projectScene === this.scene) {
|
if (projectScene === this.scene) {
|
||||||
this.controlBar.updateLabel();
|
this.controlBar.updateLabel();
|
||||||
}
|
}
|
||||||
|
@ -2300,7 +2301,7 @@ IDE_Morph.prototype.setProjectNotes = function (string) {
|
||||||
if (string !== projectScene.notes) {
|
if (string !== projectScene.notes) {
|
||||||
projectScene.notes = string;
|
projectScene.notes = string;
|
||||||
projectScene.stage.version = Date.now();
|
projectScene.stage.version = Date.now();
|
||||||
this.recordUnsavedChanges(); // +++ sceneify this
|
this.recordUnsavedChanges();
|
||||||
if (projectScene === this.scene) {
|
if (projectScene === this.scene) {
|
||||||
this.controlBar.updateLabel();
|
this.controlBar.updateLabel();
|
||||||
}
|
}
|
||||||
|
@ -4944,7 +4945,7 @@ IDE_Morph.prototype.editNotes = function () {
|
||||||
|
|
||||||
dialog.action = (note) => {
|
dialog.action = (note) => {
|
||||||
this.scene.notes = note;
|
this.scene.notes = note;
|
||||||
this.recordUnsavedChanges(); // +++ sceneify this
|
this.recordUnsavedChanges();
|
||||||
};
|
};
|
||||||
|
|
||||||
dialog.justDropped = () => text.edit();
|
dialog.justDropped = () => text.edit();
|
||||||
|
@ -9020,7 +9021,12 @@ LibraryImportDialogMorph.prototype.cachedLibrary = function (key) {
|
||||||
return this.libraryCache[key];
|
return this.libraryCache[key];
|
||||||
};
|
};
|
||||||
|
|
||||||
LibraryImportDialogMorph.prototype.importLibrary = function () { // +++ clean up
|
LibraryImportDialogMorph.prototype.importLibrary = function () {
|
||||||
|
// browsing and importing libraries needs to be redesigned because of
|
||||||
|
// custom categories introduced in v7.
|
||||||
|
// currently caching libraries is ignored when loading a library
|
||||||
|
// to avoid creating custom categories that were only looked at
|
||||||
|
// in the libraries browser.
|
||||||
if (!this.listField.selected) {return; }
|
if (!this.listField.selected) {return; }
|
||||||
|
|
||||||
var // blocks,
|
var // blocks,
|
||||||
|
@ -9031,7 +9037,7 @@ LibraryImportDialogMorph.prototype.importLibrary = function () { // +++ clean up
|
||||||
// restore captured user-blocks categories
|
// restore captured user-blocks categories
|
||||||
SpriteMorph.prototype.customCategories = this.originalCategories;
|
SpriteMorph.prototype.customCategories = this.originalCategories;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
if (this.hasCached(selectedLibrary)) {
|
if (this.hasCached(selectedLibrary)) {
|
||||||
blocks = this.cachedLibrary(selectedLibrary);
|
blocks = this.cachedLibrary(selectedLibrary);
|
||||||
blocks.forEach(def => {
|
blocks.forEach(def => {
|
||||||
|
@ -9041,7 +9047,7 @@ LibraryImportDialogMorph.prototype.importLibrary = function () { // +++ clean up
|
||||||
});
|
});
|
||||||
ide.showMessage(localize('Imported') + ' ' + localize(libraryName), 2);
|
ide.showMessage(localize('Imported') + ' ' + localize(libraryName), 2);
|
||||||
} else {
|
} else {
|
||||||
*/
|
*/
|
||||||
ide.showMessage(localize('Loading') + ' ' + localize(libraryName));
|
ide.showMessage(localize('Loading') + ' ' + localize(libraryName));
|
||||||
ide.getURL(
|
ide.getURL(
|
||||||
ide.resourceURL('libraries', selectedLibrary),
|
ide.resourceURL('libraries', selectedLibrary),
|
||||||
|
@ -9050,7 +9056,7 @@ LibraryImportDialogMorph.prototype.importLibrary = function () { // +++ clean up
|
||||||
this.isLoadingLibrary = true;
|
this.isLoadingLibrary = true;
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
// }
|
// }
|
||||||
};
|
};
|
||||||
|
|
||||||
LibraryImportDialogMorph.prototype.displayBlocks = function (libraryKey) {
|
LibraryImportDialogMorph.prototype.displayBlocks = function (libraryKey) {
|
||||||
|
@ -10804,11 +10810,11 @@ SceneIconMorph.prototype.renameScene = function () {
|
||||||
answer,
|
answer,
|
||||||
scene
|
scene
|
||||||
);
|
);
|
||||||
scene.stage.version = Date.now(); // +++ also do this in other places
|
scene.stage.version = Date.now();
|
||||||
if (scene === ide.scene) {
|
if (scene === ide.scene) {
|
||||||
ide.controlBar.updateLabel();
|
ide.controlBar.updateLabel();
|
||||||
}
|
}
|
||||||
ide.recordUnsavedChanges(); // ++++ sceneify unsaved changes
|
ide.recordUnsavedChanges();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
).prompt(
|
).prompt(
|
||||||
|
|
Ładowanie…
Reference in New Issue