kopia lustrzana https://github.com/backface/turtlestitch
Load shared projects from different formats
cloud data and plain project formatpull/3/merge
rodzic
2fe044f0a3
commit
cb41576e5a
9
gui.js
9
gui.js
|
@ -68,7 +68,7 @@ sb, CommentMorph, CommandBlockMorph*/
|
||||||
|
|
||||||
// Global stuff ////////////////////////////////////////////////////////
|
// Global stuff ////////////////////////////////////////////////////////
|
||||||
|
|
||||||
modules.gui = '2013-April-09';
|
modules.gui = '2013-April-10';
|
||||||
|
|
||||||
// Declarations
|
// Declarations
|
||||||
|
|
||||||
|
@ -253,7 +253,6 @@ IDE_Morph.prototype.openIn = function (world) {
|
||||||
this.shield.color = this.color;
|
this.shield.color = this.color;
|
||||||
this.shield.setExtent(this.parent.extent());
|
this.shield.setExtent(this.parent.extent());
|
||||||
this.parent.add(this.shield);
|
this.parent.add(this.shield);
|
||||||
|
|
||||||
myself.showMessage('Fetching project\nfrom the cloud...');
|
myself.showMessage('Fetching project\nfrom the cloud...');
|
||||||
SnapCloud.getPublicProject(
|
SnapCloud.getPublicProject(
|
||||||
location.hash.substr(9),
|
location.hash.substr(9),
|
||||||
|
@ -264,7 +263,11 @@ IDE_Morph.prototype.openIn = function (world) {
|
||||||
msg = myself.showMessage('Opening project...');
|
msg = myself.showMessage('Opening project...');
|
||||||
},
|
},
|
||||||
function () {
|
function () {
|
||||||
myself.rawOpenCloudDataString(projectData);
|
if (projectData.indexOf('<snapdata') === 0) {
|
||||||
|
myself.rawOpenCloudDataString(projectData);
|
||||||
|
} else if (projectData.indexOf('<project') === 0) {
|
||||||
|
myself.rawOpenProjectString(projectData);
|
||||||
|
}
|
||||||
},
|
},
|
||||||
function () {
|
function () {
|
||||||
myself.shield.destroy();
|
myself.shield.destroy();
|
||||||
|
|
|
@ -1607,3 +1607,8 @@ ______
|
||||||
* GUI: Feedback msg when sharing / unsharing projects
|
* GUI: Feedback msg when sharing / unsharing projects
|
||||||
* GUI: Shield (hide) IDE while opening a shared project for presentation
|
* GUI: Shield (hide) IDE while opening a shared project for presentation
|
||||||
* GUI: Support for debugging shared projects
|
* GUI: Support for debugging shared projects
|
||||||
|
|
||||||
|
130410
|
||||||
|
------
|
||||||
|
* Fixes for type casting and dragging dialogs by buttons, thanks, Nathan!
|
||||||
|
* Fix for loading shared projects in different formats (cloud data and plain project data)
|
||||||
|
|
|
@ -1033,7 +1033,7 @@
|
||||||
/*global window, HTMLCanvasElement, getMinimumFontHeight, FileReader, Audio,
|
/*global window, HTMLCanvasElement, getMinimumFontHeight, FileReader, Audio,
|
||||||
FileList, getBlurredShadowSupport*/
|
FileList, getBlurredShadowSupport*/
|
||||||
|
|
||||||
var morphicVersion = '2013-April-09';
|
var morphicVersion = '2013-April-10';
|
||||||
var modules = {}; // keep track of additional loaded modules
|
var modules = {}; // keep track of additional loaded modules
|
||||||
var useBlurredShadows = getBlurredShadowSupport(); // check for Chrome-bug
|
var useBlurredShadows = getBlurredShadowSupport(); // check for Chrome-bug
|
||||||
|
|
||||||
|
|
|
@ -120,7 +120,7 @@ PrototypeHatBlockMorph*/
|
||||||
|
|
||||||
// Global stuff ////////////////////////////////////////////////////////
|
// Global stuff ////////////////////////////////////////////////////////
|
||||||
|
|
||||||
modules.objects = '2013-April-08';
|
modules.objects = '2013-April-10';
|
||||||
|
|
||||||
var SpriteMorph;
|
var SpriteMorph;
|
||||||
var StageMorph;
|
var StageMorph;
|
||||||
|
|
Ładowanie…
Reference in New Issue