From 47451eea7e451bcd20be1cdbaa3c82e06bacaf1f Mon Sep 17 00:00:00 2001 From: firebingo Date: Mon, 11 Jun 2018 21:25:25 -0700 Subject: [PATCH] Added title tag that updates with mission name. Added null check for pixi sprite calculateverticies because it sometimes makes a texture invalid when it shouldn't be. --- CHANGELOG.md | 8 ++++++++ Js/Main.js | 6 +++++- Js/Pixi.min.js | 20 ++++++++++---------- Js/Translations | 2 +- Js/XduMissions.json | 9 +++++++++ Player.html | 1 + 6 files changed, 34 insertions(+), 12 deletions(-) create mode 100644 CHANGELOG.md diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..93d0555 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,8 @@ +## V1.1.0 (2018-06-08) + +Release for Bridal Gears. +Added various sound effects for some hit effects so there is just nothing when they happen. +Updated Pixi JS to 4.8.1. +Support for custom missions. +Made translations a submodule. +Various fixes to xdu functions. diff --git a/Js/Main.js b/Js/Main.js index 2b1cb46..a3b01a1 100644 --- a/Js/Main.js +++ b/Js/Main.js @@ -11,6 +11,7 @@ const textFunc = new TextFunctions(); let audio = undefined; //Cant create a audio context without user input. const player = new Player(pixiApp, utage, textFunc, audio, shaders); const languages = ["eng", "jpn"]; +const version = "YameteTomete XDUPlayer V1.1.0"; let bodyLoaded = false; let utageLoaded = false; let languagesLoaded = false; @@ -30,6 +31,7 @@ const availableMstIds = [202070, 202013, 338001, 338002, 338003, 338004]//[20207 function onBodyLoaded() { bodyLoaded = true; + document.getElementById("title-tag").innerText = version; } (function startLoad() { @@ -240,6 +242,7 @@ function missionChanged(mstId, value) { Promise.all(promises) .then((success) => { document.getElementById("playing-title").innerText = `${name} (${value})`; + document.getElementById("title-tag").innerText = name; player.playFile() .then((success) => { if(currentMissionIndex !== currentMissionList.length - 1) { @@ -299,6 +302,7 @@ function resetMissions() { currentMissionMst = 0; document.getElementById("skip-button").style.cssText = "display: inline-block;"; document.getElementById("playing-title").innerText = 'None'; + document.getElementById("title-tag").innerText = version; document.getElementById('select-mission').value = '{Select}'; } @@ -348,7 +352,7 @@ function openHelpModal(event) { let cont = document.getElementById("modal-container"); cont.innerHTML = `