scratchfoundation / scratch-gui

Graphical User Interface for creating and running Scratch 3.0 projects.
https://scratchfoundation.github.io/scratch-gui/develop/
BSD 3-Clause "New" or "Revised" License
4.43k stars 3.51k forks source link

Cannot make the difference between local and global variables in variable selector. #4285

Open Ascor8522 opened 5 years ago

Ascor8522 commented 5 years ago

Expected Behavior

A visual element should show the difference (separator or icon?) between global and local variables in variable selectors (dropdown menus in variable blocks i.e.).

Actual Behavior

No way to distinguish local and global variables.

Steps to Reproduce

Create a local variable. Create a local variable.

Can you remember which one is local, which one is global? If yes, add another 10 variables. Can you remember now?

Additional notes

Scratch 2 has a separator to distinguish global from local variable. See the separator between the variable in the dropdown? In Scratch 3.0 Except the name, how could you make the difference? By the way, this also applies to lists.

Operating System and Browser

Any browser or operating system.

towerofnix commented 5 years ago

See also discussion in LLK/scratch-blocks#1379, although this isn't quite the same issue.

thisandagain commented 5 years ago

/cc @carljbowman @kathymakes @kchadha

Naohiro2g commented 3 years ago

Scratch 1.4 was way better than 2.0 or 3.0. This representation helps the learners to acquire the concept of variables.

I can say this is a critical issue according to Scratch's mission. Nevertheless, it has been neglected for two years. Please tell us at least which code we can contribute with.

Screen Shot 2021-02-27 at 4 00 54

Naohiro2g commented 3 years ago

In Scratch 3.0, not only are local and global variables not distinguished, but they are also sorted alphabetically and mixed together.

Screen Shot 2021-02-27 at 4 20 05

apple502j commented 3 years ago

@Naohiro2g これはscratch-blocksですね。ソースでいえば data_variableの右クリックメニューは https://github.com/LLK/scratch-blocks/blob/develop/blocks_vertical/data.js#L510 ドロップダウンは https://github.com/LLK/scratch-blocks/blob/develop/core/field_variable.js#L277 です。 ただし、Scratch Teamは機能追加のPRを勝手に出されると弾くか無視することが大半のため、help wantedがつくまで待ったほうがいいです。(付く保証はありません。)

That's scratch-blocks. Source code would be https://github.com/LLK/scratch-blocks/blob/develop/blocks_vertical/data.js#L510 for context menu of data_variable and https://github.com/LLK/scratch-blocks/blob/develop/core/field_variable.js#L277 for dropdowns. However ST tends to reject or ignore feature PRs without prior discussion, so it's better to wait until it gets "help wanted" (which, tbh, will never happen).

Naohiro2g commented 3 years ago

ありがとうございます。なるほど。同様のissueが出ていて、それなりの議論もなされているようですね。改めて問題提起からリスタートしないとダメっぽいです。若い初学者向けの視点で。 https://github.com/LLK/scratch-blocks/pull/1657 https://github.com/LLK/scratch-blocks/issues/1636

Thank you, I see. I found there are similar issues and some discussion on those. It seems like we need to restart with the problem again from a perspective for young beginning students.