scratchfoundation / scratch-vm

Virtual Machine used to represent, run, and maintain the state of programs for Scratch 3.0
http://scratchfoundation.github.io/scratch-vm/
BSD 3-Clause "New" or "Revised" License
1.19k stars 1.46k forks source link

How to change the color of extension block #2218

Open crouse12 opened 5 years ago

crouse12 commented 5 years ago

I create some extension blocks for scratch3. In the previous version, I can use colour: '#696969', colourSecondary: '#A9A9A9', colourTertiary: '#696969', to modify the color of extension block. However, I found these three parameters cannot do it. May I know how to modify the color of extension color now?

ErikMejerHansen commented 5 years ago

Looks like they where renamed to color1, color2 and color3.

crouse12 commented 5 years ago

thanks. In addition, I found that I cannot put a variable block into the menu of my block. May I know how to modify it?

image

ErikMejerHansen commented 5 years ago

I'd have a look at https://github.com/cwillisf/scratch-vm/blob/aae7607e10735a74b7aa9d519b4ef21c9878a976/docs/extensions.md#accepting-reporters-droppable-menus where they have a nice example of how to create menu that accepts reporters.

crouse12 commented 5 years ago

Thank you very much.