Skip to content

Commit

Permalink
Merge pull request #15 from EChamb1021/hotfixes-1
Browse files Browse the repository at this point in the history
Updated paths to volume pngs
  • Loading branch information
EChamb1021 authored Apr 3, 2023
2 parents 0c193ef + 1e7419e commit 6236b51
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
8 changes: 4 additions & 4 deletions js/ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 6236b51

Please sign in to comment.