From 4580aa1e0d58b4f7f5aa27f5360416d6cc4697d8 Mon Sep 17 00:00:00 2001 From: jmoenig Date: Thu, 25 Apr 2013 16:52:59 +0200 Subject: Hide Primitives feature Primitive blocks in the palette can now be hidden in the project via their context menu. Each palette's context menu further lets you hide or show all its primitives depending on whether any primitives are left to hide or show. Hidden primitives are stored in the project data. This lets instructors create "simplified" examples and problem sets. --- gui.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gui.js') diff --git a/gui.js b/gui.js index 8ac5234..27a33d9 100644 --- a/gui.js +++ b/gui.js @@ -68,7 +68,7 @@ sb, CommentMorph, CommandBlockMorph*/ // Global stuff //////////////////////////////////////////////////////// -modules.gui = '2013-April-24'; +modules.gui = '2013-April-25'; // Declarations @@ -2244,6 +2244,7 @@ IDE_Morph.prototype.newProject = function () { this.globalVariables = new VariableFrame(); this.currentSprite = new SpriteMorph(this.globalVariables); this.sprites = new List([this.currentSprite]); + StageMorph.prototype.hiddenPrimitives = {}; this.setProjectName(''); this.projectNotes = ''; this.createStage(); -- cgit v1.3.1