mirror of
https://github.com/google/blockly.git
synced 2026-01-08 09:30:06 +01:00
Making all blocks use the MSG colour values. (#1749)
* Making all blocks use the MSG colour values. * Deprecating Blockly.Constants.Lists.HUE and similar constants. * Removing deprecated Blockly.Blocks.lists.HUE constants. * Allowing message references in the Block.setColour() parameter. * Adding checking of older constants, ensuring they are not overwritten.
This commit is contained in:
committed by
GitHub
parent
d3a9d96841
commit
e9d8e00a55
@@ -37,13 +37,10 @@ goog.require('Blockly');
|
||||
|
||||
|
||||
/**
|
||||
* Common HSV hue for all blocks in this category.
|
||||
* Should be the same as Blockly.Msg.VARIABLES_HUE.
|
||||
* @readonly
|
||||
* Unused constant for the common HSV hue for all blocks in this category.
|
||||
* @deprecated Use Blockly.Msg.VARIABLES_HUE. (2018 April 5)
|
||||
*/
|
||||
Blockly.Constants.Variables.HUE = 330;
|
||||
/** @deprecated Use Blockly.Constants.Variables.HUE */
|
||||
Blockly.Blocks.variables.HUE = Blockly.Constants.Variables.HUE;
|
||||
|
||||
Blockly.defineBlocksWithJsonArray([ // BEGIN JSON EXTRACT
|
||||
// Block for variable getter.
|
||||
|
||||
Reference in New Issue
Block a user