Add generator for icon images. Generate icons and use them for the icon field editor.
@ -181,6 +181,7 @@ namespace basic {
|
||||
//% help=basic/show-icon
|
||||
//% icon.fieldEditor="imagedropdown"
|
||||
//% icon.fieldOptions.columns="5"
|
||||
//% icon.fieldOptions.width="400"
|
||||
export function showIcon(icon: IconNames, interval = 600) {
|
||||
let res = images.iconImage(icon)
|
||||
res.showImage(0, interval)
|
||||
|
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 945 B |
Before Width: | Height: | Size: 2.5 KiB After Width: | Height: | Size: 698 B |
Before Width: | Height: | Size: 2.8 KiB After Width: | Height: | Size: 1014 B |
Before Width: | Height: | Size: 2.7 KiB After Width: | Height: | Size: 965 B |
Before Width: | Height: | Size: 2.5 KiB After Width: | Height: | Size: 791 B |
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 929 B |
Before Width: | Height: | Size: 2.7 KiB After Width: | Height: | Size: 868 B |
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 835 B |
Before Width: | Height: | Size: 2.7 KiB After Width: | Height: | Size: 893 B |
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 955 B |
Before Width: | Height: | Size: 2.7 KiB After Width: | Height: | Size: 972 B |
Before Width: | Height: | Size: 2.7 KiB After Width: | Height: | Size: 871 B |
Before Width: | Height: | Size: 2.5 KiB After Width: | Height: | Size: 810 B |
Before Width: | Height: | Size: 2.7 KiB After Width: | Height: | Size: 952 B |
Before Width: | Height: | Size: 2.7 KiB After Width: | Height: | Size: 942 B |
Before Width: | Height: | Size: 2.7 KiB After Width: | Height: | Size: 883 B |
Before Width: | Height: | Size: 2.7 KiB After Width: | Height: | Size: 859 B |
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 911 B |
Before Width: | Height: | Size: 2.8 KiB After Width: | Height: | Size: 939 B |
Before Width: | Height: | Size: 2.7 KiB After Width: | Height: | Size: 812 B |
Before Width: | Height: | Size: 2.7 KiB After Width: | Height: | Size: 929 B |
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 958 B |
Before Width: | Height: | Size: 2.5 KiB After Width: | Height: | Size: 769 B |
Before Width: | Height: | Size: 8.0 KiB After Width: | Height: | Size: 974 B |
Before Width: | Height: | Size: 2.5 KiB After Width: | Height: | Size: 918 B |
Before Width: | Height: | Size: 2.7 KiB After Width: | Height: | Size: 969 B |
Before Width: | Height: | Size: 2.5 KiB After Width: | Height: | Size: 637 B |
Before Width: | Height: | Size: 2.5 KiB After Width: | Height: | Size: 678 B |
Before Width: | Height: | Size: 2.5 KiB After Width: | Height: | Size: 690 B |
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 855 B |
Before Width: | Height: | Size: 2.5 KiB After Width: | Height: | Size: 934 B |
Before Width: | Height: | Size: 2.7 KiB After Width: | Height: | Size: 899 B |
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 829 B |
Before Width: | Height: | Size: 2.7 KiB After Width: | Height: | Size: 801 B |
Before Width: | Height: | Size: 2.7 KiB After Width: | Height: | Size: 939 B |
Before Width: | Height: | Size: 2.5 KiB After Width: | Height: | Size: 733 B |
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 696 B |
Before Width: | Height: | Size: 2.7 KiB After Width: | Height: | Size: 985 B |
Before Width: | Height: | Size: 2.8 KiB After Width: | Height: | Size: 905 B |
Before Width: | Height: | Size: 2.5 KiB After Width: | Height: | Size: 717 B |