removed obsolete dev comments

snap7
jmoenig 2021-10-29 08:46:46 +02:00
rodzic f6b0eb5c06
commit e7801f1ee2
3 zmienionych plików z 19 dodań i 12 usunięć

Wyświetl plik

@ -49,6 +49,7 @@
### 2021-10-29
* objects: flood-fill edge case fix, thanks, Dariusz!
* gui: removed obsolete dev comments
### 2021-10-28
* introduced default values for expandable slot specs

Wyświetl plik

@ -20,7 +20,7 @@
<script src="src/threads.js?version=2021-10-22"></script>
<script src="src/objects.js?version=2021-10-29"></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/lists.js?version=2021-07-19"></script>
<script src="src/byob.js?version=2021-10-25"></script>

Wyświetl plik

@ -85,7 +85,7 @@ Animation, BoxMorph, BlockDialogMorph, RingMorph, Project, ZERO, BLACK*/
// Global stuff ////////////////////////////////////////////////////////
modules.gui = '2021-October-28';
modules.gui = '2021-October-29';
// Declarations
@ -279,7 +279,8 @@ IDE_Morph.prototype.init = function (isAutoFill) {
this.filePicker = null;
// 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.paletteWidth = 200; // initially same as logo width
@ -2283,7 +2284,7 @@ IDE_Morph.prototype.setProjectName = function (string) {
if (name !== projectScene.name) {
projectScene.name = name;
projectScene.stage.version = Date.now();
this.recordUnsavedChanges(); // +++ sceneify this
this.recordUnsavedChanges();
if (projectScene === this.scene) {
this.controlBar.updateLabel();
}
@ -2300,7 +2301,7 @@ IDE_Morph.prototype.setProjectNotes = function (string) {
if (string !== projectScene.notes) {
projectScene.notes = string;
projectScene.stage.version = Date.now();
this.recordUnsavedChanges(); // +++ sceneify this
this.recordUnsavedChanges();
if (projectScene === this.scene) {
this.controlBar.updateLabel();
}
@ -4944,7 +4945,7 @@ IDE_Morph.prototype.editNotes = function () {
dialog.action = (note) => {
this.scene.notes = note;
this.recordUnsavedChanges(); // +++ sceneify this
this.recordUnsavedChanges();
};
dialog.justDropped = () => text.edit();
@ -9020,7 +9021,12 @@ LibraryImportDialogMorph.prototype.cachedLibrary = function (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; }
var // blocks,
@ -9031,7 +9037,7 @@ LibraryImportDialogMorph.prototype.importLibrary = function () { // +++ clean up
// restore captured user-blocks categories
SpriteMorph.prototype.customCategories = this.originalCategories;
/*
/*
if (this.hasCached(selectedLibrary)) {
blocks = this.cachedLibrary(selectedLibrary);
blocks.forEach(def => {
@ -9041,7 +9047,7 @@ LibraryImportDialogMorph.prototype.importLibrary = function () { // +++ clean up
});
ide.showMessage(localize('Imported') + ' ' + localize(libraryName), 2);
} else {
*/
*/
ide.showMessage(localize('Loading') + ' ' + localize(libraryName));
ide.getURL(
ide.resourceURL('libraries', selectedLibrary),
@ -9050,7 +9056,7 @@ LibraryImportDialogMorph.prototype.importLibrary = function () { // +++ clean up
this.isLoadingLibrary = true;
}
);
// }
// }
};
LibraryImportDialogMorph.prototype.displayBlocks = function (libraryKey) {
@ -10804,11 +10810,11 @@ SceneIconMorph.prototype.renameScene = function () {
answer,
scene
);
scene.stage.version = Date.now(); // +++ also do this in other places
scene.stage.version = Date.now();
if (scene === ide.scene) {
ide.controlBar.updateLabel();
}
ide.recordUnsavedChanges(); // ++++ sceneify unsaved changes
ide.recordUnsavedChanges();
}
}
).prompt(