Skip to content
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

Added a new interval number Block #3121

Closed
wants to merge 0 commits into from
Closed

Added a new interval number Block #3121

wants to merge 0 commits into from

Conversation

Aman1919
Copy link
Contributor

Issue #2209

new block :
image

* @returns {String}
*/
static GetIntervalNumber(turtle) {
let intervals = activity.turtles.ithTurtle(turtle).singer.intervals;
Copy link
Member

Choose a reason for hiding this comment

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

Should be a const ???

*/
static GetIntervalNumber(turtle) {
let intervals = activity.turtles.ithTurtle(turtle).singer.intervals;
let Totalintervals = 0;
Copy link
Member

Choose a reason for hiding this comment

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

maybe use camelCase: totalIntervals

@@ -167,12 +168,41 @@ function setupIntervalsBlocks(activity) {
}
}

class IntervalNumbersBlock extends ValueBlock {
Copy link
Member

@walterbender walterbender Jan 27, 2023

Choose a reason for hiding this comment

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

IntervalNumberBlock, singular

@walterbender
Copy link
Member

  • Please rebase from master to fix the conflict.
  • Please restrict your PR to the relevant changes (you can make a separate PR for your formatting suggestions).
  • Please be sure to run eslint
  • What about help artwork?
  • Can you add an entry to status.js?
  • Did you test it for nested interval blocks?

@Aman1919 Aman1919 closed this Jan 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants