mirror of
https://github.com/scratchfoundation/scratch-blocks.git
synced 2025-08-28 22:10:31 -04:00
Classify blocks by category (#638)
* boilerplate for category attribute * style tweaks for Travis * I read up on valid-jsdoc * add to horizontal as well * categories for vertical/event * categories for vertical/data * categories for vertical/control * categories for vertical/looks * categories for vertical/more * categories for vertical/motion * categories for vertical/operators * categories for vertical/pen * categories for vertical/senising * rename Blockly.Categories.sounds to Blockly.Categories.sound * add categories for vertical/sound * categories for horizontal/control * categories for horizontal/event * categories for horizontal/wedo -- based off of color instead of adding wedo category
This commit is contained in:
parent
d929da38c5
commit
d7745b12fd
17 changed files with 195 additions and 2 deletions
|
@ -244,3 +244,20 @@ Blockly.STACK_GLOW_RADIUS = 1.3;
|
|||
* @const
|
||||
*/
|
||||
Blockly.REPLACEMENT_GLOW_RADIUS = 2;
|
||||
|
||||
/**
|
||||
* ENUM for categories.
|
||||
* @const
|
||||
*/
|
||||
Blockly.Categories = {
|
||||
"motion": "motion",
|
||||
"looks": "looks",
|
||||
"sound": "sounds",
|
||||
"pen": "pen",
|
||||
"data": "data",
|
||||
"event": "events",
|
||||
"control": "control",
|
||||
"sensing": "sensing",
|
||||
"operators": "operators",
|
||||
"more": "more"
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue