Skip to content

Conversation

@kchadha
Copy link
Contributor

@kchadha kchadha commented Jul 4, 2018

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

  • Chrome
  • Firefox
  • Safari

Windows

  • Chrome
  • Firefox
  • Edge

Chromebook

  • Chrome

iPad

  • Safari

Android Tablet

  • Chrome

@kchadha kchadha changed the title Local Variable Options Local Variables Jul 4, 2018
@kchadha kchadha added this to the July 2018 milestone Jul 5, 2018
@kchadha
Copy link
Contributor Author

kchadha commented Jul 5, 2018

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.

<Box className={styles.optionsRow}>
<label>
<input
checked

This comment was marked as abuse.

@kchadha kchadha force-pushed the variable-modal-options branch from df7d522 to 00b11c0 Compare July 6, 2018 19:12
@kchadha kchadha force-pushed the variable-modal-options branch from 00b11c0 to 55af45c Compare July 6, 2018 19:14
@kchadha
Copy link
Contributor Author

kchadha commented Jul 9, 2018

@paulkaplan This PR finally builds, so it's ready for re-review.

Copy link
Contributor

@paulkaplan paulkaplan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LG

@paulkaplan paulkaplan assigned kchadha and unassigned paulkaplan Jul 9, 2018
@kchadha kchadha merged commit 7a76aa3 into scratchfoundation:develop Jul 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants