diff options
| author | jmoenig <jens@moenig.org> | 2013-06-18 18:43:15 +0200 |
|---|---|---|
| committer | jmoenig <jens@moenig.org> | 2013-06-18 18:43:15 +0200 |
| commit | acc40a6d2a06ab1fcfbd488030e091bd9215a1b2 (patch) | |
| tree | 57374704c2b908df2c1d8721f8a055a0f1378d1e /gui.js | |
| parent | a7ebff7c5bb4a79b3a64441b50957e523fe686e0 (diff) | |
| download | snap-acc40a6d2a06ab1fcfbd488030e091bd9215a1b2.tar.gz snap-acc40a6d2a06ab1fcfbd488030e091bd9215a1b2.zip | |
Code mapping
generating text code from blocks, first experimental iteration
Diffstat (limited to 'gui.js')
| -rw-r--r-- | gui.js | 16 |
1 files changed, 15 insertions, 1 deletions
@@ -68,7 +68,7 @@ sb, CommentMorph, CommandBlockMorph*/ // Global stuff //////////////////////////////////////////////////////// -modules.gui = '2013-May-17'; +modules.gui = '2013-June-18'; // Declarations @@ -2148,6 +2148,20 @@ IDE_Morph.prototype.settingsMenu = function () { 'check for alternative\nGUI design', false ); + addPreference( + 'Code mapping', + function () { + StageMorph.prototype.enableCodeMapping = + !StageMorph.prototype.enableCodeMapping; + myself.currentSprite.blocksCache.variables = null; + myself.currentSprite.paletteCache.variables = null; + myself.refreshPalette(); + }, + StageMorph.prototype.enableCodeMapping, + 'uncheck to disable\nblock to text mapping features', + 'check for block\nto text mapping features', + false + ); menu.addLine(); // everything below this line is made persistent addPreference( 'Thread safe scripts', |
