From 7ced12beefea1d755114f722d51f534ec858b1e9 Mon Sep 17 00:00:00 2001 From: Jayd-Rubies <155784127+Jayd-Rubies@users.noreply.github.com> Date: Sun, 29 Sep 2024 23:03:30 -0400 Subject: [PATCH 1/2] Delete UwUify.js --- UwUify.js | 36 ------------------------------------ 1 file changed, 36 deletions(-) delete mode 100644 UwUify.js diff --git a/UwUify.js b/UwUify.js deleted file mode 100644 index 5d83e2b0..00000000 --- a/UwUify.js +++ /dev/null @@ -1,36 +0,0 @@ -document.body.style.backgroundImage = 'url("https://jayd-rubies.github.io/uwuify.png")'; -gameDiv.style.border = "1px solid #ffffff00"; -window.addEventListener("load",function(){ - document.querySelectorAll(".categoryButton").forEach(e => { - e.style.backgroundColor = "ffc0cb40"; - }) -}); -function drawCursor() { - canvas.style.backgroundColor = "transparent"; - 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 = "#ffc0cb"; - layerCtx.fillStyle = "#ffc0cb40"; - 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.fill(); - // draw one transparent pixel in the center - if (settings.precision) { - layerCtx.fillStyle = "#ffc0c80"; - 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 = "#ffc0c80"; - layerCtx.lineWidth = 1; - layerCtx.moveTo(shapeStart.x*pixelSize+pixelSizeHalf, shapeStart.y*pixelSize+pixelSizeHalf); - layerCtx.lineTo(mousePos.x*pixelSize+pixelSizeHalf, mousePos.y*pixelSize+pixelSizeHalf); - } - } -} \ No newline at end of file From 3d495b985c629bdc19caf5c55ad90dcbe93672fc Mon Sep 17 00:00:00 2001 From: Jayd-Rubies <155784127+Jayd-Rubies@users.noreply.github.com> Date: Sun, 29 Sep 2024 23:03:55 -0400 Subject: [PATCH 2/2] Add files via upload --- mods/UwUify.js | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 mods/UwUify.js diff --git a/mods/UwUify.js b/mods/UwUify.js new file mode 100644 index 00000000..5d83e2b0 --- /dev/null +++ b/mods/UwUify.js @@ -0,0 +1,36 @@ +document.body.style.backgroundImage = 'url("https://jayd-rubies.github.io/uwuify.png")'; +gameDiv.style.border = "1px solid #ffffff00"; +window.addEventListener("load",function(){ + document.querySelectorAll(".categoryButton").forEach(e => { + e.style.backgroundColor = "ffc0cb40"; + }) +}); +function drawCursor() { + canvas.style.backgroundColor = "transparent"; + 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 = "#ffc0cb"; + layerCtx.fillStyle = "#ffc0cb40"; + 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.fill(); + // draw one transparent pixel in the center + if (settings.precision) { + layerCtx.fillStyle = "#ffc0c80"; + 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 = "#ffc0c80"; + layerCtx.lineWidth = 1; + layerCtx.moveTo(shapeStart.x*pixelSize+pixelSizeHalf, shapeStart.y*pixelSize+pixelSizeHalf); + layerCtx.lineTo(mousePos.x*pixelSize+pixelSizeHalf, mousePos.y*pixelSize+pixelSizeHalf); + } + } +} \ No newline at end of file