imagicbell / ublockly

reimplementation of google blockly for Unity
http://imagicbell.github.io/unity/2017/10/11/blockly-one.html
Apache License 2.0
140 stars 54 forks source link

自定义block,没有下一条语句的连接点(突出小半圆) #36

Closed sagaii closed 3 years ago

sagaii commented 3 years ago

{ "type": "crvprogram_start", "message0": "Start", "nextStatement":null, "tooltip": "", "helpUrl":"" }

我按照上面的json样式,自定义了block,目前只显示一个圆角矩形(没有突出的小半圆)。

加上"previousStatement": null ,就有了下一条语句的连接点,当然上一条语句的缩进的小半圆连接点也有了。

imagicbell commented 3 years ago

Yes, the nextStatement should be paired with previousStatement. Neither can be declared alone.

sagaii commented 3 years ago

can i custom block like this ? 1

or ublockly support custom block like this ? 2

imagicbell commented 3 years ago

Thanks for reminding me. The update 49c99a8 has added this feature.

sagaii commented 3 years ago

ok,thanks