Scratch-blocks: Variables - Getter block to match Scratch 2.0

Created on 17 Aug 2016  Â·  12Comments  Â·  Source: LLK/scratch-blocks

This block should have a single text field, set to the name of the variable, but the right-click menu should behave like the dropdown on a fieldVariable.

enhancement

Most helpful comment

Please don't make us have to keep using ([] of []) for getting variables by name!

https://scratch.mit.edu/discuss/topic/211154/

All 12 comments

Please don't make us have to keep using ([] of []) for getting variables by name!

https://scratch.mit.edu/discuss/topic/211154/

Though to really make it work well you could add a label "variable with name", or something.

I prefer the current system it makes it easier to delete, rename, and change the variable in the reporter

I also like the dynamicly get variable thing. PLEASE do not change it to 2.0-style

Maybe have both? The current system for those particular cases and 2.0's for convenience. It would also be good if you could switch between them in the right-click menu.

IMO an "of myself" block would fit best with 2.0, as it is now.

I feel like the option to switch between them would be messy and unnecessary. +1 for "myself" or "this sprite" option in the "_ of _" sensing block

I like the dropdown version because currently you can create semi-hacky dynamic variables with but without actually hacking the blocks because you can drop a reporter into the variable getter, and setter, if variables are designed like 2.0, you would have to hack the xml of the sensing of block because you cannot put reporters into sensing of.

Yeah, but it doesn't look good:

The only visible thing that tells you it's a dynamic variable getter is the red ring around the block. That's not very obvious, which is why I suggested (var name) of [myself].

@rachel-fenichel - As we discussed we should update the variable getter to match 2.0. As you described the menu items should appear in the right-click.

screen shot 2017-01-17 at 9 52 24 am

Typing in the variable name should still be an option. It can get
inconvenient when you have 500 variables in your project.

On Tue, Jan 17, 2017 at 6:53 AM, carljbowman notifications@github.com
wrote:

@rachel-fenichel https://github.com/rachel-fenichel - As we discussed
we should update the variable getter to match 2.0. As you described the
menu items should appear in the right-click.

[image: screen shot 2017-01-17 at 9 52 24 am]
https://cloud.githubusercontent.com/assets/3409578/22025170/ae34203e-dc9a-11e6-8ad3-1cfc6167e356.png

—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/LLK/scratch-blocks/issues/573#issuecomment-273189956,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ARIzhpW8mxKD7Jwi4VM2xFVcmQRocCDIks5rTNXOgaJpZM4Jl79e
.

RIP fun times

On Tue, Feb 28, 2017 at 3:20 PM, Rachel Fenichel notifications@github.com
wrote:

Closed #573 https://github.com/LLK/scratch-blocks/issues/573 via #810
https://github.com/LLK/scratch-blocks/pull/810.

—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/LLK/scratch-blocks/issues/573#event-980987030, or mute
the thread
https://github.com/notifications/unsubscribe-auth/ARIzhlBUZIuDu0kjHVv5wYNAd6C8b2CLks5rhKvZgaJpZM4Jl79e
.

Was this page helpful?
0 / 5 - 0 ratings