I am trying to create a line separator in the Control category of the blocks palette, just like the one that exists in Sensing, between "loud?" and "... sensor value" blocks. I looked at the source code of blockSpecs, under ScratchSpriteMorph, and found that the character responsible for presenting the line was the tilde (~). I tried to use it in Control but it doesn't show up in Scratch. I also tried to use it under other categories such as Looks, Sound, Operators, Lists, and it didn't work except for Sensing. Is there any reasonable explanation? Why can't I add a line separator in any other category except Sensing?
Offline
I thought it was the = sign, but that doesn't work either. I don't know.
Offline
the = sign works, but only in the sensing category (because it has a special code that recognizes it).
To make all categories recognize the = sign, you need to change a bunch of stuff in the viewBlocksForCategory: method in ScriptableScratchMorph ('blocks' section)
Offline
Ok I thought it was some kind of mistyping error that would have a simple solution, but since it deals with changing "a bunch of stuff" in methods, I guess I'll leave this for sometime later, since I have higher priority tasks to accomplish.
Thanks for the replies.
Offline