Skip to content

Commit

Permalink
[stable10.3] Cherry pick: Change img field editor to sprite (#1459) (#…
Browse files Browse the repository at this point in the history
…1461)

* change img field editor to sprite (#1459)

* Fix simulator build (#1460)

* remove type roots

* try to exclude node types

---------

Co-authored-by: Richard Knoll <riknoll@users.noreply.github.com>
  • Loading branch information
kimprice and riknoll authored Dec 8, 2023
1 parent 5af46dd commit d9a3d79
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 5 additions & 4 deletions libs/screen/fieldeditors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,11 @@ namespace images {
* An image
* @param image the image
*/
//% blockId=image_picker block="%image" shim=TD_ID
//% image.fieldEditor="images"
//% image.fieldOptions.columns=6
//% image.fieldOptions.width=600
//% blockId=image_picker block="$image" shim=TD_ID
//% image.fieldEditor="sprite"
//% image.fieldOptions.taggedTemplate="img"
//% image.fieldOptions.decompileIndirectFixedInstances="true"
//% image.fieldOptions.decompileArgumentAsString="true"
//% weight=0 group="Create"
export function _image(image: Image): Image {
return image;
Expand Down
2 changes: 1 addition & 1 deletion sim/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"newLine": "LF",
"declaration": true,
"sourceMap": false,
"typeRoots": ["../node_modules/@types"]
"types": []
},
"include": [
"../libs/*/sim/*.ts"
Expand Down

0 comments on commit d9a3d79

Please sign in to comment.