我想要在grasshopper电池中间放置一个布尔开关按钮

Hi, everyone, I have been struggling with a problem, I always want to put a Boolean switch button in the middle of grasshopper battery, but this requires to rebuild the battery canvas, may I ask, how can I achieve this goal, thank you.

You may use the GH_Capsule class to reduce difficulties in painting the entire component on your own.

你可以用 GH_Capsule 类来绘制组件的一大部分,再专注于处理自定义的部分即可。

thanks