new Project class

snap7
jmoenig 2021-04-14 15:27:32 +02:00
rodzic 9caafba65e
commit 8ce858d111
3 zmienionych plików z 24 dodań i 3 usunięć

Wyświetl plik

@ -6,6 +6,9 @@
* **Notable Fixes:**
* made scrollbars in the wardrobe and jukebox more responsive
### 2021-04-14
* scenes: new Project class
### 2021-04-12
* blocks, objects, threads, gui: new "switch to scene _" command primitive
* morphic, gui: support bulk-file-drop for importing scenes

Wyświetl plik

@ -11,7 +11,7 @@
<script src="src/blocks.js?version=2021-04-12"></script>
<script src="src/threads.js?version=2021-04-12"></script>
<script src="src/objects.js?version=2021-04-12"></script>
<script src="src/scenes.js?version=2021-03-30"></script>
<script src="src/scenes.js?version=2021-04-14"></script>
<script src="src/gui.js?version=2021-04-12"></script>
<script src="src/paint.js?version=2021-03-17"></script>
<script src="src/lists.js?version=2021-03-15"></script>

Wyświetl plik

@ -34,6 +34,7 @@
the following list shows the order in which all constructors are
defined. Use this list to locate code in this document:
Project
Scene
credits
@ -47,9 +48,26 @@
// Global stuff ////////////////////////////////////////////////////////
/*global modules, VariableFrame, StageMorph, SpriteMorph, Process*/
/*global modules, VariableFrame, StageMorph, SpriteMorph, Process, List*/
modules.scenes = '2021-March-30';
modules.scenes = '2021-April-14';
// Projecct /////////////////////////////////////////////////////////
// I am a container for a set of one or more Snap! scenes,
// the IDE operates on an instance of me
// Project instance creation:
function Project() {
this.name = '';
this.notes = '';
this.scenes = new List();
// for undeleting scenes - do not persist
this.trash = [];
}
// Scene /////////////////////////////////////////////////////////