Hat blocks in grey rings

hey guys, I managed to put hat blocks in grey rings (by editing the xml), so here they are
image
and here's the link so you know this is not a prank Snap! Build Your Own Blocks

1 Like

You can edit the XML to put any block anywhere if you want to. But Snap! already allows you to put blocks anywhere they're useful, unlike Scratch, which adds unnecessary restrictions, so there really isn't a point.

Once you've done that, can you CALL or RUN them? What would that mean?

1 Like

idk, I haven't tried yet, but I have figured out that the hat blocks don't get triggered inside the rings. I have found more things, but I'll put them in the project.

ok, I added a short tutorial, thing, in the project showing more stuff with hat blocks (including call and run)

Same as when you click a hat block with no script attached. It's just a no-op.

putting hat blocks in rings isn't possible without editing the xml, and I'm showing what hat blocks work in hat blocks (and inside scripts)

when <(when green flag clicked::control hat)::grey ring>::control hat
move ((when I am [clicked v]::control hat)::grey ring) steps

can you just please

You guys are all weird.

2 Likes

Thanks for the compliment.

You're welcome!

It has been done, two years later.

image

oh, and btw it doesnt do anything so

Is this supposed to be a dark mode or something?

Actually, it's faded blocks.

it appears that when you make a script with a hat block and at least one block below it, and ringify any block (including the hat), it ringifies the hat block too

when gf clicked
vee::looks// ringify any block in this script

output:

{when gf clicked
vee::looks
}::grey ring

and from there you can remove vee to have a hat in a grey ring

That makes sense, because ringify puts a ring around the entire script, which includes the hat block.

This topic is very old, and it was made before hat blocks could be put in grey rings in the editor (it's actually a very recent addition), so this is not surprising.

arright

You can just ringify hat blocks now

See, see!

I told you!!

haha, yeah.