Skip to content

Commit

Permalink
so like that value is needed for other things
Browse files Browse the repository at this point in the history
  • Loading branch information
RedMan13 committed Apr 19, 2024
1 parent f43bba7 commit 710fc2b
Show file tree
Hide file tree
Showing 7 changed files with 108 additions and 52 deletions.
12 changes: 8 additions & 4 deletions blocks_vertical/control.js
Original file line number Diff line number Diff line change
Expand Up @@ -614,7 +614,8 @@ Blockly.Blocks['control_create_clone_of'] = {
"type": "input_value",
"name": "CLONE_OPTION",
"defaultBlock": {
"type": "control_create_clone_of_menu"
"type": "control_create_clone_of_menu",
"fieldName": "CLONE_OPTION"
}
}
],
Expand All @@ -638,7 +639,8 @@ Blockly.Blocks['control_delete_clones_of'] = {
"type": "input_value",
"name": "CLONE_OPTION",
"defaultBlock": {
"type": "control_create_clone_of_menu"
"type": "control_create_clone_of_menu",
"fieldName": "CLONE_OPTION"
}
}
],
Expand Down Expand Up @@ -700,7 +702,8 @@ Blockly.Blocks['control_stop_sprite'] = {
"type": "input_value",
"name": "STOP_OPTION",
"defaultBlock": {
"type": "control_stop_sprite_menu"
"type": "control_stop_sprite_menu",
"fieldName": "STOP_OPTION"
}
}
],
Expand Down Expand Up @@ -742,7 +745,8 @@ Blockly.Blocks['control_run_as_sprite'] = {
"type": "input_value",
"name": "RUN_AS_OPTION",
"defaultBlock": {
"type": "control_run_as_sprite_menu"
"type": "control_run_as_sprite_menu",
"fieldName": "RUN_AS_OPTION"
}
}
],
Expand Down
6 changes: 4 additions & 2 deletions blocks_vertical/event.js
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,8 @@ Blockly.Blocks['event_broadcast'] = {
"type": "input_value",
"name": "BROADCAST_INPUT",
"defaultBlock": {
"type": "event_broadcast_menu"
"type": "event_broadcast_menu",
"fieldName": "BROADCAST_OPTION"
}
}
],
Expand All @@ -287,7 +288,8 @@ Blockly.Blocks['event_broadcastandwait'] = {
"type": "input_value",
"name": "BROADCAST_INPUT",
"defaultBlock": {
"type": "event_broadcast_menu"
"type": "event_broadcast_menu",
"fieldName": "BROADCAST_OPTION"
}
}
],
Expand Down
27 changes: 18 additions & 9 deletions blocks_vertical/looks.js
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,8 @@ Blockly.Blocks['looks_changeVisibilityOfSprite'] = {
"type": "input_value",
"name": "VISIBLE_OPTION",
"defaultBlock": {
"type": "looks_changeVisibilityOfSprite_menu"
"type": "looks_changeVisibilityOfSprite_menu",
"fieldName": "VISIBLE_OPTION"
}
}
],
Expand All @@ -339,7 +340,8 @@ Blockly.Blocks['looks_changeVisibilityOfSpriteShow'] = {
"type": "input_value",
"name": "VISIBLE_OPTION",
"defaultBlock": {
"type": "looks_changeVisibilityOfSprite_menu"
"type": "looks_changeVisibilityOfSprite_menu",
"fieldName": "VISIBLE_OPTION"
}
}
],
Expand All @@ -363,7 +365,8 @@ Blockly.Blocks['looks_changeVisibilityOfSpriteHide'] = {
"type": "input_value",
"name": "VISIBLE_OPTION",
"defaultBlock": {
"type": "looks_changeVisibilityOfSprite_menu"
"type": "looks_changeVisibilityOfSprite_menu",
"fieldName": "VISIBLE_OPTION"
}
}
],
Expand Down Expand Up @@ -687,7 +690,8 @@ Blockly.Blocks['looks_switchcostumeto'] = {
"type": "input_value",
"name": "COSTUME",
"defaultBlock": {
"type": "looks_costume"
"type": "looks_costume",
"fieldName": "COSTUME"
}
}
],
Expand Down Expand Up @@ -738,7 +742,8 @@ Blockly.Blocks['looks_switchbackdropto'] = {
"type": "input_value",
"name": "BACKDROP",
"defaultBlock": {
"type": "looks_backdrops"
"type": "looks_backdrops",
"fieldName": "BACKDROP"
}
}
],
Expand Down Expand Up @@ -966,7 +971,8 @@ Blockly.Blocks['looks_switchbackdroptoandwait'] = {
"type": "input_value",
"name": "BACKDROP",
"defaultBlock": {
"type": "looks_backdrops"
"type": "looks_backdrops",
"fieldName": "BACKDROP"
}
}
],
Expand Down Expand Up @@ -1113,7 +1119,8 @@ Blockly.Blocks["looks_getOtherSpriteVisible"] = {
"type": "input_value",
"name": "VISIBLE_OPTION",
"defaultBlock": {
"type": "looks_getOtherSpriteVisible_menu"
"type": "looks_getOtherSpriteVisible_menu",
"fieldName": "VISIBLE_OPTION"
}
}
],
Expand Down Expand Up @@ -1214,14 +1221,16 @@ Blockly.Blocks['looks_getinputofcostume'] = {
"type": "input_value",
"name": "INPUT",
"defaultBlock": {
"type": "looks_getinput_menu"
"type": "looks_getinput_menu",
"fieldName": "INPUT"
}
},
{
"type": "input_value",
"name": "COSTUME",
"defaultBlock": {
"type": "looks_costume"
"type": "looks_costume",
"fieldName": "COSTUME"
}
},
],
Expand Down
12 changes: 8 additions & 4 deletions blocks_vertical/motion.js
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,8 @@ Blockly.Blocks['motion_pointtowards'] = {
"type": "input_value",
"name": "TOWARDS",
"defaultBlock": {
"type": "motion_pointtowards_menu"
"type": "motion_pointtowards_menu",
"fieldName": "TOWARDS"
}
}
],
Expand Down Expand Up @@ -480,7 +481,8 @@ Blockly.Blocks['motion_goto'] = {
"type": "input_value",
"name": "TO",
"defaultBlock": {
"type": "motion_goto_menu"
"type": "motion_goto_menu",
"fieldName": "TO"
}
}
],
Expand Down Expand Up @@ -625,7 +627,8 @@ Blockly.Blocks['motion_glideto'] = {
"type": "input_value",
"name": "TO",
"defaultBlock": {
"type": "motion_gildeto_menu"
"type": "motion_gildeto_menu",
"fieldName": "TO"
}
}
],
Expand Down Expand Up @@ -796,7 +799,8 @@ Blockly.Blocks['motion_ifonspritebounce'] = {
"type": "input_value",
"name": "SPRITE",
"defaultBlock": {
"type": "motion_goto_menu"
"type": "motion_goto_menu",
"fieldName": "TO"
}
}
],
Expand Down
24 changes: 16 additions & 8 deletions blocks_vertical/operators.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,16 @@ Blockly.Blocks['operator_add'] = {
"type": "input_value",
"name": "NUM1",
"defaultBlock": {
"type": "math_number"
"type": "math_number",
"fieldName": "NUM"
}
},
{
"type": "input_value",
"name": "NUM2",
"defaultBlock": {
"type": "math_number"
"type": "math_number",
"fieldName": "NUM"
}
}
],
Expand All @@ -71,14 +73,16 @@ Blockly.Blocks['operator_subtract'] = {
"type": "input_value",
"name": "NUM1",
"defaultBlock": {
"type": "math_number"
"type": "math_number",
"fieldName": "NUM"
}
},
{
"type": "input_value",
"name": "NUM2",
"defaultBlock": {
"type": "math_number"
"type": "math_number",
"fieldName": "NUM"
}
}
],
Expand All @@ -101,14 +105,16 @@ Blockly.Blocks['operator_multiply'] = {
"type": "input_value",
"name": "NUM1",
"defaultBlock": {
"type": "math_number"
"type": "math_number",
"fieldName": "NUM"
}
},
{
"type": "input_value",
"name": "NUM2",
"defaultBlock": {
"type": "math_number"
"type": "math_number",
"fieldName": "NUM"
}
}
],
Expand All @@ -131,14 +137,16 @@ Blockly.Blocks['operator_divide'] = {
"type": "input_value",
"name": "NUM1",
"defaultBlock": {
"type": "math_number"
"type": "math_number",
"fieldName": "NUM"
}
},
{
"type": "input_value",
"name": "NUM2",
"defaultBlock": {
"type": "math_number"
"type": "math_number",
"fieldName": "NUM"
}
}
],
Expand Down
Loading

0 comments on commit 710fc2b

Please sign in to comment.