Skip to content

Commit

Permalink
Merge pull request #1 from tsanth/volume-slider-fix
Browse files Browse the repository at this point in the history
Volume slider now reflects volume level
  • Loading branch information
Icecreamdudes authored Oct 9, 2024
2 parents b2661a9 + 551ffc8 commit 873a37d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions js/Singularity/singularity.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ addLayer("s", {
["raw-html", function () { return "<button class=opt onclick=toggleOpt('toggleHotkey'); needsCanvasUpdate = true>Toggle Hotkeys</button>"}, { "color": "white", "font-size": "18px", "font-family": "monospace" }],
]],
["blank", "25px"],
["raw-html", function () { return "</td><td><div style=margin: 0 10px><input type=range id=volume name=Music Volume min=1 max=10 value=10 oninput=updateMusicVolume()><br>"}, { "color": "white", "font-size": "18px", "font-family": "monospace" }],
["raw-html", function () { return "</td><td><div style=margin: 0 10px><input type=range id=volume name=Music Volume min=1 max=10 value=" + options.musicVolume + " oninput=updateMusicVolume()><br>"}, { "color": "white", "font-size": "18px", "font-family": "monospace" }],
["blank", "25px"],
["raw-html", function () { return "Volume: " + options.musicVolume}, { "color": "white", "font-size": "18px", "font-family": "monospace" }],
["raw-html", function () { return "Autosave: " + options.autosave}, { "color": "white", "font-size": "18px", "font-family": "monospace" }],
Expand All @@ -121,4 +121,4 @@ addLayer("s", {
["microtabs", "stuff", { 'border-width': '0px' }],
],
layerShown() { return player.startedGame == true && player.ca.defeatedCante}
})
})
4 changes: 2 additions & 2 deletions js/infinity.js
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@ addLayer("in", {
["raw-html", function () { return "<button class=opt onclick=toggleOpt('toggleHotkey'); needsCanvasUpdate = true>Toggle Hotkeys</button>"}, { "color": "white", "font-size": "18px", "font-family": "monospace" }],
]],
["blank", "25px"],
["raw-html", function () { return "</td><td><div style=margin: 0 10px><input type=range id=volume name=Music Volume min=1 max=10 value=10 oninput=updateMusicVolume()><br>"}, { "color": "white", "font-size": "18px", "font-family": "monospace" }],
["raw-html", function () { return "</td><td><div style=margin: 0 10px><input type=range id=volume name=Music Volume min=1 max=10 value=" + options.musicVolume + " oninput=updateMusicVolume()><br>"}, { "color": "white", "font-size": "18px", "font-family": "monospace" }],
["blank", "25px"],
["raw-html", function () { return "Volume: " + options.musicVolume}, { "color": "white", "font-size": "18px", "font-family": "monospace" }],
["raw-html", function () { return "Autosave: " + options.autosave}, { "color": "white", "font-size": "18px", "font-family": "monospace" }],
Expand Down Expand Up @@ -596,4 +596,4 @@ addLayer("bigc", {
window.addEventListener('load', function() {
player.bigc.spawnedWisps = false

});
});
4 changes: 2 additions & 2 deletions js/layers.js
Original file line number Diff line number Diff line change
Expand Up @@ -498,7 +498,7 @@ addLayer("i", {
["raw-html", function () { return "<button class=opt onclick=toggleOpt('toggleHotkey'); needsCanvasUpdate = true>Toggle Hotkeys</button>"}, { "color": "white", "font-size": "18px", "font-family": "monospace" }],
]],
["blank", "25px"],
["raw-html", function () { return "</td><td><div style=margin: 0 10px><input type=range id=volume name=Music Volume min=1 max=10 value=10 oninput=updateMusicVolume()><br>"}, { "color": "white", "font-size": "18px", "font-family": "monospace" }],
["raw-html", function () { return "</td><td><div style=margin: 0 10px><input type=range id=volume name=Music Volume min=1 max=10 value=" + options.musicVolume + " oninput=updateMusicVolume()><br>"}, { "color": "white", "font-size": "18px", "font-family": "monospace" }],
["blank", "25px"],
["raw-html", function () { return "Volume: " + options.musicVolume}, { "color": "white", "font-size": "18px", "font-family": "monospace" }],
["raw-html", function () { return "Autosave: " + options.autosave}, { "color": "white", "font-size": "18px", "font-family": "monospace" }],
Expand Down Expand Up @@ -601,4 +601,4 @@ document.addEventListener('keydown', function(event) {
if(event.keyCode == 87 && (hasUpgrade("cp", 18) || player.universe != 1.5) && hasUpgrade("ad", 13) && options.toggleHotkey) {
player.tab = "in"
}
});
});

0 comments on commit 873a37d

Please sign in to comment.