jmoenig / Snap

a visual programming language inspired by Scratch
http://snap.berkeley.edu
GNU Affero General Public License v3.0
1.51k stars 745 forks source link

Relabel rings #304

Open Scimonster opened 10 years ago

Scimonster commented 10 years ago

Would it be possible to relabel rings? This should be extremely simple for empty rings (just change the type, keeping all input names), but could possibly get more complex for rings with stuff inside.

Reporter -> Predicate (and vice versa): Simply change ring type, because it is possible to mess up the types Reporter/Predicate -> Stack: Enclose the existing content in a [report []] block Stack -> Reporter/Predicate: IDK. Maybe just don't let it?

I've had several cases recently where i wanted to switch from a reporter/predicate ring to stack.

jmoenig commented 10 years ago

just use "ringify" for whichever block or script you want to ringify

Scimonster commented 10 years ago

The point is, it already is in a ring. But the wrong type of ring. I also already have up to 3 labeled parameters used inside, and it's always easier not to recreate that.

~Sci

On Mon, Jan 13, 2014 at 5:20 PM, Jens Mönig notifications@github.comwrote:

just use "ringify" for whichever block or script you want to ringify

— Reply to this email directly or view it on GitHubhttps://github.com/jmoenig/Snap--Build-Your-Own-Blocks/issues/304#issuecomment-32178095 .

brianharvey commented 10 years ago

Here's a proposed compromise: When you drag a command block into an /empty/ reporter ring, it automagically changes its shape to match.

This would be especially useful for the case in which the ring is built into an input slot of a HOF and I need to do something complicated before reporting a value.

cycomachead commented 10 years ago

All, you want to do is right click and have relabel work for rings, right? Or at least that was my understanding...

That should be simple to do, and IMO, would make sense to have as it matches the other relabel paradigm in snap.

However, I do like @brianharvey's suggestion of auto-switching to block type as that seems really friendly. :)

brianharvey commented 10 years ago

I hereby declare this a project for @Scimonster and/or a UCB student.

Scimonster commented 10 years ago

Umm, I guess I have to say I've never hacked on Snap before...

On Thursday, July 10, 2014, brianharvey notifications@github.com wrote:

I hereby declare this a project for @Scimonster https://github.com/Scimonster and/or a UCB student.

— Reply to this email directly or view it on GitHub https://github.com/jmoenig/Snap--Build-Your-Own-Blocks/issues/304#issuecomment-48656110 .

Sent from Gmail Mobile