summaryrefslogtreecommitdiff
path: root/gui.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 /gui.js
parent9be9d3da11461f218108eb3375875e6363208a7b (diff)
downloadsnap-yow-1fb0b7799834280a759eb238b8d138b60223b1c2.tar.gz
snap-yow-1fb0b7799834280a759eb238b8d138b60223b1c2.zip
Flat line end option in the settings menu, saved with the project
Diffstat (limited to 'gui.js')
-rw-r--r--gui.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/gui.js b/gui.js
index 96903a0..7640393 100644
--- a/gui.js
+++ b/gui.js
@@ -2212,6 +2212,16 @@ IDE_Morph.prototype.settingsMenu = function () {
'check for smooth, predictable\nanimations across computers'
);
addPreference(
+ 'Flat line ends',
+ function () {
+ SpriteMorph.prototype.useFlatLineEnds =
+ !SpriteMorph.prototype.useFlatLineEnds;
+ },
+ SpriteMorph.prototype.useFlatLineEnds,
+ 'uncheck for round ends of lines',
+ 'check for flat ends of lines'
+ );
+ addPreference(
'Codification support',
function () {
StageMorph.prototype.enableCodeMapping =
@@ -2689,6 +2699,7 @@ IDE_Morph.prototype.newProject = function () {
StageMorph.prototype.codeMappings = {};
StageMorph.prototype.codeHeaders = {};
StageMorph.prototype.enableCodeMapping = false;
+ SpriteMorph.prototype.useFlatLineEnds = false;
this.setProjectName('');
this.projectNotes = '';
this.createStage();