From 810efe4ddb191199ed6c83f22b508ae1128dff38 Mon Sep 17 00:00:00 2001 From: An Orbit <68935009+orbit-loona@users.noreply.github.com> Date: Mon, 20 May 2024 11:51:06 -0400 Subject: [PATCH] 2 new shapes: / \ --- mods/cursor_shapes.js | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/mods/cursor_shapes.js b/mods/cursor_shapes.js index 2f5b920a..fec31a4f 100644 --- a/mods/cursor_shapes.js +++ b/mods/cursor_shapes.js @@ -2,7 +2,7 @@ if(enabledMods.includes("mods/a_mod_by_alice.js")) { logMessage("cursor_shapes.js is redundant with a_mod_by_alice.js") } else { currentShape = "square"; - shapeOrder = ["square","circle","triangle","inverted triangle","rhombus","squircle","twinkle"]; + shapeOrder = ["square","circle","triangle","inverted triangle","rhombus","squircle","twinkle","slash","backslash"]; shapeExclusionConditions = { /*"square": function(x,y,size,mouseX,mouseY,topLeft,bottomRight) { return false @@ -78,6 +78,21 @@ if(enabledMods.includes("mods/a_mod_by_alice.js")) { !(Math.abs(xDistanceFromCenterLine) === Math.abs(yDistanceFromCenterLine)) ) { return true }; return false + }, + "slash": function(x,y,size,mouseX,mouseY,topLeft,bottomRight) { + var xOffset = (x - topLeft[0]); + var yOffset = (y - topLeft[1]); + var yOffsetComplement = (size - 1) - yOffset; + if(xOffset == yOffsetComplement) { return false }; + if(xOffset == yOffsetComplement + 1) { return false }; + return true + }, + "backslash": function(x,y,size,mouseX,mouseY,topLeft,bottomRight) { + var xOffset = (x - topLeft[0]); + var yOffset = (y - topLeft[1]); + if(xOffset == yOffset) { return false }; + if(xOffset == yOffset + 1) { return false }; + return true } }