diff --git a/mod-list.html b/mod-list.html index 50d99c79..6f34a742 100644 --- a/mod-list.html +++ b/mod-list.html @@ -378,6 +378,7 @@ invisible_wall.jsElement like Wall that takes the color of the backgroundAlice lightmap.jsLight sources glowRedBirdly liquid_mixing.jsLiquids can mix colors dynamicallyNekonico +manyMoreThemes.jsAdds additional themesJayd moreViews.jsMany new rendering modesggod nicer_flame.jsFire is visually pleasingRedBirdly occlusion.jsRealistic shadows, similar to Terraria's lightingRedBirdly diff --git a/mods/manyMoreThemes.js b/mods/manyMoreThemes.js new file mode 100644 index 00000000..bed56cf0 --- /dev/null +++ b/mods/manyMoreThemes.js @@ -0,0 +1,67 @@ +if (!enabledMods.includes("mods/betterSettings.js")) { enabledMods.unshift("mods/betterSettings.js"); localStorage.setItem("enabledMods", JSON.stringify(enabledMods)); window.location.reload(); }; +let setting = null + +dependOn("betterSettings.js", () => { + const tabMMT = new SettingsTab("Many More Themes"); + setting = new SelectSetting("Themes", "Themes", [[0, "disabled"],[1, "Stardust"], [2, "Aqautic(coming soon!)"], [3, "Supernova(coming soon!)"], [4, "Sunrise(coming soon!)"]]); + + tabMMT.registerSetting(setting); + settingsManager.registerTab(tabMMT); + + + + if (setting.value == 1){ + const link = document.createElement("link"); + link.rel = "stylesheet"; + link.type = "text/css"; + link.href = "https://jayd-rubies.github.io/assets/css/stardust.css"; + document.head.appendChild(link); + document.body.style.backgroundImage = 'url("https://jayd-rubies.github.io/assets/image/2025_05_16_0x5_Kleki.png")'; + document.body.style.backgroundSize = 'cover'; + window.addEventListener("load",function(){; + document.querySelectorAll(".categoryButton").forEach(e => { + e.style.backgroundColor = "#5c008440"; + e.style.borderColor = "#5c0084"; + }) + }); + + } +}, true,); + +settings.bg = "transparernt"; +// setting.onUpdate((setting) => { +// if (setting == 1) { +// function drawCursor() { +// var layerCtx = canvasLayers.gui.getContext('2d'); +// var mouseOffset = Math.trunc(mouseSize/2); +// var topLeft = [mousePos.x-mouseOffset,mousePos.y-mouseOffset]; +// var bottomRight = [mousePos.x+mouseOffset,mousePos.y+mouseOffset]; +// // Draw a square around the mouse +// layerCtx.strokeStyle = "#5c0084"; +// layerCtx.fillStyle = "#5c008440"; +// layerCtx.strokeRect(topLeft[0]*pixelSize,topLeft[1]*pixelSize,(bottomRight[0]-topLeft[0]+1)*pixelSize,(bottomRight[1]-topLeft[1]+1)*pixelSize); +// layerCtx.beginPath(); +// layerCtx.lineWidth = 3; +// layerCtx.stroke(); +// layerCtx.fillRect(topLeft[0]*pixelSize,topLeft[1]*pixelSize,(bottomRight[0]-topLeft[0]+1)*pixelSize,(bottomRight[1]-topLeft[1]+1)*pixelSize); +// layerCtx.fill(); +// // draw one transparent pixel in the center +// if (settings.precision) { +// layerCtx.fillStyle = "#5c008480"; +// layerCtx.fillRect(mousePos.x*pixelSize,mousePos.y*pixelSize,pixelSize,pixelSize); +// } +// if (shaping) { +// if (shaping === 1) { // Draw a white line from shapeStart.x to shapeStart.y +// layerCtx.beginPath(); +// layerCtx.strokeStyle = "#5c0084"; +// layerCtx.lineWidth = 3; +// layerCtx.moveTo(shapeStart.x*pixelSize+pixelSizeHalf, shapeStart.y*pixelSize+pixelSizeHalf); +// layerCtx.lineTo(mousePos.x*pixelSize+pixelSizeHalf, mousePos.y*pixelSize+pixelSizeHalf); +// layerCtx.stroke() +// } +// } +// } +// drawCursor() +// } +// }) ¯\_(ツ)_/¯ +// i'll figure it out later