修改第五关的图
This commit is contained in:
20
boards/default/python_skulpt_car/inittool_3543dc69.js
Normal file
20
boards/default/python_skulpt_car/inittool_3543dc69.js
Normal file
@@ -0,0 +1,20 @@
|
||||
var $builtinmodule = function (name) {
|
||||
let mod= {__name__: new Sk.builtin.str("blocktool")};
|
||||
|
||||
var highlight = function(id) {
|
||||
id=Sk.ffi.remapToJs(id)
|
||||
Mixly.Editor.blockEditor.highlightBlock(id);
|
||||
};
|
||||
|
||||
var highlight_f=function(block_id) {
|
||||
return new Sk.misceval.promiseToSuspension(new Promise(function(resolve) {
|
||||
setTimeout( () => {
|
||||
highlight(block_id)
|
||||
resolve(Sk.builtin.none.none$);
|
||||
}, 800);
|
||||
}));
|
||||
}
|
||||
mod.highlight = new Sk.builtin.func(highlight_f);
|
||||
|
||||
return mod;
|
||||
}
|
||||
Reference in New Issue
Block a user