Skip to content

Commit cfacb20

Browse files
committed
Added repeat until button block
Added to the loops section a block that repeats until the user button is pressed.
1 parent ee69f4d commit cfacb20

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/components/blockly/xrp_blockly_configs.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -326,6 +326,11 @@ const ToolboxJson = {
326326
{
327327
"kind": "CATEGORY",
328328
"contents": [
329+
{
330+
"kind": "BLOCK",
331+
"blockxml": "<block type=\"controls_whileUntil\">\n <field name=\"MODE\">UNTIL</field>\n <value name=\"BOOL\">\n <block type=\"xrp_button_pressed\"></block>\n </value>\n</block>",
332+
"type": "controls_whileUntil"
333+
},
329334
{
330335
"kind": "BLOCK",
331336
"blockxml": "<block type=\"controls_repeat_ext\">\n <value name=\"TIMES\">\n <shadow type=\"math_number\">\n <field name=\"NUM\">10</field>\n </shadow>\n </value>\n </block>",

0 commit comments

Comments
 (0)