From 93bb1c822ed4226d34e7a05747ff69e362addca4 Mon Sep 17 00:00:00 2001 From: louis Date: Sun, 11 Oct 2020 19:17:26 -0400 Subject: [PATCH 1/4] reset player at the end of script --- Js/Main.js | 1 + 1 file changed, 1 insertion(+) diff --git a/Js/Main.js b/Js/Main.js index 0a8804e..5c70b1d 100644 --- a/Js/Main.js +++ b/Js/Main.js @@ -377,6 +377,7 @@ function sceneSet(questSceneMstId, cust) { function playNext() { if (!partPlaylist.length) { if (!scenePlaylist.length) { + player.resetAll(); resetPlaylist(); return; // we're probably done } From 85f2815b6ab92787c5a116d4b5b848e5be562161 Mon Sep 17 00:00:00 2001 From: argoneus Date: Wed, 21 Oct 2020 23:54:33 +0200 Subject: [PATCH 2/4] added player support for new scene images --- Js/Main.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Js/Main.js b/Js/Main.js index 0a8804e..495753a 100644 --- a/Js/Main.js +++ b/Js/Main.js @@ -285,6 +285,10 @@ function sceneDropDownChanged(event) { let name = scene.Name; let summary = scene.SummaryText; + let image = questSceneMstId; + if ("Image" in scene) { + image = scene.Image; + } let credits = ""; let tl_key = utage.sceneTranslations[cust][questSceneMstId]; @@ -307,8 +311,8 @@ function sceneDropDownChanged(event) { chapterSelect += `` } - let detailSrc = `${utage.rootDirectory}${(scene.IsCustom ? "CustomData" : "XDUData")}/Asset/Image/Quest/Snap/Detail/${questSceneMstId}.png`; - let iconSrc = `${utage.rootDirectory}${(scene.IsCustom ? "CustomData" : "XDUData")}/Asset/Image/Quest/Snap/Icon/${questSceneMstId}.png`; + let detailSrc = `${utage.rootDirectory}${(scene.IsCustom ? "CustomData" : "XDUData")}/Asset/Image/Quest/Snap/Detail/${image}.png`; + let iconSrc = `${utage.rootDirectory}${(scene.IsCustom ? "CustomData" : "XDUData")}/Asset/Image/Quest/Snap/Icon/${image}.png`; chapterSelect += ''; cont.innerHTML = `