Skip to content

Commit

Permalink
fix bad or add new help paths
Browse files Browse the repository at this point in the history
  • Loading branch information
ganicke committed Dec 20, 2023
1 parent c2027db commit 61e0377
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion libs/game/game.ts
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ namespace game {
//% group="Game Over"
//% weight=80
//% blockGap=8
//% help=game/set-game-over-sound
//% help=game/set-game-over-playable
export function setGameOverPlayable(win: boolean, sound: music.Playable, looping: boolean) {
init();
const goc = game.gameOverConfig();
Expand Down
4 changes: 2 additions & 2 deletions libs/game/info.ts
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ namespace info {
*/
//% block="countdown"
//% blockId=gamegetcountdown
//% weight=79
//% weight=79 help=info/countdown
//% group="Countdown"
export function countdown(): number {
initHUD();
Expand All @@ -448,7 +448,7 @@ namespace info {
*/
//% block="change countdown by $seconds (s)"
//% blockId=gamechangecountdown
//% weight=77
//% weight=77 help=info/change-countdown-by
//% group="Countdown"
export function changeCountdownBy(seconds: number) {
startCountdown((countdown() + seconds));
Expand Down
2 changes: 1 addition & 1 deletion libs/game/spriteevents.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ namespace sprites {
//% group="Overlaps"
//% weight=100 draggableParameters="reporter"
//% blockId=spritesoverlap block="on $sprite of kind $kind=spritekind overlaps $otherSprite of kind $otherKind=spritekind"
//% help=scene/on-overlap
//% help=sprites/on-overlap
//% blockGap=8
export function onOverlap(kind: number, otherKind: number, handler: (sprite: Sprite, otherSprite: Sprite) => void) {
if (kind == undefined || otherKind == undefined || !handler) return;
Expand Down
2 changes: 1 addition & 1 deletion libs/game/sprites.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ namespace sprites {
* @param kind the target kind
*/
//% blockId=allOfKind block="array of sprites of kind %kind=spritekind"
//% weight=87
//% weight=87 help=sprites/all-of-kind
export function allOfKind(kind: number): Sprite[] {
const spritesByKind = game.currentScene().spritesByKind;
if (!(kind >= 0) || !spritesByKind[kind]) return [];
Expand Down
2 changes: 2 additions & 0 deletions libs/screen/fieldeditors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ namespace images {
//% img.fieldOptions.decompileArgumentAsString="true"
//% img.fieldOptions.filter="!tile !dialog !background"
//% weight=100 group="Create" duplicateShadowOnDrag
//% help=images/sprite-image
export function _spriteImage(img: Image) {
return img
}
Expand Down Expand Up @@ -89,6 +90,7 @@ namespace images {
//% image.fieldOptions.decompileIndirectFixedInstances="true"
//% image.fieldOptions.decompileArgumentAsString="true"
//% weight=0 group="Create"
//% help=images/image
export function _image(image: Image): Image {
return image;
}
Expand Down
1 change: 1 addition & 0 deletions libs/screen/image.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ interface Image {
//% this.shadow=variables_get
//% this.defl="picture"
//% other.shadow=screen_image_picker
//% help=images/image/equals
equals(other: Image): boolean;

//% shim=ImageMethods::isStatic
Expand Down

0 comments on commit 61e0377

Please sign in to comment.