diff options
| author | jmoenig <jens@moenig.org> | 2013-03-18 12:32:24 +0100 |
|---|---|---|
| committer | jmoenig <jens@moenig.org> | 2013-03-18 12:32:24 +0100 |
| commit | 78ab4de381c5c0d22475f830beeb993199355c22 (patch) | |
| tree | ac916c2da9758db8d2fdc8a489d3a2bbe3bd52f6 /widgets.js | |
| parent | 0b510366d230399a38f18a8db92dd396a0dad42e (diff) | |
| download | snap-yow-78ab4de381c5c0d22475f830beeb993199355c22.tar.gz snap-yow-78ab4de381c5c0d22475f830beeb993199355c22.zip | |
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
Diffstat (limited to 'widgets.js')
| -rw-r--r-- | widgets.js | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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 ); |
