I want a button that shuts down the game on nw.js
I've not tried it in nw.js, but this should work:
Add Sprite (for button), Mouse and Browser
On mouse click on Sprite -> Browser:Close
Develop games in your browser. Powerful, performant & highly capable.
yes Browser close is what works.
also fullscreen is Browser: Request Fullscreen