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

Screen clear lines block #1039

Merged
merged 4 commits into from
Nov 2, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update targetoverrides.ts
  • Loading branch information
THEb0nny committed Sep 24, 2023
commit a0e8617035773b47532fe871fde00ecc058aed28
4 changes: 2 additions & 2 deletions libs/screen/targetoverrides.ts
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ namespace brick {
* Clear on the screen at a specific lines.
* @param lines list of lines to clear (starting at 1 and ends with 12)
*/
//% blockId=clearLines block="clear line(s) $lines"
//% blockId=clearLines block="clear lines $lines"
//% weight=94 group="Screen" inlineInputMode="inline" blockGap=8
export function clearLines(lines: number[]) {
if (screenMode != ScreenMode.ShowLines) {
Expand All @@ -324,7 +324,7 @@ namespace brick {
}

for (let i = 0; i < lines.length; i++) {
clearLine(i);
clearLine(lines[i]);
}
}

Expand Down