Update betterModManager.js
This commit is contained in:
parent
098f43b139
commit
f832fac470
|
|
@ -114,8 +114,22 @@ function openModList() {
|
|||
showingMenu = "modList";
|
||||
}
|
||||
|
||||
runAfterLoadList.push(updateModManager);
|
||||
|
||||
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(); console.log("hi")},
|
||||
loader: updateModManager
|
||||
}
|
||||
} else {
|
||||
closeMenu = function() {
|
||||
if (!showingMenu) { return; }
|
||||
if (showingMenu == "info") {
|
||||
|
|
@ -156,3 +170,5 @@ closeMenu = function() {
|
|||
showingMenu = false;
|
||||
}
|
||||
}
|
||||
runAfterLoadList.push(updateModManager);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue