How to create a text block similar to math_numbers block
45 views
Skip to first unread message
lizzhh lizi
unread,
Jul 17, 2024, 12:35:24 PMJul 17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Blockly
When I use text blocks as shadow blocks, I find that these blocks appear more bulky compared to math_numbers blocks.
Pay attention to the part highlighted by the red box in the following image
text block:
math_number block:
I want to remove the outer yellow shadow and quotation marks, and make the field_input and field_numbers look similar
like this (block in scratch):
Beka Westberg
unread,
Jul 18, 2024, 12:47:06 PMJul 18
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Blockly
Hello,
You can do this by defining a custom text block that only includes a text input field, and doesn't include the images. Then change places in your toolbox that reference the built-in blocks to reference your custom block.
I hope that helps! If you have any further questions please reply!