From 4d2c17c1e0f189f2f9a0d6f0859bb0758ad82d54 Mon Sep 17 00:00:00 2001 From: LoveEevee Date: Tue, 12 Feb 2019 03:31:20 +0300 Subject: [PATCH 2/2] Support different results characters for debug mode --- public/src/js/assets.js | 3 ++- public/src/js/scoresheet.js | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/public/src/js/assets.js b/public/src/js/assets.js index 606a39e..4f938a1 100644 --- a/public/src/js/assets.js +++ b/public/src/js/assets.js @@ -81,7 +81,8 @@ var assets = { "mimizu.png", "results_flowers.png", "results_mikoshi.png", - "results_tetsuohana.png" + "results_tetsuohana.png", + "results_tetsuohana2.png" ], "audioSfx": [ "se_cancel.wav", diff --git a/public/src/js/scoresheet.js b/public/src/js/scoresheet.js index 11676a7..35f93c1 100644 --- a/public/src/js/scoresheet.js +++ b/public/src/js/scoresheet.js @@ -134,7 +134,7 @@ class Scoresheet{ this.tetsuoHana.id = "tetsuohana" var flowersBg = "url('" + assets.image["results_flowers"].src + "')" var mikoshiBg = "url('" + assets.image["results_mikoshi"].src + "')" - var tetsuoHanaBg = "url('" + assets.image["results_tetsuohana"].src + "')" + var tetsuoHanaBg = "url('" + assets.image["results_tetsuohana" + (debugObj.state === "closed" ? "" : "2")].src + "')" var id = ["flowers1", "flowers2", "mikoshi", "tetsuo", "hana"] var bg = [flowersBg, flowersBg, mikoshiBg, tetsuoHanaBg, tetsuoHanaBg] for(var i = 0; i < id.length; i++){