summaryrefslogtreecommitdiff
path: root/store.js
diff options
context:
space:
mode:
authorjmoenig <jens@moenig.org>2014-02-04 15:29:14 +0100
committerjmoenig <jens@moenig.org>2014-02-04 15:29:14 +0100
commit1fb0b7799834280a759eb238b8d138b60223b1c2 (patch)
tree0a0661f3dc4d8eeaeef5e941d4ca8ef156461c1c /store.js
parent9be9d3da11461f218108eb3375875e6363208a7b (diff)
downloadsnap-1fb0b7799834280a759eb238b8d138b60223b1c2.tar.gz
snap-1fb0b7799834280a759eb238b8d138b60223b1c2.zip
Flat line end option in the settings menu, saved with the project
Diffstat (limited to 'store.js')
-rw-r--r--store.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/store.js b/store.js
index 343dca6..ae9a5d1 100644
--- a/store.js
+++ b/store.js
@@ -61,7 +61,7 @@ SyntaxElementMorph*/
// Global stuff ////////////////////////////////////////////////////////
-modules.store = '2014-January-09';
+modules.store = '2014-February-04';
// XML_Serializer ///////////////////////////////////////////////////////
@@ -378,6 +378,8 @@ SnapSerializer.prototype.loadProjectModel = function (xmlNode) {
}
project.stage.setTempo(model.stage.attributes.tempo);
project.stage.setExtent(StageMorph.prototype.dimensions);
+ SpriteMorph.prototype.useFlatLineEnds =
+ model.stage.attributes.lines === 'flat';
project.stage.isThreadSafe =
model.stage.attributes.threadsafe === 'true';
StageMorph.prototype.enableCodeMapping =
@@ -1340,6 +1342,7 @@ StageMorph.prototype.toXML = function (serializer) {
'<notes>$</notes>' +
'<thumbnail>$</thumbnail>' +
'<stage name="@" costume="@" tempo="@" threadsafe="@" ' +
+ 'lines="@" ' +
'codify="@" ' +
'scheduled="@" ~>' +
'<pentrails>$</pentrails>' +
@@ -1364,6 +1367,7 @@ StageMorph.prototype.toXML = function (serializer) {
this.getCostumeIdx(),
this.getTempo(),
this.isThreadSafe,
+ SpriteMorph.prototype.useFlatLineEnds ? 'flat' : 'round',
this.enableCodeMapping,
StageMorph.prototype.frameRate !== 0,
this.trailsCanvas.toDataURL('image/png'),