@@ -42,7 +42,9 @@ Blockly.Blocks['DFPlayer_play'] = {
4242 init : function ( ) {
4343 this . appendValueInput ( "value_" )
4444 . appendField ( new Blockly . FieldVariable ( "dfplayer" ) , "name_" )
45- . appendField ( Blockly . Msg . WEBDUINO_DFPLAYER_PLAY , "MP3 DFPlayer 播放曲目:" ) ;
45+ . appendField ( Blockly . Msg . WEBDUINO_DFPLAYER_PLAY , "播放第" ) ;
46+ this . appendDummyInput ( )
47+ . appendField ( Blockly . Msg . WEBDUINO_DFPLAYER_NUM , "首" ) ;
4648 this . setPreviousStatement ( true ) ;
4749 this . setNextStatement ( true ) ;
4850 this . setTooltip ( '' ) ;
@@ -55,7 +57,7 @@ Blockly.Blocks['DFPlayer_volume'] = {
5557 init : function ( ) {
5658 this . appendValueInput ( "value_" )
5759 . appendField ( new Blockly . FieldVariable ( "dfplayer" ) , "name_" )
58- . appendField ( Blockly . Msg . WEBDUINO_DFPLAYER_VOLUME , "MP3 DFPlayer 音量:" ) ;
60+ . appendField ( Blockly . Msg . WEBDUINO_DFPLAYER_VOLUME , "音量:" ) ;
5961 this . setPreviousStatement ( true ) ;
6062 this . setNextStatement ( true ) ;
6163 this . setTooltip ( '' ) ;
@@ -68,7 +70,9 @@ Blockly.Blocks['DFPlayer_loop'] = {
6870 init : function ( ) {
6971 this . appendValueInput ( "value_" )
7072 . appendField ( new Blockly . FieldVariable ( "dfplayer" ) , "name_" )
71- . appendField ( Blockly . Msg . WEBDUINO_DFPLAYER_LOOP , "MP3 DFPlayer 重複播放曲目:" ) ;
73+ . appendField ( Blockly . Msg . WEBDUINO_DFPLAYER_LOOP , "重複播放第" ) ;
74+ this . appendDummyInput ( )
75+ . appendField ( Blockly . Msg . WEBDUINO_DFPLAYER_NUM , "首" ) ;
7276 this . setPreviousStatement ( true ) ;
7377 this . setNextStatement ( true ) ;
7478 this . setTooltip ( '' ) ;
@@ -81,7 +85,7 @@ Blockly.Blocks['DFPlayer_action'] = {
8185 init : function ( ) {
8286 this . appendDummyInput ( )
8387 . appendField ( new Blockly . FieldVariable ( "dfplayer" ) , "name_" )
84- . appendField ( "MP3 DFPlayer ")
88+ . appendField ( Blockly . Msg . WEBDUINO_DFPLAYER_SET , "設定 ")
8589 . appendField ( new Blockly . FieldDropdown ( [
8690 [ Blockly . Msg . WEBDUINO_DFPLAYER_PREVIOUS , "prev" ] ,
8791 [ Blockly . Msg . WEBDUINO_DFPLAYER_NEXT , "next" ] ,
0 commit comments