πBetter Zoom
This mod was created by @Blackhole927.
Last updated
This mod was created by @Blackhole927.
// gimhook: {"name":"BetterZoom","description":"A mod that lets you zoom out a bit more than usual...use the scroll wheel to zoom!","version":"1.0.1","author":"Blackhole927","license":"MIT"}
(() => {
// src/index.ts
gimhook.addHook("join", () => {
tZoom = 1
cZoom = gimhook.graphics.camera.getZoom()
setInterval(function x() {
cZoom = tZoom - (tZoom-cZoom)/1.25
gimhook.graphics.camera.setZoom(cZoom)
}, 0.25)
window.addEventListener("wheel", function(e) {
var dir = Math.sign(e.deltaY);
if (dir == 1) {
if (tZoom > 0.1) {
tZoom -= 0.1
}
} else {
tZoom += 0.1
}
});
console.log("BetterZoom Mod Loaded");
});
})();NOTE: Older versions of mods are currently not available on this site. However, you can view them in the usable-mods channel of our discord.
After installing the mod, scroll up or down on your mouse or trackpad to zoom in and out. View the customizability section to see how you can customize this mod.
Change 0.1 to a bigger or smaller number to change how much you zoom in or out. However, do NOT change the 0.1 located at if (tZoom > 0.1) .
v1.0.0
Added basic zoom with number keys 1, 2, 3, and 4 .
v1.0.1
Added scroll wheel functionality to zoom in and out using your scroll wheel instead of number keys.
Last updated