-
Notifications
You must be signed in to change notification settings - Fork 4k
Local Variables #2548
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Local Variables #2548
Conversation
|
Note: Tests are currently failing and will continue to fail until the changes from the PRs on scratch-blocks and scratch-vm are pulled in. |
src/components/prompt/prompt.jsx
Outdated
| <Box className={styles.optionsRow}> | ||
| <label> | ||
| <input | ||
| checked |
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
df7d522 to
00b11c0
Compare
…M to scratch-blocks for checking for conflicts in all sprites when attempting to create a global var.
00b11c0 to
55af45c
Compare
|
@paulkaplan This PR finally builds, so it's ready for re-review. |
paulkaplan
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LG
Resolves
Resolves scratchfoundation/scratch-vm#1278
Proposed Changes
Allow specifying variables as local vs. global via options in the variable modal. Variable modals on the stage display a message indicating that variable being created will be global. Pass var names from VM to scratch-blocks for checking for conflicts in all sprites when attempting to create a global var.
Test Coverage
Manual testing.
Test branch set up at:
Related PRs
This PR should be merged last.
This PR is related to the following PRs:
scratchfoundation/scratch-blocks#1621 <--- This PR should be merged first
scratchfoundation/scratch-vm#1301 <--- This PR should be merged second
Browser Coverage
Check the OS/browser combinations tested (At least 2)
Mac
Windows
Chromebook
iPad
Android Tablet