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

Is possible has one more input_value in one row? #26

Open vml933 opened 3 years ago

vml933 commented 3 years ago

Hello:

My defined block has 4 input_value, every row only has 1 input_value. I wish every row has 2 input_value, after try 2 pair message & args, and try "align" tag, both not works. only choice is set "inputsInline": true: 4 input_value in one row, but when insert 4 block in my block, it looks so long.

Is it possible define how many input_value in each row?

my block just like { "type": "myblock", "message0": "A:%1 B:%2 C:%3 D:%4", "args0": [ {"type": "input_value","name": "A"}, {"type": "input_value","name": "B"}, {"type": "input_value","name": "C"}, {"type": "input_value","name": "D"} ], "previousStatement": null, "nextStatement": null }

Thanks.

imagicbell commented 3 years ago

Sorry, it is not supported now. To implement this, we have to change the code of building blocks: BlockViewBuilder.BuildInputViews, as well as the JSON config parameters. Maybe we could put an enhancement here 😃

vml933 commented 3 years ago

I got it, Thanks your reply and support