Skip to content

Commit

Permalink
Update data.js
Browse files Browse the repository at this point in the history
  • Loading branch information
LilyMakesThings authored Sep 23, 2024
1 parent ba3eb6b commit 99001d2
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions blocks_vertical/data.js
Original file line number Diff line number Diff line change
Expand Up @@ -403,6 +403,32 @@ Blockly.Blocks['data_replaceitemoflist'] = {
}
};


Blockly.Blocks['data_setlist'] = {
/**
* Block to insert item to list.
* @this Blockly.Block
*/
init: function() {
this.jsonInit({
"message0": Blockly.Msg.DATA_SETLIST,
"args0": [
{
"type": "field_variable",
"name": "LIST",
"variableTypes": [Blockly.LIST_VARIABLE_TYPE]
},
{
"type": "input_value",
"name": "ARRAY"
}
],
"category": Blockly.Categories.dataLists,
"extensions": ["colours_data_lists", "shape_statement"]
});
}
};

Blockly.Blocks['data_itemoflist'] = {
/**
* Block for reporting item of list.
Expand Down

0 comments on commit 99001d2

Please sign in to comment.