Skip to content

Commit

Permalink
点击帽子语句块进入Arduino时发送指令通知js勾选菜单
Browse files Browse the repository at this point in the history
  • Loading branch information
yuerugou committed Feb 27, 2017
1 parent ce2f917 commit 38c85c5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/blocks/Block.as
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ import translation.Translator;

import uiwidgets.ScriptsPane;

import util.JsUtil;
import util.ReadStream;

public class Block extends Sprite {
Expand Down Expand Up @@ -928,6 +929,7 @@ public class Block extends Sprite {
if(isHat && op.indexOf("runArduino")>=0 && !MBlock.app.stageIsArduino)
{
MBlock.app.toggleArduinoMode();
JsUtil.callApp("updateMenuStatus",["arduino mode"]);
return;
}
MBlock.app.runtime.interp.toggleThread(topBlock(), MBlock.app.viewedObj(), 1);
Expand Down
Binary file modified web/flash-core/mblock.swf
Binary file not shown.

0 comments on commit 38c85c5

Please sign in to comment.