@@ -4,6 +4,7 @@ goog.provide('Blockly.Blocks.webduino');
44goog . require ( 'Blockly.Blocks' ) ;
55
66Blockly . Blocks . colour . HUE = 120 ;
7+ Blockly . Blocks . colour . HUESON = 70 ;
78
89/*
910 .o8
@@ -86,7 +87,7 @@ Blockly.Blocks['demo_light_state'] = {
8687 this . setPreviousStatement ( true ) ;
8788 this . setNextStatement ( true ) ;
8889 this . setTooltip ( '' ) ;
89- this . setColour ( Blockly . Blocks . colour . HUE ) ;
90+ this . setColour ( Blockly . Blocks . colour . HUESON ) ;
9091 this . setHelpUrl ( 'http://www.example.com/' ) ;
9192 }
9293} ;
@@ -101,7 +102,7 @@ Blockly.Blocks['demo_light_ifelse'] = {
101102 ] ) , "state_" ) ;
102103 this . setOutput ( true ) ;
103104 this . setTooltip ( '' ) ;
104- this . setColour ( Blockly . Blocks . colour . HUE ) ;
105+ this . setColour ( Blockly . Blocks . colour . HUESON ) ;
105106 this . setHelpUrl ( 'http://www.example.com/' ) ;
106107 }
107108} ;
@@ -113,7 +114,7 @@ Blockly.Blocks['demo_light_toggle'] = {
113114 this . setPreviousStatement ( true ) ;
114115 this . setNextStatement ( true ) ;
115116 this . setTooltip ( '' ) ;
116- this . setColour ( Blockly . Blocks . colour . HUE ) ;
117+ this . setColour ( Blockly . Blocks . colour . HUESON ) ;
117118 this . setHelpUrl ( 'http://www.example.com/' ) ;
118119 }
119120} ;
@@ -230,7 +231,7 @@ Blockly.Blocks['demo_area_input_color'] = {
230231 . appendField ( Blockly . Msg . DEMO_AREA_COLOR_CHOOSE , "選擇的顏色" ) ;
231232 this . setOutput ( true ) ;
232233 this . setTooltip ( '' ) ;
233- this . setColour ( Blockly . Blocks . colour . HUE ) ;
234+ this . setColour ( Blockly . Blocks . colour . HUESON ) ;
234235 this . setHelpUrl ( 'http://www.example.com/' ) ;
235236 }
236237} ;
@@ -242,7 +243,7 @@ Blockly.Blocks['demo_area_color'] = {
242243 this . setPreviousStatement ( true ) ;
243244 this . setNextStatement ( true ) ;
244245 this . setTooltip ( '' ) ;
245- this . setColour ( Blockly . Blocks . colour . HUE ) ;
246+ this . setColour ( Blockly . Blocks . colour . HUESON ) ;
246247 this . setHelpUrl ( 'http://www.example.com/' ) ;
247248 }
248249} ;
@@ -277,7 +278,7 @@ Blockly.Blocks['demo_range_show'] = {
277278 this . setPreviousStatement ( true ) ;
278279 this . setNextStatement ( true ) ;
279280 this . setTooltip ( '' ) ;
280- this . setColour ( Blockly . Blocks . colour . HUE ) ;
281+ this . setColour ( Blockly . Blocks . colour . HUESON ) ;
281282 this . setHelpUrl ( 'http://www.example.com/' ) ;
282283 }
283284} ;
@@ -288,7 +289,7 @@ Blockly.Blocks['demo_range_input_value'] = {
288289 . appendField ( Blockly . Msg . DEMO_RANGE_VALUE , "拉霸的數值" ) ;
289290 this . setOutput ( true ) ;
290291 this . setTooltip ( '' ) ;
291- this . setColour ( Blockly . Blocks . colour . HUE ) ;
292+ this . setColour ( Blockly . Blocks . colour . HUESON ) ;
292293 this . setHelpUrl ( 'http://www.example.com/' ) ;
293294 }
294295} ;
@@ -494,7 +495,7 @@ Blockly.Blocks['demo_tracking_val'] = {
494495 ] ) , "val_" ) ;
495496 this . setOutput ( true ) ;
496497 this . setTooltip ( '' ) ;
497- this . setColour ( Blockly . Blocks . colour . HUE ) ;
498+ this . setColour ( Blockly . Blocks . colour . HUESON ) ;
498499 this . setHelpUrl ( 'http://www.example.com/' ) ;
499500 }
500501} ;
@@ -2285,7 +2286,7 @@ Blockly.Blocks['sound_recognition_check'] = {
22852286 this . setPreviousStatement ( true ) ;
22862287 this . setNextStatement ( true ) ;
22872288 this . setTooltip ( '' ) ;
2288- this . setColour ( 100 ) ;
2289+ this . setColour ( 60 ) ;
22892290 this . setHelpUrl ( 'http://www.example.com/' ) ;
22902291 }
22912292} ;
@@ -2308,7 +2309,7 @@ Blockly.Blocks['sound_recognition_text'] = {
23082309 . appendField ( Blockly . Msg . WEBDUINO_RECONGNITION_CONTENT , "辨識的文字" ) ;
23092310 this . setOutput ( true ) ;
23102311 this . setTooltip ( '' ) ;
2311- this . setColour ( 100 ) ;
2312+ this . setColour ( 60 ) ;
23122313 this . setHelpUrl ( 'http://www.example.com/' ) ;
23132314 }
23142315} ;
@@ -3127,7 +3128,7 @@ Blockly.Blocks['joystick_val'] = {
31273128 . appendField ( "數值" ) ;
31283129 this . setOutput ( true ) ;
31293130 this . setTooltip ( '' ) ;
3130- this . setColour ( 65 ) ;
3131+ this . setColour ( 35 ) ;
31313132 this . setHelpUrl ( 'http://www.example.com/' ) ;
31323133 }
31333134} ;
0 commit comments