From 78ab4de381c5c0d22475f830beeb993199355c22 Mon Sep 17 00:00:00 2001 From: jmoenig Date: Mon, 18 Mar 2013 12:32:24 +0100 Subject: Scalable blocks and scripts Shift-clicking on the settings menu lets you specify a fraction, by which blocks and scripts are scaled, allowing you to e.g. export poster-sized hi-res script pics, or to present Snap! live on hi-res screens and projectors --- widgets.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'widgets.js') diff --git a/widgets.js b/widgets.js index 6740ef5..2760171 100644 --- a/widgets.js +++ b/widgets.js @@ -73,7 +73,7 @@ newCanvas, StringMorph, Morph, TextMorph, nop, detect, StringFieldMorph, HTMLCanvasElement, fontHeight, SymbolMorph, localize, SpeechBubbleMorph, ArrowMorph, MenuMorph, isString*/ -modules.widgets = '2013-February-26'; +modules.widgets = '2013-March-18'; var PushButtonMorph; var ToggleButtonMorph; @@ -1531,11 +1531,12 @@ DialogBoxMorph.prototype.prompt = function ( world, pic, choices, // optional dictionary for drop-down of choices - isReadOnly // optional when using choices + isReadOnly, // optional when using choices + isNumeric // optional ) { var txt = new InputFieldMorph( defaultString, - false, // numeric? + isNumeric || false, // numeric? choices || null, // drop-down dict, optional choices ? isReadOnly || false : false ); -- cgit v1.3.1