From 18394d7b891d107fc449fe3ed3a1d36dbfa04932 Mon Sep 17 00:00:00 2001 From: Evan Chambers Date: Mon, 3 Apr 2023 11:27:39 -0400 Subject: [PATCH] Another volume image fix --- js/main.js | 8 ++++---- js/ui.js | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/js/main.js b/js/main.js index 2c00beff5..e1e04f555 100755 --- a/js/main.js +++ b/js/main.js @@ -284,10 +284,10 @@ function GameState(){ queue.loadFile( {id: "res/screens/Window/Stars.png", src:"res/screens/Window/Stars.png"}); //Volume images - queue.loadFile( {id: "res/controls/volume.png", src:"../res/controls/volume.png"}); - queue.loadFile( {id: "res/controls/volume-mute.png", src:"../res/controls/volume-mute.png"}); - queue.loadFile( {id: "res/controls/volume-hover.png", src:"../res/controls/volume-hover.png"}); - queue.loadFile( {id: "res/controls/volume-mute-hover.png", src:"../res/controls/volume-mute-hover.png"}); + queue.loadFile( {id: "res/controls/volume.png", src:"res/controls/volume.png"}); + queue.loadFile( {id: "res/controls/volume-mute.png", src:"res/controls/volume-mute.png"}); + queue.loadFile( {id: "res/controls/volume-hover.png", src:"res/controls/volume-hover.png"}); + queue.loadFile( {id: "res/controls/volume-mute-hover.png", src:"res/controls/volume-mute-hover.png"}); this.screenState = 0; diff --git a/js/ui.js b/js/ui.js index c90e0f144..c9d88cd9f 100755 --- a/js/ui.js +++ b/js/ui.js @@ -1112,11 +1112,11 @@ function ImgButton( stage, gameState, x, y, mouseOutImg, mouseOverImg, eventCmd, function VolumeButton( stage, gameState, x, y, eventCmd, arg, sound, altfunc ){ - var mouseOverMute = "../res/controls/volume-mute-hover.png"; - var mouseOutMute = "../res/controls/volume-mute.png"; + var mouseOverMute = "/res/controls/volume-mute-hover.png"; + var mouseOutMute = "/res/controls/volume-mute.png"; - var mouseOverVolume = "../res/controls/volume-hover.png"; - var mouseOutVolume = "../res/controls/volume.png"; + var mouseOverVolume = "/res/controls/volume-hover.png"; + var mouseOutVolume = "/res/controls/volume.png"; if (window.muted == false){ var mouseOver = new createjs.Bitmap(mouseOverVolume);