From 6734df9dec3302cd1313c739f95a3777032d73d9 Mon Sep 17 00:00:00 2001 From: firebingo Date: Thu, 24 May 2018 08:47:13 -0700 Subject: [PATCH] Space will now work to progress mission along with mouse click. Implemented size tag from utage. Translations updated. --- Js/Common.js | 13 + Js/Main.js | 8 + .../side02/201007811_translations_eng.json | 350 +++++++++--------- Js/Translations/XduMissionsNames_eng.json | 4 +- Player.html | 2 +- 5 files changed, 199 insertions(+), 178 deletions(-) diff --git a/Js/Common.js b/Js/Common.js index 0aa7842..c3f152b 100644 --- a/Js/Common.js +++ b/Js/Common.js @@ -210,6 +210,19 @@ class commonFunctions { text = text.replace(m, `${innerText}${rText}`); } } + //convert size tags to spans with font size + let sizeMatches = text.match(//g); + if(sizeMatches) { + for(let i = 0; i < sizeMatches.length; ++i) { + let m = sizeMatches[i]; + let size = m.match(/\d{1,3}/); + if(size[0]) { + let s = Number(size[0]) - 1; + text = text.replace(m, ``); + } + } + } + text = text.replace('', '') return text; } diff --git a/Js/Main.js b/Js/Main.js index f619a85..2292547 100644 --- a/Js/Main.js +++ b/Js/Main.js @@ -326,6 +326,14 @@ function dialogScrollDown(event) { textFunc.scrollTextDown(); } +function onBodyKey(event) { + if(event.code.toLowerCase() === "space") { + event.preventDefault(); + event.stopPropagation(); + player.onMainClick(event); + } +} + function toggleMute(event) { isMuted = !isMuted; if(audio) { diff --git a/Js/Translations/Missions/side02/201007811_translations_eng.json b/Js/Translations/Missions/side02/201007811_translations_eng.json index 0145bf8..4fadca7 100644 --- a/Js/Translations/Missions/side02/201007811_translations_eng.json +++ b/Js/Translations/Missions/side02/201007811_translations_eng.json @@ -1,177 +1,177 @@ { - "201007811_0": "", - "201007811_1": "", - "201007811_2": "", - "201007811_3": "", - "201007811_4": "", - "201007811_5": "", - "201007811_6": "", - "201007811_7": "", - "201007811_8": "", - "201007811_9": "", - "201007811_10": "", - "201007811_11": "", - "201007811_12": "", - "201007811_13": "", - "201007811_14": "", - "201007811_15": "", - "201007811_16": "", - "201007811_17": "", - "201007811_18": "", - "201007811_19": "", - "201007811_20": "", - "201007811_21": "", - "201007811_22": "", - "201007811_23": "", - "201007811_24": "", - "201007811_25": "", - "201007811_26": "", - "201007811_27": "", - "201007811_28": "", - "201007811_29": "", - "201007811_30": "", - "201007811_31": "", - "201007811_32": "", - "201007811_33": "", - "201007811_34": "", - "201007811_35": "", - "201007811_36": "", - "201007811_37": "", - "201007811_38": "", - "201007811_39": "", - "201007811_40": "", - "201007811_41": "", - "201007811_42": "", - "201007811_43": "", - "201007811_44": "", - "201007811_45": "", - "201007811_46": "", - "201007811_47": "", - "201007811_48": "", - "201007811_49": "", - "201007811_50": "", - "201007811_51": "", - "201007811_52": "", - "201007811_53": "", - "201007811_54": "", - "201007811_55": "", - "201007811_56": "", - "201007811_57": "", - "201007811_58": "", - "201007811_59": "", - "201007811_60": "", - "201007811_61": "", - "201007811_62": "", - "201007811_63": "", - "201007811_64": "", - "201007811_65": "", - "201007811_66": "", - "201007811_67": "", - "201007811_68": "", - "201007811_69": "", - "201007811_70": "", - "201007811_71": "", - "201007811_72": "", - "201007811_73": "", - "201007811_74": "", - "201007811_75": "", - "201007811_76": "", - "201007811_77": "", - "201007811_78": "", - "201007811_79": "", - "201007811_80": "", - "201007811_81": "", - "201007811_82": "", - "201007811_83": "", - "201007811_84": "", - "201007811_85": "", - "201007811_86": "", - "201007811_87": "", - "201007811_88": "", - "201007811_89": "", - "201007811_90": "", - "201007811_91": "", - "201007811_92": "", - "201007811_93": "", - "201007811_94": "", - "201007811_95": "", - "201007811_96": "", - "201007811_97": "", - "201007811_98": "", - "201007811_99": "", - "201007811_100": "", - "201007811_101": "", - "201007811_102": "", - "201007811_103": "", - "201007811_104": "", - "201007811_105": "", - "201007811_106": "", - "201007811_107": "", - "201007811_108": "", - "201007811_109": "", - "201007811_110": "", - "201007811_111": "", - "201007811_112": "", - "201007811_113": "", - "201007811_114": "", - "201007811_115": "", - "201007811_116": "", - "201007811_117": "", - "201007811_118": "", - "201007811_119": "", - "201007811_120": "", - "201007811_121": "", - "201007811_122": "", - "201007811_123": "", - "201007811_124": "", - "201007811_125": "", - "201007811_126": "", - "201007811_127": "", - "201007811_128": "", - "201007811_129": "", - "201007811_130": "", - "201007811_131": "", - "201007811_132": "", - "201007811_133": "", - "201007811_134": "", - "201007811_135": "", - "201007811_136": "", - "201007811_137": "", - "201007811_138": "", - "201007811_139": "", - "201007811_140": "", - "201007811_141": "", - "201007811_142": "", - "201007811_143": "", - "201007811_144": "", - "201007811_145": "", - "201007811_146": "", - "201007811_147": "", - "201007811_148": "", - "201007811_149": "", - "201007811_150": "", - "201007811_151": "", - "201007811_152": "", - "201007811_153": "", - "201007811_154": "", - "201007811_155": "", - "201007811_156": "", - "201007811_157": "", - "201007811_158": "", - "201007811_159": "", - "201007811_160": "", - "201007811_161": "", - "201007811_162": "", - "201007811_163": "", - "201007811_164": "", - "201007811_165": "", - "201007811_166": "", - "201007811_167": "", - "201007811_168": "", - "201007811_169": "", - "201007811_170": "", - "201007811_171": "", - "201007811_172": "", - "201007811_173": "", - "201007811_174": "" + "201007811_0": "Tsubasa's Birthday 2018", + "201007811_1": "Sorry we're late! Homeroom just let us out...", + "201007811_2": "Sorry...", + "201007811_3": "Don't worry, Hibiki and I just arrived as well.", + "201007811_4": "No problem, we're just in time!", + "201007811_5": "Anyway, none of you were seen by Tsubasa, right?", + "201007811_6": "Nope!", + "201007811_7": "Everyone's here then!", + "201007811_8": "Let's get started. If we take too long, she'll start to get suspicious.", + "201007811_9": "That's right. So, the reason we have all gathered here today despite everyone's busy schedule is—", + "201007811_10": "Be brief, okay?", + "201007811_11": "Then, straight to the point.", + "201007811_12": "Tsubasa's birthday is one week from now, so how are we going to surprise her? \\n Anyone with ideas, please go ahead!", + "201007811_13": "Surprise?", + "201007811_14": "Can't we just celebrate normally?", + "201007811_15": "That's what I was thinking at first, \\n but now I think that everyone might be sick of normal celebrations.", + "201007811_16": "And since, you know, Tsubasa is the biggest senpai of us all.", + "201007811_17": "Knowing the Commander, they probably used to throw her huge parties back when S.O.N.G. was still the 2nd Division.", + "201007811_18": "True, it's going to take more than just a little bit to impress her...", + "201007811_19": "If we're gonna surprise her, we need something really special.", + "201007811_20": "How about preparing a special gift for her?", + "201007811_21": "I thought about that too, but this is a world-class artist we're talking about!", + "201007811_22": "I think her friends and acquaintances from show business must have already given her some pretty amazing gifts.", + "201007811_23": "You're right... If we give her a superficial present, it'll just be overshadowed.", + "201007811_24": "I think that she'll be happy with any present we give her. \\n More importantly, aren't we really after Tsubasa's smile?!", + "201007811_25": "She's a monstrously high caliber girl, isn't she.", + "201007811_26": "Me! Me!", + "201007811_27": "Go ahead, Kirika!", + "201007811_28": "This idea is sure to be a smash hit!", + "201007811_29": "Let's bake an enormous cake that would make even a patisserie cry!", + "201007811_30": "Ohhh...", + "201007811_31": "It's the simplest one out of all simple ideas, but it isn't bad.", + "201007811_32": "Ohh! A good reaction right away! Big is justice!", + "201007811_33": "Well you know what they say, go big or go home.", + "201007811_34": "And go bigger or go homer!", + "201007811_35": "But can we even make a cake that large?", + "201007811_36": "We'd need a proper kitchen. I wonder if S.O.N.G. has anything available.", + "201007811_37": "If they do, all that's left is to divide up the work and then we can get started.", + "201007811_38": "Then, we have reached a decision! Our surprise for Tsubasa will be a massive cake. Any objections!?", + "201007811_39": "None here.", + "201007811_40": "Me neither.", + "201007811_41": "I very much approve!", + "201007811_42": "A giant cake... I can't wait to try making it!", + "201007811_43": "Of course, I'll help too.", + "201007811_44": "Well that settles it!", + "201007811_45": "Now that we've come to a decision, \\n let's work on making the plan a little bit more concrete.", + "201007811_46": "Now that I think about it, we're going to need a ton of eggs, butter, and sugar...", + "201007811_47": "Yep, cakes are just a giant lump of calories...", + "201007811_48": "Well, you'll never end up with a cake if all you do is stare at the ingredients list.", + "201007811_49": "Right. \\n Then, Shirabe will be the leader of the team in charge of the cake.", + "201007811_50": "Team leader... \\n That has a nice ring to it...", + "201007811_51": "Then, Miku and Chris, would the two of you please prepare the cream?", + "201007811_52": "Roger, team leader.", + "201007811_53": "We have a hand-mixer, right? Our arms won't last long without one...", + "201007811_54": "The hand-mixer should be in that drawer over there.", + "201007811_55": "Here? ...Oh, I found it.", + "201007811_56": "Maria and I will make the sponge cake.", + "201007811_57": "Got it. Lead the way, team leader.", + "201007811_58": "Leave it to me. \\n We'll make the biggest and greatest cake in the history of cakes!", + "201007811_59": "It's almost time!", + "201007811_60": "We need to hurry! \\n Stalling team, heading out!", + "201007811_61": "Good luck!", + "201007811_62": "We've already gotten this far. Don't screw up now.", + "201007811_63": "Don't worry! \\n I'm as unsinkable as the Titanic!", + "201007811_64": "The Titanic sank!", + "201007811_65": "Tsubasa!", + "201007811_66": "Sorry to keep you waiting!", + "201007811_67": "No, you're just in time. \\n Knowing the two of you, I was very much prepared to wait.", + "201007811_68": "So mean! \\n ...And I can't even talk back!", + "201007811_69": "We deserve it...", + "201007811_70": "Standing around chatting is good and all, \\n but how about we get something to eat before going shopping?", + "201007811_71": "Sure!", + "201007811_72": "We're doing great so far...", + "201007811_73": "Yeah we are!", + "201007811_74": "I've been thinking... \\n Is she in such a good mood that she completely forgot about her own birthday?", + "201007811_75": "Whatever the case, anything is possible with Tsubasa.", + "201007811_76": "What's the matter? What are you two whispering about?", + "201007811_77": "W-We, ummm...", + "201007811_78": "W-We don't really see any interesting clothes... right?", + "201007811_79": "Th-Th-That's right! \\n They don't really sell the bizarre, avant-garde type of shirts I like.", + "201007811_80": "If you're looking for something that specific, \\n then you have no other choice but to wait for just the right thing to come along.", + "201007811_81": "Well then, I suppose it's time to end our shopping spree and return to S.O.N.G.", + "201007811_82": "Huh?! I-Isn't it a bit too soon? \\n We don't even have any training today...", + "201007811_83": "That's true, but there are a few things that I must to report to the Commander.", + "201007811_84": "The Commander won't run away, so we can at least stop for tea first!", + "201007811_85": "That's right! \\n It's very important to relax and have a good cup of coffee before going to work!", + "201007811_86": "I don't really feel like relaxing, but it is true that I am a bit thirsty.", + "201007811_87": "We'll go to that cafe over there, then we'll return to S.O.N.G.", + "201007811_88": "We managed to get through somehow... \\n But we can't keep this up much longer.", + "201007811_89": "Has the cake team contacted us yet?", + "201007811_90": "No calls...", + "201007811_91": "I haven't gotten anything from them either...", + "201007811_92": "Are you two coming or not?", + "201007811_93": "We're coming! Right away!", + "201007811_94": "You two are acting strange today. \\n Is something wrong?", + "201007811_95": "N-Not at all! \\n Now, let's just enjoy a nice cup of coffee!", + "201007811_96": "Yes, let's.", + "201007811_97": "You two are trying to get out of having to going back to S.O.N.G., aren't you?", + "201007811_98": "Hm—! *cough* *cough* \\n W-What makes you say that?!", + "201007811_99": "W-We would never think of doing such a thing!", + "201007811_100": "Judging by your reaction, it looks like I hit the mark.", + "201007811_101": "We're busted! What do we do?!", + "201007811_102": "\"What do we do\"? We persevere until the end!", + "201007811_103": "I've thought about it. About why you two don't want to go back to S.O.N.G.— \\n And why you won't tell me why.", + "201007811_104": "I-It's not like that at all!", + "201007811_105": "That's right! Th-There's no way we're trying to prevent you from going to S.O.N.G.'s cafeteria...", + "201007811_106": "Just be honest with me. \\n What exactly... did you two screw up this time?", + "201007811_107": "Huh?", + "201007811_108": "What?", + "201007811_109": "We... screwed up?", + "201007811_110": "Yeah. You two are usually pretty honest, \\n so if it's so bad that you can't even face the Commander, then...", + "201007811_111": "You two must have made a very serious mistake. \\n That's the conclusion I have come to.", + "201007811_112": "And to think, I didn't even notice that my precious underlings were in such deep trouble... I am not qualified to be your senpai!", + "201007811_113": "Wait! \\n We haven't actually done anything wrong!", + "201007811_114": "Yeah! \\n Though we're failing really hard in what we're actually trying to do...", + "201007811_115": "I've already made up my mind. I'm also prepared to take responsibility for your actions. So I want you to please just be honest with me.", + "201007811_116": "No, if it's too hard to tell me, then just come with me back to S.O.N.G. \\n and I'll talk to the Commander myself.", + "201007811_117": "Please, I'm begging both of you. \\n Let's go back to headquarters together.", + "201007811_118": "AAAhhhh! My heart hurts! It's too painful!", + "201007811_119": "It hurts so much that I feel like it'll break if we don't tell her the truth!", + "201007811_120": "Me too! I'm sorry, Cake Team... We can't deceive her any longer...!", + "201007811_121": "My ringtone! \\n Could it be?!", + "201007811_122": "W-What's it say?!", + "201007811_123": "T-They're all set! It says that we can bring Tsubasa back at any time!", + "201007811_124": "We're saaaaved! Now we can finally go back to S.O.N.G.!", + "201007811_125": "I still don't have a clue what's going on...", + "201007811_126": "...I went to the cafeteria like they said, \\n but what did they mean by \"you'll understand everything\"...?", + "201007811_127": "Target, lock on! Unleash all ammunition!!", + "201007811_128": "What!?", + "201007811_129": "Wha— This is...!", + "201007811_130": "...Crackers? Why are there so many...?", + "201007811_131": "Happy birthday!", + "201007811_132": "Happy birthday!", + "201007811_133": "Happy birthday to you!", + "201007811_134": "Happy birthday! Heh, what's with that face?", + "201007811_135": "Happy birthday! \\n Thank you so much for being born, and for giving me the chance to meet you!", + "201007811_136": "Happy birthday! And I'm very very sorry for being so rude!", + "201007811_137": "Birthday...? Ah, oh... I see, so today is my birthday.", + "201007811_138": "Then, this is reason why you two were acting so strangely?", + "201007811_139": "Yes, we were given the task of stalling you until the cake was ready...", + "201007811_140": "But we were really pushed to the limit... \\n I don't want to do that ever again!", + "201007811_141": "And without knowing that, I falsely accused you of misdeeds... \\n I'm very sorry.", + "201007811_142": "Then... To properly appreciate everyone's efforts...", + "201007811_143": "Thank you. Being greeted by everyone so warmly... \\n I'm constantly amazed by your hospitality.", + "201007811_144": "But that's not all!", + "201007811_145": "There's more?", + "201007811_146": "Shirabe, you can take off the sheet now.", + "201007811_147": "This is a masterpiece made through all of our efforts!", + "201007811_148": "W-What's with this cake?!", + "201007811_149": "It's so tall it almost reaches the ceiling... \\n I've never seen a cake this big before...", + "201007811_150": "Slicing it will be such a shame...", + "201007811_151": "Now that you mention it, how the exactly do we cut this cake?", + "201007811_152": "We... haven't thought that far.", + "201007811_153": "A fatal flaw...", + "201007811_154": "For now, I guess we have to split it up into a size we can actually cut...", + "201007811_155": "No need to worry. Can you lend me that cake knife?", + "201007811_156": "Sure, but are you fine with having to slice it yourself?", + "201007811_157": "Yes. everyone, grab your plates and hold on tight.", + "201007811_158": "...I'm ready!", + "201007811_159": "I assume everyone is prepared, then?", + "201007811_160": "Here we go!", + "201007811_161": "Haa—!", + "201007811_162": "Looks like everyone got a piece.", + "201007811_163": "The pieces...", + "201007811_164": "It's like the cake is being drawn to the plate itself!", + "201007811_165": "This is the first time I've seen cake dance in mid-air...", + "201007811_166": "I never thought that there'd be a way to slice such a huge cake... \\n As expected of our sword master!", + "201007811_167": "And she didn't drop a single piece?!", + "201007811_168": "A-Amazing...", + "201007811_169": "...What's wrong? Aren't you going to eat?", + "201007811_170": "Well, everyone is still a bit overwhelmed...", + "201007811_171": "And besides, the heroine of the day has to eat first!", + "201007811_172": "I-I see. Calling me the \"heroine of the day\" is a bit embarrassing, \\n but I shall accept the title with gratitude.", + "201007811_173": "Well, then...", + "201007811_174": "Yeah, this is delicious! \\n This cake, made with everyone's feelings, is extraordinarily delicious!" } \ No newline at end of file diff --git a/Js/Translations/XduMissionsNames_eng.json b/Js/Translations/XduMissionsNames_eng.json index 64d330f..48c3b7e 100644 --- a/Js/Translations/XduMissionsNames_eng.json +++ b/Js/Translations/XduMissionsNames_eng.json @@ -656,8 +656,8 @@ "SummaryText": "" }, "202070": { - "Name": "", - "SummaryText": "" + "Name": "Tsubasa's Birthday 2018", + "SummaryText": "At last, it's Tsubasa's birthday.\nA secret mission is underway to carry out a special surprise!\nBut have the girls already been found out?" }, "203001": { "Name": "", diff --git a/Player.html b/Player.html index c90abf8..0d65c57 100644 --- a/Player.html +++ b/Player.html @@ -7,7 +7,7 @@ - +