allow to hide the settings panel
This commit is contained in:
parent
38ec942715
commit
2e5d2a85be
1 changed files with 1 additions and 1 deletions
|
@ -25,7 +25,7 @@ const main = () => {
|
||||||
addEventListener("keypress", player.controlUser);
|
addEventListener("keypress", player.controlUser);
|
||||||
|
|
||||||
// GUI
|
// GUI
|
||||||
const gui = new dat.gui.GUI({ hideable: false, closeOnTop: true });
|
const gui = new dat.gui.GUI({ closeOnTop: true });
|
||||||
const menu = Quality.buildGUI(env.quality);
|
const menu = Quality.buildGUI(env.quality);
|
||||||
for (const quality in menu) {
|
for (const quality in menu) {
|
||||||
gui.add(menu, quality)
|
gui.add(menu, quality)
|
||||||
|
|
Reference in a new issue