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/Css/generic.min.css b/Css/generic.min.css index fb2a566..08dcf65 100644 --- a/Css/generic.min.css +++ b/Css/generic.min.css @@ -1 +1 @@ -html{font-size:16px;font-family:arial;background-color:#393939;color:rgba(255,255,255,.7)}html body{border-color:rgba(255,255,255,.2)}html body a{color:#0096cf}html body a:not([href]){text-decoration:underline;cursor:pointer}html body .hover-span{color:#0096cf}.fade-in{opacity:0;transition:opacity .5s} \ No newline at end of file +html{font-size:16px;font-family:arial;background-color:#393939;color:rgba(255,255,255,.7)}html body{border-color:rgba(255,255,255,.2)}html body a{color:#0096cf}html body a:not([href]){text-decoration:underline;cursor:pointer}html body .hover-span{color:#0096cf}.fade-in{opacity:0;transition:opacity .5s}.centered{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);text-align:center} \ No newline at end of file diff --git a/Css/main.css b/Css/main.css index af07dd0..9a0653d 100644 --- a/Css/main.css +++ b/Css/main.css @@ -35,10 +35,15 @@ } @font-face { - font-family: SourceCodePro-Regular; - src: url(../Fonts/SourceCodePro-Regular.woff2) format('woff'); + font-family: Orbitron-Medium; + src: url(../Fonts/Orbitron Medium.woff2) format('woff'); } +/*@font-face { + font-family: SourceSansVariable-Roman; + src: url(../Fonts/SourceSansVariable-Roman.woff2) format('woff'); +}*/ + @-webkit-keyframes smallbounce { from { transform: translate(0, 5px); } to { transform: translate(0, -5px); } @@ -56,8 +61,6 @@ body { margin: 0; } .flex-grow { flex-grow: 1; } -.centered { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); text-align: center; } - .hidden { opacity: 0; } .shown { opacity: 0; } @@ -68,6 +71,10 @@ body { margin: 0; } #text-container { color: white; position: absolute; margin: auto; height: 750px; width: 1334px; font-family: 'FOT-RodinNTLGPro'; } +#text-container.eng { font-family: 'FOT-RodinNTLGPro'; } + +#text-container.jpn { font-family: 'FOT-RodinNTLGPro'; } + #text-container #fullscreen-button { position: absolute; top: 0.5rem; left: 0.5rem; font-size: 30px; line-height: 30px; opacity: 0.35; z-index: 11; } #text-container #title { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); text-align: center; font-size: 20px; transition: opacity 0.3s; cursor: default; user-select: none; } diff --git a/CustomData b/CustomData new file mode 160000 index 0000000..e456427 --- /dev/null +++ b/CustomData @@ -0,0 +1 @@ +Subproject commit e45642773aa255babfde41b770ce1e4c78ca5251 diff --git a/Js/BgmLoop.json b/Js/BgmLoop.json index ff86d76..58cf3e6 100644 --- a/Js/BgmLoop.json +++ b/Js/BgmLoop.json @@ -12,6 +12,19 @@ "seconds": 11.323 } }, + "bgm_adv_battle_02": { + "duration": 94.41484375, + "loop_end": { + "samples_48k": 4531845, + "samples_native": 3021230, + "seconds": 94.4134375 + }, + "loop_start": { + "samples_48k": 330432, + "samples_native": 220288, + "seconds": 6.884 + } + }, "bgm_adv_comical_01": { "duration": 57.7235625, "loop_end": { @@ -25,6 +38,19 @@ "seconds": 5.222 } }, + "bgm_adv_comical_02": { + "duration": 71.2195, + "loop_end": { + "samples_48k": 3418456, + "samples_native": 2278971, + "seconds": 71.21784375 + }, + "loop_start": { + "samples_48k": 625728, + "samples_native": 417152, + "seconds": 13.036 + } + }, "bgm_adv_emergency_01": { "duration": 98.295, "loop_end": { @@ -38,6 +64,19 @@ "seconds": 27.183 } }, + "bgm_adv_emergency_02": { + "duration": 76.7199375, + "loop_end": { + "samples_48k": 3682461, + "samples_native": 2454974, + "seconds": 76.7179375 + }, + "loop_start": { + "samples_48k": 720144, + "samples_native": 480096, + "seconds": 15.003 + } + }, "bgm_adv_everyday_01": { "duration": 75.8483125, "loop_end": { @@ -77,6 +116,19 @@ "seconds": 9.092 } }, + "bgm_adv_everyday_04": { + "duration": 66.528375, + "loop_end": { + "samples_48k": 3193291, + "samples_native": 2128861, + "seconds": 66.52690625 + }, + "loop_start": { + "samples_48k": 313296, + "samples_native": 208864, + "seconds": 6.527 + } + }, "bgm_adv_highlight_01": { "duration": 97.1335, "loop_end": { @@ -116,6 +168,19 @@ "seconds": 30.764 } }, + "bgm_adv_highlight_04": { + "duration": 102.86365625, + "loop_end": { + "samples_48k": 4937361, + "samples_native": 3291574, + "seconds": 102.8616875 + }, + "loop_start": { + "samples_48k": 682224, + "samples_native": 454816, + "seconds": 14.213 + } + }, "bgm_adv_peace_01": { "duration": 83.74309375, "loop_end": { @@ -129,6 +194,19 @@ "seconds": 11.278 } }, + "bgm_adv_peace_02": { + "duration": 67.32375, + "loop_end": { + "samples_48k": 3231464, + "samples_native": 2154309, + "seconds": 67.32215625 + }, + "loop_start": { + "samples_48k": 386400, + "samples_native": 257600, + "seconds": 8.05 + } + }, "bgm_adv_sorrow_01": { "duration": 75.9431875, "loop_end": { @@ -142,6 +220,19 @@ "seconds": 20.332 } }, + "bgm_adv_sorrow_02": { + "duration": 78.8830625, + "loop_end": { + "samples_48k": 3786321, + "samples_native": 2524214, + "seconds": 78.8816875 + }, + "loop_start": { + "samples_48k": 680016, + "samples_native": 453344, + "seconds": 14.167 + } + }, "bgm_adv_tension_01": { "duration": 66.506, "loop_end": { @@ -155,6 +246,32 @@ "seconds": 8.573 } }, + "bgm_adv_tension_02": { + "duration": 75.747875, + "loop_end": { + "samples_48k": 3635811, + "samples_native": 2423874, + "seconds": 75.7460625 + }, + "loop_start": { + "samples_48k": 545088, + "samples_native": 363392, + "seconds": 11.356 + } + }, + "bgm_adv_tension_03": { + "duration": 96.00084375, + "loop_end": { + "samples_48k": 4607959, + "samples_native": 3071973, + "seconds": 95.99915625 + }, + "loop_start": { + "samples_48k": 383952, + "samples_native": 255968, + "seconds": 7.999 + } + }, "bgm_home_01": { "duration": 76.73034375, "loop_end": { @@ -259,6 +376,19 @@ "seconds": 18.59 } }, + "music_daisukisukisugi": { + "duration": 93.21253125, + "loop_end": { + "samples_48k": 4474110, + "samples_native": 2982740, + "seconds": 93.210625 + }, + "loop_start": { + "samples_48k": 322416, + "samples_native": 214944, + "seconds": 6.717 + } + }, "music_dangerous_sunshine": { "duration": 99.20853125, "loop_end": { @@ -311,6 +441,19 @@ "seconds": 38.785 } }, + "music_endless_summertime": { + "duration": 122.51665625, + "loop_end": { + "samples_48k": 5880708, + "samples_native": 3920472, + "seconds": 122.51475 + }, + "loop_start": { + "samples_48k": 2393568, + "samples_native": 1595712, + "seconds": 49.866 + } + }, "music_first_love_song": { "duration": 104.9476875, "loop_end": { @@ -324,6 +467,19 @@ "seconds": 12.189 } }, + "music_flight_feathers": { + "duration": 111.38940625, + "loop_end": { + "samples_48k": 5346628, + "samples_native": 3564419, + "seconds": 111.38809375 + }, + "loop_start": { + "samples_48k": 1221216, + "samples_native": 814144, + "seconds": 25.442 + } + }, "music_fushichou_no_flamme": { "duration": 129.0045, "loop_end": { @@ -480,6 +636,19 @@ "seconds": 26.267 } }, + "music_gyakkou_no_flugel_ver_souyoku": { + "duration": 123.3248125, + "loop_end": { + "samples_48k": 5919507, + "samples_native": 3946338, + "seconds": 123.3230625 + }, + "loop_start": { + "samples_48k": 1687440, + "samples_native": 1124960, + "seconds": 35.155 + } + }, "music_gyakkou_no_resolve": { "duration": 111.3798125, "loop_end": { @@ -532,6 +701,19 @@ "seconds": 17.948 } }, + "music_junpaku_innocent": { + "duration": 118.195375, + "loop_end": { + "samples_48k": 5673310, + "samples_native": 3782207, + "seconds": 118.19396875 + }, + "loop_start": { + "samples_48k": 2061216, + "samples_native": 1374144, + "seconds": 42.942 + } + }, "music_kimitoiu_otokanade_tsukirumade": { "duration": 95.7555, "loop_end": { @@ -688,6 +870,19 @@ "seconds": 27.383 } }, + "music_rainbow_flower": { + "duration": 88.8225, + "loop_end": { + "samples_48k": 4263411, + "samples_native": 2842274, + "seconds": 88.8210625 + }, + "loop_start": { + "samples_48k": 1273728, + "samples_native": 849152, + "seconds": 26.536 + } + }, "music_ressou_gungnir": { "duration": 141.42465625, "loop_end": { @@ -805,6 +1000,32 @@ "seconds": 0.0 } }, + "music_shippujinrai": { + "duration": 104.2053125, + "loop_end": { + "samples_48k": 5001786, + "samples_native": 3334524, + "seconds": 104.203875 + }, + "loop_start": { + "samples_48k": 1210320, + "samples_native": 806880, + "seconds": 25.215 + } + }, + "music_shitou_eibihikaito": { + "duration": 151.1798125, + "loop_end": { + "samples_48k": 7256547, + "samples_native": 4837698, + "seconds": 151.1780625 + }, + "loop_start": { + "samples_48k": 2724096, + "samples_native": 1816064, + "seconds": 56.752 + } + }, "music_sorae": { "duration": 128.56625, "loop_end": { @@ -831,6 +1052,19 @@ "seconds": 27.145 } }, + "music_tegami": { + "duration": 79.045, + "loop_end": { + "samples_48k": 3794065, + "samples_native": 2529377, + "seconds": 79.04303125 + }, + "loop_start": { + "samples_48k": 897552, + "samples_native": 598368, + "seconds": 18.699 + } + }, "music_the_moon_is_a_harsh_mistress": { "duration": 96.8825, "loop_end": { diff --git a/Js/Main.js b/Js/Main.js index 5ff9c78..d108182 100644 --- a/Js/Main.js +++ b/Js/Main.js @@ -28,7 +28,6 @@ let isMuted = false; let volume = 0.5; let fullScreen = false; let prevMission = '{Select}'; -const availableMstIds = [202070, 202071, 202013, 338001, 338002, 338003, 338004]//[202070, 202013, 338001, 338002, 338003, 338004, 338005, 338006, 338007, 338009, 338010, 338011]; function onBodyLoaded() { bodyLoaded = true; @@ -105,6 +104,7 @@ function loadLocalStorage() { if(languages.includes(lang)) { selectedLang = lang; } + document.getElementById('text-container').className = selectedLang; utage.setTranslationLanguage(selectedLang, '') .then((success) => { languagesLoaded = true; @@ -193,12 +193,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 = `