File tree Expand file tree Collapse file tree 5 files changed +99
-1
lines changed Expand file tree Collapse file tree 5 files changed +99
-1
lines changed Original file line number Diff line number Diff line change @@ -507,6 +507,21 @@ Blockly.Blocks['sensing_dayssince2000'] = {
507507 }
508508} ;
509509
510+ Blockly . Blocks [ 'sensing_online' ] = {
511+ /**
512+ * Block to report whether or not the system is online
513+ * @this Blockly.Block
514+ */
515+ init : function ( ) {
516+ this . jsonInit ( {
517+ "message0" : Blockly . Msg . SENSING_ONLINE ,
518+ "category" : Blockly . Categories . sensing ,
519+ "checkboxInFlyout" : true ,
520+ "extensions" : [ "colours_sensing" , "output_boolean" ]
521+ } ) ;
522+ }
523+ } ;
524+
510525Blockly . Blocks [ 'sensing_username' ] = {
511526 /**
512527 * Block to report user's username
Original file line number Diff line number Diff line change @@ -219,6 +219,7 @@ Blockly.Msg["SENSING_CURRENT_HOUR"] = "hour";
219219Blockly . Msg [ "SENSING_CURRENT_MINUTE" ] = "minute" ;
220220Blockly . Msg [ "SENSING_CURRENT_SECOND" ] = "second" ;
221221Blockly . Msg [ "SENSING_DAYSSINCE2000" ] = "days since 2000" ;
222+ Blockly . Msg [ "SENSING_ONLINE" ] = "is online?" ;
222223Blockly . Msg [ "SENSING_USERNAME" ] = "username" ;
223224Blockly . Msg [ "SENSING_USERID" ] = "user id" ;
224225Blockly . Msg [ "SOUND_PLAY" ] = "start sound %1" ;
Original file line number Diff line number Diff line change 213213 "SENSING_CURRENT_MINUTE" : " minute" ,
214214 "SENSING_CURRENT_SECOND" : " second" ,
215215 "SENSING_DAYSSINCE2000" : " days since 2000" ,
216+ "SENSING_ONLINE" : " is online?" ,
216217 "SENSING_USERNAME" : " username" ,
217218 "SENSING_USERID" : " user id" ,
218219 "SOUND_PLAY" : " start sound %1" ,
282283 "NEW_BROADCAST_MESSAGE_TITLE" : " New message name:" ,
283284 "BROADCAST_MODAL_TITLE" : " New Message" ,
284285 "DEFAULT_BROADCAST_MESSAGE_NAME" : " message1"
285- }
286+ }
Original file line number Diff line number Diff line change @@ -262,6 +262,7 @@ Blockly.Msg.SENSING_CURRENT_HOUR = 'hour';
262262Blockly . Msg . SENSING_CURRENT_MINUTE = 'minute' ;
263263Blockly . Msg . SENSING_CURRENT_SECOND = 'second' ;
264264Blockly . Msg . SENSING_DAYSSINCE2000 = 'days since 2000' ;
265+ Blockly . Msg . SENSING_ONLINE = 'is online?' ;
265266Blockly . Msg . SENSING_USERNAME = 'username' ;
266267Blockly . Msg . SENSING_USERID = 'user id' ;
267268
You can’t perform that action at this time.
0 commit comments