allow to hide the settings panel

This commit is contained in:
Mylloon 2022-11-24 19:46:18 +01:00
parent 38ec942715
commit 2e5d2a85be
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -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)