Commit graph

32 commits

Author SHA1 Message Date
Andy O'Neill
ffcd546474 feat: add quaternary color for selected dropdowns 2023-03-02 13:46:07 -05:00
chrisgarrity
433f040b86 Localize the stop block
Use Blockly.Msg to look up text instead of hard-coded English.
2018-06-25 16:41:49 -04:00
Andrew Sliwinski
7e08190329 Add various missing translation strings. Resolves GH-1490 2018-05-13 13:34:33 -04:00
Rachel Fenichel
ab5d4e7b9d Lint in block definitions 2018-05-02 15:58:36 -07:00
Florrie
c20110ecad Add all-at-once block 2018-04-30 12:19:20 -03:00
Andrew Sliwinski
2c0bf6b896 Move all block strings into messages.js 2018-04-23 16:11:05 -04:00
kchadha
9594f93f90
Merge pull request from towerofnix/counter-blocks
Add counter blocks
2018-04-09 13:55:07 -04:00
Florrie
fc25a4ead9 Add counter, incr_counter, clear_counter blocks 2018-04-07 16:04:06 -03:00
Florrie
7c93042ec8 Add control_while block 2018-04-07 13:50:35 -03:00
Florrie
e48b981b16 Fix lint error 2018-03-05 17:50:26 -04:00
Florrie
55b4286681 Merge branch 'develop' of https://github.com/LLK/scratch-blocks into foreach 2018-03-05 13:53:05 -04:00
Florrie
305a891d56 Add for-each block 2018-03-05 13:31:15 -04:00
Paul Kaplan
9e826d1646 Fire mutation change event to keep field value and mutator value in sync 2018-02-08 09:51:31 -05:00
Paul Kaplan
8c60bc56b8 Fully spell out "seconds" in think, say and wait blocks.
Per  leave it on the glide blocks.
2017-12-20 18:25:24 -05:00
Shenghong
fbc4483d6b fix inconsistent block src image in control.js () 2017-09-11 10:33:46 -07:00
Tim Mickel
ff9fadd62b Update vertical block icons to spec, fixes 2017-07-24 21:32:59 -04:00
Rachel Fenichel
cb402aeb21 Use blockly extensions for more block definitions ()
* Convert more categories of blocks

* More blockly extensions

* Add missing requires

* Add comments and annotations to the vertical_extensions file

* Fix build problems
2017-06-19 16:31:13 -07:00
Rachel Fenichel
e50b22ea63 Set block color with extensions ()
* Use extensions to share color and shape between some blocks

* Fix build problem

* And remove spurious require
2017-06-15 19:13:35 -07:00
Rachel Fenichel
09dc7c1b54 Revert "Use extensions to share color and shape between some blocks ()" ()
This reverts commit c7afcda275.
2017-06-14 10:49:34 -07:00
Rachel Fenichel
c7afcda275 Use extensions to share color and shape between some blocks () 2017-06-13 14:27:57 -07:00
Tim Mickel
f35f7749e8 Block arrow placeholders to match 2.0 () 2016-10-04 18:10:13 -04:00
Airhogs777
d7745b12fd Classify blocks by category ()
* 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
2016-09-30 16:42:39 -04:00
Tim Mickel
eb18c2c402 Stop block to match 2.0 ()
* Stop block with mutator

* Insertion marker takes mutations

* Remove shadow from playground

* Drop list options when connected

* Constants
2016-09-22 16:52:50 -04:00
Tim Mickel
ff65bc54f6 Block consistency improvements, fix ()
* Block consistency improvements, fix 

* Recompile Sept. 14
2016-09-14 13:18:43 -04:00
Tim Mickel
1de1727656 Improve consistency of naming in blocks ()
* Block naming tweaks for scratch-vm

* Fix various blocks to be more consistent

* Recompile 9/2
2016-09-02 16:09:22 -04:00
Tim Mickel
37dcd9b045 Blocks lint and licenses () 2016-07-11 11:00:33 -04:00
Tim Mickel
c51241f38f Use multiple messages in control JSON instead of explicit dummys () 2016-07-07 11:14:53 -04:00
Tim Mickel
553c825d7a Separate output edge shapes from output types ()
* Separate output shape from type checking.

* Fix enum check in actual output shape rendering.

* Add output shapes for most relevant blocks.

* Bring back and update output shapes for unoccupied connections.

* Fix output shapes for boolean-type operators

* Update type-checking in blocks to match Scratch 2.0
2016-06-23 19:04:20 -04:00
Tim Mickel
85578d8c7c Color fixes for text drop-down menus ()
* Add class for drop-down text colour; remove arrow special case

* Use secondary colours in drop-down blocks

* Add comment about updateTextNode_ resetting the class
2016-06-13 19:06:12 -04:00
Tim Mickel
bf66362d1c More blocks ()
* Add "then" text and a dummy input to control_if

* Add "then" text to if-else; add image to repeat

* Reshuffle of control blocks to match Scratch 2.0

* Add "wait until" block

* Add "repeat until" block.

* Add menu for "stop" block.

* Add "clone" blocks

* Add broadcast menu examples
2016-06-13 12:12:33 -04:00
Tim Mickel
e7a9ad2f93 Add some vertical blocks and remove some old ones ()
* Add `add` block example

* Add if, if-else, equals; remove old if-elses

* Naming fixes and removal of a dummy input for if-else

* Recompile for vertical blocks examples
2016-05-25 14:13:21 -04:00
Tim Mickel
f212b10870 Vertical demo blocks
* Implement example text-based vertical blocks

* Add vertical FIELD_TOP_PADDING (fix )

* Make MAX_DISPLAY_LENGTH per horizontal/vertical

Fixes 

* Vertical dark mode and playground disclaimer

* Remove generator reference from vertical demo
2016-05-05 16:13:43 -04:00