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:
parent
431e1a1b71
commit
fabf31ccf6
11 changed files with 25 additions and 12 deletions
js/utils
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue