Merge pull request #116 from GGodPL/main
This commit is contained in:
commit
86702976e9
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue