new ruffle

This commit is contained in:
BluePotato102
2023-12-25 10:54:54 -06:00
committed by avsc-sid
parent 464bcf5399
commit c173a9ec2c
73 changed files with 2715 additions and 215 deletions
+17
View File
@@ -354,6 +354,11 @@ function popupsAllowed() {
}
}
// Function to mute or unmute all sounds
function toggleMute() {
// cant find working code rn
}
function getMainSave() {
var mainSave = {};
@@ -450,6 +455,18 @@ keySlots.forEach((slot) => {
});
});
// ik we didnt set up keybinds but ill keep mute default for now
function onKeyPress(event) {
if (event.ctrlKey && event.key === 'm') {
event.preventDefault();
toggleMute();
}
// copy paste for other shortcuts
}
// Attach the keydown event listener to the document
document.addEventListener('keydown', onKeyPress);
const defaultColorSettings = {
bg: '#202020',
'block-color': '#2b2b2b',