Hi,
I do have plenty of modded maps and toggling them all one by one every time is very time consuming.
So, the solution is a button that toggles them all.
I added the following function:
let toggled = false;
function toggleAllModMaps(){
let se = document.getElementById('map_selector');
let ov = [...se.options].map(o => o.value);
ov.forEach(x=>{toggled ? removeMap(x) : addMap(x)})
toggled = !toggled;
}
It gets called by a simple buttton under the map: in UI_HTML
Hi, I do have plenty of modded maps and toggling them all one by one every time is very time consuming. So, the solution is a button that toggles them all.
I added the following function:
It gets called by a simple buttton under the
map:
inUI_HTML