Update src/engine/runtime.js
Browse files- src/engine/runtime.js +28 -0
src/engine/runtime.js
CHANGED
|
@@ -1164,6 +1164,30 @@ class Runtime extends EventEmitter {
|
|
| 1164 |
return 'THREAD_FINISHED'
|
| 1165 |
}
|
| 1166 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1167 |
/**
|
| 1168 |
* How rapidly we try to step threads by default, in ms.
|
| 1169 |
*/
|
|
@@ -2081,6 +2105,10 @@ class Runtime extends EventEmitter {
|
|
| 2081 |
context.inputList.push(`<mutation expanded="false" points="${argInfo.nodes}" color="${context.blockJSON.colour}" midle="[0,0]" scale="${argInfo.defaultSize || 30}"/>`);
|
| 2082 |
}
|
| 2083 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2084 |
// A <field> displays a dynamic value: a user-editable text field, a drop-down menu, etc.
|
| 2085 |
// Leave out the field if defaultValue or fieldName are not specified
|
| 2086 |
if (fieldName && !variableID) {
|
|
|
|
| 1164 |
return 'THREAD_FINISHED'
|
| 1165 |
}
|
| 1166 |
|
| 1167 |
+
/**
|
| 1168 |
+
* Event name for sprite renaming.
|
| 1169 |
+
* @const {string}
|
| 1170 |
+
*/
|
| 1171 |
+
static get SPRITE_RENAMED () {
|
| 1172 |
+
return 'SPRITE_RENAMED'
|
| 1173 |
+
}
|
| 1174 |
+
|
| 1175 |
+
/**
|
| 1176 |
+
* Event name for costume renaming.
|
| 1177 |
+
* @const {string}
|
| 1178 |
+
*/
|
| 1179 |
+
static get COSTUME_RENAMED () {
|
| 1180 |
+
return 'COSTUME_RENAMED'
|
| 1181 |
+
}
|
| 1182 |
+
|
| 1183 |
+
/**
|
| 1184 |
+
* Event name for sound renaming.
|
| 1185 |
+
* @const {string}
|
| 1186 |
+
*/
|
| 1187 |
+
static get SOUND_RENAMED () {
|
| 1188 |
+
return 'SOUND_RENAMED'
|
| 1189 |
+
}
|
| 1190 |
+
|
| 1191 |
/**
|
| 1192 |
* How rapidly we try to step threads by default, in ms.
|
| 1193 |
*/
|
|
|
|
| 2105 |
context.inputList.push(`<mutation expanded="false" points="${argInfo.nodes}" color="${context.blockJSON.colour}" midle="[0,0]" scale="${argInfo.defaultSize || 30}"/>`);
|
| 2106 |
}
|
| 2107 |
|
| 2108 |
+
if (shadowType === 'matrix') {
|
| 2109 |
+
context.inputList.push(`<mutation width="${argInfo.matrixWidth || 5}" height="${argInfo.matrixHeight || 5}"/>`)
|
| 2110 |
+
}
|
| 2111 |
+
|
| 2112 |
// A <field> displays a dynamic value: a user-editable text field, a drop-down menu, etc.
|
| 2113 |
// Leave out the field if defaultValue or fieldName are not specified
|
| 2114 |
if (fieldName && !variableID) {
|