well @meeeeeeeep1 has created this extension but here the link Custom Menu Showcase
and I can teach you how
-
go to javascript
-
click on explorer under the simulator
-
click on the plus symbol next to the explorer
-
click the ok button but don’t change the name
-
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