Skip to content

Conversation

@kchadha
Copy link
Contributor

@kchadha kchadha commented Nov 8, 2018

Resolves

Resolves #1717
Resolves scratchfoundation/scratch-gui#1218

Proposed Changes

Allow multiple monitors for blocks with parameters.

In Scratch 3.0, we currently have three examples of reporter blocks that are monitor-able (have a checkbox in the flyout) and also have a parameter which determines what is being monitored. The changes in this PR make it so that monitors with the same reporter but different values for the parameter can be shown simultaneously (e.g. have a monitor for current year as well as current minute showing on the stage).

Also resolves a bug where image was not importing properly into 3.0.

Reason for Changes

The above was previously not working.

Test Coverage

  • 1. Show monitors for all of the options for the (current [v year]) block.

  • 1.5 Observe that day of the week has the correct value where Sunday = 1.

  • 2. Selectively hide some of these monitors.

  • 3. Rinse and Repeat.

  • 4. Repeat steps 1-3 for the (costume [v number]) and the (backdrop [v number]) blocks

  • Import 260563473.

cc/ @picklesrus

…mport and during monitor id generation. Update monitors integration test to include sensing_current block monitors.
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.

LGTM... so strange though... thank you for documenting.

@kchadha kchadha merged commit fe18691 into scratchfoundation:develop Nov 8, 2018
@kchadha kchadha deleted the multi-monitors branch November 8, 2018 19:44
@kchadha
Copy link
Contributor Author

kchadha commented Nov 11, 2018

This PR also fixed #1513 and #1628.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

2 participants