Style options menu and fix leak in buttons' mapping

This commit is contained in:
Tissevert 2018-12-15 22:33:49 +01:00
parent 99003475c8
commit 0756418722
2 changed files with 20 additions and 2 deletions

View file

@ -15,7 +15,7 @@ function Automaton(async, dom, messaging, screen, session, ui) {
ui.setTextSpeed(choices.textSpeed); ui.setTextSpeed(choices.textSpeed);
}} }}
], ],
cancel: startMenu, cancel: function() {},
name: 'settings' name: 'settings'
} }
}; };
@ -73,7 +73,6 @@ function Automaton(async, dom, messaging, screen, session, ui) {
} }
function settings() { function settings() {
screen.clear();
ui.menu(menus.settings); ui.menu(menus.settings);
} }

View file

@ -97,6 +97,25 @@ ul#startMenu {
width: 7em; width: 7em;
} }
ul#settingsMenu {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
}
ul#textSpeedMenu, ul#layoutMenu {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
ul#layoutMenu {
width: 20em;
}
ul#nameMenu { ul#nameMenu {
width: 6em; width: 6em;
} }