-
Notifications
You must be signed in to change notification settings - Fork 238
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
rewrite More comparisons #932
base: master
Are you sure you want to change the base?
Conversation
rewrite extension
Your extension id is just 'EXTENSION', you need to change it to something like 'NoNameMoreComparisons' |
color1: '#00a889', | ||
color2: '#00977b', | ||
color3: '#00866e', | ||
id: 'moreComparisons', |
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.
the extension ID needs to include your name as well
], | ||
menus: { | ||
BOOLEAN_MENU: { | ||
acceptReporters: false, |
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.
Why can't these (and the following menus) be acceptReporters: true
?
}; | ||
} | ||
booleanMenu({ BOOLEAN }) { | ||
if (BOOLEAN === 'random') return Math.random() < 0.5 ? true : false |
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.
You don't have to do this, but internally Scratch's "random" value is _random_
, consider changing to that for consistency
} | ||
return false; | ||
} | ||
switch (MODE) { |
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.
And you're positive this switch will always return something, even without a default?
rewrite extension