kopia lustrzana https://github.com/backface/turtlestitch
fixed cloud file format for multi-scene projects
rodzic
55d088e174
commit
33ff73aebd
|
@ -12,6 +12,7 @@
|
||||||
* gui: fixed exporting media only for a single scene
|
* gui: fixed exporting media only for a single scene
|
||||||
* gui: fixed cloud file format components
|
* gui: fixed cloud file format components
|
||||||
* gui: "projectized" cloud file format for a single scene
|
* gui: "projectized" cloud file format for a single scene
|
||||||
|
* gui: fixed cloud file format for multi-scene projects
|
||||||
|
|
||||||
### 2021-05-11
|
### 2021-05-11
|
||||||
* gui: add multi-scene projects
|
* gui: add multi-scene projects
|
||||||
|
|
20
src/gui.js
20
src/gui.js
|
@ -6535,20 +6535,24 @@ IDE_Morph.prototype.logout = function () {
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
IDE_Morph.prototype.buildProjectRequest = function () { // +++ Oh, sweet Jesus!
|
IDE_Morph.prototype.buildProjectRequest = function () {
|
||||||
var xml = this.serializer.serialize(this.scene),
|
var thumbnail = normalizeCanvas(
|
||||||
thumbnail = normalizeCanvas(
|
|
||||||
this.stage.thumbnail(
|
this.stage.thumbnail(
|
||||||
SnapSerializer.prototype.thumbnailSize
|
SnapSerializer.prototype.thumbnailSize
|
||||||
)).toDataURL(),
|
)).toDataURL(),
|
||||||
body;
|
body,
|
||||||
|
xml;
|
||||||
|
|
||||||
this.serializer.isCollectingMedia = true;
|
this.serializer.isCollectingMedia = true;
|
||||||
|
xml = this.serializer.serialize(new Project(this.scenes, this.scene));
|
||||||
body = {
|
body = {
|
||||||
notes: this.projectNotes,
|
notes: this.projectNotes,
|
||||||
xml: xml,
|
xml: xml,
|
||||||
media: this.hasChangedMedia ?
|
/*
|
||||||
|
media: this.hasChangedMedia ? // incremental media upload, disabled
|
||||||
this.serializer.mediaXML(this.projectName) : null,
|
this.serializer.mediaXML(this.projectName) : null,
|
||||||
|
*/
|
||||||
|
media: this.serializer.mediaXML(this.projectName),
|
||||||
thumbnail: thumbnail,
|
thumbnail: thumbnail,
|
||||||
remixID: this.stage.remixID
|
remixID: this.stage.remixID
|
||||||
};
|
};
|
||||||
|
@ -6619,7 +6623,7 @@ IDE_Morph.prototype.saveProjectToCloud = function (name) {
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
IDE_Morph.prototype.exportProjectMedia = function (name) { // +++ revisit for scenes
|
IDE_Morph.prototype.exportProjectMedia = function (name) {
|
||||||
var menu, media;
|
var menu, media;
|
||||||
this.serializer.isCollectingMedia = true;
|
this.serializer.isCollectingMedia = true;
|
||||||
if (name) {
|
if (name) {
|
||||||
|
@ -6645,7 +6649,7 @@ IDE_Morph.prototype.exportProjectMedia = function (name) { // +++ revisit for sc
|
||||||
// this.hasChangedMedia = false;
|
// this.hasChangedMedia = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
IDE_Morph.prototype.exportProjectNoMedia = function (name) { // +++ Sigh...
|
IDE_Morph.prototype.exportProjectNoMedia = function (name) {
|
||||||
var menu, str;
|
var menu, str;
|
||||||
this.serializer.isCollectingMedia = true;
|
this.serializer.isCollectingMedia = true;
|
||||||
if (name) {
|
if (name) {
|
||||||
|
@ -6677,7 +6681,7 @@ IDE_Morph.prototype.exportProjectNoMedia = function (name) { // +++ Sigh...
|
||||||
this.serializer.flushMedia();
|
this.serializer.flushMedia();
|
||||||
};
|
};
|
||||||
|
|
||||||
IDE_Morph.prototype.exportProjectAsCloudData = function (name) { // +++ revisit
|
IDE_Morph.prototype.exportProjectAsCloudData = function (name) {
|
||||||
var menu, str, media, dta;
|
var menu, str, media, dta;
|
||||||
this.serializer.isCollectingMedia = true;
|
this.serializer.isCollectingMedia = true;
|
||||||
if (name) {
|
if (name) {
|
||||||
|
|
Ładowanie…
Reference in New Issue