kopia lustrzana https://github.com/backface/turtlestitch
only show scene album if the project has more than a single scene
rodzic
9844408dfa
commit
639871311d
|
@ -8,6 +8,9 @@
|
|||
* **Notable Fixes:**
|
||||
* made scrollbars in the wardrobe and jukebox more responsive
|
||||
|
||||
### 2021-04-28
|
||||
* gui: only show scene album if the project has more than a single scene
|
||||
|
||||
### 2021-04-23
|
||||
* store: serialize sprite-order from scenes
|
||||
* gui: sceneified refreshIDE()
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
<script src="src/threads.js?version=2021-04-17"></script>
|
||||
<script src="src/objects.js?version=2021-04-23"></script>
|
||||
<script src="src/scenes.js?version=2021-04-23"></script>
|
||||
<script src="src/gui.js?version=2021-04-23"></script>
|
||||
<script src="src/gui.js?version=2021-04-28"></script>
|
||||
<script src="src/paint.js?version=2021-03-17"></script>
|
||||
<script src="src/lists.js?version=2021-03-15"></script>
|
||||
<script src="src/byob.js?version=2021-04-20"></script>
|
||||
|
|
19
src/gui.js
19
src/gui.js
|
@ -83,7 +83,7 @@ Animation, BoxMorph, BlockEditorMorph, BlockDialogMorph, Project, ZERO, BLACK*/
|
|||
|
||||
// Global stuff ////////////////////////////////////////////////////////
|
||||
|
||||
modules.gui = '2021-April-23';
|
||||
modules.gui = '2021-April-28';
|
||||
|
||||
// Declarations
|
||||
|
||||
|
@ -1930,15 +1930,20 @@ IDE_Morph.prototype.createCorral = function (keepSceneAlbum) {
|
|||
this.corral.add(this.corral.album);
|
||||
|
||||
this.corral.fixLayout = function () {
|
||||
// this.stageIcon.setCenter(this.center()); // version before scenes
|
||||
this.stageIcon.setTop(this.top());
|
||||
this.stageIcon.setCenter(this.center());
|
||||
this.stageIcon.setLeft(this.left() + padding);
|
||||
|
||||
// scenes +++
|
||||
this.album.setLeft(this.left());
|
||||
this.album.setTop(this.stageIcon.bottom() + padding);
|
||||
this.album.setWidth(this.stageIcon.width() + padding * 2);
|
||||
this.album.setHeight(this.height() - this.stageIcon.height() - padding);
|
||||
if (myself.scenes.length() < 2) {
|
||||
this.album.hide();
|
||||
} else {
|
||||
this.stageIcon.setTop(this.top());
|
||||
this.album.show();
|
||||
this.album.setLeft(this.left());
|
||||
this.album.setTop(this.stageIcon.bottom() + padding);
|
||||
this.album.setWidth(this.stageIcon.width() + padding * 2);
|
||||
this.album.setHeight(this.height() - this.stageIcon.height() - padding); // +++
|
||||
}
|
||||
|
||||
this.frame.setLeft(this.stageIcon.right() + padding);
|
||||
this.frame.setExtent(new Point(
|
||||
|
|
Ładowanie…
Reference in New Issue