Split! - Snap! but Scratch (Part 5)

Yeah, fixLayout doesn’t account for the predicate shape :(

(why didn’t the emojicon turn into a regular emoji??)

I think I might actually be able to fix this (the predicate fixLayout, not the multi input one), give me a bit (im going to PR it along with a stage bubble positioning fix, it was being weird with the Scratch-style rounding)

So… I wasn’t able to. Because the height isnt calcuated when I first need the correct rounding in fixLayout, because the layout hasnt been layout yet! blockHeight only gets finally calcuated near the end. We might have to just remove predicate rounding like that…

Yeah, that’s sad…

I could try making it like snapblocks, where scratch 3 predicates just get taller

<supe
tall
predicate! 
I
am
so
tall! :: operators>

It seems that that is what Scratch does as well:


The predicate issue seems to be a different matter, because Scratch doesn’t wrap code onto new lines when it gets too wide.

I actually never knew that!!! I think it might have to do with the new spork update, as I remember the Blockly “zelos” renderer doing this.

Probably just do something like that with Snap!'s default fixed-width predicate corners.

Note: I do have to sleep. I was working on a better flyout system (as the stage, costumes, and sounds also use it) so its more easy. I will finish that tomorrow and add them for the stage, costumes, and sounds.

I think it’s a new thing, it’s happened to me too :D

Fair enough, I think the new one conveys “Scratch” better, but the current one is cleaner.


I’ve decided to update the block rounding algorithm, so it should work now. Predicates still need a bit of work, but the line count and rounding are calculated early in fixLayout, so this shouldn’t be hard!

You should make only text slots square and make any & number round.

Beautiful! Just a note here, the extensions block option do not display.. well the extension blocks. :(

I will now work on finishing the flyout system.

Or just make text slots wide, since any/number are way more common and should be differentiated more

Thankfully .. Ill still use bh emoticons though :~)

Is this the link to get it? https://e016.github.io/split-mod/split.html

Yes, that is the official Split! link.

Well in that case…

HOW DID I GET THAT FROM THE SCRATCH WIKI?!

Did one of you add it?

How?

It’s not even a Scratch mod it’s a Snap! mod!

???

Where did you find my mod in the scratch wiki?

It’s in the Scratch Wiki’s list of scratch mods

It was A-MARIO-PLAYER over on the scratch wiki, using a python script to update the list. Guess somebody was talking about my mod over on the scratch forums!

image

Doing some more digging, it seems like this post is why my mod was picked up by the script:


(link)

It does say that there are Snap! mods in the list, so I do see why it’s there. Also, I wouldn’t be surprised if somebody opened Split! and thought it was actually a Scratch mod xD