Skip to content

Commit

Permalink
change img field editor to sprite (#1459)
Browse files Browse the repository at this point in the history
  • Loading branch information
kimprice authored Dec 7, 2023
1 parent dbecae9 commit f57b045
Showing 1 changed file with 5 additions and 4 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

0 comments on commit f57b045

Please sign in to comment.