alternative opener element

This commit is contained in:
Laetitia (O-01-67) 2023-02-21 13:01:26 -05:00 committed by GitHub
parent 4154c61bd6
commit 026c58d6a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 0 deletions

View File

@ -484,6 +484,13 @@ if(enabledMods.includes(variablesMod)) {
if(shiftDown) { funniPrompt() };
};
});
elements.funni_prompt = {
color: ["#000000","#00ff00","#000000","#00ff00","#000000","#00ff00","#000000","#00ff00","#000000","#00ff00"],
behavior: behaviors.SELFDELETE,
desc: "<span style='color:#FF00FF;' onClick=funniPrompt()>Click here or press Shift+1 to open the command prompt.</span>",
category:"special",
};
} else {
alert(`The ${variablesMod} mod is required and has been automatically inserted (reload for this to take effect).`)
enabledMods.splice(enabledMods.indexOf(modName),0,variablesMod)