diff options
| author | Michael Ball <cycomachead@gmail.com> | 2013-12-27 18:49:56 -0800 |
|---|---|---|
| committer | Michael Ball <cycomachead@gmail.com> | 2013-12-27 18:49:56 -0800 |
| commit | faa8b4fe2243b1a8ef5cc4342183f4880b728a3d (patch) | |
| tree | f158b1b8c6a3b7c0923ba0660f1fca4ba4c55635 /blocks.js | |
| parent | e9020b4ed3f7190dc78e622fbe3b2665e227c30f (diff) | |
| download | snap-faa8b4fe2243b1a8ef5cc4342183f4880b728a3d.tar.gz snap-faa8b4fe2243b1a8ef5cc4342183f4880b728a3d.zip | |
Add a 'get current DATE' block with various options, add some translations to FR and DE
Diffstat (limited to 'blocks.js')
| -rw-r--r-- | blocks.js | 26 |
1 files changed, 23 insertions, 3 deletions
@@ -155,7 +155,7 @@ DialogBoxMorph, BlockInputFragmentMorph, PrototypeHatBlockMorph, Costume*/ // Global stuff //////////////////////////////////////////////////////// -modules.blocks = '2013-November-26'; +modules.blocks = '2013-December-27'; var SyntaxElementMorph; var BlockMorph; @@ -812,6 +812,27 @@ SyntaxElementMorph.prototype.labelPart = function (spec) { true // read-only ); break; + case '%dates': + part = new InputSlotMorph( + null, // text + false, // non-numeric + { + 'Date' : ['Date'], + 'Month' : ['Month'], + 'Day of Month' : ['Day of Month'], + 'Year' : ['Year'], + 'Day of Week' : ['Day of Week'], + 'Time' : ['Time'], + 'Hour' : ['Hour'], + 'Minute' : ['Minute'], + 'Second' : ['Second'], + 'Time in Milliseconds' : ['Time in Milliseconds'], + 'UTC Time' : ['UTC Time'], + }, + true // read-only + ); + part.setContents('Date') + break; case '%delim': part = new InputSlotMorph( null, // text @@ -1166,7 +1187,6 @@ SyntaxElementMorph.prototype.labelPart = function (spec) { ); break; - // symbols: case '%turtle': @@ -6147,7 +6167,7 @@ CSlotMorph.prototype.drawBottomEdge = function (context) { I am an editable text input slot. I can be either rectangular or rounded, and can have an optional drop-down menu. If I'm set to read-only I must have a drop-down menu and will assume a darker - shade of my parent's color. + shade of my parent's color. my most important public attributes and accessors are: |
