@@ -32,13 +32,10 @@ goog.require('Blockly');
3232
3333
3434/**
35- * Common HSV hue for all blocks in this category.
36- * Should be the same as Blockly.Msg.TEXTS_HUE
37- * @readonly
35+ * Unused constant for the common HSV hue for all blocks in this category.
36+ * @deprecated Use Blockly.Msg.TEXTS_HUE. (2018 April 5)
3837 */
3938Blockly . Constants . Text . HUE = 160 ;
40- /** @deprecated Use Blockly.Constants.Text.HUE */
41- Blockly . Blocks . texts . HUE = Blockly . Constants . Text . HUE ;
4239
4340Blockly . defineBlocksWithJsonArray ( [ // BEGIN JSON EXTRACT
4441 // Block for text value
@@ -224,7 +221,7 @@ Blockly.Blocks['text_getSubstring'] = {
224221 [ Blockly . Msg . TEXT_GET_SUBSTRING_END_LAST , 'LAST' ]
225222 ] ;
226223 this . setHelpUrl ( Blockly . Msg . TEXT_GET_SUBSTRING_HELPURL ) ;
227- this . setColour ( Blockly . Blocks . texts . HUE ) ;
224+ this . setColour ( Blockly . Msg . TEXTS_HUE ) ;
228225 this . appendValueInput ( 'STRING' )
229226 . setCheck ( 'String' )
230227 . appendField ( Blockly . Msg . TEXT_GET_SUBSTRING_INPUT_IN_TEXT ) ;
@@ -332,7 +329,7 @@ Blockly.Blocks['text_changeCase'] = {
332329 [ Blockly . Msg . TEXT_CHANGECASE_OPERATOR_TITLECASE , 'TITLECASE' ]
333330 ] ;
334331 this . setHelpUrl ( Blockly . Msg . TEXT_CHANGECASE_HELPURL ) ;
335- this . setColour ( Blockly . Blocks . texts . HUE ) ;
332+ this . setColour ( Blockly . Msg . TEXTS_HUE ) ;
336333 this . appendValueInput ( 'TEXT' )
337334 . setCheck ( 'String' )
338335 . appendField ( new Blockly . FieldDropdown ( OPERATORS ) , 'CASE' ) ;
@@ -353,7 +350,7 @@ Blockly.Blocks['text_trim'] = {
353350 [ Blockly . Msg . TEXT_TRIM_OPERATOR_RIGHT , 'RIGHT' ]
354351 ] ;
355352 this . setHelpUrl ( Blockly . Msg . TEXT_TRIM_HELPURL ) ;
356- this . setColour ( Blockly . Blocks . texts . HUE ) ;
353+ this . setColour ( Blockly . Msg . TEXTS_HUE ) ;
357354 this . appendValueInput ( 'TEXT' )
358355 . setCheck ( 'String' )
359356 . appendField ( new Blockly . FieldDropdown ( OPERATORS ) , 'MODE' ) ;
@@ -378,7 +375,7 @@ Blockly.Blocks['text_print'] = {
378375 ] ,
379376 "previousStatement" : null ,
380377 "nextStatement" : null ,
381- "colour" : Blockly . Blocks . texts . HUE ,
378+ "colour" : Blockly . Msg . TEXTS_HUE ,
382379 "tooltip" : Blockly . Msg . TEXT_PRINT_TOOLTIP ,
383380 "helpUrl" : Blockly . Msg . TEXT_PRINT_HELPURL
384381 } ) ;
@@ -396,7 +393,7 @@ Blockly.Blocks['text_prompt_ext'] = {
396393 [ Blockly . Msg . TEXT_PROMPT_TYPE_NUMBER , 'NUMBER' ]
397394 ] ;
398395 this . setHelpUrl ( Blockly . Msg . TEXT_PROMPT_HELPURL ) ;
399- this . setColour ( Blockly . Blocks . texts . HUE ) ;
396+ this . setColour ( Blockly . Msg . TEXTS_HUE ) ;
400397 // Assign 'this' to a variable for use in the closures below.
401398 var thisBlock = this ;
402399 var dropdown = new Blockly . FieldDropdown ( TYPES , function ( newOp ) {
@@ -456,7 +453,7 @@ Blockly.Blocks['text_prompt'] = {
456453 // Assign 'this' to a variable for use in the closures below.
457454 var thisBlock = this ;
458455 this . setHelpUrl ( Blockly . Msg . TEXT_PROMPT_HELPURL ) ;
459- this . setColour ( Blockly . Blocks . texts . HUE ) ;
456+ this . setColour ( Blockly . Msg . TEXTS_HUE ) ;
460457 var dropdown = new Blockly . FieldDropdown ( TYPES , function ( newOp ) {
461458 thisBlock . updateType_ ( newOp ) ;
462459 } ) ;
@@ -499,7 +496,7 @@ Blockly.Blocks['text_count'] = {
499496 ] ,
500497 "output" : "Number" ,
501498 "inputsInline" : true ,
502- "colour" : Blockly . Blocks . texts . HUE ,
499+ "colour" : Blockly . Msg . TEXTS_HUE ,
503500 "tooltip" : Blockly . Msg . TEXT_COUNT_TOOLTIP ,
504501 "helpUrl" : Blockly . Msg . TEXT_COUNT_HELPURL
505502 } ) ;
@@ -533,7 +530,7 @@ Blockly.Blocks['text_replace'] = {
533530 ] ,
534531 "output" : "String" ,
535532 "inputsInline" : true ,
536- "colour" : Blockly . Blocks . texts . HUE ,
533+ "colour" : Blockly . Msg . TEXTS_HUE ,
537534 "tooltip" : Blockly . Msg . TEXT_REPLACE_TOOLTIP ,
538535 "helpUrl" : Blockly . Msg . TEXT_REPLACE_HELPURL
539536 } ) ;
@@ -557,7 +554,7 @@ Blockly.Blocks['text_reverse'] = {
557554 ] ,
558555 "output" : "String" ,
559556 "inputsInline" : true ,
560- "colour" : Blockly . Blocks . texts . HUE ,
557+ "colour" : Blockly . Msg . TEXTS_HUE ,
561558 "tooltip" : Blockly . Msg . TEXT_REVERSE_TOOLTIP ,
562559 "helpUrl" : Blockly . Msg . TEXT_REVERSE_HELPURL
563560 } ) ;
0 commit comments