let loose the Mad Labs

This commit is contained in:
RossAscends
2023-11-10 16:17:38 +09:00
parent 2f5e7778cc
commit dfb8a85eed
3 changed files with 94 additions and 1 deletions

View File

@@ -9010,6 +9010,13 @@ jQuery(async function () {
const closestStep = Math.round(rawStepCompare)
const closestStepRaw = (closestStep) * masterStep
//yolo anything for Lab Mode
if (power_user.enableLabMode) {
console.log($(masterElement).attr('id'), myValue)
$(masterElement).val(myValue).trigger('input')
return
}
//if text box val is not a number, reset slider val to its previous and wait for better input
if (Number.isNaN(myValue)) {
console.warn('Label input is not a valid number. Resetting the value to match slider', myText);