Skip to content

Commit

Permalink
defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
jwunderl committed Sep 15, 2020
1 parent 97cf978 commit 8298655
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions status-bar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -796,17 +796,19 @@ namespace statusbars {
zeroHandlers[kind] = handler;
}

//% block="on status bar kind $kind $comparison $percent|$comparisonType $status"
//% block="on status bar kind $kind $comparison $value|$comparisonType $status"
//% blockId="statusbars_onStatusReached"
//% kind.shadow="statusbars_kind"
//% draggableParameters="reporter"
//% group="Events"
//% comparison.defl=statusbars.StatusComparison.LTE
//% value.defl=50
//% weight=58
export function onStatusReached(
kind: number,
comparison: StatusComparison,
comparisonType: ComparisonType,
percent: number,
value: number,
handler: (status: StatusBarSprite) => void
) {
let statusHandlers = getStatusHandlers();
Expand All @@ -817,7 +819,7 @@ namespace statusbars {
kind,
comparison,
comparisonType,
percent,
value,
handler
);
statusHandlers.push(statusHandler);
Expand Down
2 changes: 1 addition & 1 deletion test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,6 @@ function testRelPosition() {

}

// testIcon()
testIcon()
// test1()
// testRelPosition()

0 comments on commit 8298655

Please sign in to comment.