Discuss Scratch

s_federici
Scratcher
500+ posts

List blocks arguments dropdown

When did the dropdowns for position arguments of list blocks disappear? I'm sure this has been extensively discussed sometimes (and I remember something, but not the exact terms) but I can't find it in the forums.

I'm a very frequent user of Scratch 1.4, where position arguments of list blocks have their own very nice dropdowns, and I only spottily used Scratch 2 and Scratch 3. So I didn't notice they where gone forever. Is there a strong reason why this happened?
rdococ
Scratcher
100+ posts

List blocks arguments dropdown

Scratch 2.0 had them for sure. Scratch 3.0 doesn't - probably because Blockly, which Scratch 3.0 uses, doesn't natively support number inputs with dropdowns that also allow you to select specific text values.

In the meantime, you can drag the ‘join’ reporter into it, and it will still work:

delete (join [random] []) of [list v]
s_federici
Scratcher
500+ posts

List blocks arguments dropdown

rdococ wrote:

delete (join [random] []) of [list v]

Yes, thank. It is clear that it is possible to replace those arguments with several other reporters. But I would like to know if they are gone forever, or if it is in the workplan of the Scratch Team to bring them back as soon as possibile (or, at least, sometime)
Jeffalo
Scratcher
100+ posts

List blocks arguments dropdown

wait so what would a project made using those blocks look like today?
Maximouse
Scratcher
1000+ posts

List blocks arguments dropdown

Jeffalo wrote:

wait so what would a project made using those blocks look like today?
It looks like this:

You are reading Maximouse's signature. Learn more about signatures
Click here to make pixel art.

Harakou wrote:

Yeah, this seems to be a request for custom reporter blocks - which has been suggested in the linked topic and a number of other times. I know I would personally love to see them, myself - I'm not sure what technical or design concerns there to them, if any.
Sheep_maker
Scratcher
1000+ posts

List blocks arguments dropdown

It was probably removed because the dropdown would clash with the number pad for touch users. It also doesn't work for other languages (the input is English-centric):
((lasta v)-a ero de [listo v]::list) // works
((kunligi [lasta] kaj []::operators)-a ero de [listo v]::list) // does not work
((kunligi [last] kaj []::operators)-a ero de [listo v]::list) // works
Since extension block dropdown menus in Scratch 3.0 all accept reporters for compatibility reasons, they allow an input in any language for its language dropdown. Some extensions like the pen extension are also English-centric:
cambiar (unir [saturación] []::operators) de lápiz por (-10)::pen // doesn't work
cambiar (unir [saturation] []::operators) de lápiz por (-10)::pen // works
While others, like the translate extension, allow an input in any language:
(traducir [hola] al (unir [français] []::operators)::extension)

Edit: Apparently the unir _ _ block is only recognized by Scratchblocks in the preview

Last edited by Sheep_maker (May 29, 2020 17:41:31)


- Sheep_maker This is a kumquat-free signature. :P
This, my signature, appears below all my posts. Discuss it on my profile, not the forums. Here's how to make your own.
.postsignature { overflow: auto; } .scratchblocks { overflow-x: auto; overflow-y: hidden; }
s_federici
Scratcher
500+ posts

List blocks arguments dropdown

Jeffalo wrote:

wait so what would a project made using those blocks look like today?

In Scratch 1.4 and 2 you can select the arguments “any” and “last” in the list dropdowns, so you can use very easily

(item (any v) of [list v] :: list)
and
(item (last v) of [list v] :: list)

while in Scratch 3, to get these results, you have to compose blocks like in

(item (pick random (1) to (length of [list v] :: list)) of [list v] :: list)

and

(item (length of [list v] :: list) of [list v] :: list)

I guess this is a decisive move for me to move to Snap.

Sheep_maker wrote:

It was probably removed because the dropdown would clash with the number pad for touch users
It also doesn't work for other languages (the input is English-centric)
I don't need Scratch to work on tablets, and the old list blocks used to work very well in my Italian translation (that is, I guess, the more distant translation from English of Scratch). You can see it in Snap (or in Scratch 1.4 or Scratch 2) if you are interested. Snap is still Javascript but it is more similar to Scratch 1.4, the version of Scratch that was really ideal to teach Scratch. And Snap is also very easy to tweek (there are a lot of extension already) in order to make it closer to what you need. Something that I found instead very difficult -even to start with- as of Scratch 3.

Last edited by s_federici (May 30, 2020 08:04:45)

Powered by DjangoBB

Standard | Mobile