Commit b16be5f3 authored by David Gonçalves's avatar David Gonçalves 📖

...

parent 6dba96b2
......@@ -26,7 +26,7 @@
<script type="text/javascript" src="js/generateExe.js"></script>
<script type="text/javascript" src="js/File.js"></script>
<script type="text/javascript" src="js/Editor.js"></script>
<script type="text/javascript" src="js/mp3.js"></script>
<!--<script type="text/javascript" src="js/mp3.js"></script>-->
<script type="text/javascript" src="js/main.js"></script>
......@@ -200,6 +200,7 @@
<span id="storyname_chi_text">Story name(Chinese): </span><input type="text" id="storynameb5" />
</div>
<!--
<div id="mp3Div">
<label for="mp3Input" id="mp3open">Open mp3 file:</label>
<br>
......@@ -221,8 +222,8 @@
<option value="122">13.mp3</option>
</select>
</span>
<button id="mp3debug"></button><!-- Debug -->
</div>
<button id="mp3debug"></button> // Debug
</div>-->
<!-- Place at bottom of page -->
<div class="loader_bg">
......
......@@ -25,11 +25,6 @@ $(document).ready(function() {
}
$(this).val(''); // Sets the value to '' so the 'change' event is triggered even if the same file is opened again. Might be problematic if val needs to be used later again.
});
$('#mp3Input').change(function(e) {
if (formp3.openmp3()) {
formp3.getmp3FromFile();
}
});
$('#save_as').click((e) => {
File.saveFile();
});
......@@ -41,8 +36,14 @@ $(document).ready(function() {
$('#engtochi_text').click((e) => {
engtochi();
});
/*
$('#mp3Input').change((e) => {
if (formp3.openmp3()) {
formp3.getmp3FromFile();
}
});
$('#mp3debug').click((e) => {
console.log($("#mp3Input").val());
});
});*/
});
"use strict";
class formp3 {
constructor() {
this.file_mp3 = '';
}
openmp3() {
let file_tmp = this.file_mp3;
this.file_mp3 = $("#mp3Input").prop('files')[0];
let file_mp3;
class formp3 {
static openmp3() {
let file_tmp = file_mp3;
file_mp3 = $("#mp3Input").prop('files')[0];
let fileName = escape(file_mp3.name);
let fileType = (file_mp3.type ? file_mp3.type : 'n/a');
if (file_mp3.name.substring(file_mp3.name.lastIndexOf(".")) != ".mp3") {
file_mp3 = file_tmp;
if (this.file_mp3.name.substring(this.file_mp3.name.lastIndexOf(".")) != ".mp3") {
this.file_mp3 = file_tmp;
$("#mp3Input").val("");
dialog.err("mp3 only", window.lang.error);
dialog.err("mp3 only", window.lang.error);//TODO lang
return false;
} else {
fileType = "audio/mp3";
}
document.getElementById('mp3file').innerHTML = fileName;
$('#mp3file').html(this.file_mp3.name);
return true;
}
......@@ -34,7 +29,7 @@ class formp3 {
reader.onload = function() {
let mp3 = reader.result;
document.getElementById("mp3file").innerHTML = mp3;
$('#mp3file').html(mp3);
};
}
......
......@@ -244,86 +244,86 @@
<!--
使用<a> b </a>为角色设定皮肤。其他可用的皮肤为'a','b','c'......
根据角色不同,可用的皮肤数量亦会有所不同
可用的皮肤如下:
lucas:
"b"(Red Skin 紅衣)
drew:
"b"(Red Skin 紅衣)
shawn:
"b"(Red Skin 紅衣)
vivian:
"a"(Ordinary sword 普通剑)
"b"(Swordless skin 無剑)
giggs:
"a"(Moore skin 摩尔)
Titto:
"a"(Blue Skin 藍衣)
"b"(Red Skin 紅衣)
"c"(Green Skin 綠衣)
"d"(Yellow Skin 黃衣)
jason:
"a"(Blue Skin 藍衣)
"b"(Red Skin 紅衣)
"c"(Green Skin 綠衣)
"d"(Yellow Skin 黃衣)
taylor:
"a"(Blue Skin 藍衣)
"b"(Red Skin 紅衣)
"c"(Green Skin 綠衣)
"d"(Yellow Skin 黃衣)
legge:
"a"(Blue Skin 藍衣)
"b"(Red Skin 紅衣)
"c"(Green Skin 綠衣)
"d"(Yellow Skin 黃衣)
yaga:
"a"(Blue Skin 藍衣)
"b"(Red Skin 紅衣)
"c"(Green Skin 綠衣)
"d"(Yellow Skin 黃衣)
heater:
"a"(Blue Skin 藍衣)
"b"(Red Skin 紅衣)
"c"(Green Skin 綠衣)
"d"(Yellow Skin 黃衣)
iczzy:
"a"(Blue Skin 藍衣)
"b"(Red Skin 紅衣)
"c"(Green Skin 綠衣)
"d"(Yellow Skin 黃衣)
raye:
"a"(Blue Skin 藍衣)
"b"(Red Skin 紅衣)
"c"(Green Skin 綠衣)
"d"(Yellow Skin 黃衣)
eason:
"a"(necklace 项链)
"b"(Sword 持剑)
"c"(Demon Lord's sword 死神之剑)
livermore:
"a"(Swordless skin 无剑)
saws:
"a"(Blue Skin 藍衣)
"b"(Red Skin 紅衣)
"c"(Green Skin 綠衣)
"d"(Yellow Skin 黃衣)
z_swordsman01:
"a"(Blue Skin 藍衣)
"b"(Red Skin 紅衣)
"c"(Green Skin 綠衣)
"d"(Yellow Skin 黃衣)
"e"(Chirs Skin 小春)
"f"(Sherwood Skin細榮)
Others 其他 (Black Skin 黑衣)
horse:
"a"(Ordinary horse 普通马)
"b"(black horse 黑马)
Other troops 其他兵種:
"a"(Blue Skin 藍衣)
"b"(Red Skin 紅衣)
"c"(Green Skin 綠衣)
"d"(Yellow Skin 黃衣)
Others 其他 (Black Skin 黑衣)
可用的皮肤如下:(感谢vinax的搜集整理)
lucas:
"b"(Red Skin 紅衣)
drew:
"b"(Red Skin 紅衣)
shawn:
"b"(Red Skin 紅衣)
vivian:
"a"(Ordinary sword 普通剑)
"b"(Swordless skin 無剑)
giggs:
"a"(Moore skin 摩尔)
Titto:
"a"(Blue Skin 藍衣)
"b"(Red Skin 紅衣)
"c"(Green Skin 綠衣)
"d"(Yellow Skin 黃衣)
jason:
"a"(Blue Skin 藍衣)
"b"(Red Skin 紅衣)
"c"(Green Skin 綠衣)
"d"(Yellow Skin 黃衣)
taylor:
"a"(Blue Skin 藍衣)
"b"(Red Skin 紅衣)
"c"(Green Skin 綠衣)
"d"(Yellow Skin 黃衣)
legge:
"a"(Blue Skin 藍衣)
"b"(Red Skin 紅衣)
"c"(Green Skin 綠衣)
"d"(Yellow Skin 黃衣)
yaga:
"a"(Blue Skin 藍衣)
"b"(Red Skin 紅衣)
"c"(Green Skin 綠衣)
"d"(Yellow Skin 黃衣)
heater:
"a"(Blue Skin 藍衣)
"b"(Red Skin 紅衣)
"c"(Green Skin 綠衣)
"d"(Yellow Skin 黃衣)
iczzy:
"a"(Blue Skin 藍衣)
"b"(Red Skin 紅衣)
"c"(Green Skin 綠衣)
"d"(Yellow Skin 黃衣)
raye:
"a"(Blue Skin 藍衣)
"b"(Red Skin 紅衣)
"c"(Green Skin 綠衣)
"d"(Yellow Skin 黃衣)
eason:
"a"(necklace 项链)
"b"(Sword 持剑)
"c"(Demon Lord's sword 死神之剑)
livermore:
"a"(Swordless skin 无剑)
saws:
"a"(Blue Skin 藍衣)
"b"(Red Skin 紅衣)
"c"(Green Skin 綠衣)
"d"(Yellow Skin 黃衣)
z_swordsman01:
"a"(Blue Skin 藍衣)
"b"(Red Skin 紅衣)
"c"(Green Skin 綠衣)
"d"(Yellow Skin 黃衣)
"e"(Chirs Skin 小春)
"f"(Sherwood Skin細榮)
Others 其他 (Black Skin 黑衣)
horse:
"a"(Ordinary horse 普通马)
"b"(black horse 黑马)
Other troops 其他兵種:
"a"(Blue Skin 藍衣)
"b"(Red Skin 紅衣)
"c"(Green Skin 綠衣)
"d"(Yellow Skin 黃衣)
Others 其他 (Black Skin 黑衣)
-->
<a>a</a>
<f>0</f>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment