The engine’s menu: whether it is open, and whether it shows Settings.
| Property |
Type |
Description |
closeMenu |
() => void |
Closes the menu, Settings with it. |
closeSettings |
() => void |
- |
fullscreen |
boolean |
Whether the page shows fullscreen, followed from the browser. |
open |
boolean |
Whether the player asked for the menu: Escape, or the browser letting the cursor go or leaving fullscreen without the page asking. |
openMenu |
() => void |
- |
openSettings |
() => void |
- |
pressEscape |
() => void |
What Escape does: back from Settings, else closes an open menu, else opens it. |
settingsOpen |
boolean |
Whether the menu shows its Settings panel. |