From 36fd987c4d03ce176564b660e767a84f2c4a9b6f Mon Sep 17 00:00:00 2001 From: firebingo Date: Fri, 6 Jul 2018 09:35:43 -0700 Subject: [PATCH] Added support for custom assets so bridal gears can run more separated from the main assets so the XDU cant break it as easily. --- .gitmodules | 4 ++++ CustomData | 1 + Js/Main.js | 17 +++++++++----- Js/Translations | 2 +- Js/UtageParse.js | 58 +++++++++++++++++++++++++++--------------------- 5 files changed, 50 insertions(+), 32 deletions(-) create mode 160000 CustomData diff --git a/.gitmodules b/.gitmodules index 11fbc2a..bd25379 100644 --- a/.gitmodules +++ b/.gitmodules @@ -2,3 +2,7 @@ path = Js/Translations url = https://git.poweris.moe/xdutranslations.git branch = . +[submodule "CustomData"] + path = CustomData + url = https://git.poweris.moe/customdata.git + branch = . diff --git a/CustomData b/CustomData new file mode 160000 index 0000000..cbbcd61 --- /dev/null +++ b/CustomData @@ -0,0 +1 @@ +Subproject commit cbbcd61805a9fbfc95fea46b5bf0cb51b7c8b3c1 diff --git a/Js/Main.js b/Js/Main.js index a6848fa..1b02570 100644 --- a/Js/Main.js +++ b/Js/Main.js @@ -192,12 +192,14 @@ function missionDropDownChanged(event) { chapterSelect += `` } } + let detailSrc = `${utage.rootDirectory}${(mis.IsCustom ? "CustomData" : "XDUData")}/Asset/Image/Quest/Snap/Detail/${mis.MstId}.png`; + let iconSrc = `${utage.rootDirectory}${(mis.IsCustom ? "CustomData" : "XDUData")}/Asset/Image/Quest/Snap/Icon/${mis.MstId}.png`; chapterSelect += ''; cont.innerHTML = `