Quick question about the text extension

well @meeeeeeeep1 has created this extension but here the link Custom Menu Showcase
and I can teach you how

  1. go to javascript
    image

  2. click on explorer under the simulator
    image

  3. click on the plus symbol next to the explorer
    image

  4. click the ok button but don’t change the name

  5. delete all the code in the file and paste in this:
    //% color=“#e6ac00” icon=“” block=“Menu”
    namespace menu {

    //% block=“Add system menu option $name icon $image function:”
    //% handlerStatement=1
    //% image.shadow=screen_image_picker
    export function addmenuoption(name: string, image: Image, handler: () => void): void {
    scene.systemMenu.addEntry(() => name, handler, image);

    }
    }
    then click back to blocks

1 Like