Any way to bring up pause menu without the menu button

my code uses the menu button but i still want the pause menu to change stuff like brightness

There’s a function in javascript for it: scene.systemMenu.showSystemMenu() but that’s not exposed in blocks. As with most javascript functions, though, that’s just a quick adjustment away if you want it to be – just throw


//% color="#AA278D" weight=100
namespace myCoolBlocks {
    //% blockId="myShowSystemMenuBlock"
    //% block
    export function showSystemMenu() {
        scene.systemMenu.showSystemMenu();
    }
}

into a custom.ts you can get by clicking the plus next to explorer while in javascript mode:
image

or just add this as an extension: https://makecode.com/_6LKRj046xT4e

and it’ll put it in a category for you
image

2 Likes

i thought it was game.menu

Thank you