diff --git a/debug.log b/debug.log new file mode 100644 index 0000000..edc7522 --- /dev/null +++ b/debug.log @@ -0,0 +1 @@ +[1120/234026.026:ERROR:directory_reader_win.cc(43)] FindFirstFile: The system cannot find the path specified. (0x3) diff --git a/js/code.js b/js/code.js index 0c68e4b..e11655b 100644 --- a/js/code.js +++ b/js/code.js @@ -906,13 +906,1105 @@ function hatColor() { } function clothesType() { + var clothesTypeValue = document.getElementById("clothesTypeSelect").value; + var clothesColorValue = document.getElementById("clothesColorSelect").value; + var accentColorValue = document.getElementById("accentColorSelect").value; + if (clothesTypeValue == "hunter") { + accentColor() + imageHair.style.visibility = 'visible'; + imageHat.style.visibility = 'visible'; + if (clothesColorValue == "brown") { + document.getElementById("imageClothes").src = "assets/clothes/hunter/brown.png" + } + else if (clothesColorValue == "blue") { + document.getElementById("imageClothes").src = "assets/clothes/hunter/blue.png" + } + else if (clothesColorValue == "green") { + document.getElementById("imageClothes").src = "assets/clothes/hunter/green.png" + } + else if (clothesColorValue == "darkBlue") { + document.getElementById("imageClothes").src = "assets/clothes/hunter/dark_blue.png" + } + else if (clothesColorValue == "lightBrown") { + document.getElementById("imageClothes").src = "assets/clothes/hunter/light_brown.png" + } + else if (clothesColorValue == "darkGray") { + document.getElementById("imageClothes").src = "assets/clothes/hunter/dark_gray.png" + } + else if (clothesColorValue == "yellow") { + document.getElementById("imageClothes").src = "assets/clothes/hunter/yellow.png" + } + else if (clothesColorValue == "lightGray") { + document.getElementById("imageClothes").src = "assets/clothes/hunter/light_gray.png" + } + else if (clothesColorValue == "white") { + document.getElementById("imageClothes").src = "assets/clothes/hunter/white.png" + } + else { + document.getElementById("imageClothes").src = "assets/clothes/hunter/black.png" + } + } + else if (clothesTypeValue == "runNGun") { + accentColor() + imageHair.style.visibility = 'visible'; + imageHat.style.visibility = 'visible'; + if (clothesColorValue == "brown") { + document.getElementById("imageClothes").src = "assets/clothes/run_n_gun/brown.png" + } + else if (clothesColorValue == "blue") { + document.getElementById("imageClothes").src = "assets/clothes/run_n_gun/blue.png" + } + else if (clothesColorValue == "green") { + document.getElementById("imageClothes").src = "assets/clothes/run_n_gun/green.png" + } + else if (clothesColorValue == "darkBlue") { + document.getElementById("imageClothes").src = "assets/clothes/run_n_gun/dark_blue.png" + } + else if (clothesColorValue == "lightBrown") { + document.getElementById("imageClothes").src = "assets/clothes/run_n_gun/light_brown.png" + } + else if (clothesColorValue == "darkGray") { + document.getElementById("imageClothes").src = "assets/clothes/run_n_gun/dark_gray.png" + } + else if (clothesColorValue == "yellow") { + document.getElementById("imageClothes").src = "assets/clothes/run_n_gun/yellow.png" + } + else if (clothesColorValue == "lightGray") { + document.getElementById("imageClothes").src = "assets/clothes/run_n_gun/light_gray.png" + } + else if (clothesColorValue == "white") { + document.getElementById("imageClothes").src = "assets/clothes/run_n_gun/white.png" + } + else { + document.getElementById("imageClothes").src = "assets/clothes/run_n_gun/black.png" + } + } + else if (clothesTypeValue == "sprayNPray") { + accentColor() + imageHair.style.visibility = 'visible'; + imageHat.style.visibility = 'visible'; + if (clothesColorValue == "brown") { + document.getElementById("imageClothes").src = "assets/clothes/spray_n_pray/brown.png" + } + else if (clothesColorValue == "blue") { + document.getElementById("imageClothes").src = "assets/clothes/spray_n_pray/blue.png" + } + else if (clothesColorValue == "green") { + document.getElementById("imageClothes").src = "assets/clothes/spray_n_pray/green.png" + } + else if (clothesColorValue == "darkBlue") { + document.getElementById("imageClothes").src = "assets/clothes/spray_n_pray/dark_blue.png" + } + else if (clothesColorValue == "lightBrown") { + document.getElementById("imageClothes").src = "assets/clothes/spray_n_pray/light_brown.png" + } + else if (clothesColorValue == "darkGray") { + document.getElementById("imageClothes").src = "assets/clothes/spray_n_pray/dark_gray.png" + } + else if (clothesColorValue == "yellow") { + document.getElementById("imageClothes").src = "assets/clothes/spray_n_pray/yellow.png" + } + else if (clothesColorValue == "lightGray") { + document.getElementById("imageClothes").src = "assets/clothes/spray_n_pray/light_gray.png" + } + else if (clothesColorValue == "white") { + document.getElementById("imageClothes").src = "assets/clothes/spray_n_pray/white.png" + } + else { + document.getElementById("imageClothes").src = "assets/clothes/spray_n_pray/black.png" + } + } + else if (clothesTypeValue == "vince") { + accentColor() + imageHair.style.visibility = 'visible'; + imageHat.style.visibility = 'visible'; + if (clothesColorValue == "brown") { + document.getElementById("imageClothes").src = "assets/clothes/vince/brown.png" + } + else if (clothesColorValue == "blue") { + document.getElementById("imageClothes").src = "assets/clothes/vince/blue.png" + } + else if (clothesColorValue == "green") { + document.getElementById("imageClothes").src = "assets/clothes/vince/green.png" + } + else if (clothesColorValue == "darkBlue") { + document.getElementById("imageClothes").src = "assets/clothes/vince/dark_blue.png" + } + else if (clothesColorValue == "lightBrown") { + document.getElementById("imageClothes").src = "assets/clothes/vince/light_brown.png" + } + else if (clothesColorValue == "darkGray") { + document.getElementById("imageClothes").src = "assets/clothes/vince/dark_gray.png" + } + else if (clothesColorValue == "yellow") { + document.getElementById("imageClothes").src = "assets/clothes/vince/yellow.png" + } + else if (clothesColorValue == "lightGray") { + document.getElementById("imageClothes").src = "assets/clothes/vince/light_gray.png" + } + else if (clothesColorValue == "white") { + document.getElementById("imageClothes").src = "assets/clothes/vince/white.png" + } + else { + document.getElementById("imageClothes").src = "assets/clothes/vince/black.png" + } + } + else if (clothesTypeValue == "detective") { + accentColor() + imageHair.style.visibility = 'visible'; + imageHat.style.visibility = 'visible'; + if (clothesColorValue == "brown") { + document.getElementById("imageClothes").src = "assets/clothes/detective/brown.png" + } + else if (clothesColorValue == "blue") { + document.getElementById("imageClothes").src = "assets/clothes/detective/blue.png" + } + else if (clothesColorValue == "green") { + document.getElementById("imageClothes").src = "assets/clothes/detective/green.png" + } + else if (clothesColorValue == "darkBlue") { + document.getElementById("imageClothes").src = "assets/clothes/detective/dark_blue.png" + } + else if (clothesColorValue == "lightBrown") { + document.getElementById("imageClothes").src = "assets/clothes/detective/light_brown.png" + } + else if (clothesColorValue == "darkGray") { + document.getElementById("imageClothes").src = "assets/clothes/detective/dark_gray.png" + } + else if (clothesColorValue == "yellow") { + document.getElementById("imageClothes").src = "assets/clothes/detective/yellow.png" + } + else if (clothesColorValue == "lightGray") { + document.getElementById("imageClothes").src = "assets/clothes/detective/light_gray.png" + } + else if (clothesColorValue == "white") { + document.getElementById("imageClothes").src = "assets/clothes/detective/white.png" + } + else { + document.getElementById("imageClothes").src = "assets/clothes/detective/black.png" + } + } + else if (clothesTypeValue == "marksman") { + accentColor() + imageHair.style.visibility = 'visible'; + imageHat.style.visibility = 'visible'; + if (clothesColorValue == "brown") { + document.getElementById("imageClothes").src = "assets/clothes/marksman/brown.png" + } + else if (clothesColorValue == "blue") { + document.getElementById("imageClothes").src = "assets/clothes/marksman/blue.png" + } + else if (clothesColorValue == "green") { + document.getElementById("imageClothes").src = "assets/clothes/marksman/green.png" + } + else if (clothesColorValue == "darkBlue") { + document.getElementById("imageClothes").src = "assets/clothes/marksman/dark_blue.png" + } + else if (clothesColorValue == "lightBrown") { + document.getElementById("imageClothes").src = "assets/clothes/marksman/light_brown.png" + } + else if (clothesColorValue == "darkGray") { + document.getElementById("imageClothes").src = "assets/clothes/marksman/dark_gray.png" + } + else if (clothesColorValue == "yellow") { + document.getElementById("imageClothes").src = "assets/clothes/marksman/yellow.png" + } + else if (clothesColorValue == "lightGray") { + document.getElementById("imageClothes").src = "assets/clothes/marksman/light_gray.png" + } + else if (clothesColorValue == "white") { + document.getElementById("imageClothes").src = "assets/clothes/marksman/white.png" + } + else { + document.getElementById("imageClothes").src = "assets/clothes/marksman/black.png" + } + } + else if (clothesTypeValue == "rocketeer") { + accentColor() + imageHair.style.visibility = 'visible'; + imageHat.style.visibility = 'visible'; + if (clothesColorValue == "brown") { + document.getElementById("imageClothes").src = "assets/clothes/rocketeer/brown.png" + } + else if (clothesColorValue == "blue") { + document.getElementById("imageClothes").src = "assets/clothes/rocketeer/blue.png" + } + else if (clothesColorValue == "green") { + document.getElementById("imageClothes").src = "assets/clothes/rocketeer/green.png" + } + else if (clothesColorValue == "darkBlue") { + document.getElementById("imageClothes").src = "assets/clothes/rocketeer/dark_blue.png" + } + else if (clothesColorValue == "lightBrown") { + document.getElementById("imageClothes").src = "assets/clothes/rocketeer/light_brown.png" + } + else if (clothesColorValue == "darkGray") { + document.getElementById("imageClothes").src = "assets/clothes/rocketeer/dark_gray.png" + } + else if (clothesColorValue == "yellow") { + document.getElementById("imageClothes").src = "assets/clothes/rocketeer/yellow.png" + } + else if (clothesColorValue == "lightGray") { + document.getElementById("imageClothes").src = "assets/clothes/rocketeer/light_gray.png" + } + else if (clothesColorValue == "white") { + document.getElementById("imageClothes").src = "assets/clothes/rocketeer/white.png" + } + else { + document.getElementById("imageClothes").src = "assets/clothes/rocketeer/black.png" + } + } + else if (clothesTypeValue == "agent") { + accentColor() + imageHair.style.visibility = 'visible'; + imageHat.style.visibility = 'visible'; + if (clothesColorValue == "brown") { + document.getElementById("imageClothes").src = "assets/clothes/agent/brown.png" + } + else if (clothesColorValue == "blue") { + document.getElementById("imageClothes").src = "assets/clothes/agent/blue.png" + } + else if (clothesColorValue == "green") { + document.getElementById("imageClothes").src = "assets/clothes/agent/green.png" + } + else if (clothesColorValue == "darkBlue") { + document.getElementById("imageClothes").src = "assets/clothes/agent/dark_blue.png" + } + else if (clothesColorValue == "lightBrown") { + document.getElementById("imageClothes").src = "assets/clothes/agent/light_brown.png" + } + else if (clothesColorValue == "darkGray") { + document.getElementById("imageClothes").src = "assets/clothes/agent/dark_gray.png" + } + else if (clothesColorValue == "yellow") { + document.getElementById("imageClothes").src = "assets/clothes/agent/yellow.png" + } + else if (clothesColorValue == "lightGray") { + document.getElementById("imageClothes").src = "assets/clothes/agent/light_gray.png" + } + else if (clothesColorValue == "white") { + document.getElementById("imageClothes").src = "assets/clothes/agent/white.png" + } + else { + document.getElementById("imageClothes").src = "assets/clothes/agent/black.png" + } + } + else if (clothesTypeValue == "commando") { + accentColor() + imageHair.style.visibility = 'visible'; + imageHat.style.visibility = 'visible'; + if (clothesColorValue == "brown") { + document.getElementById("imageClothes").src = "assets/clothes/commando/brown.png" + } + else if (clothesColorValue == "blue") { + document.getElementById("imageClothes").src = "assets/clothes/commando/blue.png" + } + else if (clothesColorValue == "green") { + document.getElementById("imageClothes").src = "assets/clothes/commando/green.png" + } + else if (clothesColorValue == "darkBlue") { + document.getElementById("imageClothes").src = "assets/clothes/commando/dark_blue.png" + } + else if (clothesColorValue == "lightBrown") { + document.getElementById("imageClothes").src = "assets/clothes/commando/light_brown.png" + } + else if (clothesColorValue == "darkGray") { + document.getElementById("imageClothes").src = "assets/clothes/commando/dark_gray.png" + } + else if (clothesColorValue == "yellow") { + document.getElementById("imageClothes").src = "assets/clothes/commando/yellow.png" + } + else if (clothesColorValue == "lightGray") { + document.getElementById("imageClothes").src = "assets/clothes/commando/light_gray.png" + } + else if (clothesColorValue == "white") { + document.getElementById("imageClothes").src = "assets/clothes/commando/white.png" + } + else { + document.getElementById("imageClothes").src = "assets/clothes/commando/black.png" + } + } + else if (clothesTypeValue == "bowman") { + accentColor() + imageHair.style.visibility = 'visible'; + imageHat.style.visibility = 'visible'; + if (clothesColorValue == "brown") { + document.getElementById("imageClothes").src = "assets/clothes/bowman/brown.png" + } + else if (clothesColorValue == "blue") { + document.getElementById("imageClothes").src = "assets/clothes/bowman/blue.png" + } + else if (clothesColorValue == "green") { + document.getElementById("imageClothes").src = "assets/clothes/bowman/green.png" + } + else if (clothesColorValue == "darkBlue") { + document.getElementById("imageClothes").src = "assets/clothes/bowman/dark_blue.png" + } + else if (clothesColorValue == "lightBrown") { + document.getElementById("imageClothes").src = "assets/clothes/bowman/light_brown.png" + } + else if (clothesColorValue == "darkGray") { + document.getElementById("imageClothes").src = "assets/clothes/bowman/dark_gray.png" + } + else if (clothesColorValue == "yellow") { + document.getElementById("imageClothes").src = "assets/clothes/bowman/yellow.png" + } + else if (clothesColorValue == "lightGray") { + document.getElementById("imageClothes").src = "assets/clothes/bowman/light_gray.png" + } + else if (clothesColorValue == "white") { + document.getElementById("imageClothes").src = "assets/clothes/bowman/white.png" + } + else { + document.getElementById("imageClothes").src = "assets/clothes/bowman/black.png" + } + } + else if (clothesTypeValue == "deagler") { + accentColor() + imageHair.style.visibility = 'visible'; + imageHat.style.visibility = 'visible'; + if (clothesColorValue == "brown") { + document.getElementById("imageClothes").src = "assets/clothes/deagler/brown.png" + } + else if (clothesColorValue == "blue") { + document.getElementById("imageClothes").src = "assets/clothes/deagler/blue.png" + } + else if (clothesColorValue == "green") { + document.getElementById("imageClothes").src = "assets/clothes/deagler/green.png" + } + else if (clothesColorValue == "darkBlue") { + document.getElementById("imageClothes").src = "assets/clothes/deagler/dark_blue.png" + } + else if (clothesColorValue == "lightBrown") { + document.getElementById("imageClothes").src = "assets/clothes/deagler/light_brown.png" + } + else if (clothesColorValue == "darkGray") { + document.getElementById("imageClothes").src = "assets/clothes/deagler/dark_gray.png" + } + else if (clothesColorValue == "yellow") { + document.getElementById("imageClothes").src = "assets/clothes/deagler/yellow.png" + } + else if (clothesColorValue == "lightGray") { + document.getElementById("imageClothes").src = "assets/clothes/deagler/light_gray.png" + } + else if (clothesColorValue == "white") { + document.getElementById("imageClothes").src = "assets/clothes/deagler/white.png" + } + else { + document.getElementById("imageClothes").src = "assets/clothes/deagler/black.png" + } + } + else if (clothesTypeValue == "runner") { + accentColor() + imageHair.style.visibility = 'visible'; + imageHat.style.visibility = 'visible'; + if (clothesColorValue == "brown") { + document.getElementById("imageClothes").src = "assets/clothes/runner/brown.png" + } + else if (clothesColorValue == "blue") { + document.getElementById("imageClothes").src = "assets/clothes/runner/blue.png" + } + else if (clothesColorValue == "green") { + document.getElementById("imageClothes").src = "assets/clothes/runner/green.png" + } + else if (clothesColorValue == "darkBlue") { + document.getElementById("imageClothes").src = "assets/clothes/runner/dark_blue.png" + } + else if (clothesColorValue == "lightBrown") { + document.getElementById("imageClothes").src = "assets/clothes/runner/light_brown.png" + } + else if (clothesColorValue == "darkGray") { + document.getElementById("imageClothes").src = "assets/clothes/runner/dark_gray.png" + } + else if (clothesColorValue == "yellow") { + document.getElementById("imageClothes").src = "assets/clothes/runner/yellow.png" + } + else if (clothesColorValue == "lightGray") { + document.getElementById("imageClothes").src = "assets/clothes/runner/light_gray.png" + } + else if (clothesColorValue == "white") { + document.getElementById("imageClothes").src = "assets/clothes/runner/white.png" + } + else { + document.getElementById("imageClothes").src = "assets/clothes/runner/black.png" + } + } + else if (clothesTypeValue == "trooper") { + accentColor() + imageHair.style.visibility = 'hidden'; + imageHat.style.visibility = 'hidden'; + if (clothesColorValue == "brown") { + document.getElementById("imageClothes").src = "assets/clothes/trooper/brown.png" + } + else if (clothesColorValue == "blue") { + document.getElementById("imageClothes").src = "assets/clothes/trooper/blue.png" + } + else if (clothesColorValue == "green") { + document.getElementById("imageClothes").src = "assets/clothes/trooper/green.png" + } + else if (clothesColorValue == "darkBlue") { + document.getElementById("imageClothes").src = "assets/clothes/trooper/dark_blue.png" + } + else if (clothesColorValue == "lightBrown") { + document.getElementById("imageClothes").src = "assets/clothes/trooper/light_brown.png" + } + else if (clothesColorValue == "darkGray") { + document.getElementById("imageClothes").src = "assets/clothes/trooper/dark_gray.png" + } + else if (clothesColorValue == "yellow") { + document.getElementById("imageClothes").src = "assets/clothes/trooper/yellow.png" + } + else if (clothesColorValue == "lightGray") { + document.getElementById("imageClothes").src = "assets/clothes/trooper/light_gray.png" + } + else if (clothesColorValue == "white") { + document.getElementById("imageClothes").src = "assets/clothes/trooper/white.png" + } + else { + document.getElementById("imageClothes").src = "assets/clothes/trooper/black.png" + } + } + else { + accentColor() + if (clothesColorValue == "brown") { + document.getElementById("imageClothes").src = "assets/clothes/triggerman/brown.png" + } + else if (clothesColorValue == "blue") { + document.getElementById("imageClothes").src = "assets/clothes/triggerman/blue.png" + } + else if (clothesColorValue == "green") { + document.getElementById("imageClothes").src = "assets/clothes/triggerman/green.png" + } + else if (clothesColorValue == "darkBlue") { + document.getElementById("imageClothes").src = "assets/clothes/triggerman/dark_blue.png" + } + else if (clothesColorValue == "lightBrown") { + document.getElementById("imageClothes").src = "assets/clothes/triggerman/light_brown.png" + } + else if (clothesColorValue == "darkGray") { + document.getElementById("imageClothes").src = "assets/clothes/triggerman/dark_gray.png" + } + else if (clothesColorValue == "yellow") { + document.getElementById("imageClothes").src = "assets/clothes/triggerman/yellow.png" + } + else if (clothesColorValue == "lightGray") { + document.getElementById("imageClothes").src = "assets/clothes/triggerman/light_gray.png" + } + else if (clothesColorValue == "white") { + document.getElementById("imageClothes").src = "assets/clothes/triggerman/white.png" + } + else { + document.getElementById("imageClothes").src = "assets/clothes/triggerman/black.png" + } + } console.log("Clothes type changed to " + clothesTypeValue + ".") } function clothesColor() { + var clothesColorValue = document.getElementById("clothesColorSelect").value; + var clothesTypeValue = document.getElementById("clothesTypeSelect").value; + if (clothesColorValue == "brown") { + if (clothesTypeValue == "hunter") { + document.getElementById("imageClothes").src = "assets/clothes/hunter/brown.png" + } + else if (clothesTypeValue == "runNGun") { + document.getElementById("imageClothes").src = "assets/clothes/run_n_gun/brown.png" + } + else if (clothesTypeValue == "sprayNPray") { + document.getElementById("imageClothes").src = "assets/clothes/spray_n_pray/brown.png" + } + else if (clothesTypeValue == "vince") { + document.getElementById("imageClothes").src = "assets/clothes/vince/brown.png" + } + else if (clothesTypeValue == "detective") { + document.getElementById("imageClothes").src = "assets/clothes/detective/brown.png" + } + else if (clothesTypeValue == "marksman") { + document.getElementById("imageClothes").src = "assets/clothes/marksman/brown.png" + } + else if (clothesTypeValue == "rocketeer") { + document.getElementById("imageClothes").src = "assets/clothes/rocketeer/brown.png" + } + else if (clothesTypeValue == "agent") { + document.getElementById("imageClothes").src = "assets/clothes/agent/brown.png" + } + else if (clothesTypeValue == "commando") { + document.getElementById("imageClothes").src = "assets/clothes/commando/brown.png" + } + else if (clothesTypeValue == "bowman") { + document.getElementById("imageClothes").src = "assets/clothes/bowman/brown.png" + } + else if (clothesTypeValue == "deagler") { + document.getElementById("imageClothes").src = "assets/clothes/deagler/brown.png" + } + else if (clothesTypeValue == "runner") { + document.getElementById("imageClothes").src = "assets/clothes/runner/brown.png" + } + else if (clothesTypeValue == "trooper") { + document.getElementById("imageClothes").src = "assets/clothes/trooper/brown.png" + } + else { + document.getElementById("imageClothes").src = "assets/clothes/triggerman/brown.png" + } + } + else if (clothesColorValue == "blue") { + if (clothesTypeValue == "hunter") { + document.getElementById("imageClothes").src = "assets/clothes/hunter/blue.png" + } + else if (clothesTypeValue == "runNGun") { + document.getElementById("imageClothes").src = "assets/clothes/run_n_gun/blue.png" + } + else if (clothesTypeValue == "sprayNPray") { + document.getElementById("imageClothes").src = "assets/clothes/spray_n_pray/blue.png" + } + else if (clothesTypeValue == "vince") { + document.getElementById("imageClothes").src = "assets/clothes/vince/blue.png" + } + else if (clothesTypeValue == "detective") { + document.getElementById("imageClothes").src = "assets/clothes/detective/blue.png" + } + else if (clothesTypeValue == "marksman") { + document.getElementById("imageClothes").src = "assets/clothes/marksman/blue.png" + } + else if (clothesTypeValue == "rocketeer") { + document.getElementById("imageClothes").src = "assets/clothes/rocketeer/blue.png" + } + else if (clothesTypeValue == "agent") { + document.getElementById("imageClothes").src = "assets/clothes/agent/blue.png" + } + else if (clothesTypeValue == "commando") { + document.getElementById("imageClothes").src = "assets/clothes/commando/blue.png" + } + else if (clothesTypeValue == "bowman") { + document.getElementById("imageClothes").src = "assets/clothes/bowman/blue.png" + } + else if (clothesTypeValue == "deagler") { + document.getElementById("imageClothes").src = "assets/clothes/deagler/blue.png" + } + else if (clothesTypeValue == "runner") { + document.getElementById("imageClothes").src = "assets/clothes/runner/blue.png" + } + else if (clothesTypeValue == "trooper") { + document.getElementById("imageClothes").src = "assets/clothes/trooper/blue.png" + } + else { + document.getElementById("imageClothes").src = "assets/clothes/triggerman/blue.png" + } + } + else if (clothesColorValue == "green") { + if (clothesTypeValue == "hunter") { + document.getElementById("imageClothes").src = "assets/clothes/hunter/green.png" + } + else if (clothesTypeValue == "runNGun") { + document.getElementById("imageClothes").src = "assets/clothes/run_n_gun/green.png" + } + else if (clothesTypeValue == "sprayNPray") { + document.getElementById("imageClothes").src = "assets/clothes/spray_n_pray/green.png" + } + else if (clothesTypeValue == "vince") { + document.getElementById("imageClothes").src = "assets/clothes/vince/green.png" + } + else if (clothesTypeValue == "detective") { + document.getElementById("imageClothes").src = "assets/clothes/detective/green.png" + } + else if (clothesTypeValue == "marksman") { + document.getElementById("imageClothes").src = "assets/clothes/marksman/green.png" + } + else if (clothesTypeValue == "rocketeer") { + document.getElementById("imageClothes").src = "assets/clothes/rocketeer/green.png" + } + else if (clothesTypeValue == "agent") { + document.getElementById("imageClothes").src = "assets/clothes/agent/green.png" + } + else if (clothesTypeValue == "commando") { + document.getElementById("imageClothes").src = "assets/clothes/commando/green.png" + } + else if (clothesTypeValue == "bowman") { + document.getElementById("imageClothes").src = "assets/clothes/bowman/green.png" + } + else if (clothesTypeValue == "deagler") { + document.getElementById("imageClothes").src = "assets/clothes/deagler/green.png" + } + else if (clothesTypeValue == "runner") { + document.getElementById("imageClothes").src = "assets/clothes/runner/green.png" + } + else if (clothesTypeValue == "trooper") { + document.getElementById("imageClothes").src = "assets/clothes/trooper/green.png" + } + else { + document.getElementById("imageClothes").src = "assets/clothes/triggerman/green.png" + } + } + else if (clothesColorValue == "darkBlue") { + if (clothesTypeValue == "hunter") { + document.getElementById("imageClothes").src = "assets/clothes/hunter/dark_blue.png" + } + else if (clothesTypeValue == "runNGun") { + document.getElementById("imageClothes").src = "assets/clothes/run_n_gun/dark_blue.png" + } + else if (clothesTypeValue == "sprayNPray") { + document.getElementById("imageClothes").src = "assets/clothes/spray_n_pray/dark_blue.png" + } + else if (clothesTypeValue == "vince") { + document.getElementById("imageClothes").src = "assets/clothes/vince/dark_blue.png" + } + else if (clothesTypeValue == "detective") { + document.getElementById("imageClothes").src = "assets/clothes/detective/dark_blue.png" + } + else if (clothesTypeValue == "marksman") { + document.getElementById("imageClothes").src = "assets/clothes/marksman/dark_blue.png" + } + else if (clothesTypeValue == "rocketeer") { + document.getElementById("imageClothes").src = "assets/clothes/rocketeer/dark_blue.png" + } + else if (clothesTypeValue == "agent") { + document.getElementById("imageClothes").src = "assets/clothes/agent/dark_blue.png" + } + else if (clothesTypeValue == "commando") { + document.getElementById("imageClothes").src = "assets/clothes/commando/dark_blue.png" + } + else if (clothesTypeValue == "bowman") { + document.getElementById("imageClothes").src = "assets/clothes/bowman/dark_blue.png" + } + else if (clothesTypeValue == "deagler") { + document.getElementById("imageClothes").src = "assets/clothes/deagler/dark_blue.png" + } + else if (clothesTypeValue == "runner") { + document.getElementById("imageClothes").src = "assets/clothes/runner/dark_blue.png" + } + else if (clothesTypeValue == "trooper") { + document.getElementById("imageClothes").src = "assets/clothes/trooper/dark_blue.png" + } + else { + document.getElementById("imageClothes").src = "assets/clothes/triggerman/dark_blue.png" + } + } + else if (clothesColorValue == "lightBrown") { + if (clothesTypeValue == "hunter") { + document.getElementById("imageClothes").src = "assets/clothes/hunter/light_brown.png" + } + else if (clothesTypeValue == "runNGun") { + document.getElementById("imageClothes").src = "assets/clothes/run_n_gun/light_brown.png" + } + else if (clothesTypeValue == "sprayNPray") { + document.getElementById("imageClothes").src = "assets/clothes/spray_n_pray/light_brown.png" + } + else if (clothesTypeValue == "vince") { + document.getElementById("imageClothes").src = "assets/clothes/vince/light_brown.png" + } + else if (clothesTypeValue == "detective") { + document.getElementById("imageClothes").src = "assets/clothes/detective/light_brown.png" + } + else if (clothesTypeValue == "marksman") { + document.getElementById("imageClothes").src = "assets/clothes/marksman/light_brown.png" + } + else if (clothesTypeValue == "rocketeer") { + document.getElementById("imageClothes").src = "assets/clothes/rocketeer/light_brown.png" + } + else if (clothesTypeValue == "agent") { + document.getElementById("imageClothes").src = "assets/clothes/agent/light_brown.png" + } + else if (clothesTypeValue == "commando") { + document.getElementById("imageClothes").src = "assets/clothes/commando/light_brown.png" + } + else if (clothesTypeValue == "bowman") { + document.getElementById("imageClothes").src = "assets/clothes/bowman/light_brown.png" + } + else if (clothesTypeValue == "deagler") { + document.getElementById("imageClothes").src = "assets/clothes/deagler/light_brown.png" + } + else if (clothesTypeValue == "runner") { + document.getElementById("imageClothes").src = "assets/clothes/runner/light_brown.png" + } + else if (clothesTypeValue == "trooper") { + document.getElementById("imageClothes").src = "assets/clothes/trooper/light_brown.png" + } + else { + document.getElementById("imageClothes").src = "assets/clothes/triggerman/light_brown.png" + } + } + else if (clothesColorValue == "darkGray") { + if (clothesTypeValue == "hunter") { + document.getElementById("imageClothes").src = "assets/clothes/hunter/dark_gray.png" + } + else if (clothesTypeValue == "runNGun") { + document.getElementById("imageClothes").src = "assets/clothes/run_n_gun/dark_gray.png" + } + else if (clothesTypeValue == "sprayNPray") { + document.getElementById("imageClothes").src = "assets/clothes/spray_n_pray/dark_gray.png" + } + else if (clothesTypeValue == "vince") { + document.getElementById("imageClothes").src = "assets/clothes/vince/dark_gray.png" + } + else if (clothesTypeValue == "detective") { + document.getElementById("imageClothes").src = "assets/clothes/detective/dark_gray.png" + } + else if (clothesTypeValue == "marksman") { + document.getElementById("imageClothes").src = "assets/clothes/marksman/dark_gray.png" + } + else if (clothesTypeValue == "rocketeer") { + document.getElementById("imageClothes").src = "assets/clothes/rocketeer/dark_gray.png" + } + else if (clothesTypeValue == "agent") { + document.getElementById("imageClothes").src = "assets/clothes/agent/dark_gray.png" + } + else if (clothesTypeValue == "commando") { + document.getElementById("imageClothes").src = "assets/clothes/commando/dark_gray.png" + } + else if (clothesTypeValue == "bowman") { + document.getElementById("imageClothes").src = "assets/clothes/bowman/dark_gray.png" + } + else if (clothesTypeValue == "deagler") { + document.getElementById("imageClothes").src = "assets/clothes/deagler/dark_gray.png" + } + else if (clothesTypeValue == "runner") { + document.getElementById("imageClothes").src = "assets/clothes/runner/dark_gray.png" + } + else if (clothesTypeValue == "trooper") { + document.getElementById("imageClothes").src = "assets/clothes/trooper/dark_gray.png" + } + else { + document.getElementById("imageClothes").src = "assets/clothes/triggerman/dark_gray.png" + } + } + else if (clothesColorValue == "yellow") { + if (clothesTypeValue == "hunter") { + document.getElementById("imageClothes").src = "assets/clothes/hunter/yellow.png" + } + else if (clothesTypeValue == "runNGun") { + document.getElementById("imageClothes").src = "assets/clothes/run_n_gun/yellow.png" + } + else if (clothesTypeValue == "sprayNPray") { + document.getElementById("imageClothes").src = "assets/clothes/spray_n_pray/yellow.png" + } + else if (clothesTypeValue == "vince") { + document.getElementById("imageClothes").src = "assets/clothes/vince/yellow.png" + } + else if (clothesTypeValue == "detective") { + document.getElementById("imageClothes").src = "assets/clothes/detective/yellow.png" + } + else if (clothesTypeValue == "marksman") { + document.getElementById("imageClothes").src = "assets/clothes/marksman/yellow.png" + } + else if (clothesTypeValue == "rocketeer") { + document.getElementById("imageClothes").src = "assets/clothes/rocketeer/yellow.png" + } + else if (clothesTypeValue == "agent") { + document.getElementById("imageClothes").src = "assets/clothes/agent/yellow.png" + } + else if (clothesTypeValue == "commando") { + document.getElementById("imageClothes").src = "assets/clothes/commando/yellow.png" + } + else if (clothesTypeValue == "bowman") { + document.getElementById("imageClothes").src = "assets/clothes/bowman/yellow.png" + } + else if (clothesTypeValue == "deagler") { + document.getElementById("imageClothes").src = "assets/clothes/deagler/yellow.png" + } + else if (clothesTypeValue == "runner") { + document.getElementById("imageClothes").src = "assets/clothes/runner/yellow.png" + } + else if (clothesTypeValue == "trooper") { + document.getElementById("imageClothes").src = "assets/clothes/trooper/yellow.png" + } + else { + document.getElementById("imageClothes").src = "assets/clothes/triggerman/yellow.png" + } + } + else if (clothesColorValue == "lightGray") { + if (clothesTypeValue == "hunter") { + document.getElementById("imageClothes").src = "assets/clothes/hunter/light_gray.png" + } + else if (clothesTypeValue == "runNGun") { + document.getElementById("imageClothes").src = "assets/clothes/run_n_gun/light_gray.png" + } + else if (clothesTypeValue == "sprayNPray") { + document.getElementById("imageClothes").src = "assets/clothes/spray_n_pray/light_gray.png" + } + else if (clothesTypeValue == "vince") { + document.getElementById("imageClothes").src = "assets/clothes/vince/light_gray.png" + } + else if (clothesTypeValue == "detective") { + document.getElementById("imageClothes").src = "assets/clothes/detective/light_gray.png" + } + else if (clothesTypeValue == "marksman") { + document.getElementById("imageClothes").src = "assets/clothes/marksman/light_gray.png" + } + else if (clothesTypeValue == "rocketeer") { + document.getElementById("imageClothes").src = "assets/clothes/rocketeer/light_gray.png" + } + else if (clothesTypeValue == "agent") { + document.getElementById("imageClothes").src = "assets/clothes/agent/light_gray.png" + } + else if (clothesTypeValue == "commando") { + document.getElementById("imageClothes").src = "assets/clothes/commando/light_gray.png" + } + else if (clothesTypeValue == "bowman") { + document.getElementById("imageClothes").src = "assets/clothes/bowman/light_gray.png" + } + else if (clothesTypeValue == "deagler") { + document.getElementById("imageClothes").src = "assets/clothes/deagler/light_gray.png" + } + else if (clothesTypeValue == "runner") { + document.getElementById("imageClothes").src = "assets/clothes/runner/light_gray.png" + } + else if (clothesTypeValue == "trooper") { + document.getElementById("imageClothes").src = "assets/clothes/trooper/light_gray.png" + } + else { + document.getElementById("imageClothes").src = "assets/clothes/triggerman/light_gray.png" + } + } + else if (clothesColorValue == "white") { + if (clothesTypeValue == "hunter") { + document.getElementById("imageClothes").src = "assets/clothes/hunter/white.png" + } + else if (clothesTypeValue == "runNGun") { + document.getElementById("imageClothes").src = "assets/clothes/run_n_gun/white.png" + } + else if (clothesTypeValue == "sprayNPray") { + document.getElementById("imageClothes").src = "assets/clothes/spray_n_pray/white.png" + } + else if (clothesTypeValue == "vince") { + document.getElementById("imageClothes").src = "assets/clothes/vince/white.png" + } + else if (clothesTypeValue == "detective") { + document.getElementById("imageClothes").src = "assets/clothes/detective/white.png" + } + else if (clothesTypeValue == "marksman") { + document.getElementById("imageClothes").src = "assets/clothes/marksman/white.png" + } + else if (clothesTypeValue == "rocketeer") { + document.getElementById("imageClothes").src = "assets/clothes/rocketeer/white.png" + } + else if (clothesTypeValue == "agent") { + document.getElementById("imageClothes").src = "assets/clothes/agent/white.png" + } + else if (clothesTypeValue == "commando") { + document.getElementById("imageClothes").src = "assets/clothes/commando/white.png" + } + else if (clothesTypeValue == "bowman") { + document.getElementById("imageClothes").src = "assets/clothes/bowman/white.png" + } + else if (clothesTypeValue == "deagler") { + document.getElementById("imageClothes").src = "assets/clothes/deagler/white.png" + } + else if (clothesTypeValue == "runner") { + document.getElementById("imageClothes").src = "assets/clothes/runner/white.png" + } + else if (clothesTypeValue == "trooper") { + document.getElementById("imageClothes").src = "assets/clothes/trooper/white.png" + } + else { + document.getElementById("imageClothes").src = "assets/clothes/triggerman/white.png" + } + } + else { + if (clothesTypeValue == "hunter") { + document.getElementById("imageClothes").src = "assets/clothes/hunter/black.png" + } + else if (clothesTypeValue == "runNGun") { + document.getElementById("imageClothes").src = "assets/clothes/run_n_gun/black.png" + } + else if (clothesTypeValue == "sprayNPray") { + document.getElementById("imageClothes").src = "assets/clothes/spray_n_pray/black.png" + } + else if (clothesTypeValue == "vince") { + document.getElementById("imageClothes").src = "assets/clothes/vince/black.png" + } + else if (clothesTypeValue == "detective") { + document.getElementById("imageClothes").src = "assets/clothes/detective/black.png" + } + else if (clothesTypeValue == "marksman") { + document.getElementById("imageClothes").src = "assets/clothes/marksman/black.png" + } + else if (clothesTypeValue == "rocketeer") { + document.getElementById("imageClothes").src = "assets/clothes/rocketeer/black.png" + } + else if (clothesTypeValue == "agent") { + document.getElementById("imageClothes").src = "assets/clothes/agent/black.png" + } + else if (clothesTypeValue == "commando") { + document.getElementById("imageClothes").src = "assets/clothes/commando/black.png" + } + else if (clothesTypeValue == "bowman") { + document.getElementById("imageClothes").src = "assets/clothes/bowman/black.png" + } + else if (clothesTypeValue == "deagler") { + document.getElementById("imageClothes").src = "assets/clothes/deagler/black.png" + } + else if (clothesTypeValue == "runner") { + document.getElementById("imageClothes").src = "assets/clothes/runner/black.png" + } + else if (clothesTypeValue == "trooper") { + document.getElementById("imageClothes").src = "assets/clothes/trooper/black.png" + } + else { + document.getElementById("imageClothes").src = "assets/clothes/triggerman/black.png" + } + } console.log("Clothes color changed to " + clothesColorValue + ".") } function accentColor() { + var accentColorValue = document.getElementById("accentColorSelect").value; + var clothesTypeValue = document.getElementById("clothesTypeSelect").value; + if (clothesTypeValue == "triggerman") { + if (accentColorValue == "red") { + imageAccent.style.visibility = 'visible'; + document.getElementById("imageAccent").src = "assets/accent/triggerman/red.png" + } + else if (accentColorValue == "lime") { + imageAccent.style.visibility = 'visible'; + document.getElementById("imageAccent").src = "assets/accent/triggerman/lime.png" + } + else if (accentColorValue == "black") { + imageAccent.style.visibility = 'visible'; + document.getElementById("imageAccent").src = "assets/accent/triggerman/black.png" + } + else if (accentColorValue == "blue") { + imageAccent.style.visibility = 'visible'; + document.getElementById("imageAccent").src = "assets/accent/triggerman/blue.png" + } + else if (accentColorValue == "cyan") { + imageAccent.style.visibility = 'visible'; + document.getElementById("imageAccent").src = "assets/accent/triggerman/cyan.png" + } + } + else if (clothesTypeValue == "hunter") { + if (accentColorValue == "red") { + imageAccent.style.visibility = 'visible'; + document.getElementById("imageAccent").src = "assets/accent/hunter/red.png" + } + else if (accentColorValue == "lime") { + imageAccent.style.visibility = 'visible'; + document.getElementById("imageAccent").src = "assets/accent/hunter/lime.png" + } + else if (accentColorValue == "black") { + imageAccent.style.visibility = 'visible'; + document.getElementById("imageAccent").src = "assets/accent/hunter/black.png" + } + else if (accentColorValue == "blue") { + imageAccent.style.visibility = 'visible'; + document.getElementById("imageAccent").src = "assets/accent/hunter/blue.png" + } + else if (accentColorValue == "cyan") { + imageAccent.style.visibility = 'visible'; + document.getElementById("imageAccent").src = "assets/accent/hunter/cyan.png" + } + } + else if (clothesTypeValue == "sprayNPray") { + if (accentColorValue == "red") { + imageAccent.style.visibility = 'visible'; + document.getElementById("imageAccent").src = "assets/accent/spray_n_pray/red.png" + } + else if (accentColorValue == "lime") { + imageAccent.style.visibility = 'visible'; + document.getElementById("imageAccent").src = "assets/accent/spray_n_pray/lime.png" + } + else if (accentColorValue == "black") { + imageAccent.style.visibility = 'visible'; + document.getElementById("imageAccent").src = "assets/accent/spray_n_pray/black.png" + } + else if (accentColorValue == "blue") { + imageAccent.style.visibility = 'visible'; + document.getElementById("imageAccent").src = "assets/accent/spray_n_pray/blue.png" + } + else if (accentColorValue == "cyan") { + imageAccent.style.visibility = 'visible'; + document.getElementById("imageAccent").src = "assets/accent/spray_n_pray/cyan.png" + } + } + else if (clothesTypeValue == "marksman") { + if (accentColorValue == "red") { + imageAccent.style.visibility = 'visible'; + document.getElementById("imageAccent").src = "assets/accent/marksman/red.png" + } + else if (accentColorValue == "lime") { + imageAccent.style.visibility = 'visible'; + document.getElementById("imageAccent").src = "assets/accent/marksman/lime.png" + } + else if (accentColorValue == "black") { + imageAccent.style.visibility = 'visible'; + document.getElementById("imageAccent").src = "assets/accent/marksman/black.png" + } + else if (accentColorValue == "blue") { + imageAccent.style.visibility = 'visible'; + document.getElementById("imageAccent").src = "assets/accent/marksman/blue.png" + } + else if (accentColorValue == "cyan") { + imageAccent.style.visibility = 'visible'; + document.getElementById("imageAccent").src = "assets/accent/marksman/cyan.png" + } + } + else if (clothesTypeValue == "commando") { + if (accentColorValue == "red") { + imageAccent.style.visibility = 'visible'; + document.getElementById("imageAccent").src = "assets/accent/commando/red.png" + } + else if (accentColorValue == "lime") { + imageAccent.style.visibility = 'visible'; + document.getElementById("imageAccent").src = "assets/accent/commando/lime.png" + } + else if (accentColorValue == "black") { + imageAccent.style.visibility = 'visible'; + document.getElementById("imageAccent").src = "assets/accent/commando/black.png" + } + else if (accentColorValue == "blue") { + imageAccent.style.visibility = 'visible'; + document.getElementById("imageAccent").src = "assets/accent/commando/blue.png" + } + else if (accentColorValue == "cyan") { + imageAccent.style.visibility = 'visible'; + document.getElementById("imageAccent").src = "assets/accent/commando/cyan.png" + } + } + else if (clothesTypeValue == "bowman") { + if (accentColorValue == "red") { + imageAccent.style.visibility = 'visible'; + document.getElementById("imageAccent").src = "assets/accent/bowman/red.png" + } + else if (accentColorValue == "lime") { + imageAccent.style.visibility = 'visible'; + document.getElementById("imageAccent").src = "assets/accent/bowman/lime.png" + } + else if (accentColorValue == "black") { + imageAccent.style.visibility = 'visible'; + document.getElementById("imageAccent").src = "assets/accent/bowman/black.png" + } + else if (accentColorValue == "blue") { + imageAccent.style.visibility = 'visible'; + document.getElementById("imageAccent").src = "assets/accent/bowman/blue.png" + } + else if (accentColorValue == "cyan") { + imageAccent.style.visibility = 'visible'; + document.getElementById("imageAccent").src = "assets/accent/bowman/cyan.png" + } + } + else if (clothesTypeValue == "trooper") { + if (accentColorValue == "red") { + imageAccent.style.visibility = 'visible'; + document.getElementById("imageAccent").src = "assets/accent/trooper/red.png" + } + else if (accentColorValue == "lime") { + imageAccent.style.visibility = 'visible'; + document.getElementById("imageAccent").src = "assets/accent/trooper/lime.png" + } + else if (accentColorValue == "black") { + imageAccent.style.visibility = 'visible'; + document.getElementById("imageAccent").src = "assets/accent/trooper/black.png" + } + else if (accentColorValue == "blue") { + imageAccent.style.visibility = 'visible'; + document.getElementById("imageAccent").src = "assets/accent/trooper/blue.png" + } + else if (accentColorValue == "cyan") { + imageAccent.style.visibility = 'visible'; + document.getElementById("imageAccent").src = "assets/accent/trooper/cyan.png" + } + } + else { + imageAccent.style.visibility = 'hidden'; + } console.log("Accent color changed to " + accentColorValue + ".") }