1
0
Fork 0
mirror of https://github.com/Acamaeda/The-Modding-Tree.git synced 2025-04-24 10:11:05 +00:00

Fixed tooltip overlay issue and settings not updating

This commit is contained in:
Harley White 2021-05-21 23:22:39 -04:00
parent 431e1a1b71
commit fabf31ccf6
11 changed files with 25 additions and 12 deletions
js/utils

View file

@ -18,12 +18,12 @@ function getThemeName() {
return player.theme ? theme_names[player.theme] : "Default";
}
function switchTheme() {
if (player.theme === undefined)
if (player.theme === null)
player.theme = themes[1];
else {
player.theme = themes[Object.keys(themes)[player.theme] + 1];
if (!player.theme)
delete player.theme;
player.theme = null;
}
changeTheme();
resizeCanvas();