|
|
@@ -20,6 +20,7 @@ import ifElseImage from '@/assets/images/blockly/component/if_else.png';
|
|
|
import lightRedImage from '@/assets/images/blockly/light/red.png';
|
|
|
import lightYellowImage from '@/assets/images/blockly/light/yellow.png';
|
|
|
import lightGreenImage from '@/assets/images/blockly/light/green.png';
|
|
|
+import mapEndImage from '@/assets/images/blockly/component/mapEnd.png';
|
|
|
import {DICT_TYPE} from '@/utils/dictUtils.js';
|
|
|
|
|
|
|
|
|
@@ -377,7 +378,7 @@ const availableBlocks = {
|
|
|
"type": "field_dropdown",
|
|
|
"name": "MODE",
|
|
|
"options": [
|
|
|
- ["当", "WHILE"],
|
|
|
+ ["每当", "WHILE"],
|
|
|
["直到", "UNTIL"]
|
|
|
]
|
|
|
},
|
|
|
@@ -387,7 +388,7 @@ const availableBlocks = {
|
|
|
"check": "Boolean"
|
|
|
}
|
|
|
],
|
|
|
- "message1": "执行 %1",
|
|
|
+ "message1": "重复执行 %1",
|
|
|
"args1": [
|
|
|
{
|
|
|
"type": "input_statement",
|
|
|
@@ -433,7 +434,16 @@ const availableBlocks = {
|
|
|
is_at_end: {
|
|
|
jsonConfig: {
|
|
|
"type": "is_at_end",
|
|
|
- "message0": "到达终点",
|
|
|
+ "message0": "%1 到达终点",
|
|
|
+ "args0": [
|
|
|
+ {
|
|
|
+ "type": "field_image",
|
|
|
+ "src": mapEndImage,
|
|
|
+ "width": 25,
|
|
|
+ "height": 25,
|
|
|
+ "alt": "终点"
|
|
|
+ }
|
|
|
+ ],
|
|
|
"output": "Boolean",
|
|
|
"colour": 10,
|
|
|
"tooltip": "检查角色是否到达终点位置",
|