Merge pull request #116 from GGodPL/main

This commit is contained in:
slweeb 2023-07-30 18:40:41 -04:00 committed by GitHub
commit 86702976e9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 54 additions and 38 deletions

View File

@ -114,9 +114,23 @@ function openModList() {
showingMenu = "modList";
}
runAfterLoadList.push(updateModManager);
closeMenu = function() {
if (enabledMods.includes("mods/betterMenuScreens.js")) {
menuScreens.modList = {
name: "Mod manager",
parentDiv: "modListParent",
show: false,
close: () => {
var modParent = document.getElementById("modListParent");
var modManagerUrl = document.getElementById("modManagerUrl");
modParent.style.display = "none";
modManagerUrl.value = "";
showingMenu = false;
},
onClose: showModManager,
loader: updateModManager
}
} else {
closeMenu = function() {
if (!showingMenu) { return; }
if (showingMenu == "info") {
var infoParent = document.getElementById("infoParent");
@ -155,4 +169,6 @@ closeMenu = function() {
}
showingMenu = false;
}
}
runAfterLoadList.push(updateModManager);
}