remove reference to deprecated mod
This commit is contained in:
parent
9c573ee97a
commit
b08c91662e
|
|
@ -1,9 +1,6 @@
|
||||||
if(enabledMods.includes("mods/a_mod_by_alice.js")) {
|
currentShape = "square";
|
||||||
logMessage("cursor_shapes.js is redundant with a_mod_by_alice.js")
|
shapeOrder = ["square","circle","triangle","inverted triangle","rhombus","squircle","twinkle","slash","backslash"];
|
||||||
} else {
|
shapeExclusionConditions = {
|
||||||
currentShape = "square";
|
|
||||||
shapeOrder = ["square","circle","triangle","inverted triangle","rhombus","squircle","twinkle","slash","backslash"];
|
|
||||||
shapeExclusionConditions = {
|
|
||||||
/*"square": function(x,y,size,mouseX,mouseY,topLeft,bottomRight) {
|
/*"square": function(x,y,size,mouseX,mouseY,topLeft,bottomRight) {
|
||||||
return false
|
return false
|
||||||
},*/
|
},*/
|
||||||
|
|
@ -94,9 +91,9 @@ if(enabledMods.includes("mods/a_mod_by_alice.js")) {
|
||||||
if(xOffset == yOffset + 1) { return false };
|
if(xOffset == yOffset + 1) { return false };
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function mouseRange(mouseX,mouseY,size,shapeOverride=null) {
|
function mouseRange(mouseX,mouseY,size,shapeOverride=null) {
|
||||||
var shape = shapeOverride ?? currentShape ?? "square";
|
var shape = shapeOverride ?? currentShape ?? "square";
|
||||||
var coords = [];
|
var coords = [];
|
||||||
size = size || mouseSize;
|
size = size || mouseSize;
|
||||||
|
|
@ -129,9 +126,9 @@ if(enabledMods.includes("mods/a_mod_by_alice.js")) {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
return coords
|
return coords
|
||||||
};
|
};
|
||||||
|
|
||||||
document.addEventListener("keydown", function(e) {
|
document.addEventListener("keydown", function(e) {
|
||||||
//shift+8 to change cursor shape, alt+8 to cycle backwards
|
//shift+8 to change cursor shape, alt+8 to cycle backwards
|
||||||
if (e.keyCode == 56 && [1,2].includes(shiftDown)) {
|
if (e.keyCode == 56 && [1,2].includes(shiftDown)) {
|
||||||
var currentShapeIndex = shapeOrder.indexOf(currentShape);
|
var currentShapeIndex = shapeOrder.indexOf(currentShape);
|
||||||
|
|
@ -149,5 +146,4 @@ if(enabledMods.includes("mods/a_mod_by_alice.js")) {
|
||||||
currentShape = shapeOrder[newIndex];
|
currentShape = shapeOrder[newIndex];
|
||||||
logMessage(`Current shape: ${currentShape}`)
|
logMessage(`Current shape: ${currentShape}`)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue