ccIDE/blocks/_Template/block_design.json
damp11113 b77dc34ec6 update 1.1.4 add new Settings block
add new Settings block for env settings
and merge IDE block to system for default
2024-07-20 16:49:13 +07:00

88 lines
2.1 KiB
JSON

{
"math_operation": {
"message0": "args %1 %2 %3",
"args0": [
{
"type": "field_dropdown",
"name": "OPERATOR",
"options": [
["+", "ADD"],
["-", "SUBTRACT"],
["*", "MULTIPLY"],
["/", "DIVIDE"]
]
},
{
"type": "input_value",
"name": "NUM1",
"check": "Number"
},
{
"type": "input_value",
"name": "NUM2",
"check": "Number"
}
],
"inputsInline": true,
"output": "Number",
"colour": 230,
"tooltip": "Perform a mathematical operation",
"helpUrl": ""
},
"text_print": {
"message0": "print %1",
"args0": [
{
"type": "input_value",
"name": "TEXT"
}
],
"previousStatement": null,
"nextStatement": null,
"colour": 160,
"tooltip": "Print text",
"helpUrl": ""
},
"controls_if": {
"message0": "if %1 then",
"args0": [
{
"type": "input_value",
"name": "IF0",
"check": "Boolean"
}
],
"message1": "do %1",
"args1": [
{
"type": "input_statement",
"name": "DO0"
}
],
"previousStatement": null,
"nextStatement": null,
"colour": 210,
"tooltip": "If condition",
"helpUrl": ""
},
"variables_set": {
"message0": "set %1 to %2",
"args0": [
{
"type": "field_variable",
"name": "VAR",
"variable": "item"
},
{
"type": "input_value",
"name": "VALUE"
}
],
"previousStatement": null,
"nextStatement": null,
"colour": 330,
"tooltip": "Set variable",
"helpUrl": ""
}
}