From 3d2b1fdaf9f7da8c23330233f5ea972e58f84372 Mon Sep 17 00:00:00 2001 From: An Orbit <68935009+orbit-loona@users.noreply.github.com> Date: Mon, 20 May 2024 11:30:57 -0400 Subject: [PATCH] alt+8 cycles backwards through shapes --- mods/a_mod_by_alice.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/mods/a_mod_by_alice.js b/mods/a_mod_by_alice.js index 5d30f0bb..9b6168c5 100644 --- a/mods/a_mod_by_alice.js +++ b/mods/a_mod_by_alice.js @@ -3374,11 +3374,19 @@ color1 and color2 spread through striped paint like dye does with itself. col document.body.removeChild(link); } //mod: shift+8 to change cursor shape - if (e.keyCode == 56 && shiftDown) { + if (e.keyCode == 56 && shiftDown == 1) { var currentShapeIndex = shapeOrder.indexOf(currentShape); currentShape = shapeOrder[(currentShapeIndex + 1) % shapeOrder.length]; logMessage(`Current shape: ${currentShape}`) } + //mod: alt+8 to change cursor shape + if (e.keyCode == 56 && shiftDown == 2) { + var currentShapeIndex = shapeOrder.indexOf(currentShape); + var newIndex = (currentShapeIndex - 1) % shapeOrder.length; + if(newIndex < 0) { newIndex = shapeOrder.length - 1 }; + currentShape = shapeOrder[newIndex]; + logMessage(`Current shape: ${currentShape}`) + } // x = explodeAt() /*else if (e.keyCode == 88) {