diff --git a/english_localization_set/copy_localization_lines.py b/english_localization_set/copy_localization_lines.py new file mode 100644 index 0000000..e69de29 diff --git a/english_localization_set/panorama_decompile/Decompiler b/english_localization_set/panorama_decompile/Decompiler new file mode 100755 index 0000000..d2602b2 Binary files /dev/null and b/english_localization_set/panorama_decompile/Decompiler differ diff --git a/english_localization_set/panorama_decompile/Decompiler-linux.zip b/english_localization_set/panorama_decompile/Decompiler-linux.zip new file mode 100644 index 0000000..ba53ca3 Binary files /dev/null and b/english_localization_set/panorama_decompile/Decompiler-linux.zip differ diff --git a/panorama/scripts/custom_game/custom_loading_screen.vjs_c b/english_localization_set/panorama_decompile/decompiled_scrips/custom_loading_screen.js old mode 100755 new mode 100644 similarity index 93% rename from panorama/scripts/custom_game/custom_loading_screen.vjs_c rename to english_localization_set/panorama_decompile/decompiled_scrips/custom_loading_screen.js index bbece37..5b587a5 Binary files a/panorama/scripts/custom_game/custom_loading_screen.vjs_c and b/english_localization_set/panorama_decompile/decompiled_scrips/custom_loading_screen.js differ diff --git a/panorama/scripts/custom_game/display_error.vjs_c b/english_localization_set/panorama_decompile/decompiled_scrips/display_error.js old mode 100755 new mode 100644 similarity index 72% rename from panorama/scripts/custom_game/display_error.vjs_c rename to english_localization_set/panorama_decompile/decompiled_scrips/display_error.js index 6424742..c50405e Binary files a/panorama/scripts/custom_game/display_error.vjs_c and b/english_localization_set/panorama_decompile/decompiled_scrips/display_error.js differ diff --git a/panorama/scripts/custom_game/dps_panel.vjs_c b/english_localization_set/panorama_decompile/decompiled_scrips/dps_panel.js old mode 100755 new mode 100644 similarity index 90% rename from panorama/scripts/custom_game/dps_panel.vjs_c rename to english_localization_set/panorama_decompile/decompiled_scrips/dps_panel.js index 850b7e5..db29bd1 Binary files a/panorama/scripts/custom_game/dps_panel.vjs_c and b/english_localization_set/panorama_decompile/decompiled_scrips/dps_panel.js differ diff --git a/panorama/scripts/custom_game/end_screen.vjs_c b/english_localization_set/panorama_decompile/decompiled_scrips/end_screen.js old mode 100755 new mode 100644 similarity index 74% rename from panorama/scripts/custom_game/end_screen.vjs_c rename to english_localization_set/panorama_decompile/decompiled_scrips/end_screen.js index 6658fbb..c4105b3 Binary files a/panorama/scripts/custom_game/end_screen.vjs_c and b/english_localization_set/panorama_decompile/decompiled_scrips/end_screen.js differ diff --git a/panorama/scripts/custom_game/info.vjs_c b/english_localization_set/panorama_decompile/decompiled_scrips/info.js old mode 100755 new mode 100644 similarity index 98% rename from panorama/scripts/custom_game/info.vjs_c rename to english_localization_set/panorama_decompile/decompiled_scrips/info.js index 32c51cc..e7f92c6 Binary files a/panorama/scripts/custom_game/info.vjs_c and b/english_localization_set/panorama_decompile/decompiled_scrips/info.js differ diff --git a/panorama/scripts/custom_game/power.vjs_c b/english_localization_set/panorama_decompile/decompiled_scrips/power.js old mode 100755 new mode 100644 similarity index 95% rename from panorama/scripts/custom_game/power.vjs_c rename to english_localization_set/panorama_decompile/decompiled_scrips/power.js index d07be24..a513125 Binary files a/panorama/scripts/custom_game/power.vjs_c and b/english_localization_set/panorama_decompile/decompiled_scrips/power.js differ diff --git a/panorama/scripts/custom_game/shop.vjs_c b/english_localization_set/panorama_decompile/decompiled_scrips/shop.js old mode 100755 new mode 100644 similarity index 83% rename from panorama/scripts/custom_game/shop.vjs_c rename to english_localization_set/panorama_decompile/decompiled_scrips/shop.js index 5fe5078..ed885a0 Binary files a/panorama/scripts/custom_game/shop.vjs_c and b/english_localization_set/panorama_decompile/decompiled_scrips/shop.js differ diff --git a/panorama/scripts/custom_game/team_select.vjs_c b/english_localization_set/panorama_decompile/decompiled_scrips/team_select.js old mode 100755 new mode 100644 similarity index 97% rename from panorama/scripts/custom_game/team_select.vjs_c rename to english_localization_set/panorama_decompile/decompiled_scrips/team_select.js index 4128df5..c323eb6 Binary files a/panorama/scripts/custom_game/team_select.vjs_c and b/english_localization_set/panorama_decompile/decompiled_scrips/team_select.js differ diff --git a/panorama/scripts/custom_game/team_select_card.vjs_c b/english_localization_set/panorama_decompile/decompiled_scrips/team_select_card.js old mode 100755 new mode 100644 similarity index 92% rename from panorama/scripts/custom_game/team_select_card.vjs_c rename to english_localization_set/panorama_decompile/decompiled_scrips/team_select_card.js index 55124c0..9dfecf8 Binary files a/panorama/scripts/custom_game/team_select_card.vjs_c and b/english_localization_set/panorama_decompile/decompiled_scrips/team_select_card.js differ diff --git a/panorama/scripts/custom_game/util.vjs_c b/english_localization_set/panorama_decompile/decompiled_scrips/util.js old mode 100755 new mode 100644 similarity index 80% rename from panorama/scripts/custom_game/util.vjs_c rename to english_localization_set/panorama_decompile/decompiled_scrips/util.js index 007060f..ef8e0ba Binary files a/panorama/scripts/custom_game/util.vjs_c and b/english_localization_set/panorama_decompile/decompiled_scrips/util.js differ diff --git a/english_localization_set/panorama_decompile/libSkiaSharp.so b/english_localization_set/panorama_decompile/libSkiaSharp.so new file mode 100644 index 0000000..8730861 Binary files /dev/null and b/english_localization_set/panorama_decompile/libSkiaSharp.so differ diff --git a/panorama/scripts/custom_game/custom_loading_screen.js b/panorama/scripts/custom_game/custom_loading_screen.js new file mode 100644 index 0000000..5b587a5 --- /dev/null +++ b/panorama/scripts/custom_game/custom_loading_screen.js @@ -0,0 +1,380 @@ + +//Base64字符串编码解码,UTF8,支持汉字。 +//编码后字符包括+/=,仍然会因为特殊字符被某些应用拒绝,本应用即不行 +var Base64 = { + + // private property + _keyStr: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=", + + // public method for encoding + encode: function(input) { + var output = ""; + var chr1, chr2, chr3, enc1, enc2, enc3, enc4; + var i = 0; + + input = Base64._utf8_encode(input); + + while (i < input.length) { + + chr1 = input.charCodeAt(i++); + chr2 = input.charCodeAt(i++); + chr3 = input.charCodeAt(i++); + + enc1 = chr1 >> 2; + enc2 = ((chr1 & 3) << 4) | (chr2 >> 4); + enc3 = ((chr2 & 15) << 2) | (chr3 >> 6); + enc4 = chr3 & 63; + + if (isNaN(chr2)) { + enc3 = enc4 = 64; + } else if (isNaN(chr3)) { + enc4 = 64; + } + + output = output + this._keyStr.charAt(enc1) + this._keyStr.charAt(enc2) + this._keyStr.charAt(enc3) + this._keyStr.charAt(enc4); + + } + + return output; + }, + + // public method for decoding + decode: function(input) { + var output = ""; + var chr1, chr2, chr3; + var enc1, enc2, enc3, enc4; + var i = 0; + + input = input.replace(/[^A-Za-z0-9\+\/\=]/g, ""); + + while (i < input.length) { + + enc1 = this._keyStr.indexOf(input.charAt(i++)); + enc2 = this._keyStr.indexOf(input.charAt(i++)); + enc3 = this._keyStr.indexOf(input.charAt(i++)); + enc4 = this._keyStr.indexOf(input.charAt(i++)); + + chr1 = (enc1 << 2) | (enc2 >> 4); + chr2 = ((enc2 & 15) << 4) | (enc3 >> 2); + chr3 = ((enc3 & 3) << 6) | enc4; + + output = output + String.fromCharCode(chr1); + + if (enc3 != 64) { + output = output + String.fromCharCode(chr2); + } + if (enc4 != 64) { + output = output + String.fromCharCode(chr3); + } + + } + + output = Base64._utf8_decode(output); + + return output; + + }, + + // private method for UTF-8 encoding + _utf8_encode: function(string) { + string = string.replace(/\r\n/g, "\n"); + var utftext = ""; + + for (var n = 0; n < string.length; n++) { + + var c = string.charCodeAt(n); + + if (c < 128) { + utftext += String.fromCharCode(c); + } else if ((c > 127) && (c < 2048)) { + utftext += String.fromCharCode((c >> 6) | 192); + utftext += String.fromCharCode((c & 63) | 128); + } else { + utftext += String.fromCharCode((c >> 12) | 224); + utftext += String.fromCharCode(((c >> 6) & 63) | 128); + utftext += String.fromCharCode((c & 63) | 128); + } + + } + + return utftext; + }, + + // private method for UTF-8 decoding + _utf8_decode: function(utftext) { + var string = ""; + var i = 0; + var c = c1 = c2 = 0; + + while (i < utftext.length) { + + c = utftext.charCodeAt(i); + + if (c < 128) { + string += String.fromCharCode(c); + i++; + } else if ((c > 191) && (c < 224)) { + c2 = utftext.charCodeAt(i + 1); + string += String.fromCharCode(((c & 31) << 6) | (c2 & 63)); + i += 2; + } else { + c2 = utftext.charCodeAt(i + 1); + c3 = utftext.charCodeAt(i + 2); + string += String.fromCharCode(((c & 15) << 12) | ((c2 & 63) << 6) | (c3 & 63)); + i += 3; + } + + } + + return string; + } +}; + + +//字符串与十六进制字符串相互转换,UTF8,支持汉字 +//防止特殊符号被应用拒绝 +var StringHex = { + + // public method, Hex字符串编码 + encode: function(str){ + var charBuf = StringHex.writeUTF(str, true); + var re = ''; + for(var i = 0; i < charBuf.length; i ++){ + var x = (charBuf[i] & 0xFF).toString(16); + if(x.length === 1){ + x = '0' + x; + } + re += x; + } + return re; + }, + + // public method,Hex字符串解码 + decode: function (hexStr) { + var buf = []; + for(var i = 0; i < hexStr.length; i += 2){ + buf.push(parseInt(hexStr.substring(i, i+2), 16)); + } + return StringHex.readUTF(buf); + }, + + // private method + writeUTF: function (str, isGetBytes) { + var back = []; + var byteSize = 0; + for (var i = 0; i < str.length; i++) { + var code = str.charCodeAt(i); + if (0x00 <= code && code <= 0x7f) { + byteSize += 1; + back.push(code); + } else if (0x80 <= code && code <= 0x7ff) { + byteSize += 2; + back.push((192 | (31 & (code >> 6)))); + back.push((128 | (63 & code))) + } else if ((0x800 <= code && code <= 0xd7ff) + || (0xe000 <= code && code <= 0xffff)) { + byteSize += 3; + back.push((224 | (15 & (code >> 12)))); + back.push((128 | (63 & (code >> 6)))); + back.push((128 | (63 & code))) + } + } + for (i = 0; i < back.length; i++) { + back[i] &= 0xff; + } + if (isGetBytes) { + return back + } + if (byteSize <= 0xff) { + return [0, byteSize].concat(back); + } else { + return [byteSize >> 8, byteSize & 0xff].concat(back); + } + }, + + // private method + readUTF: function (arr) { + if (typeof arr === 'string') { + return arr; + } + var UTF = '', _arr = arr; + for (var i = 0; i < _arr.length; i++) { + var one = _arr[i].toString(2), + v = one.match(/^1+?(?=0)/); + if (v && one.length == 8) { + var bytesLength = v[0].length; + var store = _arr[i].toString(2).slice(7 - bytesLength); + for (var st = 1; st < bytesLength; st++) { + if (st + i < _arr.length) store += _arr[st + i].toString(2).slice(2); + } + UTF += String.fromCharCode(parseInt(store, 2)); + i += bytesLength - 1 + } else { + UTF += String.fromCharCode(_arr[i]) + } + } + return UTF + } + +}; + + +// 需要 Base64 支持 +var StringCode = { + encrypt: function(str, pwd) { + str = Base64.encode(str);//Base64加密 + var prand = ""; + for(var i=0; i 10) { + prand = (parseInt(prand.substring(0, 10)) + parseInt(prand.substring(10, prand.length))).toString(); + } + prand = (mult * prand + incr) % modu; + var enc_chr = ""; + var enc_str = ""; + for(var i=0; i 10) { + prand = (parseInt(prand.substring(0, 10)) + parseInt(prand.substring(10, prand.length))).toString(); + } + prand = (mult * prand + incr) % modu; + var enc_chr = ""; + var enc_str = ""; + for(var i=0; i //BLoadLayoutFromString已失效,此方法废弃 +var moviePage = script(function(){/* + + + + + + + + +