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);
}}
],
cancel: startMenu,
cancel: function() {},
name: 'settings'
}
};
@ -73,7 +73,6 @@ function Automaton(async, dom, messaging, screen, session, ui) {
}
function settings() {
screen.clear();
ui.menu(menus.settings);
}

View File

@ -97,6 +97,25 @@ ul#startMenu {
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 {
width: 6em;
}