Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
cdd0c6f672 | |||
b6ac647c92 |
@ -0,0 +1,2 @@
|
||||
[InternetShortcut]
|
||||
URL=https://docs.cocos.com/creator/manual/en/scripting/setup.html#custom-script-template
|
63
.gitignore
vendored
@ -1,53 +1,24 @@
|
||||
#/////////////////////////////////////////////////////////////////////////////
|
||||
# Fireball Projects
|
||||
#/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
/library/
|
||||
/temp/
|
||||
/local/
|
||||
/build/
|
||||
#///////////////////////////
|
||||
# Cocos Creator 3D Project
|
||||
#///////////////////////////
|
||||
library/
|
||||
temp/
|
||||
local/
|
||||
build/
|
||||
profiles/
|
||||
native
|
||||
#/////////////////////////////////////////////////////////////////////////////
|
||||
# npm files
|
||||
#/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
npm-debug.log
|
||||
#//////////////////////////
|
||||
# NPM
|
||||
#//////////////////////////
|
||||
node_modules/
|
||||
|
||||
#/////////////////////////////////////////////////////////////////////////////
|
||||
# Logs and databases
|
||||
#/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
*.log
|
||||
*.sql
|
||||
*.sqlite
|
||||
|
||||
#/////////////////////////////////////////////////////////////////////////////
|
||||
# files for debugger
|
||||
#/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
*.sln
|
||||
*.csproj
|
||||
*.pidb
|
||||
*.unityproj
|
||||
*.suo
|
||||
|
||||
#/////////////////////////////////////////////////////////////////////////////
|
||||
# OS generated files
|
||||
#/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
.DS_Store
|
||||
ehthumbs.db
|
||||
Thumbs.db
|
||||
|
||||
#/////////////////////////////////////////////////////////////////////////////
|
||||
# WebStorm files
|
||||
#/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
.idea/
|
||||
|
||||
#//////////////////////////
|
||||
# VS Code files
|
||||
# VSCode
|
||||
#//////////////////////////
|
||||
|
||||
.vscode/
|
||||
|
||||
#//////////////////////////
|
||||
# WebStorm
|
||||
#//////////////////////////
|
||||
.idea/
|
@ -1,12 +0,0 @@
|
||||
{
|
||||
"ver": "1.1.2",
|
||||
"uuid": "9e28a2e5-f683-4157-bfc5-f19dd02440b1",
|
||||
"isBundle": false,
|
||||
"bundleName": "",
|
||||
"priority": 1,
|
||||
"compressionType": {},
|
||||
"optimizeHotUpdate": {},
|
||||
"inlineSpriteFrames": {},
|
||||
"isRemoteBundle": {},
|
||||
"subMetas": {}
|
||||
}
|
@ -1,687 +0,0 @@
|
||||
if (typeof rvAgentPlayer !== 'undefined') {
|
||||
throw new Error('ResponsiveVoice Website Agent is already running');
|
||||
}
|
||||
|
||||
var rvAgentPlayer = { version : 1 };
|
||||
var rvApiKey = '8LG4XCOk';
|
||||
var rvApiEndpoint = 'https://texttospeech.responsivevoice.org/v1/text:synthesize';
|
||||
|
||||
if (typeof responsiveVoice === 'undefined') {
|
||||
|
||||
/*
|
||||
ResponsiveVoice JS v1.8.0
|
||||
|
||||
(c) 2015-2020 LearnBrite
|
||||
|
||||
License: http://responsivevoice.org/license
|
||||
*/
|
||||
Array.from||(Array.from=function(){var w=Object.prototype.toString,y=function(p){return"function"===typeof p||"[object Function]"===w.call(p)},C=Math.pow(2,53)-1;return function(p){var a=Object(p);if(null==p)throw new TypeError("Array.from requires an array-like object - not null or undefined");var q=1<arguments.length?arguments[1]:void 0,z;if("undefined"!==typeof q){if(!y(q))throw new TypeError("Array.from: when provided, the second argument must be a function");2<arguments.length&&
|
||||
(z=arguments[2])}var t=Number(a.length);t=isNaN(t)?0:0!==t&&isFinite(t)?(0<t?1:-1)*Math.floor(Math.abs(t)):t;t=Math.min(Math.max(t,0),C);for(var b=y(this)?Object(new this(t)):Array(t),c=0,d;c<t;)d=a[c],b[c]=q?"undefined"===typeof z?q(d,c):q.call(z,d,c):d,c+=1;b.length=t;return b}}());if(!isNaN)var isNaN=function(w){w=Number(w);return w!==w};
|
||||
(function(w,y){"object"===typeof exports&&"undefined"!==typeof module?y():"function"===typeof define&&define.amd?define(y):y()})(this,function(){function w(C){w="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(p){return typeof p}:function(p){return p&&"function"===typeof Symbol&&p.constructor===Symbol&&p!==Symbol.prototype?"symbol":typeof p};return w(C)}function y(C,p){var a=this.event&&this.event.type;a="unload"===a||"beforeunload"===a;var q="XMLHttpRequest"in this?new XMLHttpRequest:
|
||||
new ActiveXObject("Microsoft.XMLHTTP");q.open("POST",C,!a);q.withCredentials=!0;q.setRequestHeader("Accept","*/*");"string"===typeof p?(q.setRequestHeader("Content-Type","text/plain;charset=UTF-8"),q.responseType="text"):p instanceof Blob&&p.type&&q.setRequestHeader("Content-Type",p.type);try{q.send(p)}catch(z){return!1}return!0}(function(){"navigator"in this||(this.navigator={});"function"!==typeof this.navigator.sendBeacon&&(this.navigator.sendBeacon=y.bind(this))}).call("object"===("undefined"===
|
||||
typeof window?"undefined":w(window))?window:{})});
|
||||
if("undefined"!=typeof responsiveVoice)console.log("ResponsiveVoice already loaded"),console.log(responsiveVoice);else var ResponsiveVoice=function(){function w(b){b=b.replace(/([\n\r])+/gm,"\n");for(var c=/([,.:!\u00a1?\u00bf;()\[\]\u2014\u00ab\u00bb])+[\n\r]/gm,d=!0;d;)null===b.match(c)?d=!1:b=b.replace(c,"$1 ");return b}function y(b,c){if(!q)return b;console.log(c);var d=b;try{for(var h=0;h<q.length;h++){var e=q[h],g=!1,k=e.collectionvoices;k?(Array.isArray(k)||(k=[k]),c.collectionvoice&&c.collectionvoice.name&&
|
||||
-1!=k.indexOf(c.collectionvoice.name)&&(g=!0)):g=!0;var f=!1,l=e.systemvoices;l?(Array.isArray(l)||(l=[l]),c.systemvoice&&c.systemvoice.name&&-1!=l.indexOf(c.systemvoice.name)&&(f=!0)):f=!0;(null==k||null!=k&&g)&&(null==l||null!=l&&f)&&(d=d.replace(e.searchvalue,e.newvalue))}return d}catch(u){return console.warn("ResponsiveVoice: There was an error while processing the textReplacements array"),b}}function C(){var b=document.getElementsByTagName("script"),c;for(c=0;c<b.length;++c)if(b[c].src&&t.test(b[c].src)){var d=
|
||||
b[c].src;var h=document.createElement("a");var e={};h.href=d;if(h.search){var g=h.search.replace(/^\?/,"").split("&");for(d=0;d<g.length;d++)h=g[d].split("="),e[h[0]]=h[1];e=e.source?e.source:!1}else e=!1;if(e&&"wp-plugin"==e)return t.lastIndex=0,!0}return!1}function p(){var b=document.getElementsByTagName("script"),c;for(c=0;c<b.length;++c)if(b[c].src&&t.test(b[c].src))return t.lastIndex=0,!1;return!0}var a=this;a.version="1.8.0";console.log("ResponsiveVoice r"+a.version);a.responsivevoices=[{name:"UK English Female",
|
||||
flag:"gb",gender:"f",lang:"en-GB",voiceIDs:[3,7,171,201,5,1,257,286,342,258,287,343,8]},{name:"UK English Male",flag:"gb",gender:"m",lang:"en-GB",voiceIDs:[0,277,202,75,4,2,256,285,341,159]},{name:"US English Female",flag:"us",gender:"f",lang:"en-US",voiceIDs:[432,433,434,40,41,42,383,205,204,43,173,235,283,339,408,44]},{name:"US English Male",flag:"us",gender:"m",lang:"en-US",voiceIDs:[431,39,234,282,338,236,284,340,2,4,0,75,195,169]},{name:"Arabic Male",flag:"ar",gender:"m",lang:"ar-SA",voiceIDs:[96,
|
||||
95,97,196,388]},{name:"Arabic Female",flag:"ar",gender:"f",lang:"ar-SA",voiceIDs:[98]},{name:"Armenian Male",flag:"hy",gender:"f",lang:"hy-AM",voiceIDs:[99]},{name:"Australian Female",flag:"au",gender:"f",lang:"en-AU",voiceIDs:[415,276,201,87,5,88]},{name:"Australian Male",flag:"au",gender:"m",lang:"en-AU",voiceIDs:[86,386]},{name:"Bangla Bangladesh Female",flag:"bd",gender:"f",lang:"bn-BD",voiceIDs:[435]},{name:"Bangla Bangladesh Male",flag:"bd",gender:"m",lang:"bn-BD",voiceIDs:[410,436]},{name:"Bangla India Female",
|
||||
flag:"bd",gender:"f",lang:"bn-IN",voiceIDs:[447]},{name:"Bangla India Male",flag:"bd",gender:"m",lang:"bn-IN",voiceIDs:[411,448]},{name:"Brazilian Portuguese Female",flag:"br",gender:"f",lang:"pt-BR",voiceIDs:[245,124,123,125,186,223,126]},{name:"Brazilian Portuguese Male",flag:"br",gender:"m",lang:"pt-BR",voiceIDs:[315,332,371,399],deprecated:!0},{name:"Chinese Female",flag:"cn",gender:"f",lang:"zh-CN",voiceIDs:[249,58,59,380,281,231,155,60,191,268,297,353,269,298,354,409,61]},{name:"Chinese Male",
|
||||
flag:"cn",gender:"m",lang:"zh-CN",voiceIDs:[317,334,373,389]},{name:"Chinese (Hong Kong) Female",flag:"hk",gender:"f",lang:"zh-HK",voiceIDs:[192,193,232,250,251,270,299,355,409,444,252]},{name:"Chinese (Hong Kong) Male",flag:"hk",gender:"m",lang:"zh-HK",voiceIDs:[430,318,335,374,445,390]},{name:"Chinese Taiwan Female",flag:"tw",gender:"f",lang:"zh-TW",voiceIDs:[194,233,253,254,305,322,361,384,319,336,375,409,255]},{name:"Chinese Taiwan Male",flag:"tw",gender:"m",lang:"zh-TW",voiceIDs:[320,337,376,
|
||||
391]},{name:"Czech Female",flag:"cz",gender:"f",lang:"cs-CZ",voiceIDs:[412,101,100,102,197,103]},{name:"Czech Male",flag:"cz",gender:"m",lang:"cs-CZ",voiceIDs:[161],deprecated:!0},{name:"Danish Female",flag:"dk",gender:"f",lang:"da-DK",voiceIDs:[413,105,104,106,198,107]},{name:"Danish Male",flag:"da",gender:"m",lang:"da-DK",voiceIDs:[162],deprecated:!0},{name:"Deutsch Female",flag:"de",gender:"f",lang:"de-DE",voiceIDs:[27,28,29,30,78,170,275,199,31,261,290,346,262,291,347,32]},{name:"Deutsch Male",
|
||||
flag:"de",gender:"m",lang:"de-DE",voiceIDs:[307,324,363,377,393]},{name:"Dutch Female",flag:"nl",gender:"f",lang:"nl-NL",voiceIDs:[243,219,84,157,158,184,45]},{name:"Dutch Male",flag:"nl",gender:"m",lang:"nl-NL",voiceIDs:[157,220,407]},{name:"Estonian Male",flag:"ee",gender:"m",lang:"et-EE",voiceIDs:[416,446]},{name:"Filipino Female",flag:"ph",gender:"f",lang:"fil-PH",voiceIDs:[418,437]},{name:"Finnish Female",flag:"fi",gender:"f",lang:"fi-FI",voiceIDs:[417,90,89,91,209,92]},{name:"Finnish Male",
|
||||
flag:"fi",gender:"m",lang:"fi-FI",voiceIDs:[160],deprecated:!0},{name:"French Female",flag:"fr",gender:"f",lang:"fr-FR",voiceIDs:[240,21,22,23,77,178,279,210,266,295,351,304,321,360,26]},{name:"French Male",flag:"fr",gender:"m",lang:"fr-FR",voiceIDs:[311,328,367,378,392]},{name:"French Canadian Female",flag:"ca",gender:"f",lang:"fr-CA",voiceIDs:[419,210,449]},{name:"French Canadian Male",flag:"ca",gender:"m",lang:"fr-CA",voiceIDs:[450]},{name:"Greek Female",flag:"gr",gender:"f",lang:"el-GR",voiceIDs:[414,
|
||||
62,63,80,200,64]},{name:"Greek Male",flag:"gr",gender:"m",lang:"el-GR",voiceIDs:[163],deprecated:!0},{name:"Hindi Female",flag:"hi",gender:"f",lang:"hi-IN",voiceIDs:[247,66,154,179,213,259,288,344,67]},{name:"Hindi Male",flag:"hi",gender:"m",lang:"hi-IN",voiceIDs:[394]},{name:"Hungarian Female",flag:"hu",gender:"f",lang:"hu-HU",voiceIDs:[420,9,10,81,214,11]},{name:"Hungarian Male",flag:"hu",gender:"m",lang:"hu-HU",voiceIDs:[164],deprecated:!0},{name:"Indonesian Female",flag:"id",gender:"f",lang:"id-ID",
|
||||
voiceIDs:[241,111,112,180,215,113]},{name:"Indonesian Male",flag:"id",gender:"m",lang:"id-ID",voiceIDs:[395]},{name:"Italian Female",flag:"it",gender:"f",lang:"it-IT",voiceIDs:[242,33,34,35,36,37,79,181,216,271,300,356,38]},{name:"Italian Male",flag:"it",gender:"m",lang:"it-IT",voiceIDs:[312,329,368,406]},{name:"Japanese Female",flag:"jp",gender:"f",lang:"ja-JP",voiceIDs:[51,280,217,52,153,182,273,302,358,274,303,359,53]},{name:"Japanese Male",flag:"jp",gender:"m",lang:"ja-JP",voiceIDs:[248,50,313,
|
||||
330,369,396]},{name:"Korean Female",flag:"kr",gender:"f",lang:"ko-KR",voiceIDs:[54,55,56,156,183,218,306,323,362,384,57]},{name:"Korean Male",flag:"kr",gender:"m",lang:"ko-KR",voiceIDs:[397]},{name:"Latin Female",flag:"va",gender:"f",lang:"la",voiceIDs:[114],deprecated:!0},{name:"Latin Male",flag:"va",gender:"m",lang:"la",voiceIDs:[165]},{name:"Nepali",flag:"np",gender:"f",lang:"ne-NP",voiceIDs:[423,441]},{name:"Norwegian Female",flag:"no",gender:"f",lang:"nb-NO",voiceIDs:[422,72,73,221,74]},{name:"Norwegian Male",
|
||||
flag:"no",gender:"m",lang:"nb-NO",voiceIDs:[166]},{name:"Polish Female",flag:"pl",gender:"f",lang:"pl-PL",voiceIDs:[244,120,119,121,185,222,267,296,352,122]},{name:"Polish Male",flag:"pl",gender:"m",lang:"pl-PL",voiceIDs:[314,331,370,398]},{name:"Portuguese Female",flag:"br",gender:"f",lang:"pt-BR",voiceIDs:[128,127,129,187,224,272,301,357,130]},{name:"Portuguese Male",flag:"br",gender:"m",lang:"pt-BR",voiceIDs:[400]},{name:"Romanian Female",flag:"ro",gender:"f",lang:"ro-RO",voiceIDs:[424,151,150,
|
||||
152,225,46]},{name:"Russian Female",flag:"ru",gender:"f",lang:"ru-RU",voiceIDs:[246,47,48,83,188,226,260,289,345,49]},{name:"Russian Male",flag:"ru",gender:"m",lang:"ru-RU",voiceIDs:[316,333,372,387],deprecated:!0},{name:"Sinhala",flag:"lk",gender:"f",lang:"si-LK",voiceIDs:[425,442]},{name:"Slovak Female",flag:"sk",gender:"f",lang:"sk-SK",voiceIDs:[426,133,132,134,227,135]},{name:"Slovak Male",flag:"sk",gender:"m",lang:"sk-SK",voiceIDs:[167],deprecated:!0},{name:"Spanish Female",flag:"es",gender:"f",
|
||||
lang:"es-ES",voiceIDs:[19,238,16,17,18,20,76,174,207,263,292,348,264,293,349,15]},{name:"Spanish Male",flag:"es",gender:"m",lang:"es-ES",voiceIDs:[309,326,365,401],deprecated:!0},{name:"Spanish Latin American Female",flag:"es",gender:"f",lang:"es-MX",voiceIDs:[239,137,136,138,175,208,265,294,350,139]},{name:"Spanish Latin American Male",flag:"es",gender:"m",lang:"es-MX",voiceIDs:[136,310,327,366,402]},{name:"Swedish Female",flag:"sv",gender:"f",lang:"sv-SE",voiceIDs:[427,85,149,228,65]},{name:"Swedish Male",
|
||||
flag:"sv",gender:"m",lang:"sv-SE",voiceIDs:[148,168]},{name:"Tamil Female",flag:"hi",gender:"m",lang:"hi-IN",voiceIDs:[451]},{name:"Tamil Male",flag:"hi",gender:"m",lang:"hi-IN",voiceIDs:[141]},{name:"Thai Female",flag:"th",gender:"f",lang:"th-TH",voiceIDs:[143,142,144,189,229,145]},{name:"Thai Male",flag:"th",gender:"m",lang:"th-TH",voiceIDs:[403]},{name:"Turkish Female",flag:"tr",gender:"f",lang:"tr-TR",voiceIDs:[69,70,82,190,230,71]},{name:"Turkish Male",flag:"tr",gender:"m",lang:"tr-TR",voiceIDs:[404]},
|
||||
{name:"Ukrainian Female",flag:"ua",gender:"f",lang:"uk-UA",voiceIDs:[428,443]},{name:"Vietnamese Female",flag:"vi",gender:"f",lang:"vi-VN",voiceIDs:[429,405]},{name:"Vietnamese Male",flag:"vi",gender:"m",lang:"vi-VN",voiceIDs:[146]},{name:"Afrikaans Male",flag:"af",gender:"m",lang:"af-ZA",voiceIDs:[93]},{name:"Albanian Male",flag:"sq",gender:"m",lang:"sq-AL",voiceIDs:[94]},{name:"Bosnian Male",flag:"bs",gender:"m",lang:"bs",voiceIDs:[14]},{name:"Catalan Male",flag:"catalonia",gender:"m",lang:"ca-ES",
|
||||
voiceIDs:[68]},{name:"Croatian Male",flag:"hr",gender:"m",lang:"hr-HR",voiceIDs:[13]},{name:"Esperanto Male",flag:"eo",gender:"m",lang:"eo",voiceIDs:[108]},{name:"Icelandic Male",flag:"is",gender:"m",lang:"is-IS",voiceIDs:[110]},{name:"Latvian Male",flag:"lv",gender:"m",lang:"lv-LV",voiceIDs:[115]},{name:"Macedonian Male",flag:"mk",gender:"m",lang:"mk-MK",voiceIDs:[116]},{name:"Moldavian Female",flag:"md",gender:"f",lang:"md",voiceIDs:[117]},{name:"Moldavian Male",flag:"md",gender:"m",lang:"md",voiceIDs:[117],
|
||||
deprecated:!0},{name:"Montenegrin Male",flag:"me",gender:"m",lang:"me",voiceIDs:[118]},{name:"Serbian Male",flag:"sr",gender:"m",lang:"sr-RS",voiceIDs:[12]},{name:"Serbo-Croatian Male",flag:"hr",gender:"m",lang:"hr-HR",voiceIDs:[131]},{name:"Swahili Male",flag:"sw",gender:"m",lang:"sw-KE",voiceIDs:[140]},{name:"Welsh Male",flag:"cy",gender:"m",lang:"cy",voiceIDs:[147]},{name:"Fallback UK Female",flag:"gb",gender:"f",lang:"en-GB",voiceIDs:[8]}];a.voicecollection=[{name:"Google UK English Male"},{name:"Agnes"},
|
||||
{name:"Daniel Compact"},{name:"Google UK English Female"},{name:"en-GB",rate:.25,pitch:1},{name:"en-AU",rate:.25,pitch:1},{name:"ingl\u00e9s Reino Unido"},{name:"English United Kingdom"},{name:"Fallback en-GB Female",lang:"en-GB",fallbackvoice:!0,service:"g1",gender:"female"},{name:"Eszter Compact"},{name:"hu-HU",rate:.4},{name:"Fallback Hungarian Female",lang:"hu",fallbackvoice:!0,service:"g1"},{name:"Fallback Serbian Male",lang:"sr",fallbackvoice:!0,service:"g1",gender:"male"},{name:"Fallback Croatian Male",
|
||||
lang:"hr",rate:.5,fallbackvoice:!0,service:"g1",gender:"male"},{name:"Fallback Bosnian Male",lang:"bs",fallbackvoice:!0,service:"g1",gender:"male"},{name:"Fallback Spanish Female",lang:"es",fallbackvoice:!0,service:"g1",gender:"female"},{name:"Spanish Spain"},{name:"espa\u00f1ol Espa\u00f1a"},{name:"Diego Compact",rate:.3},{name:"Google Espa\u00f1ol"},{name:"es-ES",rate:.2},{name:"Google Fran\u00e7ais"},{name:"French France"},{name:"franc\u00e9s Francia"},{name:"Virginie Compact",rate:.5},{name:"fr-FR",
|
||||
rate:.25},{name:"Fallback French Female",lang:"fr",fallbackvoice:!0,service:"g1",gender:"female"},{name:"Google Deutsch"},{name:"German Germany"},{name:"alem\u00e1n Alemania"},{name:"Yannick Compact",rate:.5},{name:"de-DE",rate:.25},{name:"Fallback Deutsch Female",lang:"de",fallbackvoice:!0,service:"g1",gender:"female"},{name:"Google Italiano"},{name:"Italian Italy"},{name:"italiano Italia"},{name:"Paolo Compact",rate:.5},{name:"it-IT",rate:.25},{name:"Fallback Italian Female",lang:"it",fallbackvoice:!0,
|
||||
service:"g1",gender:"female"},{name:"Google US English",timerSpeed:1},{name:"English United States"},{name:"ingl\u00e9s Estados Unidos"},{name:"Vicki"},{name:"en-US",rate:.2,pitch:1,timerSpeed:1.3},{name:"Fallback US English",lang:"en-US",fallbackvoice:!0,timerSpeed:0,service:"g1",gender:"female"},{name:"Fallback Dutch Female",lang:"nl",fallbackvoice:!0,timerSpeed:0,service:"g1",gender:"female"},{name:"Fallback Romanian",lang:"ro",fallbackvoice:!0,service:"g1",gender:"female"},{name:"Milena Compact"},
|
||||
{name:"ru-RU",rate:.25},{name:"Fallback Russian",lang:"ru",fallbackvoice:!0,service:"g1",gender:"female"},{name:"Google \u65e5\u672c\u4eba",timerSpeed:1},{name:"Kyoko Compact"},{name:"ja-JP",rate:.25},{name:"Fallback Japanese Female",lang:"ja",fallbackvoice:!0,service:"g1",gender:"female"},{name:"Google \ud55c\uad6d\uc758",timerSpeed:1},{name:"Narae Compact"},{name:"ko-KR",rate:.25},{name:"Fallback Korean Female",lang:"ko",fallbackvoice:!0,service:"g1",gender:"female"},{name:"Google \u4e2d\u56fd\u7684",
|
||||
timerSpeed:1},{name:"Ting-Ting Compact"},{name:"zh-CN",rate:.25},{name:"Fallback Chinese",lang:"zh-CN",fallbackvoice:!0,service:"g1",gender:"female"},{name:"Alexandros Compact"},{name:"el-GR",rate:.25},{name:"Fallback Greek",lang:"el",fallbackvoice:!0,service:"g3",gender:"female"},{name:"Fallback Swedish",lang:"sv",fallbackvoice:!0,service:"g3",gender:"female"},{name:"hi-IN",rate:.25},{name:"Fallback Hindi Female",lang:"hi",fallbackvoice:!0,service:"g1",gender:"female"},{name:"Fallback Catalan",lang:"ca",
|
||||
fallbackvoice:!0,service:"g1",gender:"male"},{name:"Aylin Compact"},{name:"tr-TR",rate:.25},{name:"Fallback Turkish",lang:"tr",fallbackvoice:!0,service:"g1",gender:"female"},{name:"Stine Compact"},{name:"no-NO",rate:.25},{name:"Fallback Norwegian",lang:"no",fallbackvoice:!0,service:"g1",gender:"female"},{name:"Daniel"},{name:"Monica"},{name:"Amelie"},{name:"Anna"},{name:"Alice"},{name:"Melina"},{name:"Mariska"},{name:"Yelda"},{name:"Milena"},{name:"Xander"},{name:"Alva"},{name:"Lee Compact"},{name:"Karen"},
|
||||
{name:"Fallback Australian Female",lang:"en-AU",fallbackvoice:!0,service:"g1",gender:"female"},{name:"Mikko Compact"},{name:"Satu"},{name:"fi-FI",rate:.25},{name:"Fallback Finnish",lang:"fi",fallbackvoice:!0,service:"g1",gender:"female"},{name:"Fallback Afrikans",lang:"af",fallbackvoice:!0,service:"g1",gender:"male"},{name:"Fallback Albanian",lang:"sq",fallbackvoice:!0,service:"g1",gender:"male"},{name:"Maged Compact"},{name:"Tarik"},{name:"ar-SA",rate:.25},{name:"Fallback Arabic",lang:"ar",fallbackvoice:!0,
|
||||
service:"g1",gender:"female"},{name:"Fallback Armenian",lang:"hy",fallbackvoice:!0,service:"g1",gender:"male"},{name:"Zuzana Compact"},{name:"Zuzana"},{name:"cs-CZ",rate:.25},{name:"Fallback Czech",lang:"cs",fallbackvoice:!0,service:"g1",gender:"female"},{name:"Ida Compact"},{name:"Sara"},{name:"da-DK",rate:.25},{name:"Fallback Danish",lang:"da",fallbackvoice:!0,service:"g1",gender:"female"},{name:"Fallback Esperanto",lang:"eo",fallbackvoice:!0,service:"g1",gender:"male"},{name:"Fallback Haitian Creole",
|
||||
lang:"ht",fallbackvoice:!0},{name:"Fallback Icelandic",lang:"is",fallbackvoice:!0,service:"g1",gender:"male"},{name:"Damayanti"},{name:"id-ID",rate:.25},{name:"Fallback Indonesian Female",lang:"id",fallbackvoice:!0,service:"g1",gender:"female"},{name:"Fallback Latin Female",lang:"la",fallbackvoice:!0,service:"g2",gender:"female"},{name:"Fallback Latvian Male",lang:"lv",fallbackvoice:!0,service:"g1",gender:"male"},{name:"Fallback Macedonian Male",lang:"mk",fallbackvoice:!0,service:"g1",gender:"male"},
|
||||
{name:"Fallback Moldavian Female",lang:"mo",fallbackvoice:!0,service:"g2",gender:"female"},{name:"Fallback Montenegrin Male",lang:"sr-ME",fallbackvoice:!0,service:"g1",gender:"male"},{name:"Agata Compact"},{name:"Zosia"},{name:"pl-PL",rate:.25},{name:"Fallback Polish Female",lang:"pl",fallbackvoice:!0,service:"g1",gender:"female"},{name:"Raquel Compact"},{name:"Luciana"},{name:"pt-BR",rate:.25},{name:"Fallback Brazilian Portuguese Female",lang:"pt-BR",fallbackvoice:!0,service:"g1",gender:"female"},
|
||||
{name:"Joana Compact"},{name:"Joana"},{name:"pt-PT",rate:.25},{name:"Fallback Portuguese",lang:"pt-PT",fallbackvoice:!0,service:"g1",gender:"female"},{name:"Fallback Serbo-Croation",lang:"sh",fallbackvoice:!0,service:"g2",gender:"male"},{name:"Laura Compact"},{name:"Laura"},{name:"sk-SK",rate:.25},{name:"Fallback Slovak",lang:"sk",fallbackvoice:!0,service:"g1",gender:"female"},{name:"Javier Compact"},{name:"Paulina"},{name:"es-MX",rate:.25},{name:"Fallback Spanish (Latin American) Female",lang:"es-419",
|
||||
fallbackvoice:!0,service:"g1",gender:"female"},{name:"Fallback Swahili",lang:"sw",fallbackvoice:!0,service:"g1",gender:"male"},{name:"Fallback Tamil",lang:"ta",fallbackvoice:!0,service:"g1",gender:"male"},{name:"Narisa Compact"},{name:"Kanya"},{name:"th-TH",rate:.25},{name:"Fallback Thai Female",lang:"th",fallbackvoice:!0,service:"g1",gender:"female"},{name:"Fallback Vietnamese Male",lang:"vi",fallbackvoice:!0,service:"g3",gender:"male"},{name:"Fallback Welsh",lang:"cy",fallbackvoice:!0,service:"g1",
|
||||
gender:"male"},{name:"Oskar Compact"},{name:"sv-SE",rate:.25},{name:"Simona Compact"},{name:"Ioana"},{name:"ro-RO",rate:.25},{name:"Kyoko"},{name:"Lekha"},{name:"Ting-Ting"},{name:"Yuna"},{name:"Xander Compact"},{name:"nl-NL",rate:.25},{name:"Fallback UK English Male",lang:"en-GB",fallbackvoice:!0,service:"g1",voicename:"rjs",gender:"male"},{name:"Finnish Male",lang:"fi",fallbackvoice:!0,service:"g3",voicename:"",gender:"male",deprecated:!0},{name:"Czech Male",lang:"cs",fallbackvoice:!0,service:"g3",
|
||||
voicename:"",gender:"male",deprecated:!0},{name:"Danish Male",lang:"da",fallbackvoice:!0,service:"g3",voicename:"",gender:"male",deprecated:!0},{name:"Greek Male",lang:"el",fallbackvoice:!0,service:"g3",voicename:"",gender:"male",deprecated:!0},{name:"Hungarian Male",lang:"hu",fallbackvoice:!0,service:"g3",voicename:"",gender:"male",deprecated:!0},{name:"Latin Male",lang:"la",fallbackvoice:!0,service:"g1",voicename:"",gender:"male"},{name:"Norwegian Male",lang:"no",fallbackvoice:!0,service:"g3",voicename:"",
|
||||
gender:"male"},{name:"Slovak Male",lang:"sk",fallbackvoice:!0,service:"g3",voicename:"",gender:"male",deprecated:!0},{name:"Swedish Male",lang:"sv",fallbackvoice:!0,service:"g3",voicename:"",gender:"male"},{name:"Fallback US English Male",lang:"en-US",fallbackvoice:!0,service:"g3",voicename:"",gender:"male"},{name:"German Germany",lang:"de_DE"},{name:"English United Kingdom",lang:"en_GB"},{name:"English India",lang:"en_IN"},{name:"English United States",lang:"en_US"},{name:"Spanish Spain",lang:"es_ES"},
|
||||
{name:"Spanish Mexico",lang:"es_MX"},{name:"Spanish United States",lang:"es_US"},{name:"French Belgium",lang:"fr_BE"},{name:"French France",lang:"fr_FR"},{name:"Hindi India",lang:"hi_IN"},{name:"Indonesian Indonesia",lang:"in_ID"},{name:"Italian Italy",lang:"it_IT"},{name:"Japanese Japan",lang:"ja_JP"},{name:"Korean South Korea",lang:"ko_KR"},{name:"Dutch Netherlands",lang:"nl_NL"},{name:"Polish Poland",lang:"pl_PL"},{name:"Portuguese Brazil",lang:"pt_BR"},{name:"Portuguese Portugal",lang:"pt_PT"},
|
||||
{name:"Russian Russia",lang:"ru_RU"},{name:"Thai Thailand",lang:"th_TH"},{name:"Turkish Turkey",lang:"tr_TR"},{name:"Chinese China",lang:"zh_CN_#Hans"},{name:"Chinese Hong Kong",lang:"zh_HK_#Hans"},{name:"Chinese Hong Kong",lang:"zh_HK_#Hant"},{name:"Chinese Taiwan",lang:"zh_TW_#Hant"},{name:"Alex"},{name:"Maged",lang:"ar-SA"},{name:"Zuzana",lang:"cs-CZ"},{name:"Sara",lang:"da-DK"},{name:"Anna",lang:"de-DE"},{name:"Melina",lang:"el-GR"},{name:"Karen",lang:"en-AU"},{name:"Daniel",lang:"en-GB"},{name:"Moira",
|
||||
lang:"en-IE"},{name:"Samantha (Enhanced)",lang:"en-US"},{name:"Samantha",lang:"en-US"},{name:"Tessa",lang:"en-ZA"},{name:"Monica",lang:"es-ES"},{name:"Paulina",lang:"es-MX"},{name:"Satu",lang:"fi-FI"},{name:"Amelie",lang:"fr-CA"},{name:"Thomas",lang:"fr-FR"},{name:"Carmit",lang:"he-IL"},{name:"Lekha",lang:"hi-IN"},{name:"Mariska",lang:"hu-HU"},{name:"Damayanti",lang:"id-ID"},{name:"Alice",lang:"it-IT"},{name:"Kyoko",lang:"ja-JP"},{name:"Yuna",lang:"ko-KR"},{name:"Ellen",lang:"nl-BE"},{name:"Xander",
|
||||
lang:"nl-NL"},{name:"Nora",lang:"no-NO"},{name:"Zosia",lang:"pl-PL"},{name:"Luciana",lang:"pt-BR"},{name:"Joana",lang:"pt-PT"},{name:"Ioana",lang:"ro-RO"},{name:"Milena",lang:"ru-RU"},{name:"Laura",lang:"sk-SK"},{name:"Alva",lang:"sv-SE"},{name:"Kanya",lang:"th-TH"},{name:"Yelda",lang:"tr-TR"},{name:"Ting-Ting",lang:"zh-CN"},{name:"Sin-Ji",lang:"zh-HK"},{name:"Mei-Jia",lang:"zh-TW"},{name:"Microsoft David Mobile - English (United States)",lang:"en-US"},{name:"Microsoft Zira Mobile - English (United States)",
|
||||
lang:"en-US"},{name:"Microsoft Mark Mobile - English (United States)",lang:"en-US"},{name:"native",lang:""},{name:"Google espa\u00f1ol"},{name:"Google espa\u00f1ol de Estados Unidos"},{name:"Google fran\u00e7ais"},{name:"Google Bahasa Indonesia"},{name:"Google italiano"},{name:"Google Nederlands"},{name:"Google polski"},{name:"Google portugu\u00eas do Brasil"},{name:"Google \u0440\u0443\u0441\u0441\u043a\u0438\u0439"},{name:"Google \u0939\u093f\u0928\u094d\u0926\u0940"},{name:"Google \u65e5\u672c\u8a9e"},
|
||||
{name:"Google \u666e\u901a\u8bdd\uff08\u4e2d\u56fd\u5927\u9646\uff09"},{name:"Google \u7ca4\u8a9e\uff08\u9999\u6e2f\uff09"},{name:"zh-HK",rate:.25},{name:"Fallback Chinese (Hong Kong) Female",lang:"zh-HK",fallbackvoice:!0,service:"g1",gender:"female"},{name:"Google \u7ca4\u8a9e\uff08\u9999\u6e2f\uff09"},{name:"zh-TW",rate:.25},{name:"Fallback Chinese (Taiwan) Female",lang:"zh-TW",fallbackvoice:!0,service:"g1",gender:"female"},{name:"Microsoft George Mobile - English (United Kingdom)",lang:"en-GB"},
|
||||
{name:"Microsoft Susan Mobile - English (United Kingdom)",lang:"en-GB"},{name:"Microsoft Hazel Mobile - English (United Kingdom)",lang:"en-GB"},{name:"Microsoft Heera Mobile - English (India)",lang:"en-In"},{name:"Microsoft Irina Mobile - Russian (Russia)",lang:"ru-RU"},{name:"Microsoft Hedda Mobile - German (Germany)",lang:"de-DE"},{name:"Microsoft Katja Mobile - German (Germany)",lang:"de-DE"},{name:"Microsoft Helena Mobile - Spanish (Spain)",lang:"es-ES"},{name:"Microsoft Laura Mobile - Spanish (Spain)",
|
||||
lang:"es-ES"},{name:"Microsoft Sabina Mobile - Spanish (Mexico)",lang:"es-MX"},{name:"Microsoft Julie Mobile - French (France)",lang:"fr-FR"},{name:"Microsoft Paulina Mobile - Polish (Poland)",lang:"pl-PL"},{name:"Microsoft Huihui Mobile - Chinese (Simplified, PRC)",lang:"zh-CN"},{name:"Microsoft Yaoyao Mobile - Chinese (Simplified, PRC)",lang:"zh-CN"},{name:"Microsoft Tracy Mobile - Chinese (Traditional, Hong Kong S.A.R.)",lang:"zh-CN"},{name:"Microsoft Elsa Mobile - Italian (Italy)",lang:"it-IT"},
|
||||
{name:"Microsoft Maria Mobile - Portuguese (Brazil)",lang:"pt-BR"},{name:"Microsoft Ayumi Mobile - Japanese (Japan)",lang:"ja-JP"},{name:"Microsoft Haruka Mobile - Japanese (Japan)",lang:"ja-JP"},{name:"Helena",lang:"de-DE"},{name:"Catherine",lang:"en-AU"},{name:"Arthur",lang:"en-GB"},{name:"Martha",lang:"en-GB"},{name:"Marie",lang:"fr-FR"},{name:"O-ren",lang:"ja-JP"},{name:"Yu-shu",lang:"zh-CN"},{name:"Microsoft David - English (United States)",lang:"en-US"},{name:"Microsoft Zira - English (United States)",
|
||||
lang:"en-US"},{name:"Microsoft Mark - English (United States)",lang:"en-US"},{name:"Microsoft George - English (United Kingdom)",lang:"en-GB"},{name:"Microsoft Susan - English (United Kingdom)",lang:"en-GB"},{name:"Microsoft Hazel - English (United Kingdom)",lang:"en-GB"},{name:"Microsoft Heera - English (India)",lang:"en-In"},{name:"Microsoft Irina - Russian (Russia)",lang:"ru-RU"},{name:"Microsoft Hedda - German (Germany)",lang:"de-DE"},{name:"Microsoft Katja - German (Germany)",lang:"de-DE"},{name:"Microsoft Helena - Spanish (Spain)",
|
||||
lang:"es-ES"},{name:"Microsoft Laura - Spanish (Spain)",lang:"es-ES"},{name:"Microsoft Sabina - Spanish (Mexico)",lang:"es-MX"},{name:"Microsoft Julie - French (France)",lang:"fr-FR"},{name:"Microsoft Paulina - Polish (Poland)",lang:"pl-PL"},{name:"Microsoft Huihui - Chinese (Simplified, PRC)",lang:"zh-CN"},{name:"Microsoft Yaoyao - Chinese (Simplified, PRC)",lang:"zh-CN"},{name:"Microsoft Tracy - Chinese (Traditional, Hong Kong S.A.R.)",lang:"zh-CN"},{name:"Microsoft Elsa - Italian (Italy)",lang:"it-IT"},
|
||||
{name:"Microsoft Maria - Portuguese (Brazil)",lang:"pt-BR"},{name:"Microsoft Ayumi - Japanese (Japan)",lang:"ja-JP"},{name:"Microsoft Haruka - Japanese (Japan)",lang:"ja-JP"},{name:"Microsoft Hortense - French (France)",lang:"fr-FR"},{name:"Microsoft Hanhan - Chinese (Traditional, Taiwan)",lang:"zh-TW"},{name:"Microsoft Heami - Korean (Korean)",lang:"ko-KR"},{name:"Microsoft Stefan - German (Germany)",lang:"de-DE"},{name:"Microsoft Ravi - English (India)",lang:"en-IN"},{name:"Microsoft Pablo - Spanish (Spain)",
|
||||
lang:"es-ES"},{name:"Microsoft Raul - Spanish (Mexico)",lang:"es-MX"},{name:"Microsoft Paul - French (France)",lang:"fr-FR"},{name:"Microsoft Cosimo - Italian (Italy)",lang:"it-IT"},{name:"Microsoft Ichiro - Japanese (Japan)",lang:"ja-JP"},{name:"Microsoft Adam - Polish (Poland)",lang:"pl-PL"},{name:"Microsoft Daniel - Portuguese (Brazil)",lang:"pt-BR"},{name:"Microsoft Pavel - Russian (Russia)",lang:"ru-RU"},{name:"Microsoft Kangkang - Chinese (Simplified, PRC)",lang:"zh-CN"},{name:"Microsoft Danny - Chinese (Traditional, Hong Kong S.A.R.)",
|
||||
lang:"zh-HK"},{name:"Microsoft Yating - Chinese (Traditional, Taiwan)",lang:"zh-TW"},{name:"Microsoft Zhiwei - Chinese (Traditional, Taiwan)",lang:"zh-TW"},{name:"Microsoft Hortense Mobile - French (France)",lang:"fr-FR"},{name:"Microsoft Hanhan Mobile - Chinese (Traditional, Taiwan)",lang:"zh-TW"},{name:"Microsoft Heami Mobile - Korean (Korean)",lang:"ko-KR"},{name:"Microsoft Stefan Mobile - German (Germany)",lang:"de-DE"},{name:"Microsoft Ravi Mobile - English (India)",lang:"en-IN"},{name:"Microsoft Pablo Mobile - Spanish (Spain)",
|
||||
lang:"es-ES"},{name:"Microsoft Raul Mobile - Spanish (Mexico)",lang:"es-MX"},{name:"Microsoft Paul Mobile - French (France)",lang:"fr-FR"},{name:"Microsoft Cosimo Mobile - Italian (Italy)",lang:"it-IT"},{name:"Microsoft Ichiro Mobile - Japanese (Japan)",lang:"ja-JP"},{name:"Microsoft Adam Mobile - Polish (Poland)",lang:"pl-PL"},{name:"Microsoft Daniel Mobile - Portuguese (Brazil)",lang:"pt-BR"},{name:"Microsoft Pavel Mobile - Russian (Russia)",lang:"ru-RU"},{name:"Microsoft Kangkang Mobile - Chinese (Simplified, PRC)",
|
||||
lang:"zh-CN"},{name:"Microsoft Danny Mobile - Chinese (Traditional, Hong Kong S.A.R.)",lang:"zh-HK"},{name:"Microsoft Yating Mobile - Chinese (Traditional, Taiwan)",lang:"zh-TW"},{name:"Microsoft Zhiwei Mobile - Chinese (Traditional, Taiwan)",lang:"zh-TW"},{name:"Microsoft David Desktop - English (United States)",lang:"en-US"},{name:"Microsoft Zira Desktop - English (United States)",lang:"en-US"},{name:"Microsoft Mark Desktop - English (United States)",lang:"en-US"},{name:"Microsoft George Desktop - English (United Kingdom)",
|
||||
lang:"en-GB"},{name:"Microsoft Susan Desktop - English (United Kingdom)",lang:"en-GB"},{name:"Microsoft Hazel Desktop - English (United Kingdom)",lang:"en-GB"},{name:"Microsoft Heera Desktop - English (India)",lang:"en-In"},{name:"Microsoft Irina Desktop - Russian (Russia)",lang:"ru-RU"},{name:"Microsoft Hedda Desktop - German (Germany)",lang:"de-DE"},{name:"Microsoft Katja Desktop - German (Germany)",lang:"de-DE"},{name:"Microsoft Helena Desktop - Spanish (Spain)",lang:"es-ES"},{name:"Microsoft Laura Desktop - Spanish (Spain)",
|
||||
lang:"es-ES"},{name:"Microsoft Sabina Desktop - Spanish (Mexico)",lang:"es-MX"},{name:"Microsoft Julie Desktop - French (France)",lang:"fr-FR"},{name:"Microsoft Paulina Desktop - Polish (Poland)",lang:"pl-PL"},{name:"Microsoft Huihui Desktop - Chinese (Simplified, PRC)",lang:"zh-CN"},{name:"Microsoft Yaoyao Desktop - Chinese (Simplified, PRC)",lang:"zh-CN"},{name:"Microsoft Tracy Desktop - Chinese (Traditional, Hong Kong S.A.R.)",lang:"zh-CN"},{name:"Microsoft Elsa Desktop - Italian (Italy)",lang:"it-IT"},
|
||||
{name:"Microsoft Maria Desktop - Portuguese (Brazil)",lang:"pt-BR"},{name:"Microsoft Ayumi Desktop - Japanese (Japan)",lang:"ja-JP"},{name:"Microsoft Haruka Desktop - Japanese (Japan)",lang:"ja-JP"},{name:"Microsoft Hortense Desktop - French (France)",lang:"fr-FR"},{name:"Microsoft Hanhan Desktop - Chinese (Traditional, Taiwan)",lang:"zh-TW"},{name:"Microsoft Heami Desktop - Korean (Korean)",lang:"ko-KR"},{name:"Microsoft Stefan Desktop - German (Germany)",lang:"de-DE"},{name:"Microsoft Ravi Desktop - English (India)",
|
||||
lang:"en-IN"},{name:"Microsoft Pablo Desktop - Spanish (Spain)",lang:"es-ES"},{name:"Microsoft Raul Desktop - Spanish (Mexico)",lang:"es-MX"},{name:"Microsoft Paul Desktop - French (France)",lang:"fr-FR"},{name:"Microsoft Cosimo Desktop - Italian (Italy)",lang:"it-IT"},{name:"Microsoft Ichiro Desktop - Japanese (Japan)",lang:"ja-JP"},{name:"Microsoft Adam Desktop - Polish (Poland)",lang:"pl-PL"},{name:"Microsoft Daniel Desktop - Portuguese (Brazil)",lang:"pt-BR"},{name:"Microsoft Pavel Desktop - Russian (Russia)",
|
||||
lang:"ru-RU"},{name:"Microsoft Kangkang Desktop - Chinese (Simplified, PRC)",lang:"zh-CN"},{name:"Microsoft Danny Desktop - Chinese (Traditional, Hong Kong S.A.R.)",lang:"zh-HK"},{name:"Microsoft Yating Desktop - Chinese (Traditional, Taiwan)",lang:"zh-TW"},{name:"Microsoft Zhiwei Desktop - Chinese (Traditional, Taiwan)",lang:"zh-TW"},{name:"Martin",lang:"de-DE"},{name:"Daniel",lang:"fr-FR"},{name:"Hattori",lang:"ja-JP"},{name:"Li-mu",lang:"zh-CN"},{name:"Gordon",lang:"en-AU"},{name:"Aaron",lang:"en-US"},
|
||||
{name:"Nicky",lang:"en-US"},{name:"Microsoft Hanhan Desktop - Chinese (Taiwan)",lang:"zh-TW"},{name:"Microsoft Heami Desktop - Korean",lang:"ko-KR"},{name:"Fallback Australian Male",lang:"en-AU",fallbackvoice:!0,service:"g3",gender:"male"},{name:"Fallback Russian Male",lang:"ru",fallbackvoice:!0,service:"g3",gender:"male",deprecated:!0},{name:"Fallback Arabic Male",lang:"ar",fallbackvoice:!0,service:"g3",gender:"male"},{name:"Fallback Chinese",lang:"zh-CN",fallbackvoice:!0,service:"g3",gender:"male"},
|
||||
{name:"Fallback Chinese HK",lang:"zh-HK",fallbackvoice:!0,service:"g3",gender:"male"},{name:"Fallback Chinese TW",lang:"zh-TW",fallbackvoice:!0,service:"g3",gender:"male"},{name:"Fallback French Male",lang:"fr",fallbackvoice:!0,service:"g3",gender:"male"},{name:"Fallback Deutsch Male",lang:"de",fallbackvoice:!0,service:"g3",gender:"male"},{name:"Fallback Hindi Male",lang:"hi",fallbackvoice:!0,service:"g3",gender:"male"},{name:"Fallback Indonesian Male",lang:"id",fallbackvoice:!0,service:"g3",gender:"male"},
|
||||
{name:"Fallback Japanese Male",lang:"ja",fallbackvoice:!0,service:"g3",gender:"male"},{name:"Fallback Korean Male",lang:"ko",fallbackvoice:!0,service:"g3",gender:"male"},{name:"Fallback Polish Male",lang:"pl",fallbackvoice:!0,service:"g1",gender:"male"},{name:"Fallback Brazilian Portuguese Male",lang:"pt-BR",fallbackvoice:!0,service:"g3",gender:"male",deprecated:!0},{name:"Fallback Portuguese Male",lang:"pt-PT",fallbackvoice:!0,service:"g1",gender:"male"},{name:"Fallback Spanish Male",lang:"es",fallbackvoice:!0,
|
||||
service:"g3",gender:"male",deprecated:!0},{name:"Fallback Spanish (Latin American) Male",lang:"es-419",fallbackvoice:!0,service:"g3",gender:"male"},{name:"Fallback Thai Male",lang:"th",fallbackvoice:!0,service:"g3",gender:"male"},{name:"Fallback Turkish Male",lang:"tr",fallbackvoice:!0,service:"g3",gender:"male"},{name:"Fallback Vietnamese Female",lang:"vi",fallbackvoice:!0,service:"g1",gender:"female"},{name:"Fallback Italian Male",lang:"it",fallbackvoice:!0,service:"g3",gender:"male"},{name:"Fallback Dutch Male",
|
||||
lang:"nl",fallbackvoice:!0,timerSpeed:0,service:"g3",gender:"male"},{name:"Microsoft Anna - English (United States)",lang:"en-US",gender:"female"},{name:"Microsoft Lili - Chinese (China)",lang:"zh-CN",gender:"female"},{name:"Bangla Bangladesh",lang:"bn_BD",gender:"male"},{name:"Bangla India",lang:"bn_IN",gender:"male"},{name:"Czech Czechia",lang:"cs_CZ",gender:"female"},{name:"Danish Denmark",lang:"da_DK",gender:"female"},{name:"Greek Greece",lang:"el_GR",gender:"female"},{name:"English Australia",
|
||||
lang:"en_AU",gender:"female"},{name:"Estonian Estonia",lang:"et_EE",gender:"male"},{name:"Finnish Finland",lang:"fi_FI",gender:"female"},{name:"Filipino Philippines",lang:"fil_PH",gender:"female"},{name:"French Canada",lang:"fr_CAF",gender:"female"},{name:"Hungarian Hungary",lang:"hu_HU",gender:"female"},{name:"Khmer Cambodia",lang:"km_KH",gender:"female"},{name:"Norwegian Bokm\u00e5l Norway",lang:"nb_NO",gender:"female"},{name:"Nepali Nepal",lang:"ne_NP",gender:"female"},{name:"Romanian Romania",
|
||||
lang:"ro_RO",gender:"female"},{name:"Sinhala Sri Lanka",lang:"si_LK",gender:"female"},{name:"Slovak Slovakia",lang:"sk_SK",gender:"female"},{name:"Swedish Sweden",lang:"sv_SE",gender:"female"},{name:"Ukrainian Ukraine",lang:"uk_UA",gender:"female"},{name:"Vietnamese Vietnam",lang:"vi_VN",gender:"female"},{name:"Cantonese Hong Kong",lang:"yue_HK_#Hant",gender:"female"},{name:"Microsoft Server Speech Text to Speech Voice (en-US, Guy24kRUS)",lang:"en-US",gender:"male"},{name:"Microsoft Server Speech Text to Speech Voice (en-US, Jessa24kRUS)",
|
||||
lang:"en-US",gender:"female"},{name:"Microsoft Server Speech Text to Speech Voice (en-US, JessaRUS)",lang:"en-US",gender:"female"},{name:"Microsoft Server Speech Text to Speech Voice (en-US, ZiraRUS)",lang:"en-US",gender:"female"},{name:"Fallback Bangla Bangladeh Female",lang:"bn-BD",fallbackvoice:!0,timerSpeed:0,service:"g3",gender:"female"},{name:"Fallback Bangla Bangladeh Male",lang:"bn-BD",fallbackvoice:!0,timerSpeed:0,service:"g3",gender:"male"},{name:"Fallback Filipino Female",lang:"fil-PH",
|
||||
fallbackvoice:!0,timerSpeed:0,service:"g3",gender:"female"},{name:"Fallback Filipino Male",lang:"fil-PH",fallbackvoice:!0,timerSpeed:0,service:"g3",gender:"male"},{name:"Fallback Cambodian Khmer Female",lang:"km-KH",fallbackvoice:!0,timerSpeed:0,service:"g3",gender:"female"},{name:"Fallback Cambodian Khmer Male",lang:"km-KH",fallbackvoice:!0,timerSpeed:0,service:"g3",gender:"male"},{name:"Fallback Nepali Female",lang:"ne-NP",fallbackvoice:!0,timerSpeed:0,service:"g3",gender:"female"},{name:"Fallback Sinhala Female",
|
||||
lang:"si-LK",fallbackvoice:!0,timerSpeed:0,service:"g3",gender:"female"},{name:"Fallback Ukrainian Female",lang:"uk-UA",fallbackvoice:!0,timerSpeed:0,service:"g3",gender:"female"},{name:"Fallback Cantonese Hong Kong Female",lang:"yue-HK",fallbackvoice:!0,timerSpeed:0,service:"g3",gender:"female"},{name:"Fallback Cantonese Hong Kong Male",lang:"yue-HK",fallbackvoice:!0,timerSpeed:0,service:"g3",gender:"male"},{name:"Fallback Estonian Male",lang:"et-EE",fallbackvoice:!0,timerSpeed:0,service:"g3",gender:"male"},
|
||||
{name:"Fallback Bangla India Female",lang:"bn-IN",fallbackvoice:!0,timerSpeed:0,service:"g3",gender:"female"},{name:"Fallback Bangla India Male",lang:"bn-IN",fallbackvoice:!0,timerSpeed:0,service:"g3",gender:"male"},{name:"Fallback French Canadian Female",lang:"fr-CA",fallbackvoice:!0,timerSpeed:0,service:"g3",gender:"female"},{name:"Fallback French Canadian Male",lang:"fr-CA",fallbackvoice:!0,timerSpeed:0,service:"g3",gender:"male"},{name:"Fallback Tamil",lang:"ta",fallbackvoice:!0,service:"g1",
|
||||
gender:"female"}];a.iOS=/(iPad|iPhone|iPod)/g.test(navigator.userAgent);a.iOS9=/(iphone|ipod|ipad).* os 9_/.test(navigator.userAgent.toLowerCase());a.iOS10=/(iphone|ipod|ipad).* os 10_/.test(navigator.userAgent.toLowerCase());a.iOS11=/(iphone|ipod|ipad).* os 11_/.test(navigator.userAgent.toLowerCase());a.iOS9plus=/(iphone|ipod|ipad).* os 10_/.test(navigator.userAgent.toLowerCase())||/(iphone|ipod|ipad).* os 10_/.test(navigator.userAgent.toLowerCase());a.iOS12_0=/(iphone|ipod|ipad).* os 12_0/.test(navigator.userAgent.toLowerCase());
|
||||
a.iOS12=/(iphone|ipod|ipad).* os 12_/.test(navigator.userAgent.toLowerCase());a.iOS13_0=/(iphone|ipod|ipad).* os 13_0/.test(navigator.userAgent.toLowerCase());a.iOS13=/(iphone|ipod|ipad).* os 13/.test(navigator.userAgent.toLowerCase());a.is_chrome=-1<navigator.userAgent.indexOf("Chrome");a.is_safari=-1<navigator.userAgent.indexOf("Safari");a.is_chrome&&a.is_safari&&(a.is_safari=!1);a.is_opera=!!window.opera||0<=navigator.userAgent.indexOf(" OPR/");a.is_android=-1<navigator.userAgent.toLowerCase().indexOf("android");
|
||||
a.iOS_initialized=!1;a.iOS9_initialized=!1;a.iOS10_initialized=!1;a.iOS11_initialized=!1;a.cache_ios_voices=[{name:"he-IL",voiceURI:"he-IL",lang:"he-IL"},{name:"th-TH",voiceURI:"th-TH",lang:"th-TH"},{name:"pt-BR",voiceURI:"pt-BR",lang:"pt-BR"},{name:"sk-SK",voiceURI:"sk-SK",lang:"sk-SK"},{name:"fr-CA",voiceURI:"fr-CA",lang:"fr-CA"},{name:"ro-RO",voiceURI:"ro-RO",lang:"ro-RO"},{name:"no-NO",voiceURI:"no-NO",lang:"no-NO"},{name:"fi-FI",voiceURI:"fi-FI",lang:"fi-FI"},{name:"pl-PL",voiceURI:"pl-PL",lang:"pl-PL"},
|
||||
{name:"de-DE",voiceURI:"de-DE",lang:"de-DE"},{name:"nl-NL",voiceURI:"nl-NL",lang:"nl-NL"},{name:"id-ID",voiceURI:"id-ID",lang:"id-ID"},{name:"tr-TR",voiceURI:"tr-TR",lang:"tr-TR"},{name:"it-IT",voiceURI:"it-IT",lang:"it-IT"},{name:"pt-PT",voiceURI:"pt-PT",lang:"pt-PT"},{name:"fr-FR",voiceURI:"fr-FR",lang:"fr-FR"},{name:"ru-RU",voiceURI:"ru-RU",lang:"ru-RU"},{name:"es-MX",voiceURI:"es-MX",lang:"es-MX"},{name:"zh-HK",voiceURI:"zh-HK",lang:"zh-HK"},{name:"sv-SE",voiceURI:"sv-SE",lang:"sv-SE"},{name:"hu-HU",
|
||||
voiceURI:"hu-HU",lang:"hu-HU"},{name:"zh-TW",voiceURI:"zh-TW",lang:"zh-TW"},{name:"es-ES",voiceURI:"es-ES",lang:"es-ES"},{name:"zh-CN",voiceURI:"zh-CN",lang:"zh-CN"},{name:"nl-BE",voiceURI:"nl-BE",lang:"nl-BE"},{name:"en-GB",voiceURI:"en-GB",lang:"en-GB"},{name:"ar-SA",voiceURI:"ar-SA",lang:"ar-SA"},{name:"ko-KR",voiceURI:"ko-KR",lang:"ko-KR"},{name:"cs-CZ",voiceURI:"cs-CZ",lang:"cs-CZ"},{name:"en-ZA",voiceURI:"en-ZA",lang:"en-ZA"},{name:"en-AU",voiceURI:"en-AU",lang:"en-AU"},{name:"da-DK",voiceURI:"da-DK",
|
||||
lang:"da-DK"},{name:"en-US",voiceURI:"en-US",lang:"en-US"},{name:"en-IE",voiceURI:"en-IE",lang:"en-IE"},{name:"hi-IN",voiceURI:"hi-IN",lang:"hi-IN"},{name:"el-GR",voiceURI:"el-GR",lang:"el-GR"},{name:"ja-JP",voiceURI:"ja-JP",lang:"ja-JP"}];a.cache_ios9_voices=[{name:"Maged",voiceURI:"com.apple.ttsbundle.Maged-compact",lang:"ar-SA",localService:!0,"default":!0},{name:"Zuzana",voiceURI:"com.apple.ttsbundle.Zuzana-compact",lang:"cs-CZ",localService:!0,"default":!0},{name:"Sara",voiceURI:"com.apple.ttsbundle.Sara-compact",
|
||||
lang:"da-DK",localService:!0,"default":!0},{name:"Anna",voiceURI:"com.apple.ttsbundle.Anna-compact",lang:"de-DE",localService:!0,"default":!0},{name:"Melina",voiceURI:"com.apple.ttsbundle.Melina-compact",lang:"el-GR",localService:!0,"default":!0},{name:"Karen",voiceURI:"com.apple.ttsbundle.Karen-compact",lang:"en-AU",localService:!0,"default":!0},{name:"Daniel",voiceURI:"com.apple.ttsbundle.Daniel-compact",lang:"en-GB",localService:!0,"default":!0},{name:"Moira",voiceURI:"com.apple.ttsbundle.Moira-compact",
|
||||
lang:"en-IE",localService:!0,"default":!0},{name:"Samantha (Enhanced)",voiceURI:"com.apple.ttsbundle.Samantha-premium",lang:"en-US",localService:!0,"default":!0},{name:"Samantha",voiceURI:"com.apple.ttsbundle.Samantha-compact",lang:"en-US",localService:!0,"default":!0},{name:"Tessa",voiceURI:"com.apple.ttsbundle.Tessa-compact",lang:"en-ZA",localService:!0,"default":!0},{name:"Monica",voiceURI:"com.apple.ttsbundle.Monica-compact",lang:"es-ES",localService:!0,"default":!0},{name:"Paulina",voiceURI:"com.apple.ttsbundle.Paulina-compact",
|
||||
lang:"es-MX",localService:!0,"default":!0},{name:"Satu",voiceURI:"com.apple.ttsbundle.Satu-compact",lang:"fi-FI",localService:!0,"default":!0},{name:"Amelie",voiceURI:"com.apple.ttsbundle.Amelie-compact",lang:"fr-CA",localService:!0,"default":!0},{name:"Thomas",voiceURI:"com.apple.ttsbundle.Thomas-compact",lang:"fr-FR",localService:!0,"default":!0},{name:"Carmit",voiceURI:"com.apple.ttsbundle.Carmit-compact",lang:"he-IL",localService:!0,"default":!0},{name:"Lekha",voiceURI:"com.apple.ttsbundle.Lekha-compact",
|
||||
lang:"hi-IN",localService:!0,"default":!0},{name:"Mariska",voiceURI:"com.apple.ttsbundle.Mariska-compact",lang:"hu-HU",localService:!0,"default":!0},{name:"Damayanti",voiceURI:"com.apple.ttsbundle.Damayanti-compact",lang:"id-ID",localService:!0,"default":!0},{name:"Alice",voiceURI:"com.apple.ttsbundle.Alice-compact",lang:"it-IT",localService:!0,"default":!0},{name:"Kyoko",voiceURI:"com.apple.ttsbundle.Kyoko-compact",lang:"ja-JP",localService:!0,"default":!0},{name:"Yuna",voiceURI:"com.apple.ttsbundle.Yuna-compact",
|
||||
lang:"ko-KR",localService:!0,"default":!0},{name:"Ellen",voiceURI:"com.apple.ttsbundle.Ellen-compact",lang:"nl-BE",localService:!0,"default":!0},{name:"Xander",voiceURI:"com.apple.ttsbundle.Xander-compact",lang:"nl-NL",localService:!0,"default":!0},{name:"Nora",voiceURI:"com.apple.ttsbundle.Nora-compact",lang:"no-NO",localService:!0,"default":!0},{name:"Zosia",voiceURI:"com.apple.ttsbundle.Zosia-compact",lang:"pl-PL",localService:!0,"default":!0},{name:"Luciana",voiceURI:"com.apple.ttsbundle.Luciana-compact",
|
||||
lang:"pt-BR",localService:!0,"default":!0},{name:"Joana",voiceURI:"com.apple.ttsbundle.Joana-compact",lang:"pt-PT",localService:!0,"default":!0},{name:"Ioana",voiceURI:"com.apple.ttsbundle.Ioana-compact",lang:"ro-RO",localService:!0,"default":!0},{name:"Milena",voiceURI:"com.apple.ttsbundle.Milena-compact",lang:"ru-RU",localService:!0,"default":!0},{name:"Laura",voiceURI:"com.apple.ttsbundle.Laura-compact",lang:"sk-SK",localService:!0,"default":!0},{name:"Alva",voiceURI:"com.apple.ttsbundle.Alva-compact",
|
||||
lang:"sv-SE",localService:!0,"default":!0},{name:"Kanya",voiceURI:"com.apple.ttsbundle.Kanya-compact",lang:"th-TH",localService:!0,"default":!0},{name:"Yelda",voiceURI:"com.apple.ttsbundle.Yelda-compact",lang:"tr-TR",localService:!0,"default":!0},{name:"Ting-Ting",voiceURI:"com.apple.ttsbundle.Ting-Ting-compact",lang:"zh-CN",localService:!0,"default":!0},{name:"Sin-Ji",voiceURI:"com.apple.ttsbundle.Sin-Ji-compact",lang:"zh-HK",localService:!0,"default":!0},{name:"Mei-Jia",voiceURI:"com.apple.ttsbundle.Mei-Jia-compact",
|
||||
lang:"zh-TW",localService:!0,"default":!0}];a.cache_ios10_voices=[{name:"Maged",voiceURI:"com.apple.ttsbundle.Maged-compact",lang:"ar-SA"},{name:"Zuzana",voiceURI:"com.apple.ttsbundle.Zuzana-compact",lang:"cs-CZ"},{name:"Sara",voiceURI:"com.apple.ttsbundle.Sara-compact",lang:"da-DK"},{name:"Anna",voiceURI:"com.apple.ttsbundle.Anna-compact",lang:"de-DE"},{name:"Helena",voiceURI:"com.apple.ttsbundle.siri_female_de-DE_compact",lang:"de-DE"},{name:"Martin",voiceURI:"com.apple.ttsbundle.siri_male_de-DE_compact",
|
||||
lang:"de-DE"},{name:"Nikos (Enhanced)",voiceURI:"com.apple.ttsbundle.Nikos-premium",lang:"el-GR"},{name:"Melina",voiceURI:"com.apple.ttsbundle.Melina-compact",lang:"el-GR"},{name:"Nikos",voiceURI:"com.apple.ttsbundle.Nikos-compact",lang:"el-GR"},{name:"Catherine",voiceURI:"com.apple.ttsbundle.siri_female_en-AU_compact",lang:"en-AU"},{name:"Gordon",voiceURI:"com.apple.ttsbundle.siri_male_en-AU_compact",lang:"en-AU"},{name:"Karen",voiceURI:"com.apple.ttsbundle.Karen-compact",lang:"en-AU"},{name:"Daniel (Enhanced)",
|
||||
voiceURI:"com.apple.ttsbundle.Daniel-premium",lang:"en-GB"},{name:"Arthur",voiceURI:"com.apple.ttsbundle.siri_male_en-GB_compact",lang:"en-GB"},{name:"Daniel",voiceURI:"com.apple.ttsbundle.Daniel-compact",lang:"en-GB"},{name:"Martha",voiceURI:"com.apple.ttsbundle.siri_female_en-GB_compact",lang:"en-GB"},{name:"Moira",voiceURI:"com.apple.ttsbundle.Moira-compact",lang:"en-IE"},{name:"Nicky (Enhanced)",voiceURI:"com.apple.ttsbundle.siri_female_en-US_premium",lang:"en-US"},{name:"Samantha (Enhanced)",
|
||||
voiceURI:"com.apple.ttsbundle.Samantha-premium",lang:"en-US"},{name:"Aaron",voiceURI:"com.apple.ttsbundle.siri_male_en-US_compact",lang:"en-US"},{name:"Fred",voiceURI:"com.apple.speech.synthesis.voice.Fred",lang:"en-US"},{name:"Nicky",voiceURI:"com.apple.ttsbundle.siri_female_en-US_compact",lang:"en-US"},{name:"Samantha",voiceURI:"com.apple.ttsbundle.Samantha-compact",lang:"en-US"},{name:"Tessa",voiceURI:"com.apple.ttsbundle.Tessa-compact",lang:"en-ZA"},{name:"Monica",voiceURI:"com.apple.ttsbundle.Monica-compact",
|
||||
lang:"es-ES"},{name:"Paulina",voiceURI:"com.apple.ttsbundle.Paulina-compact",lang:"es-MX"},{name:"Satu",voiceURI:"com.apple.ttsbundle.Satu-compact",lang:"fi-FI"},{name:"Amelie",voiceURI:"com.apple.ttsbundle.Amelie-compact",lang:"fr-CA"},{name:"Daniel",voiceURI:"com.apple.ttsbundle.siri_male_fr-FR_compact",lang:"fr-FR"},{name:"Marie",voiceURI:"com.apple.ttsbundle.siri_female_fr-FR_compact",lang:"fr-FR"},{name:"Thomas",voiceURI:"com.apple.ttsbundle.Thomas-compact",lang:"fr-FR"},{name:"Carmit",voiceURI:"com.apple.ttsbundle.Carmit-compact",
|
||||
lang:"he-IL"},{name:"Lekha",voiceURI:"com.apple.ttsbundle.Lekha-compact",lang:"hi-IN"},{name:"Mariska",voiceURI:"com.apple.ttsbundle.Mariska-compact",lang:"hu-HU"},{name:"Damayanti",voiceURI:"com.apple.ttsbundle.Damayanti-compact",lang:"id-ID"},{name:"Alice",voiceURI:"com.apple.ttsbundle.Alice-compact",lang:"it-IT"},{name:"Hattori",voiceURI:"com.apple.ttsbundle.siri_male_ja-JP_compact",lang:"ja-JP"},{name:"Kyoko",voiceURI:"com.apple.ttsbundle.Kyoko-compact",lang:"ja-JP"},{name:"O-ren",voiceURI:"com.apple.ttsbundle.siri_female_ja-JP_compact",
|
||||
lang:"ja-JP"},{name:"Yuna",voiceURI:"com.apple.ttsbundle.Yuna-compact",lang:"ko-KR"},{name:"Ellen",voiceURI:"com.apple.ttsbundle.Ellen-compact",lang:"nl-BE"},{name:"Xander",voiceURI:"com.apple.ttsbundle.Xander-compact",lang:"nl-NL"},{name:"Nora",voiceURI:"com.apple.ttsbundle.Nora-compact",lang:"no-NO"},{name:"Zosia",voiceURI:"com.apple.ttsbundle.Zosia-compact",lang:"pl-PL"},{name:"Luciana",voiceURI:"com.apple.ttsbundle.Luciana-compact",lang:"pt-BR"},{name:"Joana",voiceURI:"com.apple.ttsbundle.Joana-compact",
|
||||
lang:"pt-PT"},{name:"Ioana",voiceURI:"com.apple.ttsbundle.Ioana-compact",lang:"ro-RO"},{name:"Milena",voiceURI:"com.apple.ttsbundle.Milena-compact",lang:"ru-RU"},{name:"Laura",voiceURI:"com.apple.ttsbundle.Laura-compact",lang:"sk-SK"},{name:"Alva",voiceURI:"com.apple.ttsbundle.Alva-compact",lang:"sv-SE"},{name:"Kanya",voiceURI:"com.apple.ttsbundle.Kanya-compact",lang:"th-TH"},{name:"Yelda",voiceURI:"com.apple.ttsbundle.Yelda-compact",lang:"tr-TR"},{name:"Li-mu",voiceURI:"com.apple.ttsbundle.siri_male_zh-CN_compact",
|
||||
lang:"zh-CN"},{name:"Ting-Ting",voiceURI:"com.apple.ttsbundle.Ting-Ting-compact",lang:"zh-CN"},{name:"Yu-shu",voiceURI:"com.apple.ttsbundle.siri_female_zh-CN_compact",lang:"zh-CN"},{name:"Sin-Ji",voiceURI:"com.apple.ttsbundle.Sin-Ji-compact",lang:"zh-HK"},{name:"Mei-Jia",voiceURI:"com.apple.ttsbundle.Mei-Jia-compact",lang:"zh-TW"}];a.cache_ios11_voices=[{name:"Maged",voiceURI:"com.apple.ttsbundle.Maged-compact",lang:"ar-SA"},{name:"Zuzana",voiceURI:"com.apple.ttsbundle.Zuzana-compact",lang:"cs-CZ"},
|
||||
{name:"Sara",voiceURI:"com.apple.ttsbundle.Sara-compact",lang:"da-DK"},{name:"Anna",voiceURI:"com.apple.ttsbundle.Anna-compact",lang:"de-DE"},{name:"Helena",voiceURI:"com.apple.ttsbundle.siri_female_de-DE_compact",lang:"de-DE"},{name:"Martin",voiceURI:"com.apple.ttsbundle.siri_male_de-DE_compact",lang:"de-DE"},{name:"Melina",voiceURI:"com.apple.ttsbundle.Melina-compact",lang:"el-GR"},{name:"Catherine",voiceURI:"com.apple.ttsbundle.siri_female_en-AU_compact",lang:"en-AU"},{name:"Gordon",voiceURI:"com.apple.ttsbundle.siri_male_en-AU_compact",
|
||||
lang:"en-AU"},{name:"Karen",voiceURI:"com.apple.ttsbundle.Karen-compact",lang:"en-AU"},{name:"Arthur",voiceURI:"com.apple.ttsbundle.siri_male_en-GB_compact",lang:"en-GB"},{name:"Daniel",voiceURI:"com.apple.ttsbundle.Daniel-compact",lang:"en-GB"},{name:"Martha",voiceURI:"com.apple.ttsbundle.siri_female_en-GB_compact",lang:"en-GB"},{name:"Moira",voiceURI:"com.apple.ttsbundle.Moira-compact",lang:"en-IE"},{name:"Aaron",voiceURI:"com.apple.ttsbundle.siri_male_en-US_compact",lang:"en-US"},{name:"Fred",
|
||||
voiceURI:"com.apple.speech.synthesis.voice.Fred",lang:"en-US"},{name:"Nicky",voiceURI:"com.apple.ttsbundle.siri_female_en-US_compact",lang:"en-US"},{name:"Samantha",voiceURI:"com.apple.ttsbundle.Samantha-compact",lang:"en-US"},{name:"Tessa",voiceURI:"com.apple.ttsbundle.Tessa-compact",lang:"en-ZA"},{name:"Monica",voiceURI:"com.apple.ttsbundle.Monica-compact",lang:"es-ES"},{name:"Paulina",voiceURI:"com.apple.ttsbundle.Paulina-compact",lang:"es-MX"},{name:"Satu",voiceURI:"com.apple.ttsbundle.Satu-compact",
|
||||
lang:"fi-FI"},{name:"Amelie",voiceURI:"com.apple.ttsbundle.Amelie-compact",lang:"fr-CA"},{name:"Daniel",voiceURI:"com.apple.ttsbundle.siri_male_fr-FR_compact",lang:"fr-FR"},{name:"Marie",voiceURI:"com.apple.ttsbundle.siri_female_fr-FR_compact",lang:"fr-FR"},{name:"Thomas",voiceURI:"com.apple.ttsbundle.Thomas-compact",lang:"fr-FR"},{name:"Carmit",voiceURI:"com.apple.ttsbundle.Carmit-compact",lang:"he-IL"},{name:"Lekha",voiceURI:"com.apple.ttsbundle.Lekha-compact",lang:"hi-IN"},{name:"Mariska",voiceURI:"com.apple.ttsbundle.Mariska-compact",
|
||||
lang:"hu-HU"},{name:"Damayanti",voiceURI:"com.apple.ttsbundle.Damayanti-compact",lang:"id-ID"},{name:"Alice",voiceURI:"com.apple.ttsbundle.Alice-compact",lang:"it-IT"},{name:"Hattori",voiceURI:"com.apple.ttsbundle.siri_male_ja-JP_compact",lang:"ja-JP"},{name:"Kyoko",voiceURI:"com.apple.ttsbundle.Kyoko-compact",lang:"ja-JP"},{name:"O-ren",voiceURI:"com.apple.ttsbundle.siri_female_ja-JP_compact",lang:"ja-JP"},{name:"Yuna",voiceURI:"com.apple.ttsbundle.Yuna-compact",lang:"ko-KR"},{name:"Ellen",voiceURI:"com.apple.ttsbundle.Ellen-compact",
|
||||
lang:"nl-BE"},{name:"Xander",voiceURI:"com.apple.ttsbundle.Xander-compact",lang:"nl-NL"},{name:"Nora",voiceURI:"com.apple.ttsbundle.Nora-compact",lang:"no-NO"},{name:"Zosia",voiceURI:"com.apple.ttsbundle.Zosia-compact",lang:"pl-PL"},{name:"Luciana",voiceURI:"com.apple.ttsbundle.Luciana-compact",lang:"pt-BR"},{name:"Joana",voiceURI:"com.apple.ttsbundle.Joana-compact",lang:"pt-PT"},{name:"Ioana",voiceURI:"com.apple.ttsbundle.Ioana-compact",lang:"ro-RO"},{name:"Milena",voiceURI:"com.apple.ttsbundle.Milena-compact",
|
||||
lang:"ru-RU"},{name:"Laura",voiceURI:"com.apple.ttsbundle.Laura-compact",lang:"sk-SK"},{name:"Alva",voiceURI:"com.apple.ttsbundle.Alva-compact",lang:"sv-SE"},{name:"Kanya",voiceURI:"com.apple.ttsbundle.Kanya-compact",lang:"th-TH"},{name:"Yelda",voiceURI:"com.apple.ttsbundle.Yelda-compact",lang:"tr-TR"},{name:"Li-mu",voiceURI:"com.apple.ttsbundle.siri_male_zh-CN_compact",lang:"zh-CN"},{name:"Ting-Ting",voiceURI:"com.apple.ttsbundle.Ting-Ting-compact",lang:"zh-CN"},{name:"Yu-shu",voiceURI:"com.apple.ttsbundle.siri_female_zh-CN_compact",
|
||||
lang:"zh-CN"},{name:"Sin-Ji",voiceURI:"com.apple.ttsbundle.Sin-Ji-compact",lang:"zh-HK"},{name:"Mei-Jia",voiceURI:"com.apple.ttsbundle.Mei-Jia-compact",lang:"zh-TW"}];a.systemvoices=null;a.CHARACTER_LIMIT=100;a.VOICESUPPORT_ATTEMPTLIMIT=5;a.voicesupport_attempts=0;a.fallbackMode=!1;a.WORDS_PER_MINUTE=130;a.fallback_audio=null;a.fallback_playbackrate=1;a.def_fallback_playbackrate=a.fallback_playbackrate;a.fallback_audiopool=[];a.msgparameters=null;a.timeoutId=null;a.OnLoad_callbacks=[];a.useTimer=
|
||||
!1;a.utterances=[];a.userInteractionEvents=["mousedown","mouseup","mousewheel","keydown"];a.fallbackBufferLength=5;a.iOS&&(a.fallbackBufferLength=2);var q=null,z=1;a.tstCompiled=function(){return!/param/.test(function(b){})};a.fallbackServicePath="undefined"!=typeof rvApiEndpoint&&rvApiEndpoint?rvApiEndpoint:"https://code.responsivevoice.org/"+(a.tstCompiled()?"":"develop/")+"getvoice.php";a.default_rv=a.responsivevoices[0];a.debug=!1;a.rvsMapped=!1;a.forcedFallbackMode=!1;a.speechAllowedByUser=!0;
|
||||
a.enableEstimationTimeout=!0;a.analytics={characterCount:0};a.log=function(b){a.debug&&console.log(b)};a.init=function(){a.is_wordpress=C();a.is_bundle=p();"undefined"==typeof rvApiKey&&console.error("ResponsiveVoice missing API key. See https://responsivevoice.org/register?devtools="+encodeURIComponent(window.location.href));if(a.is_android||a.iOS||a.is_safari)a.useTimer=!0;a.is_opera||"undefined"===typeof speechSynthesis?(console.log("RV: Voice synthesis not supported"),a.enableFallbackMode()):
|
||||
setTimeout(function(){var b=setInterval(function(){var c=window.speechSynthesis.getVoices();0!=c.length||null!=a.systemvoices&&0!=a.systemvoices.length?(console.log("RV: Voice support ready"),a.systemVoicesReady(c),clearInterval(b)):(console.log("Voice support NOT ready"),a.voicesupport_attempts++,a.voicesupport_attempts>a.VOICESUPPORT_ATTEMPTLIMIT&&(clearInterval(b),null!=window.speechSynthesis?a.iOS?(a.iOS11||a.iOS12||a.iOS13_0||a.iOS13?a.systemVoicesReady(a.cache_ios11_voices):a.iOS10?a.systemVoicesReady(a.cache_ios10_voices):
|
||||
a.iOS9?a.systemVoicesReady(a.cache_ios9_voices):a.systemVoicesReady(a.cache_ios_voices),console.log("RV: Voice support ready (cached)")):(console.log("RV: speechSynthesis present but no system voices found"),a.enableFallbackMode()):a.enableFallbackMode()))},100)},100);(a.iOS||a.is_android||a.is_safari)&&a.enableWindowClickHook();a.Dispatch("OnLoad")};a.systemVoicesReady=function(b){a.systemvoices=b;a.mapRVs();null!=a.OnVoiceReady&&a.OnVoiceReady.call();a.Dispatch("OnReady");window.hasOwnProperty("dispatchEvent")&&
|
||||
window.dispatchEvent(new Event("ResponsiveVoice_OnReady"))};a.enableFallbackMode=function(){a.fallbackMode=!0;a.forcedFallbackMode=!0;console.log("RV: Enabling fallback mode");a.mapRVs();null!=a.OnVoiceReady&&a.OnVoiceReady.call();a.Dispatch("OnReady");window.hasOwnProperty("dispatchEvent")&&window.dispatchEvent(new Event("ResponsiveVoice_OnReady"));a.Dispatch("OnServiceSwitched")};a.getVoices=function(){for(var b=[],c=0;c<a.responsivevoices.length;c++){var d=a.responsivevoices[c];!0!==d.deprecated&&
|
||||
b.push({name:d.name})}return b};a.speak=function(b,c,d){if(null==b)a.log("No text provided");else if(a.initializePermissionsTimeout&&clearTimeout(a.initializePermissionsTimeout),a.rvsMapped){var h=null;if(a.isPlaying())a.log("Cancelling previous speech"),a.cancel(),setTimeout(function(){a.speak(b,c,d)},50);else{function F(x){-1!=x.search(/[\u3002]/gm)?x.split(/[\u3002]/).filter(function(r){r&&k.push(r)}):k.push(x)}if(null==c){var e=a.default_rv;a.setDefaultVoice(e.name)}else e=a.getResponsiveVoice(c);
|
||||
if(e){!0===e.deprecated&&console.warn('ResponsiveVoice: Voice "'+e.name+'" is deprecated; it might not always be the right gender, and could be removed in future releases');var g={};if(null!=e.mappedProfile)g=e.mappedProfile;else if(g.systemvoice=a.getMatchedVoice(e),g.collectionvoice={},null==g.systemvoice){console.log("RV: ERROR: No voice found for: "+c);return}b=y(b,g);b=b.replace(/["`]/gm,"'");a.msgparameters=d||{};a.msgtext=b;a.msgvoicename=c;a.onstartFired=!1;var k=[];if(b.length>a.CHARACTER_LIMIT){for(var f=
|
||||
b=w(b);f.length>a.CHARACTER_LIMIT;){e=f.search(/([\u3002:!\u00a1?\u00bf;\(\)\[\]\u2014\u00ab\u00bb\n]+|\.[^0-9]+)/);var l="";if(-1==e||e>=a.CHARACTER_LIMIT)e=f.search(/,[^0-9]+/);if((-1==e||e>=a.CHARACTER_LIMIT)&&-1!=f.search(" ")){var u=f.split(" ");for(e=0;e<u.length;e++){if(l.length+u[e].length+1>a.CHARACTER_LIMIT){u[e].length>=a.CHARACTER_LIMIT&&(l+=u[e].substr(0,a.CHARACTER_LIMIT-l.length-1));break}l+=(0!=e?" ":"")+u[e]}}else{if(-1==e||e>=a.CHARACTER_LIMIT)e=a.CHARACTER_LIMIT-1;l=f.substr(0,
|
||||
e+1)}f=f.substr(l.length,f.length-l.length);k.push(l)}0<f.length&&F(f)}else F(b);console.log(k);a.multipartText=k;if(a.checkSpeechAllowed()){a.fallbackMode&&0<a.fallback_audiopool.length&&a.clearFallbackPool();a.msgprofile=g;a.log("Voice picked: "+a.msgprofile.systemvoice.name);a.utterances=[];a.fallbackChunks=[];for(e=0;e<k.length;e++)if(!a.fallbackMode&&a.getServiceEnabled(a.services.NATIVE_TTS))a.log("Using SpeechSynthesis"),h=a.services.NATIVE_TTS,f=new SpeechSynthesisUtterance,f.voiceURI=g.systemvoice.voiceURI,
|
||||
f.volume=a.selectBest([g.collectionvoice.volume,g.systemvoice.volume,1]),f.rate=a.selectBest([a.iOS9plus?1:null,g.collectionvoice.rate,g.systemvoice.rate,z]),f.pitch=a.selectBest([g.collectionvoice.pitch,g.systemvoice.pitch,1]),f.text=k[e],f.lang=a.selectBest([g.collectionvoice.lang,g.systemvoice.lang]),f.rvIndex=e,f.rvTotal=k.length,0==e&&(f.onstart=a.speech_onstart),a.msgparameters.onendcalled=!1,null!=d?(f.voice="undefined"!==typeof d.voice?d.voice:g.systemvoice,e<k.length-1&&1<k.length?(f.onend=
|
||||
a.onPartEnd,f.hasOwnProperty("addEventListener")&&f.addEventListener("end",a.onPartEnd)):(f.onend=a.speech_onend,f.hasOwnProperty("addEventListener")&&f.addEventListener("end",a.speech_onend)),f.onerror=d.onerror||function(x){a.log("RV: Unknown Error");a.log(x);"not-allowed"===x.error&&(a.speechSynthesisNotAllowedError=!0,a.speak(b,c,d))},d.rate=a.validateParameters(d,"rate"),d.pitch=a.validateParameters(d,"pitch"),d.volume=a.validateParameters(d,"volume"),f.onpause=d.onpause,f.onresume=d.onresume,
|
||||
f.onmark=d.onmark,f.onboundary=d.onboundary||a.onboundary,f.pitch=null!=d.pitch?d.pitch:f.pitch,f.rate=a.iOS?(null!=d.rate?d.rate*d.rate:1)*f.rate:(null!=d.rate?d.rate:z)*f.rate,f.volume=null!=d.volume?d.volume:f.volume):(a.log("No Params received for current Utterance"),f.voice=g.systemvoice,d=d||{},f.onend=a.speech_onend,f.onboundary=a.onboundary,f.onerror=function(x){a.log("RV: Unknown Error");a.log(x);"not-allowed"===x.error&&(a.speechSynthesisNotAllowedError=!0,a.speak(b,c,d))}),a.utterances.push(f),
|
||||
0==e&&(a.currentMsg=f),console.log(f),a.tts_speak(f);else if(a.fallbackMode&&a.getServiceEnabled(a.services.FALLBACK_AUDIO)){h=a.services.FALLBACK_AUDIO;a.fallback_playbackrate=a.def_fallback_playbackrate;f=a.selectBest([g.collectionvoice.pitch,g.systemvoice.pitch,1]);l=a.selectBest([a.iOS9plus?1:null,g.collectionvoice.rate,g.systemvoice.rate,1]);u=a.selectBest([g.collectionvoice.volume,g.systemvoice.volume,1]);if(null!=d){f*=null!=d.pitch?d.pitch:1;l*=null!=d.rate?d.rate:1;u*=null!=d.volume?d.volume:
|
||||
1;var D=d.extraParams||null}f/=2;l/=2;u*=2;f=Math.min(Math.max(f,0),1);l=Math.min(Math.max(l,0),1);u=Math.min(Math.max(u,0),1);var G="?t="+encodeURIComponent(k[e])+"&tl="+(g.collectionvoice.lang||g.systemvoice.lang||"en-US")+"&sv="+(g.collectionvoice.service||g.systemvoice.service||"")+"&vn="+(g.collectionvoice.voicename||g.systemvoice.voicename||"")+"&pitch="+f.toString()+"&rate="+l.toString()+"&vol="+u.toString();"undefined"!=typeof rvApiEndpoint&&rvApiEndpoint&&(G="?text="+encodeURIComponent(k[e])+
|
||||
"&lang="+(g.collectionvoice.lang||g.systemvoice.lang||"en-US")+"&engine="+(g.collectionvoice.service||g.systemvoice.service||"")+"&name="+(g.collectionvoice.voicename||g.systemvoice.voicename||"")+"&pitch="+f.toString()+"&rate="+l.toString()+"&volume="+u.toString());f=a.fallbackServicePath+G;"undefined"!=typeof rvApiKey&&(f+="&key="+rvApiKey);"undefined"==typeof rvApiKey&&a.is_bundle&&(f+="&key=FQ9r4hgY");"undefined"==typeof rvApiKey&&a.is_wordpress&&(f+="&key=HY7lTyiS");void 0!==g.collectionvoice.gender&&
|
||||
(f+="&gender="+g.collectionvoice.gender);D&&(f+="&extraParams="+JSON.stringify(D));a.fallbackChunks.push({text:k[e],url:f,audio:null})}a.fallbackMode&&a.getServiceEnabled(a.services.FALLBACK_AUDIO)&&(a.fallbackChunkIndex=0,a.fallback_startPart());a.log("Service used: "+h)}else a.scheduledSpeak={text:b,voicename:c,parameters:d}}else console.error("Selected voice does not exist: "+c),a.Dispatch("OnMissingVoiceError",{voice:c})}}else setTimeout(function(){a.speak(b,c,d)},15)};a.startTimeout=function(b,
|
||||
c){var d=a.msgprofile.collectionvoice.timerSpeed;null==a.msgprofile.collectionvoice.timerSpeed&&(d=1);0>=d||(a.timeoutId=setTimeout(c,a.getEstimatedTimeLength(b,d)),a.log("Timeout ID: "+a.timeoutId))};a.checkAndCancelTimeout=function(){null!=a.timeoutId&&(clearTimeout(a.timeoutId),a.timeoutId=null)};a.speech_timedout=function(){a.cancel();a.cancelled=!1;a.speech_onend()};a.speech_onend=function(){a.checkAndCancelTimeout();!0===a.cancelled?a.cancelled=!1:(a.log("on end fired"),null!=a.msgparameters&&
|
||||
null!=a.msgparameters.onend&&1!=a.msgparameters.onendcalled&&(a.log("Speech on end called -"+a.msgtext),a.msgparameters.onendcalled=!0,a.msgparameters.onend()))};a.speech_onstart=function(){if(!a.onstartFired&&(a.onstartFired=!0,a.log("Speech start"),a.enableEstimationTimeout&&a.useTimer&&(a.fallbackMode||a.startTimeout(a.msgtext,a.speech_timedout)),a.msgparameters.onendcalled=!1,null!=a.msgparameters&&null!=a.msgparameters.onstart))a.msgparameters.onstart()};a.fallback_startPart=function(){0==a.fallbackChunkIndex&&
|
||||
a.speech_onstart();a.fallback_updateChunksBuffer();a.fallback_audio=a.fallbackChunks[a.fallbackChunkIndex].audio;null==a.fallback_audio?a.log("RV: Fallback Audio is not available"):(function(){var b=a.fallback_audio;setTimeout(function(){b.playbackRate=a.fallback_playbackrate},50);b.onloadedmetadata=function(){b.playbackRate=a.fallback_playbackrate};var c=function(h){setTimeout(function(){if(0==h.currentTime){a.log("Audio chunk not playing. Trying to recover. Disabling time estimation");a.enableEstimationTimeout=
|
||||
!1;a.checkAndCancelTimeout();h.load();var e=function(){h.play();h.removeEventListener("canplaythrough",e)};h.addEventListener("canplaythrough",e,!1)}},700)};if(2<=b.readyState)b.play(),c(b);else{var d=function(){b.play();b.removeEventListener("canplaythrough",d)};b.addEventListener("canplaythrough",d,!1)}}(),a.fallback_audio.onerror=function(b){function c(){if(this.readyState==this.DONE&&200!==this.status)switch(this.status){case 400:console.error("ResponsiveVoice audio could not be loaded. Invalid parameters.");
|
||||
break;case 403:console.error("ResponsiveVoice invalid API key. See https://responsivevoice.org/register?devtools="+encodeURIComponent(window.location.href));break;default:console.error("ResponsiveVoice audio could not be loaded. There is an issue connecting your browser to the API endpoint.")}}switch(b.target.error.code){case b.target.error.MEDIA_ERR_SRC_NOT_SUPPORTED:var d=new XMLHttpRequest;d.open("GET",b.target.src,!0);d.send();d.onreadystatechange=c;break;default:console.error("ResponsiveVoice: an unknown error occurred.")}},
|
||||
a.fallback_audio.addEventListener("ended",a.fallback_finishPart),a.enableEstimationTimeout&&a.useTimer&&a.startTimeout(a.multipartText[a.fallbackChunkIndex],a.fallback_finishPart))};a.isFallbackAudioPlaying=function(){var b;for(b=0;b<a.fallback_audiopool.length;b++){var c=a.fallback_audiopool[b];if(!c.paused&&!c.ended&&c.currentTime!=c.duration)return!0}return!1};a.fallback_finishPart=function(b){a.isFallbackAudioPlaying()?(a.checkAndCancelTimeout(),a.timeoutId=setTimeout(a.fallback_finishPart,1E3*
|
||||
(a.fallback_audio.duration-a.fallback_audio.currentTime))):(a.checkAndCancelTimeout(),a.fallbackChunkIndex<a.fallbackChunks.length-1?(a.fallbackChunkIndex++,a.fallback_startPart()):a.speech_onend())};a.cancel=function(){a.checkAndCancelTimeout();a.fallbackMode?(null!=a.fallback_audio&&a.fallback_audio.pause(),a.clearFallbackPool()):(a.cancelled=!0,speechSynthesis.cancel())};a.voiceSupport=function(){return"speechSynthesis"in window};a.OnFinishedPlaying=function(b){if(null!=a.msgparameters&&null!=
|
||||
a.msgparameters.onend)a.msgparameters.onend()};a.setDefaultVoice=function(b){if(a.rvsMapped){var c=a.getResponsiveVoice(b);null!=c&&(a.default_rv=c)}else setTimeout(function(){a.setDefaultVoice(b)},15)};a.setDefaultRate=function(b){var c=b;b=parseFloat(b);isNaN(b)?console.error("[responsiveVoice.setDefaultRate] invalid argument: "+c.toString()):0===b?console.error("[responsiveVoice.setDefaultRate] rate must be > 0"):1.5<b?console.error("[responsiveVoice.setDefaultRate] rate must be <= 1.5"):z=b};
|
||||
a.mapRVs=function(){if("object"==typeof navigator){var b,c="anguage";var d=navigator;d=(b=d["l"+c+"s"],b&&b.length?b:(c=d["l"+c]||d["browserL"+c]||d["userL"+c])?[c]:c)}else d=void 0;b=d[0];for(c=0;c<a.responsivevoices.length;c++){d=a.responsivevoices[c];for(var h=0;h<d.voiceIDs.length;h++){var e=a.voicecollection[d.voiceIDs[h]];if(1!=e.fallbackvoice){var g=a.getSystemVoice(e.name);a.forcedFallbackMode&&(g=null);a.iOS12_0&&d.lang.toLowerCase()!=b.toLowerCase()&&d.lang.toLowerCase().split("-")[0]!=
|
||||
b.toLowerCase()&&(g=null);if(null!=g){d.mappedProfile={systemvoice:g,collectionvoice:e};break}}else{d.mappedProfile={systemvoice:{},collectionvoice:e};break}}}a.rvsMapped=!0};a.getMatchedVoice=function(b){for(var c=0;c<b.voiceIDs.length;c++){var d=a.getSystemVoice(a.voicecollection[b.voiceIDs[c]].name);if(null!=d)return d}return null};a.getSystemVoice=function(b){var c=String.fromCharCode(160);var d=b.replace(new RegExp("\\s+|"+c,"g"),"");if("undefined"===typeof a.systemvoices||null===a.systemvoices)return null;
|
||||
for(var h=0;h<a.systemvoices.length;h++)if(0===a.systemvoices[h].name.localeCompare(b)||0===a.systemvoices[h].name.replace(new RegExp("\\s+|"+c,"g"),"").replace(/ *\([^)]*\) */g,"").localeCompare(d))return a.systemvoices[h];return null};a.getResponsiveVoice=function(b){for(var c=0;c<a.responsivevoices.length;c++)if(a.responsivevoices[c].name==b)return b=a.fallbackMode,a.fallbackMode=!0===a.responsivevoices[c].mappedProfile.collectionvoice.fallbackvoice||!0===a.forcedFallbackMode?!0:!1,b!=a.fallbackMode&&
|
||||
(a.mapRVs(),a.Dispatch("OnServiceSwitched")),a.responsivevoices[c];return null};a.Dispatch=function(b,c){c=void 0!==c?c:null;if(a.hasOwnProperty(b+"_callbacks")&&null!=a[b+"_callbacks"]&&0<a[b+"_callbacks"].length){for(var d=a[b+"_callbacks"],h=0;h<d.length;h++)d[h](c);return!0}var e=b+"_callbacks_timeout",g=b+"_callbacks_timeoutCount";a.hasOwnProperty(e)||(a[g]=10,a[e]=setInterval(function(){--a[g];(a.Dispatch(b,c)||0>a[g])&&clearTimeout(a[e])},50));return!1};a.AddEventListener=function(b,c){a.hasOwnProperty(b+
|
||||
"_callbacks")||(a[b+"_callbacks"]=[]);a[b+"_callbacks"].push(c)};a.addEventListener=a.AddEventListener;a.RemoveEventListener=function(b,c){a[b+"_callbacks"]&&-1!=a[b+"_callbacks"].indexOf(c)&&a[b+"_callbacks"].splice(a[b+"_callbacks"].indexOf(c),1)};a.clickEvent=function(){a.log("Click event");a.click_event_detected=!0;a.initializePermissionsTimeout=setTimeout(a.initializePermissions,5);a.userInteractionEvents.forEach(function(b){window.removeEventListener(b,a.clickEvent,!1)});a.Dispatch("OnClickEvent")};
|
||||
a.initializePermissions=function(){if(a.iOS&&!a.iOS_initialized){a.log("Initializing iOS click event");if("undefined"!==typeof speechSynthesis){var b=new SpeechSynthesisUtterance(" ");speechSynthesis.speak(b)}a.iOS_initialized=!0}a.is_android&&!a.android_initialized&&(a.log("Initializing Android click event"),"undefined"!==typeof speechSynthesis&&(b=new SpeechSynthesisUtterance(" "),speechSynthesis.speak(b)),a.android_initialized=!0);a.initFallbackPool()};a.isPlaying=function(){return a.fallbackMode?
|
||||
null!=a.fallback_audio&&!a.fallback_audio.ended&&!a.fallback_audio.paused:"undefined"!=typeof speechSynthesis?speechSynthesis.speaking:!1};a.clearFallbackPool=function(){for(var b=0;b<a.fallback_audiopool.length;b++)null!=a.fallback_audiopool[b]&&a.fallback_audiopool[b].pause();a.fallback_audiopool_index=0;a.fallbackChunks=[]};a.initFallbackPool=function(){if(!a.fallback_audiopool||0==a.fallback_audiopool.length){for(var b=0;10>b;b++){var c=b,d=document.createElement("AUDIO");d.preload="auto";a.is_android&&
|
||||
(d.src="data:audio/mpeg;base64,/+NIxAAAAAAAAAAAAFhpbmcAAAAPAAAAEwAACZAAIiIiIiIqKioqKjMzMzMzRERERERETExMTExdXV1dXWZmZmZmd3d3d3d3gICAgICRkZGRkZmZmZmZqqqqqqqqs7Ozs7PExMTExMzMzMzM3d3d3d3d5ubm5ub39/f39///////AAAAUExBTUUzLjEwMAQoAAAAAAAAAAAVCCQCQCEAAeAAAAmQ/qJL7wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA/+NIxAAGkAJAGAAAAABn///////////////6w//L/IeGCGc//+U61QAP/4LmWycNjPzmXtEL0VxbXSoQaadV7pSNs2X6hJ3Ok1a9yNRtf7ddPJrLR2nyP/p/30b0OdF6Su29GKp9Ls6LORkWRJ1sOsGr4mUADf9n/P+9v/FR5t08rK1UubPiChtJS2Yoop4MH48ec+PjR01tJJOmX8O3Mvmf//nf6s7pnCzO5wl8y7aVyzX5lLGdCKJYgd6S33q26FtBZVczczydHIbM6oMQuaUADf9n/9v//js/ijDGj7uNKCaLVPLY2TzXwmkzHCZrHdGypjNcBdIf+cssK+/f4397ez1JaRw1aI3FlV5ubTY1LQIWVb2m7K89qpjxLf5g/+MYxPgS5FZAeADFKNGO6mh1fMqEEQGWqWYmg3FqAA2vQlp77/uffWS702wqfv8vFD5PuNitqPG8p77pLmWf/+/HA5ryUlu7/+MYxOcXRFo8eAGHKS//vwnLX//6HPNCIzXla56JRuFPNdKV2pety8ID4VN+uRuoU+VV8zTMMfXYUQ4eh9ZoGKKlPHBCqgAN/+MoxMUX3CY8eAGHKbdmn+OeVJTGIlzpdOsUYwaXtdxnHOiuHjAFIU+ZnMzIo2eVWlxPy//y8rD9GK8OTKZXL6Wply47bXzyeYUcuXSE5qSwGGPcoJv2DchBu8Jw8gGwmW09AA23RXO3nb6WmOopONBSqNIeqnXWiAz7K4XEHwmcIdATmzwV0jJ9s4V/k////+MYxOgYlGo4eAGHLO/5f9nlL8kDpHZv+mbMu4mH7HHuyyqHq6TeK5/8aMjm1eRixEgQJqGo+0p5lQAN/0f477nlU9IqLh3g/+MoxMAV6+48eABHIXO7Otw9wgTCohOLjxNDi9CJZRx1mRayrbDuUE9K1/pzV12nzc/+fe9/4ZerXKtVHrfdcl3Snkp5pGPb7DmYQNJNSh9zwUw9UvZi6fQYM8eKDZqHEZhiAA3/Y/3//e/ncbwBH455AViDJuJXNlQhwMiabt6ZEy6bRZ0EyOvDkSz2KvaZ/+MYxOsWVDY8eAFHJX7d09JbPf7UcpGYFU4MK/TuiMtVI3U+7sa9XVlqveysYtTVmOxmQruJCGeRFdkDcQANv0P3v3+7/3v8/+MoxMwY7F48eAIHLXy7nE/l1671KjRcnSXttqsdJjz2h+kezUHiUdTRuwjpGa8vMy/+f55c7D+2xUlyOfmTv66UvLp0GeRl5WIljlTvLXeKT5Jwvad3F1mByDEbg4DVAA33Y/siOm/FK0CDQEmy6l1gwcQJgyQLX8QIFrg8G8A8hcy4q8OF+ZHkb0p5fP/K/+MYxOsXRCo8eAGFKUPMFnky0+ddOU/S++kPVj1z5qq55m56zXyFmmU0V3mwIsuiUKchEUZjC1y1AA33Y+///fv+5GmZj12N/+MoxMkXhGI8eAGHKcORvd5V0ztA0tUM1d+s21a+e6KTMnBOORPRyKWf/+1Of+f5OxsW9IyZ2uy3M/mef1/vzuZZ1+5S4ttla/eWHjROLbPed0N/NGppAxUqAA33YL08vVo7VkuqIZR2GbZVHBO0MUUIGSGq5ID2e8wpwECpKV8878nSmv//S/Ms5dUdI5Hm/+MYxO4W3F48eABHIQiMTfh86Vs7nfvC9Uz8pZcymIeTPMKyUIcIsjkcyeKlrzc2k0CVAA3/Y+Pr/fn//7zv3OWUiaOhGM2//+MoxM0Wy+48eAGHKRjF4VTgSyzCCRr9P73Jc005wH9MiLp5G/2/Kn+yf/86jUqeNwFTqP5fqU4xMbl/8SdmZ/NtnZjdrWFF6UKjAWGFTDC2EeELBAvBAA2vI/f7nm2z7j8yZbGhowotlks7nfrmUdf4x2L/eGdHO1CiZMbZmtjJ08Rr/e+YzL1v///y7/3O/+MYxPQW3G48eAAGPNpFgkl87qjOVlLOrn9vCSGL5fOHCRe/Unm5gbFu+VQFRSCPW4kxnBUHAA2/R//35++f7/8f5UFOi5dp/+MoxNMXs/48eAGHKeb7ShEhrRrJ7ox2Dwom6lJchCIyAxmlmRblJ8/+J///5/9kbi6dYzc7Dzh3ZeZJOeKImygKWGTGRWucLNkQ180DEbzPRTV2MRjGM6SOHQoADfdn/vX13Zq7bvdmzAaHWaYxtxRuGeiA/JGqh7PMwvZd9KC2NEoEYzKdkrrd/Z21t1u7/+MYxPcYhGY4eAGHLTf0v8++Rq1UzJCdC1k5f3yfRSooW/dmui4H0GqxkF8S+GJJmuU6GQOYJDfCiLo9zim9ElBNAA+/gj5S/+MoxNAYHGY8eAGHKKw6Zmxn++StD2qiVTXJhRFSftxQ4s7mwjZjKC1IcjKvv8xXov/77EeQqjPV3az/vqlNe6XVJFSs7UVlR7oxnY/eeRFcis7KrkJGMgtyc+lMAFWYnvEQQh4ViYhGFC/59/vG+MdJtVsaBhUV3+FHcKDf/EVLf/6KCeBWWK2STEFNRTMu/+MYxPIaLG44eAGHLDEwMKqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq/+MoxMQVRE48eADFKaqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq/+MYxPELK54oGABHoaqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq",
|
||||
d.load(),9==c&&(a.log("Android HTML audio initialized"),a.android_initialized=!0));a.iOS&&(d.src="data:audio/mpeg;base64,/+NIxAAAAAAAAAAAAFhpbmcAAAAPAAAAEwAACZAAIiIiIiIqKioqKjMzMzMzRERERERETExMTExdXV1dXWZmZmZmd3d3d3d3gICAgICRkZGRkZmZmZmZqqqqqqqqs7Ozs7PExMTExMzMzMzM3d3d3d3d5ubm5ub39/f39///////AAAAUExBTUUzLjEwMAQoAAAAAAAAAAAVCCQCQCEAAeAAAAmQ/qJL7wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA/+NIxAAGkAJAGAAAAABn///////////////6w//L/IeGCGc//+U61QAP/4LmWycNjPzmXtEL0VxbXSoQaadV7pSNs2X6hJ3Ok1a9yNRtf7ddPJrLR2nyP/p/30b0OdF6Su29GKp9Ls6LORkWRJ1sOsGr4mUADf9n/P+9v/FR5t08rK1UubPiChtJS2Yoop4MH48ec+PjR01tJJOmX8O3Mvmf//nf6s7pnCzO5wl8y7aVyzX5lLGdCKJYgd6S33q26FtBZVczczydHIbM6oMQuaUADf9n/9v//js/ijDGj7uNKCaLVPLY2TzXwmkzHCZrHdGypjNcBdIf+cssK+/f4397ez1JaRw1aI3FlV5ubTY1LQIWVb2m7K89qpjxLf5g/+MYxPgS5FZAeADFKNGO6mh1fMqEEQGWqWYmg3FqAA2vQlp77/uffWS702wqfv8vFD5PuNitqPG8p77pLmWf/+/HA5ryUlu7/+MYxOcXRFo8eAGHKS//vwnLX//6HPNCIzXla56JRuFPNdKV2pety8ID4VN+uRuoU+VV8zTMMfXYUQ4eh9ZoGKKlPHBCqgAN/+MoxMUX3CY8eAGHKbdmn+OeVJTGIlzpdOsUYwaXtdxnHOiuHjAFIU+ZnMzIo2eVWlxPy//y8rD9GK8OTKZXL6Wply47bXzyeYUcuXSE5qSwGGPcoJv2DchBu8Jw8gGwmW09AA23RXO3nb6WmOopONBSqNIeqnXWiAz7K4XEHwmcIdATmzwV0jJ9s4V/k////+MYxOgYlGo4eAGHLO/5f9nlL8kDpHZv+mbMu4mH7HHuyyqHq6TeK5/8aMjm1eRixEgQJqGo+0p5lQAN/0f477nlU9IqLh3g/+MoxMAV6+48eABHIXO7Otw9wgTCohOLjxNDi9CJZRx1mRayrbDuUE9K1/pzV12nzc/+fe9/4ZerXKtVHrfdcl3Snkp5pGPb7DmYQNJNSh9zwUw9UvZi6fQYM8eKDZqHEZhiAA3/Y/3//e/ncbwBH455AViDJuJXNlQhwMiabt6ZEy6bRZ0EyOvDkSz2KvaZ/+MYxOsWVDY8eAFHJX7d09JbPf7UcpGYFU4MK/TuiMtVI3U+7sa9XVlqveysYtTVmOxmQruJCGeRFdkDcQANv0P3v3+7/3v8/+MoxMwY7F48eAIHLXy7nE/l1671KjRcnSXttqsdJjz2h+kezUHiUdTRuwjpGa8vMy/+f55c7D+2xUlyOfmTv66UvLp0GeRl5WIljlTvLXeKT5Jwvad3F1mByDEbg4DVAA33Y/siOm/FK0CDQEmy6l1gwcQJgyQLX8QIFrg8G8A8hcy4q8OF+ZHkb0p5fP/K/+MYxOsXRCo8eAGFKUPMFnky0+ddOU/S++kPVj1z5qq55m56zXyFmmU0V3mwIsuiUKchEUZjC1y1AA33Y+///fv+5GmZj12N/+MoxMkXhGI8eAGHKcORvd5V0ztA0tUM1d+s21a+e6KTMnBOORPRyKWf/+1Of+f5OxsW9IyZ2uy3M/mef1/vzuZZ1+5S4ttla/eWHjROLbPed0N/NGppAxUqAA33YL08vVo7VkuqIZR2GbZVHBO0MUUIGSGq5ID2e8wpwECpKV8878nSmv//S/Ms5dUdI5Hm/+MYxO4W3F48eABHIQiMTfh86Vs7nfvC9Uz8pZcymIeTPMKyUIcIsjkcyeKlrzc2k0CVAA3/Y+Pr/fn//7zv3OWUiaOhGM2//+MoxM0Wy+48eAGHKRjF4VTgSyzCCRr9P73Jc005wH9MiLp5G/2/Kn+yf/86jUqeNwFTqP5fqU4xMbl/8SdmZ/NtnZjdrWFF6UKjAWGFTDC2EeELBAvBAA2vI/f7nm2z7j8yZbGhowotlks7nfrmUdf4x2L/eGdHO1CiZMbZmtjJ08Rr/e+YzL1v///y7/3O/+MYxPQW3G48eAAGPNpFgkl87qjOVlLOrn9vCSGL5fOHCRe/Unm5gbFu+VQFRSCPW4kxnBUHAA2/R//35++f7/8f5UFOi5dp/+MoxNMXs/48eAGHKeb7ShEhrRrJ7ox2Dwom6lJchCIyAxmlmRblJ8/+J///5/9kbi6dYzc7Dzh3ZeZJOeKImygKWGTGRWucLNkQ180DEbzPRTV2MRjGM6SOHQoADfdn/vX13Zq7bvdmzAaHWaYxtxRuGeiA/JGqh7PMwvZd9KC2NEoEYzKdkrrd/Z21t1u7/+MYxPcYhGY4eAGHLTf0v8++Rq1UzJCdC1k5f3yfRSooW/dmui4H0GqxkF8S+GJJmuU6GQOYJDfCiLo9zim9ElBNAA+/gj5S/+MoxNAYHGY8eAGHKKw6Zmxn++StD2qiVTXJhRFSftxQ4s7mwjZjKC1IcjKvv8xXov/77EeQqjPV3az/vqlNe6XVJFSs7UVlR7oxnY/eeRFcis7KrkJGMgtyc+lMAFWYnvEQQh4ViYhGFC/59/vG+MdJtVsaBhUV3+FHcKDf/EVLf/6KCeBWWK2STEFNRTMu/+MYxPIaLG44eAGHLDEwMKqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq/+MoxMQVRE48eADFKaqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq/+MYxPELK54oGABHoaqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq",
|
||||
d.load(),9==c&&(a.log("iOS HTML audio initialized"),a.iOS_initialized=!0));a.fallback_audiopool.push(d)}a.fallback_audiopool_index=0}};a.allowSpeechClicked=function(b){a.allowSpeechDiv.parentNode.removeChild(a.allowSpeechDiv);a.allowSpeechDiv=null;if(a.speechAllowedByUser=b)a.clickEvent(),a.scheduledSpeak&&(a.speak(a.scheduledSpeak.text,a.scheduledSpeak.voicename,a.scheduledSpeak.parameters),a.scheduledSpeak=null);a.Dispatch("OnAllowSpeechClicked")};a.checkSpeechAllowed=function(b){if(0==a.speechAllowedByUser)return!1;
|
||||
var c=a.is_android||a.iOS,d=a.is_safari&&(a.fallbackMode||a.forcedFallbackMode);if(!0!==a.disablePermissionPopup&&(!0===a.allowPermissionPopupEverywhere||c||d||!0===a.speechSynthesisNotAllowedError)&&!a.click_event_detected){if(a.allowSpeechDiv)return;a.allowSpeechDiv_appearances=null==a.allowSpeechDiv_appearances?1:++a.allowSpeechDiv_appearances;if(2<a.allowSpeechDiv_appearances)return console.log("ResponsiveVoice: Speech not allowed by user"),!1;c=document.createElement("style");c.innerHTML='.rvNotification{position:fixed;background-color:#fff;text-align:center;font-family:-apple-system,system-ui,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-weight:400;line-height:1.5;box-shadow:0 4px 8px 0 rgba(0,0,0,.2),0 6px 20px 0 rgba(0,0,0,.19);z-index:10000;width:100vw;left:0;bottom:0;font-size:1rem;padding-bottom:.5em;padding-right:.5em}.rvButtonRow{padding-right:2em;padding-bottom:1em;text-align:right;font-size:medium}.rvButton{cursor:pointer;display:inline-block;margin-left:1em;padding:.8em 2em;border-radius:3px;font-size:small}.rvButtonAllow{border:none;background-color:#2b8cff;color:#fff}.rvButtonDeny{border:1px solid #2b8cff;color:#2b8cff;background-color:#fff}.rvTextRow{padding-top:1em;padding-bottom:2em}@media (min-width:576px){.rvNotification{width:60vw;left:20vw}}@media (min-width:768px){.rvNotification{width:50vw;left:25vw}}@media (min-width:992px){.rvNotification{width:40vw;left:30vw}}@media (min-width:1200px){.rvNotification{width:30vw;left:35vw}}';
|
||||
document.body.appendChild(c);a.allowSpeechDiv=document.createElement("div");a.allowSpeechDiv.classList.add("rvNotification");void 0==b&&(b={});a.allowSpeechDiv.innerHTML='<div class="rvTextRow"><strong>'+(void 0!=b.urlOverride?b.urlOverride:window.location.hostname)+"</strong> "+(void 0!=b.textOverride?b.textOverride:"wants to play speech")+'</div><div class="rvButtonRow"><div onclick="responsiveVoice.allowSpeechClicked(false);" class="rvButton rvButtonDeny">DENY</div><div onclick="responsiveVoice.allowSpeechClicked(true);" class="rvButton rvButtonAllow">ALLOW</div></div>';
|
||||
document.body.appendChild(a.allowSpeechDiv);return!1}return!0};a.fallback_audioPool_getAudio=function(){a.initFallbackPool();a.fallback_audiopool_index>=a.fallback_audiopool.length&&(a.fallback_audiopool_index=0);return a.fallback_audiopool[a.fallback_audiopool_index++]};a.fallback_updateChunksBuffer=function(){for(var b=a.fallbackChunkIndex;b<Math.min(a.fallbackChunks.length,a.fallbackChunkIndex+a.fallbackBufferLength);b++){var c=a.fallbackChunks[b];null==c.audio&&(c.audio=a.fallback_audioPool_getAudio(),
|
||||
function(d){var h=function(){d.audio.src=d.url;d.audio.playbackRate=a.fallback_playbackrate;d.audio.preload="auto";d.audio.load()};0==b?h():setTimeout(h,50*b)}(c))}};a.selectBest=function(b){for(var c=0;c<b.length;c++)if(null!=b[c])return b[c];return null};a.pause=function(){a.fallbackMode?null!=a.fallback_audio&&a.fallback_audio.pause():(speechSynthesis.pause(),a.ttsCancelledByTimeout=!1,a.ttsKeepAliveTimeout=setTimeout(function(){a.ttsKeepAliveTimeout=null;speechSynthesis.cancel();a.ttsCancelledByTimeout=
|
||||
!0},6E4))};a.resume=function(){if(a.fallbackMode)null!=a.fallback_audio&&a.fallback_audio.play();else if(a.ttsCancelledByTimeout)for(var b=a.ttsCancelledByTimeout=!1,c=0;c<a.utterances.length;c++){var d=a.utterances[c];a.currentMsg==d&&(b=!0);b&&a.tts_speak(d)}else a.ttsKeepAliveTimeout&&(clearTimeout(a.ttsKeepAliveTimeout),a.ttsKeepAliveTimeout=null),speechSynthesis.resume()};a.tts_speak=function(b){setTimeout(function(){a.cancelled=!1;a.analytics.characterCount+=b.text.toString().length;speechSynthesis.speak(b)},
|
||||
.01)};a.setVolume=function(b){if(a.isPlaying())if(a.fallbackMode){for(var c=0;c<a.fallback_audiopool.length;c++)a.fallback_audiopool[c].volume=b;a.fallback_audio.volume=b}else for(c=0;c<a.utterances.length;c++)a.utterances[c].volume=b};a.onPartEnd=function(b){if(null!=a.msgparameters&&null!=a.msgparameters.onchuckend)a.msgparameters.onchuckend();a.Dispatch("OnPartEnd");b=a.utterances.indexOf(b.utterance);a.currentMsg=a.utterances[b+1]};a.onboundary=function(b){a.log("On Boundary");a.iOS&&!a.onstartFired&&
|
||||
a.speech_onstart()};a.numToWords=function(b){var c=function(){return function(r,m){if(Array.isArray(r))return r;if(Symbol.iterator in Object(r)){var v=[],n=!0,A=!1,H=void 0;try{for(var B=r[Symbol.iterator](),E;!(n=(E=B.next()).done)&&(v.push(E.value),!m||v.length!==m);n=!0);}catch(I){A=!0,H=I}finally{try{if(!n&&B["return"])B["return"]()}finally{if(A)throw H;}}return v}throw new TypeError("Invalid attempt to destructure non-iterable instance");}}(),d=function(r){return 0===r.length},h=function(r){return function(m){return m.slice(0,
|
||||
r)}},e=function(r){return function(m){return m.slice(r)}},g=function(r){return r.slice(0).reverse()},k=function(r){return function(m){return function(v){return r(m(v))}}},f=function(r){return!r},l=function v(m){return function(n){if(d(n))var A=[];else{A=[h(m)(n)];var H=A.concat;n=v(m)(e(m)(n));if(Array.isArray(n)){for(var B=0,E=Array(n.length);B<n.length;B++)E[B]=n[B];n=E}else n=Array.from(n);A=H.call(A,n)}return A}},u=" one two three four five six seven eight nine ten eleven twelve thirteen fourteen fifteen sixteen seventeen eighteen nineteen".split(" "),
|
||||
D=" twenty thirty forty fifty sixty seventy eighty ninety".split(" "),G=" thousand million billion trillion quadrillion quintillion sextillion septillion octillion nonillion".split(" "),F=function(m){var v=c(m,3);m=v[0];var n=v[1];v=v[2];return[0===(Number(v)||0)?"":u[v]+" hundred ",0===(Number(m)||0)?D[n]:D[n]&&D[n]+" "||"",u[n+m]||u[m]].join("")},x=function(m,v){return""===m?m:m+" "+G[v]};return"number"===typeof b?a.numToWords(String(b)):"0"===b?"zero":k(l(3))(g)(Array.from(b)).map(F).map(x).filter(k(f)(d)).reverse().join(" ").trim()};
|
||||
a.getWords=function(b){b=b.replace(/$|\u00a5|\u20a1|\u20ac|\u00a3|\u20aa|\u20b9|\uffe5|\u17db|\u20a9|\u20a6|\u0e3f|\u20b4|\u20ab/gi," dummy currency ");var c=b.split(/(\s*[\s,]\s*|\?|;|:|\.|\(|\)|!)/);c=c.filter(function(h){return/[^\s]/.test(h)});for(var d=0;d<c.length;d++)null!=(b=c[d].toString().match(/\d+/))&&(c.splice(d,1),a.numToWords(+b[0]).split(/\s+/).map(function(h){c.push(h)}));return c};a.getEstimatedTimeLength=function(b,c){b=a.getWords(b);var d=0,h=a.fallbackMode?1300:700;c=c||1;b.map(function(k,
|
||||
f){d+=(k.toString().match(/[^ ]/igm)||k).length});var e=b.length,g=60/a.WORDS_PER_MINUTE*c*1E3*e;5>e&&(g=c*(h+50*d));a.log("Estimated time length: "+g+" ms, words: ["+b+"], charsCount: "+d);return g};a.validateParameters=function(b,c){if("undefined"===typeof b[c])return b[c];switch(c){case "rate":case "pitch":case "volume":var d=Number(b[c]);isNaN(d)&&console.warn("ResponsiveVoice: the parameter "+c+' has a wrong value "'+b[c]+'". Defaults were used.');b[c]=isNaN(d)?"1":b[c]}return b[c]};a.services=
|
||||
{NATIVE_TTS:0,FALLBACK_AUDIO:1};a.servicesPriority=[0,1];a.servicesEnabled=[];a.setServiceEnabled=function(b,c){a.servicesEnabled[b]=c};a.getServiceEnabled=function(b){return a.servicesEnabled[b]||!1};a.setServiceEnabled(a.services.NATIVE_TTS,!0);a.setServiceEnabled(a.services.FALLBACK_AUDIO,!0);a.forceFallbackMode=function(b){a.forcedFallbackMode=b;a.fallbackMode=b;a.mapRVs();a.Dispatch("OnServiceSwitched")};a.enableWindowClickHook=function(){a.userInteractionEvents.forEach(function(b){window.addEventListener(b,
|
||||
a.clickEvent,!1)})};a.setTextReplacements=function(b){if(null==b)q=null;else{q=[];for(var c=0;c<b.length;c++){var d=b[c],h=d.searchvalue;if("string"==typeof h)try{var e=h.match(/^\/(.*?)\/([gimy]*)$/),g=new RegExp(e[1],e[2]);g instanceof RegExp&&(h=g)}catch(k){h=new RegExp(h,"g")}q.push({searchvalue:h,newvalue:d.newvalue,collectionvoices:d.collectionvoices,systemvoices:d.systemvoices})}}};var t=/(code\.responsivevoice\.org|local-lb).*?responsivevoice(\.\w+)?\.js/ig;"interactive"===document.readyState?
|
||||
a.init():document.addEventListener("DOMContentLoaded",function(){a.init()});window.addEventListener("beforeunload",function(){if(rvApiKey&&a.analytics.characterCount){var b=new FormData;b.append("key",rvApiKey);b.append("count",a.analytics.characterCount);navigator.sendBeacon("https://app.responsivevoice.org/analytics/cc/session",b)&&(a.analytics.characterCount=0)}})},responsiveVoice=new ResponsiveVoice;
|
||||
|
||||
|
||||
/// -------- RESPONSIVE VOICE ends
|
||||
responsiveVoice.debug = true;
|
||||
}
|
||||
|
||||
if( document.location.search && /rvWebsiteVerify=8LG4XCOk/gi.test(document.location.search) ){
|
||||
function rvNotificationPopup(){
|
||||
|
||||
var css = '#rv_8LG4XCOk_notification,#rv_8LG4XCOk_notification *{font-family:"Open Sans",Helvetica,Arial,sans-serif,Tahoma!important}#rv_8LG4XCOk_notification{transition-duration:.3s;opacity:1;transform:scale(1);background:#fff;border:1px solid rgba(0,0,0,.125);border-radius:.3rem;position:fixed;z-index:2147483646;top:20px;left:20px;width:400px;padding:25px;-webkit-box-shadow:0 2px 4px 0 rgba(0,0,0,.3);-moz-box-shadow:0 2px 4px 0 rgba(0,0,0,.3);box-shadow:0 2px 4px 0 rgba(0,0,0,.3)}#rv_8LG4XCOk_notification .rv_notification_logo{background:url(https://app.responsivevoice.org/favicon-96x96.png) no-repeat;background-size:50px 50px;float:left;margin:0 20px 0 0;width:50px;height:50px}#rv_8LG4XCOk_notification_play{background:url(https://app.responsivevoice.org/images/play.png) no-repeat;background-size:25px 25px;float:left;margin:0 5px 0 0;width:25px;height:25px;cursor:pointer}#rv_8LG4XCOk_notification .rv_notification_body{float:left;color:#343a40;font-size:13px;width:78%;min-height:50px;vertical-align:middle}#rv_8LG4XCOk_notification .rv_notification_title{color:#1d643b;font-size:16px;font-weight:700;margin:1px 0 4px 0;display:inline-block}#rv_8LG4XCOk_notification_close{position:absolute;top:15px;right:15px;font-size:22px;color:#343a40;cursor:pointer;line-height:11px}.rv_notification_clear{clear:both}',
|
||||
head = document.head || document.getElementsByTagName('head')[0],
|
||||
style = document.createElement('style');
|
||||
head.appendChild(style);
|
||||
style.type = 'text/css';
|
||||
|
||||
if (style.styleSheet){
|
||||
|
||||
style.styleSheet.cssText = css;
|
||||
} else {
|
||||
style.appendChild(document.createTextNode(css) );
|
||||
}
|
||||
|
||||
|
||||
var rvNotification = document.createElement('div');
|
||||
rvNotification.innerHTML = '<div id=rv_8LG4XCOk_notification><div id=rv_8LG4XCOk_notification_close>×</div><div class=rv_notification_logo></div><div class=rv_notification_body><div id=rv_8LG4XCOk_notification_play></div><span class=rv_notification_title>ResponsiveVoice URL verified</span><br><span class=rv_notification_text>Your <i style="display: none;">ResponsivVoice</i> code snippet is correctly installed, you may now close this window.</span></div><div class=rv_notification_clear></div></div>';
|
||||
document.body.appendChild(rvNotification);
|
||||
|
||||
|
||||
function speakVerification(){
|
||||
responsiveVoice.speak( document.getElementById('rv_8LG4XCOk_notification').getElementsByClassName('rv_notification_text')[0].textContent );
|
||||
}
|
||||
|
||||
document.getElementById("rv_8LG4XCOk_notification_play").addEventListener( "click" , function(e) {
|
||||
speakVerification();
|
||||
});
|
||||
|
||||
document.getElementById("rv_8LG4XCOk_notification_close").addEventListener( "click" , function(e) {
|
||||
style.remove();
|
||||
rvNotification.remove();
|
||||
});
|
||||
|
||||
speakVerification();
|
||||
}
|
||||
|
||||
document.addEventListener('DOMContentLoaded', function(){
|
||||
var xhttp = new XMLHttpRequest();
|
||||
xhttp.open("POST", "https://code.responsivevoice.org/verify/8LG4XCOk", true);
|
||||
xhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
|
||||
xhttp.send("rv=" + (typeof responsiveVoice !== 'undefined') );
|
||||
xhttp.onreadystatechange = function() {
|
||||
if (this.readyState == 4 && this.status == 200) {
|
||||
rvNotificationPopup();
|
||||
}
|
||||
};
|
||||
}, false);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
Copyright (c) Tristen Brown
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining
|
||||
a copy of this software and associated documentation files (the
|
||||
"Software"), to deal in the Software without restriction, including
|
||||
without limitation the rights to use, copy, modify, merge, publish,
|
||||
distribute, sublicense, and/or sell copies of the Software, and to
|
||||
permit persons to whom the Software is furnished to do so, subject to
|
||||
the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be
|
||||
included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||||
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||||
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
!function(e,t){if("function"==typeof define&&define.amd)define("hoverintent",["module"],t);else if("undefined"!=typeof exports)t(module);else{var n={exports:{}};t(n),e.hoverintent=n.exports}}(this,function(e){"use strict";var t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e};e.exports=function(e,n,o){function i(e,t){return y&&(y=clearTimeout(y)),b=0,p?void 0:o.call(e,t)}function r(e){m=e.clientX,d=e.clientY}function u(e,t){if(y&&(y=clearTimeout(y)),Math.abs(h-m)+Math.abs(E-d)<x.sensitivity)return b=1,p?void 0:n.call(e,t);h=m,E=d,y=setTimeout(function(){u(e,t)},x.interval)}function s(t){return L=!0,y&&(y=clearTimeout(y)),e.removeEventListener("mousemove",r,!1),1!==b&&(h=t.clientX,E=t.clientY,e.addEventListener("mousemove",r,!1),y=setTimeout(function(){u(e,t)},x.interval)),this}function c(t){return L=!1,y&&(y=clearTimeout(y)),e.removeEventListener("mousemove",r,!1),1===b&&(y=setTimeout(function(){i(e,t)},x.timeout)),this}function v(t){L||(p=!0,n.call(e,t))}function a(t){!L&&p&&(p=!1,o.call(e,t))}function f(){e.addEventListener("focus",v,!1),e.addEventListener("blur",a,!1)}function l(){e.removeEventListener("focus",v,!1),e.removeEventListener("blur",a,!1)}var m,d,h,E,L=!1,p=!1,T={},b=0,y=0,x={sensitivity:7,interval:100,timeout:0,handleFocus:!1};return T.options=function(e){var n=e.handleFocus!==x.handleFocus;return x=t({},x,e),n&&(x.handleFocus?f():l()),T},T.remove=function(){e&&(e.removeEventListener("mouseover",s,!1),e.removeEventListener("mouseout",c,!1),l())},e&&(e.addEventListener("mouseover",s,!1),e.addEventListener("mouseout",c,!1)),T}});
|
||||
|
||||
var config = {"welcomeMessage":false,"speakSelectedText":true,"speakLinks":true,"speakInactivity":false,"speakEndPage":false,"exitIntent":false,"accesibilityNavigation":false,"accesibilityNavigation2":false,"welcomeMessageTime":false,"text_welcomeMessage":null,"text_speakInactivity":null,"text_speakEndPage":null,"text_exitIntent":null,"trackEvents":false,"abTesting":false,"analytics_id":null,"another_field":null};
|
||||
|
||||
/*<!-- LearnBriteAnalytics -->
|
||||
var _wla = _wla || [];
|
||||
_wla.push(['trackPageView']);
|
||||
//_wla.setCountPrerender(true);
|
||||
_wla.push(['enableLinkTracking']);
|
||||
(function() {
|
||||
var u="//ai.learnbrite.com/";
|
||||
_wla.push(['setTrackerUrl', u+'analytics.php']);
|
||||
_wla.push(['setSiteId', 75]);
|
||||
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
|
||||
g.type='text/javascript';
|
||||
g.async=true; g.defer=true; g.src=u+'analytics.js.php'; s.parentNode.insertBefore(g,s); })(); */
|
||||
|
||||
var splitTestEnabled = config.abTesting || false;
|
||||
var splitTest_useGS = (Math.random() < 0.5);
|
||||
|
||||
function GetRandomMsg(text) {
|
||||
var texts = text.split("|");
|
||||
return texts[Math.floor(Math.random() * texts.length)];
|
||||
}
|
||||
|
||||
function getHiddenProp(){
|
||||
var prefixes = ['webkit', 'moz', 'ms', 'o'];
|
||||
|
||||
// if 'hidden' is natively supported just return it
|
||||
if ('hidden' in document) return 'hidden';
|
||||
|
||||
// otherwise loop over all the known prefixes until we find one
|
||||
for (var i = 0; i < prefixes.length; i++) {
|
||||
if ((prefixes[i] + 'Hidden') in document)
|
||||
return prefixes[i] + 'Hidden';
|
||||
}
|
||||
|
||||
// otherwise it's not supported
|
||||
return null;
|
||||
}
|
||||
|
||||
function getVisibilityState() {
|
||||
var prefixes = ['webkit', 'moz', 'ms', 'o'];
|
||||
|
||||
// if 'visibilityState' is natively supported just return it
|
||||
if ('visibilityState' in document) return 'visibilityState';
|
||||
|
||||
// otherwise loop over all the known prefixes until we find one
|
||||
for (var i = 0; i < prefixes.length; i++) {
|
||||
if ((prefixes[i] + 'VisibilityState') in document)
|
||||
return prefixes[i] + 'VisibilityState';
|
||||
}
|
||||
// otherwise it's not supported
|
||||
return null;
|
||||
}
|
||||
|
||||
function isHidden() {
|
||||
var prop = getHiddenProp();
|
||||
if (!prop) return false;
|
||||
|
||||
return document[prop];
|
||||
}
|
||||
|
||||
function isPrerendered() {
|
||||
var prop = getVisibilityState();
|
||||
//console.log(prop);
|
||||
if (!prop) return false;
|
||||
//console.log(document[prop]);
|
||||
if (document[prop] != "prerender") return false;
|
||||
return document[prop];
|
||||
}
|
||||
console.log("isHidden: " + isHidden());
|
||||
console.log("Prerender: " + isPrerendered());
|
||||
|
||||
//Analytics
|
||||
|
||||
|
||||
|
||||
|
||||
//Search Message
|
||||
|
||||
var prerenderUsed = false;
|
||||
|
||||
if (isPrerendered() && !prerenderUsed) {
|
||||
prerenderUsed = true;
|
||||
setTimeout(function () {
|
||||
|
||||
if (!splitTestEnabled || (splitTestEnabled && splitTest_useGS)) {
|
||||
var txt = GetRandomMsg('');
|
||||
if (txt != null && txt != "") {
|
||||
console.log("Launching search message");
|
||||
responsiveVoice.speak("According to Voicebrite, " + txt, '');
|
||||
}
|
||||
}
|
||||
|
||||
//Search Message Split Test - Impression
|
||||
if (splitTestEnabled) {
|
||||
if (splitTest_useGS) {
|
||||
trackEvent('searchMessage', 'impressionAB', 'true');
|
||||
} else {
|
||||
trackEvent('searchMessage', 'impressionAB', 'false');
|
||||
}
|
||||
} else {
|
||||
trackEvent('searchMessage', 'impression');
|
||||
}
|
||||
|
||||
}, 1500);
|
||||
|
||||
}
|
||||
|
||||
window.addEventListener('load', function() {
|
||||
//We came from prerender
|
||||
var smessInterval = null;
|
||||
if (prerenderUsed) {
|
||||
smessInterval = setInterval(function () {
|
||||
if (!isPrerendered()) {
|
||||
|
||||
clearInterval(smessInterval);
|
||||
|
||||
//Search Message Split Test - Impression
|
||||
if (splitTestEnabled) {
|
||||
if (splitTest_useGS) {
|
||||
trackEvent('searchMessage', 'visitAB', 'true');
|
||||
} else {
|
||||
trackEvent('searchMessage', 'visitAB', 'false');
|
||||
}
|
||||
} else {
|
||||
trackEvent('searchMessage', 'visit');
|
||||
}
|
||||
}
|
||||
}, 1000);
|
||||
}
|
||||
|
||||
console.log("Configuring");
|
||||
|
||||
//Speak links
|
||||
var _allLinks = document.getElementsByTagName('a')
|
||||
Array.prototype.forEach.call(_allLinks, function(el) {
|
||||
hoverintent(el,
|
||||
function () {
|
||||
if (config.speakLinks) {
|
||||
//responsiveVoice.cancel();
|
||||
responsiveVoice.speak(el.textContent, '');
|
||||
trackEvent('agentFeature', 'spokenLink');
|
||||
}
|
||||
}, function () {
|
||||
}
|
||||
);
|
||||
});
|
||||
|
||||
|
||||
//Speak selected text
|
||||
var selectedText = "";
|
||||
var last_selectedText = "";
|
||||
|
||||
function getSelectionText() {
|
||||
var text = "";
|
||||
if (window.getSelection) {
|
||||
text = window.getSelection().toString();
|
||||
} else if (document.selection && document.selection.type != "Control") { // for Internet Explorer 8 and below
|
||||
text = document.selection.createRange().text;
|
||||
}
|
||||
return text;
|
||||
}
|
||||
|
||||
if (config.speakSelectedText) {
|
||||
attachToElements( document.querySelectorAll("PRE,DIV"), ['mouseup', 'touchend'], onMouseUp);
|
||||
}
|
||||
|
||||
function attachToElements(elements, events, callback){
|
||||
if(elements.length > 0){
|
||||
for(var i = 0; i < elements.length; i++){
|
||||
events.forEach(function(event){
|
||||
elements[i].addEventListener(event, function(e){
|
||||
callback();
|
||||
});
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function onMouseUp() {
|
||||
selectedText = getSelectionText();
|
||||
console.log("Selected text *" + selectedText + "*");
|
||||
if (selectedText != last_selectedText && selectedText != "") {
|
||||
last_selectedText = selectedText;
|
||||
|
||||
responsiveVoice.cancel(); // stop anything currently being spoken
|
||||
responsiveVoice.speak(selectedText, ''); //speak the text as returned by getSelectionText
|
||||
trackEvent('agentFeature', 'highlightText');
|
||||
}
|
||||
}
|
||||
|
||||
//Speak welcome message. Will only play if user didn't came from google.
|
||||
var welcomeMessageLaunched = false;
|
||||
if (config.welcomeMessage && (!config.welcomeMessageTime || oneTimeTest("welcomeMessage")) && !isPrerendered() && !prerenderUsed) {
|
||||
welcomeMessageLaunched = true;
|
||||
setTimeout(function () {
|
||||
if (config.text_welcomeMessage != null && config.text_welcomeMessage != "") {
|
||||
console.log("Launching welcome message");
|
||||
responsiveVoice.speak(GetRandomMsg(config.text_welcomeMessage), '');
|
||||
trackEvent('agentFeature', 'welcomeMessage');
|
||||
}
|
||||
}, 1500);
|
||||
}
|
||||
|
||||
//Speak welcome message when user came from Google. Won't play if default message played
|
||||
var welcomeMessage2Launched = false;
|
||||
var welcomeMessage2Interval = null;
|
||||
if (!welcomeMessageLaunched && config.welcomeMessage2 && (!config.welcomeMessageTime || oneTimeTest("welcomeMessage2"))
|
||||
&& config.text_welcomeMessage2 != null && config.text_welcomeMessage2 != "") {
|
||||
//Wait until we're visible and launch message
|
||||
|
||||
welcomeMessage2Interval = setInterval(function () {
|
||||
console.log("Welcome Message from Google Waiting");
|
||||
if (!isPrerendered() && !welcomeMessage2Launched) {
|
||||
console.log("Welcome Message from Google launched");
|
||||
|
||||
welcomeMessage2Launched = true;
|
||||
responsiveVoice.speak(GetRandomMsg(config.text_welcomeMessage2), '');
|
||||
trackEvent('agentFeature', 'welcomeMessage2');
|
||||
clearInterval(welcomeMessage2Interval);
|
||||
}
|
||||
|
||||
}, 1000);
|
||||
}
|
||||
|
||||
//Speak when scroll end
|
||||
function bindScroll() {
|
||||
if ((window.innerHeight + window.pageYOffset) >= document.body.offsetHeight - 100 && config.text_speakEndPage != null && config.text_speakEndPage != "") {
|
||||
console.log("bottom");
|
||||
window.removeEventListener('scroll', bindScroll);
|
||||
|
||||
responsiveVoice.speak(GetRandomMsg(config.text_speakEndPage), '');
|
||||
trackEvent('agentFeature', 'scrollEnd');
|
||||
}
|
||||
}
|
||||
|
||||
if (config.speakEndPage) {
|
||||
window.addEventListener('scroll', bindScroll);
|
||||
}
|
||||
|
||||
//Inactivity
|
||||
var idleTime = 0;
|
||||
if (config.speakInactivity) {
|
||||
setInterval(timerIncrement, 1000);
|
||||
|
||||
window.addEventListener('mousemove', function() {
|
||||
idleTime = 0;
|
||||
});
|
||||
|
||||
window.addEventListener('keyup', function() {
|
||||
idleTime = 0;
|
||||
});
|
||||
}
|
||||
|
||||
function timerIncrement() {
|
||||
idleTime += 1000;
|
||||
|
||||
if (idleTime >= 30000) {
|
||||
responsiveVoice.speak(GetRandomMsg(config.text_speakInactivity), '');
|
||||
trackEvent('agentFeature', 'inactivity');
|
||||
idleTime = 0;
|
||||
}
|
||||
}
|
||||
|
||||
//Exit intent
|
||||
if (config.speakInactivity) {
|
||||
console.info("setting up exit intent");
|
||||
document.addEventListener('mouseout', exitIntent);
|
||||
}
|
||||
|
||||
function exitIntent(e) {
|
||||
if (e.clientY < 0) {
|
||||
responsiveVoice.speak(GetRandomMsg(config.text_exitIntent), '');
|
||||
trackEvent('agentFeature', 'exitIntent');
|
||||
}
|
||||
}
|
||||
|
||||
//Tab and ctrl to speak - Accessibility Navigation
|
||||
var started = 0;
|
||||
if (config.accesibilityNavigation) {
|
||||
console.log("accesibilityNavigation");
|
||||
|
||||
document.addEventListener('keyup',function(e){
|
||||
console.log('keyup called');
|
||||
|
||||
var code = e.keyCode || e.which;
|
||||
|
||||
if(e.target){
|
||||
switch(e.target.tagName){
|
||||
case 'A':
|
||||
if (code == '9') {
|
||||
responsiveVoice.speak('Link 2 ' + e.target.text, '');
|
||||
trackEvent('agentFeature', 'accesibilityNavigation', 'tab');
|
||||
}
|
||||
break;
|
||||
|
||||
case 'BUTTON':
|
||||
if (code == '9') {
|
||||
setTimeout(responsiveVoice.speak( e.target.textContent + ' button', ''), 1000);
|
||||
trackEvent('agentFeature', 'accesibilityNavigation', 'tab');
|
||||
}
|
||||
break;
|
||||
|
||||
case 'TEXTAREA':
|
||||
if (code == '9') {
|
||||
responsiveVoice.speak('Text Input ' + document.querySelectorAll(':focus')[0].getAttribute('placeholder'), '');
|
||||
trackEvent('agentFeature', 'accesibilityNavigation', 'tab');
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
if (config.accesibilityNavigation2) {
|
||||
|
||||
document.addEventListener('keyup',function(e){
|
||||
console.log('keyup called');
|
||||
|
||||
var code = e.keyCode || e.which;
|
||||
|
||||
if (code == '40' && e.ctrlKey) {
|
||||
console.log('ctrl + down arrow');
|
||||
|
||||
responsiveVoice.speak(document.querySelectorAll('p')[started].textContent, '');
|
||||
trackEvent('agentFeature', 'accesibilityNavigation', 'ctrl-arrow');
|
||||
document.querySelectorAll('p')[started].scrollIntoView(false);
|
||||
started = started + 1;
|
||||
}
|
||||
if (code == '38' && e.ctrlKey) {
|
||||
console.log('ctrl + up arrow');
|
||||
|
||||
responsiveVoice.speak(document.querySelectorAll('p')[started].textContent, '');
|
||||
trackEvent('agentFeature', 'accesibilityNavigation', 'ctrl-arrow');
|
||||
document.querySelectorAll('p')[started].scrollIntoView(false);
|
||||
started = started - 1;
|
||||
if(started < 1){
|
||||
started = 0;
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
function createCookie(name, value, days) {
|
||||
if (days) {
|
||||
var date = new Date();
|
||||
date.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000));
|
||||
var expires = "; expires=" + date.toGMTString();
|
||||
} else var expires = "";
|
||||
document.cookie = name + "=" + value + expires + "; path=/";
|
||||
}
|
||||
|
||||
function readCookie(name) {
|
||||
var nameEQ = name + "=";
|
||||
var ca = document.cookie.split(';');
|
||||
for (var i = 0; i < ca.length; i++) {
|
||||
var c = ca[i];
|
||||
while (c.charAt(0) == ' ') c = c.substring(1, c.length);
|
||||
if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length, c.length);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
function eraseCookie(name) {
|
||||
createCookie(name, "", -1);
|
||||
}
|
||||
|
||||
function getOrCreateTest(name, prob, days) {
|
||||
|
||||
var c = readCookie(name);
|
||||
|
||||
if (c == null) {
|
||||
console.log("Cookie set");
|
||||
var v = (Math.random() < (prob != null ? prob : 0.5));
|
||||
//1 hour
|
||||
createCookie(name, v.toString(), (days != null ? days : (1 / 24)));
|
||||
return v;
|
||||
}
|
||||
console.log("Cookie read");
|
||||
return c == (true).toString();
|
||||
|
||||
}
|
||||
|
||||
function oneTimeTest(name, days) {
|
||||
|
||||
var c = readCookie(name);
|
||||
|
||||
if (c == null) {
|
||||
console.log("Cookie set - one time True");
|
||||
//1 hour
|
||||
createCookie(name, (false).toString(), (days != null ? days : (0.5 / 24)));
|
||||
return true;
|
||||
}
|
||||
console.log("Cookie read - one time False");
|
||||
return false;
|
||||
|
||||
}
|
||||
|
||||
function trackEvent(category, action, name, value) {
|
||||
|
||||
if (config.trackEvents != true) return;
|
||||
|
||||
console.log("Track " + category + "," + action + "," + name);
|
||||
|
||||
var url = 'https://ai.learnbrite.com/analytics.php';
|
||||
var postArray = [];
|
||||
|
||||
var data = {
|
||||
idsite: config.analytics_id,
|
||||
rec: 1,
|
||||
url: window.location.href,
|
||||
rand: Math.floor(Math.random() * 1000000000),
|
||||
e_c: category,
|
||||
e_a: action,
|
||||
e_n: name,
|
||||
e_v: value
|
||||
};
|
||||
|
||||
for (var property in data){
|
||||
postArray.push( encodeURI(property + '=' + data[property]));
|
||||
}
|
||||
|
||||
var xhttp = new XMLHttpRequest();
|
||||
|
||||
xhttp.open("POST", url, true);
|
||||
xhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
|
||||
xhttp.send( postArray.join('&') );
|
||||
|
||||
xhttp.onreadystatechange = function() {
|
||||
if (this.readyState == 4 && this.status == 200) {
|
||||
console.log("Tracking Success");
|
||||
console.log(data);
|
||||
}
|
||||
};
|
||||
}
|
@ -1,9 +0,0 @@
|
||||
{
|
||||
"ver": "1.0.8",
|
||||
"uuid": "9f49e939-dfca-4a26-81e2-e22c98a61c90",
|
||||
"isPlugin": true,
|
||||
"loadPluginInWeb": true,
|
||||
"loadPluginInNative": true,
|
||||
"loadPluginInEditor": false,
|
||||
"subMetas": {}
|
||||
}
|
@ -1,12 +1,12 @@
|
||||
{
|
||||
"ver": "1.1.2",
|
||||
"uuid": "29f52784-2fca-467b-92e7-8fd9ef8c57b7",
|
||||
"isBundle": false,
|
||||
"bundleName": "",
|
||||
"priority": 1,
|
||||
"compressionType": {},
|
||||
"optimizeHotUpdate": {},
|
||||
"inlineSpriteFrames": {},
|
||||
"isRemoteBundle": {},
|
||||
"subMetas": {}
|
||||
"ver": "1.1.0",
|
||||
"importer": "directory",
|
||||
"imported": true,
|
||||
"uuid": "b0a4abb1-db32-49c3-9e09-a45b922a2094",
|
||||
"files": [],
|
||||
"subMetas": {},
|
||||
"userData": {
|
||||
"compressionType": {},
|
||||
"isRemoteBundle": {}
|
||||
}
|
||||
}
|
@ -1,499 +0,0 @@
|
||||
[
|
||||
{
|
||||
"__type__": "cc.SceneAsset",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"_native": "",
|
||||
"scene": {
|
||||
"__id__": 1
|
||||
}
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Scene",
|
||||
"_objFlags": 0,
|
||||
"_parent": null,
|
||||
"_children": [
|
||||
{
|
||||
"__id__": 2
|
||||
}
|
||||
],
|
||||
"_active": true,
|
||||
"_components": [],
|
||||
"_prefab": null,
|
||||
"_opacity": 255,
|
||||
"_color": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 255,
|
||||
"g": 255,
|
||||
"b": 255,
|
||||
"a": 255
|
||||
},
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 0,
|
||||
"height": 0
|
||||
},
|
||||
"_anchorPoint": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0,
|
||||
"y": 0
|
||||
},
|
||||
"_trs": {
|
||||
"__type__": "TypedArray",
|
||||
"ctor": "Float64Array",
|
||||
"array": [
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1
|
||||
]
|
||||
},
|
||||
"_is3DNode": true,
|
||||
"_groupIndex": 0,
|
||||
"groupIndex": 0,
|
||||
"autoReleaseAssets": false,
|
||||
"_id": "2d2f792f-a40c-49bb-a189-ed176a246e49"
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Node",
|
||||
"_name": "Canvas",
|
||||
"_objFlags": 0,
|
||||
"_parent": {
|
||||
"__id__": 1
|
||||
},
|
||||
"_children": [
|
||||
{
|
||||
"__id__": 3
|
||||
},
|
||||
{
|
||||
"__id__": 5
|
||||
},
|
||||
{
|
||||
"__id__": 8
|
||||
}
|
||||
],
|
||||
"_active": true,
|
||||
"_components": [
|
||||
{
|
||||
"__id__": 10
|
||||
},
|
||||
{
|
||||
"__id__": 11
|
||||
},
|
||||
{
|
||||
"__id__": 12
|
||||
}
|
||||
],
|
||||
"_prefab": null,
|
||||
"_opacity": 255,
|
||||
"_color": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 252,
|
||||
"g": 252,
|
||||
"b": 252,
|
||||
"a": 255
|
||||
},
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 1080,
|
||||
"height": 1920
|
||||
},
|
||||
"_anchorPoint": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0.5,
|
||||
"y": 0.5
|
||||
},
|
||||
"_trs": {
|
||||
"__type__": "TypedArray",
|
||||
"ctor": "Float64Array",
|
||||
"array": [
|
||||
540,
|
||||
960,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1
|
||||
]
|
||||
},
|
||||
"_eulerAngles": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"z": 0
|
||||
},
|
||||
"_skewX": 0,
|
||||
"_skewY": 0,
|
||||
"_is3DNode": false,
|
||||
"_groupIndex": 0,
|
||||
"groupIndex": 0,
|
||||
"_id": "a286bbGknJLZpRpxROV6M94"
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Node",
|
||||
"_name": "Main Camera",
|
||||
"_objFlags": 0,
|
||||
"_parent": {
|
||||
"__id__": 2
|
||||
},
|
||||
"_children": [],
|
||||
"_active": true,
|
||||
"_components": [
|
||||
{
|
||||
"__id__": 4
|
||||
}
|
||||
],
|
||||
"_prefab": null,
|
||||
"_opacity": 255,
|
||||
"_color": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 255,
|
||||
"g": 255,
|
||||
"b": 255,
|
||||
"a": 255
|
||||
},
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 0,
|
||||
"height": 0
|
||||
},
|
||||
"_anchorPoint": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0.5,
|
||||
"y": 0.5
|
||||
},
|
||||
"_trs": {
|
||||
"__type__": "TypedArray",
|
||||
"ctor": "Float64Array",
|
||||
"array": [
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1
|
||||
]
|
||||
},
|
||||
"_eulerAngles": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"z": 0
|
||||
},
|
||||
"_skewX": 0,
|
||||
"_skewY": 0,
|
||||
"_is3DNode": false,
|
||||
"_groupIndex": 0,
|
||||
"groupIndex": 0,
|
||||
"_id": "c5/6Br055MzKBXcCjb5u1O"
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Camera",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 3
|
||||
},
|
||||
"_enabled": true,
|
||||
"_cullingMask": 4294967295,
|
||||
"_clearFlags": 7,
|
||||
"_backgroundColor": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 0,
|
||||
"g": 0,
|
||||
"b": 0,
|
||||
"a": 255
|
||||
},
|
||||
"_depth": -1,
|
||||
"_zoomRatio": 1,
|
||||
"_targetTexture": null,
|
||||
"_fov": 60,
|
||||
"_orthoSize": 10,
|
||||
"_nearClip": 1,
|
||||
"_farClip": 4096,
|
||||
"_ortho": true,
|
||||
"_rect": {
|
||||
"__type__": "cc.Rect",
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"width": 1,
|
||||
"height": 1
|
||||
},
|
||||
"_renderStages": 1,
|
||||
"_alignWithScreen": true,
|
||||
"_id": "1fjyt/7PtGNaat73cXIgI8"
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Node",
|
||||
"_name": "WebView",
|
||||
"_objFlags": 0,
|
||||
"_parent": {
|
||||
"__id__": 2
|
||||
},
|
||||
"_children": [],
|
||||
"_active": false,
|
||||
"_components": [
|
||||
{
|
||||
"__id__": 6
|
||||
},
|
||||
{
|
||||
"__id__": 7
|
||||
}
|
||||
],
|
||||
"_prefab": null,
|
||||
"_opacity": 255,
|
||||
"_color": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 255,
|
||||
"g": 255,
|
||||
"b": 255,
|
||||
"a": 255
|
||||
},
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 1080,
|
||||
"height": 1920
|
||||
},
|
||||
"_anchorPoint": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0.5,
|
||||
"y": 0.5
|
||||
},
|
||||
"_trs": {
|
||||
"__type__": "TypedArray",
|
||||
"ctor": "Float64Array",
|
||||
"array": [
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1
|
||||
]
|
||||
},
|
||||
"_eulerAngles": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"z": 0
|
||||
},
|
||||
"_skewX": 0,
|
||||
"_skewY": 0,
|
||||
"_is3DNode": false,
|
||||
"_groupIndex": 0,
|
||||
"groupIndex": 0,
|
||||
"_id": "d8rZibRcJKvZMF2kVvZBh9"
|
||||
},
|
||||
{
|
||||
"__type__": "cc.WebView",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 5
|
||||
},
|
||||
"_enabled": true,
|
||||
"_url": "",
|
||||
"webviewEvents": [],
|
||||
"_id": "0dhyrwc5lM/oEUOjnLH8Wx"
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Widget",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 5
|
||||
},
|
||||
"_enabled": true,
|
||||
"alignMode": 1,
|
||||
"_target": {
|
||||
"__id__": 2
|
||||
},
|
||||
"_alignFlags": 45,
|
||||
"_left": 0,
|
||||
"_right": 0,
|
||||
"_top": 0,
|
||||
"_bottom": 0,
|
||||
"_verticalCenter": 0,
|
||||
"_horizontalCenter": 0,
|
||||
"_isAbsLeft": true,
|
||||
"_isAbsRight": true,
|
||||
"_isAbsTop": true,
|
||||
"_isAbsBottom": true,
|
||||
"_isAbsHorizontalCenter": true,
|
||||
"_isAbsVerticalCenter": true,
|
||||
"_originalWidth": 1080,
|
||||
"_originalHeight": 1920,
|
||||
"_id": "86PkA+qQ9MHrsu5Inmk20K"
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Node",
|
||||
"_name": "BG",
|
||||
"_objFlags": 0,
|
||||
"_parent": {
|
||||
"__id__": 2
|
||||
},
|
||||
"_children": [],
|
||||
"_active": true,
|
||||
"_components": [
|
||||
{
|
||||
"__id__": 9
|
||||
}
|
||||
],
|
||||
"_prefab": null,
|
||||
"_opacity": 255,
|
||||
"_color": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 255,
|
||||
"g": 255,
|
||||
"b": 255,
|
||||
"a": 255
|
||||
},
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 1080,
|
||||
"height": 1920
|
||||
},
|
||||
"_anchorPoint": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0.5,
|
||||
"y": 0.5
|
||||
},
|
||||
"_trs": {
|
||||
"__type__": "TypedArray",
|
||||
"ctor": "Float64Array",
|
||||
"array": [
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1
|
||||
]
|
||||
},
|
||||
"_eulerAngles": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"z": 0
|
||||
},
|
||||
"_skewX": 0,
|
||||
"_skewY": 0,
|
||||
"_is3DNode": false,
|
||||
"_groupIndex": 0,
|
||||
"groupIndex": 0,
|
||||
"_id": "06rILMfyZEIrTaV20dN+IL"
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Sprite",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 8
|
||||
},
|
||||
"_enabled": true,
|
||||
"_materials": [
|
||||
{
|
||||
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
|
||||
}
|
||||
],
|
||||
"_srcBlendFactor": 770,
|
||||
"_dstBlendFactor": 771,
|
||||
"_spriteFrame": {
|
||||
"__uuid__": "7e492808-7fd3-4b8e-8e0d-4ab06fcee554"
|
||||
},
|
||||
"_type": 2,
|
||||
"_sizeMode": 0,
|
||||
"_fillType": 0,
|
||||
"_fillCenter": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0,
|
||||
"y": 0
|
||||
},
|
||||
"_fillStart": 0,
|
||||
"_fillRange": 0,
|
||||
"_isTrimmedMode": true,
|
||||
"_atlas": null,
|
||||
"_id": "d9uP1ksCZCaai71lia08yU"
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Canvas",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 2
|
||||
},
|
||||
"_enabled": true,
|
||||
"_designResolution": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 1080,
|
||||
"height": 1920
|
||||
},
|
||||
"_fitWidth": true,
|
||||
"_fitHeight": true,
|
||||
"_id": "0dgPOuU9NGKZz0IK/YfKTq"
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Widget",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 2
|
||||
},
|
||||
"_enabled": true,
|
||||
"alignMode": 1,
|
||||
"_target": null,
|
||||
"_alignFlags": 45,
|
||||
"_left": 0,
|
||||
"_right": 0,
|
||||
"_top": 0,
|
||||
"_bottom": 0,
|
||||
"_verticalCenter": 0,
|
||||
"_horizontalCenter": 0,
|
||||
"_isAbsLeft": true,
|
||||
"_isAbsRight": true,
|
||||
"_isAbsTop": true,
|
||||
"_isAbsBottom": true,
|
||||
"_isAbsHorizontalCenter": true,
|
||||
"_isAbsVerticalCenter": true,
|
||||
"_originalWidth": 0,
|
||||
"_originalHeight": 0,
|
||||
"_id": "56i7y6VTBNEZCKvOCJzojM"
|
||||
},
|
||||
{
|
||||
"__type__": "e1b90/rohdEk4SdmmEZANaD",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 2
|
||||
},
|
||||
"_enabled": true,
|
||||
"webview": {
|
||||
"__id__": 6
|
||||
},
|
||||
"BG": {
|
||||
"__id__": 8
|
||||
},
|
||||
"_id": "b3AScs1lVP7ruEGNmMEKXU"
|
||||
}
|
||||
]
|
@ -1,7 +0,0 @@
|
||||
{
|
||||
"ver": "1.2.9",
|
||||
"uuid": "2d2f792f-a40c-49bb-a189-ed176a246e49",
|
||||
"asyncLoadAssets": false,
|
||||
"autoReleaseAssets": false,
|
||||
"subMetas": {}
|
||||
}
|
848
assets/Scene/main.scene
Normal file
@ -0,0 +1,848 @@
|
||||
[
|
||||
{
|
||||
"__type__": "cc.SceneAsset",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"_native": "",
|
||||
"scene": {
|
||||
"__id__": 1
|
||||
}
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Scene",
|
||||
"_name": "main",
|
||||
"_objFlags": 0,
|
||||
"_parent": null,
|
||||
"_children": [
|
||||
{
|
||||
"__id__": 2
|
||||
},
|
||||
{
|
||||
"__id__": 5
|
||||
},
|
||||
{
|
||||
"__id__": 7
|
||||
}
|
||||
],
|
||||
"_active": true,
|
||||
"_components": [],
|
||||
"_prefab": {
|
||||
"__id__": 22
|
||||
},
|
||||
"autoReleaseAssets": false,
|
||||
"_globals": {
|
||||
"__id__": 23
|
||||
},
|
||||
"_id": "7c3e7fab-7b1e-4865-ba84-3cf81b48b9fb"
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Node",
|
||||
"_name": "Main Light",
|
||||
"_objFlags": 0,
|
||||
"_parent": {
|
||||
"__id__": 1
|
||||
},
|
||||
"_children": [],
|
||||
"_active": true,
|
||||
"_components": [
|
||||
{
|
||||
"__id__": 3
|
||||
}
|
||||
],
|
||||
"_prefab": null,
|
||||
"_lpos": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": -2.955,
|
||||
"y": 3.412,
|
||||
"z": 5.118
|
||||
},
|
||||
"_lrot": {
|
||||
"__type__": "cc.Quat",
|
||||
"x": -0.24999999999999997,
|
||||
"y": -0.24999999999999997,
|
||||
"z": -0.06698729810778066,
|
||||
"w": 0.9330127018922194
|
||||
},
|
||||
"_lscale": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": 1,
|
||||
"y": 1,
|
||||
"z": 1
|
||||
},
|
||||
"_layer": 1073741824,
|
||||
"_euler": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": -30,
|
||||
"y": -30,
|
||||
"z": 0
|
||||
},
|
||||
"_id": "c0y6F5f+pAvI805TdmxIjx"
|
||||
},
|
||||
{
|
||||
"__type__": "cc.DirectionalLight",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 2
|
||||
},
|
||||
"_enabled": true,
|
||||
"__prefab": null,
|
||||
"_color": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 255,
|
||||
"g": 255,
|
||||
"b": 255,
|
||||
"a": 255
|
||||
},
|
||||
"_useColorTemperature": false,
|
||||
"_colorTemperature": 6550,
|
||||
"_staticSettings": {
|
||||
"__id__": 4
|
||||
},
|
||||
"_illuminanceHDR": 125000,
|
||||
"_illuminance": 125000,
|
||||
"_illuminanceLDR": 3.2552083333333335,
|
||||
"_shadowEnabled": true,
|
||||
"_shadowPcf": 2,
|
||||
"_shadowBias": 0.01,
|
||||
"_shadowNormalBias": 0,
|
||||
"_shadowSaturation": 0.45098039215686275,
|
||||
"_shadowDistance": 10,
|
||||
"_shadowInvisibleOcclusionRange": 200,
|
||||
"_csmLevel": 1,
|
||||
"_csmLayerLambda": 0.75,
|
||||
"_csmOptimizationMode": 2,
|
||||
"_shadowFixedArea": false,
|
||||
"_shadowNear": 0.1,
|
||||
"_shadowFar": 50,
|
||||
"_shadowOrthoSize": 10,
|
||||
"_id": "597uMYCbhEtJQc0ffJlcgA"
|
||||
},
|
||||
{
|
||||
"__type__": "cc.StaticLightSettings",
|
||||
"_baked": false,
|
||||
"_editorOnly": false,
|
||||
"_bakeable": false,
|
||||
"_castShadow": false
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Node",
|
||||
"_name": "Main Camera",
|
||||
"_objFlags": 0,
|
||||
"_parent": {
|
||||
"__id__": 1
|
||||
},
|
||||
"_children": [],
|
||||
"_active": true,
|
||||
"_components": [
|
||||
{
|
||||
"__id__": 6
|
||||
}
|
||||
],
|
||||
"_prefab": null,
|
||||
"_lpos": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": 0.4563737338172984,
|
||||
"y": 4.020698998822525,
|
||||
"z": 7.83104356477376
|
||||
},
|
||||
"_lrot": {
|
||||
"__type__": "cc.Quat",
|
||||
"x": -0.07236081996736556,
|
||||
"y": 0.03501809641207027,
|
||||
"z": 0.002542173940871125,
|
||||
"w": 0.9967603433167774
|
||||
},
|
||||
"_lscale": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": 1,
|
||||
"y": 1,
|
||||
"z": 1
|
||||
},
|
||||
"_layer": 1073741824,
|
||||
"_euler": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": -8.304321541008003,
|
||||
"y": 4.024165472580301,
|
||||
"z": 9.93923337957349e-17
|
||||
},
|
||||
"_id": "c9DMICJLFO5IeO07EPon7U"
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Camera",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 5
|
||||
},
|
||||
"_enabled": true,
|
||||
"__prefab": null,
|
||||
"_projection": 1,
|
||||
"_priority": 0,
|
||||
"_fov": 45,
|
||||
"_fovAxis": 0,
|
||||
"_orthoHeight": 10,
|
||||
"_near": 1,
|
||||
"_far": 1000,
|
||||
"_color": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 51,
|
||||
"g": 51,
|
||||
"b": 51,
|
||||
"a": 255
|
||||
},
|
||||
"_depth": 1,
|
||||
"_stencil": 0,
|
||||
"_clearFlags": 14,
|
||||
"_rect": {
|
||||
"__type__": "cc.Rect",
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"width": 1,
|
||||
"height": 1
|
||||
},
|
||||
"_aperture": 19,
|
||||
"_shutter": 7,
|
||||
"_iso": 0,
|
||||
"_screenScale": 1,
|
||||
"_visibility": 1820327937,
|
||||
"_targetTexture": null,
|
||||
"_id": "7dWQTpwS5LrIHnc1zAPUtf"
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Node",
|
||||
"_name": "Canvas",
|
||||
"_objFlags": 0,
|
||||
"_parent": {
|
||||
"__id__": 1
|
||||
},
|
||||
"_children": [
|
||||
{
|
||||
"__id__": 8
|
||||
},
|
||||
{
|
||||
"__id__": 10
|
||||
},
|
||||
{
|
||||
"__id__": 14
|
||||
}
|
||||
],
|
||||
"_active": true,
|
||||
"_components": [
|
||||
{
|
||||
"__id__": 18
|
||||
},
|
||||
{
|
||||
"__id__": 19
|
||||
},
|
||||
{
|
||||
"__id__": 20
|
||||
},
|
||||
{
|
||||
"__id__": 21
|
||||
}
|
||||
],
|
||||
"_prefab": null,
|
||||
"_lpos": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": 960,
|
||||
"y": 540,
|
||||
"z": 0
|
||||
},
|
||||
"_lrot": {
|
||||
"__type__": "cc.Quat",
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"z": 0,
|
||||
"w": 1
|
||||
},
|
||||
"_lscale": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": 1,
|
||||
"y": 1,
|
||||
"z": 1
|
||||
},
|
||||
"_layer": 33554432,
|
||||
"_euler": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"z": 0
|
||||
},
|
||||
"_id": "908/6/QfxM4K4c1r8nNUKi"
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Node",
|
||||
"_name": "Camera",
|
||||
"_objFlags": 0,
|
||||
"_parent": {
|
||||
"__id__": 7
|
||||
},
|
||||
"_children": [],
|
||||
"_active": true,
|
||||
"_components": [
|
||||
{
|
||||
"__id__": 9
|
||||
}
|
||||
],
|
||||
"_prefab": null,
|
||||
"_lpos": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"z": 1000
|
||||
},
|
||||
"_lrot": {
|
||||
"__type__": "cc.Quat",
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"z": 0,
|
||||
"w": 1
|
||||
},
|
||||
"_lscale": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": 1,
|
||||
"y": 1,
|
||||
"z": 1
|
||||
},
|
||||
"_layer": 1073741824,
|
||||
"_euler": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"z": 0
|
||||
},
|
||||
"_id": "c0XKY+1NhJgb5FAZlreFB9"
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Camera",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 8
|
||||
},
|
||||
"_enabled": true,
|
||||
"__prefab": null,
|
||||
"_projection": 0,
|
||||
"_priority": 1073741824,
|
||||
"_fov": 45,
|
||||
"_fovAxis": 0,
|
||||
"_orthoHeight": 621.294363256785,
|
||||
"_near": 1,
|
||||
"_far": 2000,
|
||||
"_color": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 0,
|
||||
"g": 0,
|
||||
"b": 0,
|
||||
"a": 255
|
||||
},
|
||||
"_depth": 1,
|
||||
"_stencil": 0,
|
||||
"_clearFlags": 6,
|
||||
"_rect": {
|
||||
"__type__": "cc.Rect",
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"width": 1,
|
||||
"height": 1
|
||||
},
|
||||
"_aperture": 19,
|
||||
"_shutter": 7,
|
||||
"_iso": 0,
|
||||
"_screenScale": 1,
|
||||
"_visibility": 41943040,
|
||||
"_targetTexture": null,
|
||||
"_id": "c6G+D/GxVOLIeSICvFAsI8"
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Node",
|
||||
"_name": "WebView",
|
||||
"_objFlags": 0,
|
||||
"_parent": {
|
||||
"__id__": 7
|
||||
},
|
||||
"_children": [],
|
||||
"_active": true,
|
||||
"_components": [
|
||||
{
|
||||
"__id__": 11
|
||||
},
|
||||
{
|
||||
"__id__": 12
|
||||
},
|
||||
{
|
||||
"__id__": 13
|
||||
}
|
||||
],
|
||||
"_prefab": null,
|
||||
"_lpos": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"z": 0
|
||||
},
|
||||
"_lrot": {
|
||||
"__type__": "cc.Quat",
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"z": 0,
|
||||
"w": 1
|
||||
},
|
||||
"_lscale": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": 1,
|
||||
"y": 1,
|
||||
"z": 1
|
||||
},
|
||||
"_layer": 33554432,
|
||||
"_euler": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"z": 0
|
||||
},
|
||||
"_id": "d1sSteaRZLho0zXPuXrByi"
|
||||
},
|
||||
{
|
||||
"__type__": "cc.UITransform",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 10
|
||||
},
|
||||
"_enabled": true,
|
||||
"__prefab": null,
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 1920,
|
||||
"height": 1080
|
||||
},
|
||||
"_anchorPoint": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0.5,
|
||||
"y": 0.5
|
||||
},
|
||||
"_id": "d0ym2Sj7JCwKg6iMpxy/UB"
|
||||
},
|
||||
{
|
||||
"__type__": "cc.WebView",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 10
|
||||
},
|
||||
"_enabled": true,
|
||||
"__prefab": null,
|
||||
"_url": "",
|
||||
"webviewEvents": [],
|
||||
"_id": "43LdWDvjdMi6jP8z7gR9GC"
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Widget",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 10
|
||||
},
|
||||
"_enabled": true,
|
||||
"__prefab": null,
|
||||
"_alignFlags": 45,
|
||||
"_target": {
|
||||
"__id__": 7
|
||||
},
|
||||
"_left": 0,
|
||||
"_right": 0,
|
||||
"_top": 0,
|
||||
"_bottom": 0,
|
||||
"_horizontalCenter": 0,
|
||||
"_verticalCenter": 0,
|
||||
"_isAbsLeft": true,
|
||||
"_isAbsRight": true,
|
||||
"_isAbsTop": true,
|
||||
"_isAbsBottom": true,
|
||||
"_isAbsHorizontalCenter": true,
|
||||
"_isAbsVerticalCenter": true,
|
||||
"_originalWidth": 1920,
|
||||
"_originalHeight": 1080,
|
||||
"_alignMode": 2,
|
||||
"_lockFlags": 0,
|
||||
"_id": "e5DcEepblLJZlF72ZtR8TI"
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Node",
|
||||
"_name": "BG",
|
||||
"_objFlags": 0,
|
||||
"_parent": {
|
||||
"__id__": 7
|
||||
},
|
||||
"_children": [],
|
||||
"_active": true,
|
||||
"_components": [
|
||||
{
|
||||
"__id__": 15
|
||||
},
|
||||
{
|
||||
"__id__": 16
|
||||
},
|
||||
{
|
||||
"__id__": 17
|
||||
}
|
||||
],
|
||||
"_prefab": null,
|
||||
"_lpos": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"z": 0
|
||||
},
|
||||
"_lrot": {
|
||||
"__type__": "cc.Quat",
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"z": 0,
|
||||
"w": 1
|
||||
},
|
||||
"_lscale": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": 1,
|
||||
"y": 1,
|
||||
"z": 1
|
||||
},
|
||||
"_layer": 33554432,
|
||||
"_euler": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"z": 0
|
||||
},
|
||||
"_id": "89OMWWWNNJtajSvUplGbBk"
|
||||
},
|
||||
{
|
||||
"__type__": "cc.UITransform",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 14
|
||||
},
|
||||
"_enabled": true,
|
||||
"__prefab": null,
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 1920,
|
||||
"height": 1080
|
||||
},
|
||||
"_anchorPoint": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0.5,
|
||||
"y": 0.5
|
||||
},
|
||||
"_id": "04CfWzRMdEY4vh8onF+/+3"
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Sprite",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 14
|
||||
},
|
||||
"_enabled": true,
|
||||
"__prefab": null,
|
||||
"_customMaterial": null,
|
||||
"_srcBlendFactor": 2,
|
||||
"_dstBlendFactor": 4,
|
||||
"_color": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 255,
|
||||
"g": 255,
|
||||
"b": 255,
|
||||
"a": 255
|
||||
},
|
||||
"_spriteFrame": {
|
||||
"__uuid__": "32529222-c618-4fd0-8ee3-2515779c1523@f9941",
|
||||
"__expectedType__": "cc.SpriteFrame"
|
||||
},
|
||||
"_type": 2,
|
||||
"_fillType": 0,
|
||||
"_sizeMode": 0,
|
||||
"_fillCenter": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0,
|
||||
"y": 0
|
||||
},
|
||||
"_fillStart": 0,
|
||||
"_fillRange": 0,
|
||||
"_isTrimmedMode": false,
|
||||
"_useGrayscale": false,
|
||||
"_atlas": null,
|
||||
"_id": "7feKJaF5NAyLxn+dhmMd7E"
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Widget",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 14
|
||||
},
|
||||
"_enabled": true,
|
||||
"__prefab": null,
|
||||
"_alignFlags": 45,
|
||||
"_target": {
|
||||
"__id__": 7
|
||||
},
|
||||
"_left": 0,
|
||||
"_right": 0,
|
||||
"_top": 0,
|
||||
"_bottom": 0,
|
||||
"_horizontalCenter": 0,
|
||||
"_verticalCenter": 0,
|
||||
"_isAbsLeft": true,
|
||||
"_isAbsRight": true,
|
||||
"_isAbsTop": true,
|
||||
"_isAbsBottom": true,
|
||||
"_isAbsHorizontalCenter": true,
|
||||
"_isAbsVerticalCenter": true,
|
||||
"_originalWidth": 1920,
|
||||
"_originalHeight": 1080,
|
||||
"_alignMode": 2,
|
||||
"_lockFlags": 0,
|
||||
"_id": "93CvkNwNFIQrVBnqIMUgBY"
|
||||
},
|
||||
{
|
||||
"__type__": "cc.UITransform",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 7
|
||||
},
|
||||
"_enabled": true,
|
||||
"__prefab": null,
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 1920,
|
||||
"height": 1080
|
||||
},
|
||||
"_anchorPoint": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0.5,
|
||||
"y": 0.5
|
||||
},
|
||||
"_id": "1aUJkXqCZOlIoshcE1hN+D"
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Canvas",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 7
|
||||
},
|
||||
"_enabled": true,
|
||||
"__prefab": null,
|
||||
"_cameraComponent": {
|
||||
"__id__": 9
|
||||
},
|
||||
"_alignCanvasWithScreen": true,
|
||||
"_id": "b9gz0ho9hHVLqMPaHzKZAD"
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Widget",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 7
|
||||
},
|
||||
"_enabled": true,
|
||||
"__prefab": null,
|
||||
"_alignFlags": 45,
|
||||
"_target": null,
|
||||
"_left": 0,
|
||||
"_right": 0,
|
||||
"_top": 0,
|
||||
"_bottom": 0,
|
||||
"_horizontalCenter": 0,
|
||||
"_verticalCenter": 0,
|
||||
"_isAbsLeft": true,
|
||||
"_isAbsRight": true,
|
||||
"_isAbsTop": true,
|
||||
"_isAbsBottom": true,
|
||||
"_isAbsHorizontalCenter": true,
|
||||
"_isAbsVerticalCenter": true,
|
||||
"_originalWidth": 1920,
|
||||
"_originalHeight": 0,
|
||||
"_alignMode": 2,
|
||||
"_lockFlags": 45,
|
||||
"_id": "45KPaZglhB+6IsnpN/rG63"
|
||||
},
|
||||
{
|
||||
"__type__": "6deacl+Sm5KOrwc9bStgMJq",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 7
|
||||
},
|
||||
"_enabled": true,
|
||||
"__prefab": null,
|
||||
"webview": {
|
||||
"__id__": 12
|
||||
},
|
||||
"BG": {
|
||||
"__id__": 14
|
||||
},
|
||||
"_id": "fcaoAYuTdMY4PBjQaR1H6L"
|
||||
},
|
||||
{
|
||||
"__type__": "cc.PrefabInfo",
|
||||
"fileId": "",
|
||||
"targetOverrides": []
|
||||
},
|
||||
{
|
||||
"__type__": "cc.SceneGlobals",
|
||||
"ambient": {
|
||||
"__id__": 24
|
||||
},
|
||||
"shadows": {
|
||||
"__id__": 25
|
||||
},
|
||||
"_skybox": {
|
||||
"__id__": 26
|
||||
},
|
||||
"fog": {
|
||||
"__id__": 27
|
||||
},
|
||||
"octree": {
|
||||
"__id__": 28
|
||||
}
|
||||
},
|
||||
{
|
||||
"__type__": "cc.AmbientInfo",
|
||||
"_skyColorHDR": {
|
||||
"__type__": "cc.Vec4",
|
||||
"x": 0.2,
|
||||
"y": 0.5019607843137255,
|
||||
"z": 0.8,
|
||||
"w": 0.520833125
|
||||
},
|
||||
"_skyColor": {
|
||||
"__type__": "cc.Vec4",
|
||||
"x": 0.2,
|
||||
"y": 0.5019607843137255,
|
||||
"z": 0.8,
|
||||
"w": 0.520833125
|
||||
},
|
||||
"_skyIllumHDR": 20000,
|
||||
"_skyIllum": 20000,
|
||||
"_groundAlbedoHDR": {
|
||||
"__type__": "cc.Vec4",
|
||||
"x": 0.2,
|
||||
"y": 0.2,
|
||||
"z": 0.2,
|
||||
"w": 1
|
||||
},
|
||||
"_groundAlbedo": {
|
||||
"__type__": "cc.Vec4",
|
||||
"x": 0.2,
|
||||
"y": 0.2,
|
||||
"z": 0.2,
|
||||
"w": 1
|
||||
},
|
||||
"_skyColorLDR": {
|
||||
"__type__": "cc.Vec4",
|
||||
"x": 0.2,
|
||||
"y": 0.5019607843137255,
|
||||
"z": 0.8,
|
||||
"w": 0.520833125
|
||||
},
|
||||
"_skyIllumLDR": 0.78125,
|
||||
"_groundAlbedoLDR": {
|
||||
"__type__": "cc.Vec4",
|
||||
"x": 0.2,
|
||||
"y": 0.2,
|
||||
"z": 0.2,
|
||||
"w": 1
|
||||
}
|
||||
},
|
||||
{
|
||||
"__type__": "cc.ShadowsInfo",
|
||||
"_enabled": false,
|
||||
"_type": 1,
|
||||
"_normal": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": 0,
|
||||
"y": 1,
|
||||
"z": 0
|
||||
},
|
||||
"_distance": 1,
|
||||
"_shadowColor": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 0,
|
||||
"g": 0,
|
||||
"b": 0,
|
||||
"a": 115
|
||||
},
|
||||
"_maxReceived": 4,
|
||||
"_size": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 512,
|
||||
"y": 512
|
||||
}
|
||||
},
|
||||
{
|
||||
"__type__": "cc.SkyboxInfo",
|
||||
"_envLightingType": 0,
|
||||
"_envmapHDR": {
|
||||
"__uuid__": "5af201b5-5951-4e2c-a81f-ac4aad9132cb@b47c0",
|
||||
"__expectedType__": "cc.TextureCube"
|
||||
},
|
||||
"_envmap": {
|
||||
"__uuid__": "5af201b5-5951-4e2c-a81f-ac4aad9132cb@b47c0",
|
||||
"__expectedType__": "cc.TextureCube"
|
||||
},
|
||||
"_envmapLDR": {
|
||||
"__uuid__": "5af201b5-5951-4e2c-a81f-ac4aad9132cb@b47c0",
|
||||
"__expectedType__": "cc.TextureCube"
|
||||
},
|
||||
"_diffuseMapHDR": null,
|
||||
"_diffuseMapLDR": null,
|
||||
"_enabled": false,
|
||||
"_useHDR": true,
|
||||
"_editableMaterial": null,
|
||||
"_reflectionHDR": null,
|
||||
"_reflectionLDR": null
|
||||
},
|
||||
{
|
||||
"__type__": "cc.FogInfo",
|
||||
"_type": 0,
|
||||
"_fogColor": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 225,
|
||||
"g": 225,
|
||||
"b": 225,
|
||||
"a": 255
|
||||
},
|
||||
"_enabled": false,
|
||||
"_fogDensity": 0.3,
|
||||
"_fogStart": 0.5,
|
||||
"_fogEnd": 300,
|
||||
"_fogAtten": 5,
|
||||
"_fogTop": 1.5,
|
||||
"_fogRange": 1.2,
|
||||
"_accurate": false
|
||||
},
|
||||
{
|
||||
"__type__": "cc.OctreeInfo",
|
||||
"_enabled": false,
|
||||
"_minPos": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": -1024,
|
||||
"y": -1024,
|
||||
"z": -1024
|
||||
},
|
||||
"_maxPos": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": 1024,
|
||||
"y": 1024,
|
||||
"z": 1024
|
||||
},
|
||||
"_depth": 8
|
||||
}
|
||||
]
|
11
assets/Scene/main.scene.meta
Normal file
@ -0,0 +1,11 @@
|
||||
{
|
||||
"ver": "1.1.39",
|
||||
"importer": "scene",
|
||||
"imported": true,
|
||||
"uuid": "7c3e7fab-7b1e-4865-ba84-3cf81b48b9fb",
|
||||
"files": [
|
||||
".json"
|
||||
],
|
||||
"subMetas": {},
|
||||
"userData": {}
|
||||
}
|
@ -1,12 +1,12 @@
|
||||
{
|
||||
"ver": "1.1.2",
|
||||
"uuid": "4734c20c-0db8-4eb2-92ea-e692f4d70934",
|
||||
"isBundle": false,
|
||||
"bundleName": "",
|
||||
"priority": 1,
|
||||
"compressionType": {},
|
||||
"optimizeHotUpdate": {},
|
||||
"inlineSpriteFrames": {},
|
||||
"isRemoteBundle": {},
|
||||
"subMetas": {}
|
||||
"ver": "1.1.0",
|
||||
"importer": "directory",
|
||||
"imported": true,
|
||||
"uuid": "ea2473d1-34df-4586-9987-bc911882058d",
|
||||
"files": [],
|
||||
"subMetas": {},
|
||||
"userData": {
|
||||
"compressionType": {},
|
||||
"isRemoteBundle": {}
|
||||
}
|
||||
}
|
@ -1,119 +1,129 @@
|
||||
import Text_to_Speech from "./Text_to_Speech";
|
||||
import { Component, game, macro, Node, screen, size, Size, view, WebView, _decorator } from 'cc';
|
||||
import { DEBUG } from 'cc/env';
|
||||
const { ccclass, property } = _decorator;
|
||||
|
||||
const { ccclass, property } = cc._decorator;
|
||||
@ccclass('Manager')
|
||||
export class Manager extends Component {
|
||||
//#region 外調參數
|
||||
|
||||
@ccclass
|
||||
export default class Manager extends cc.Component {
|
||||
//#region 外調參數
|
||||
@property({ type: WebView })
|
||||
public webview: WebView = null;
|
||||
|
||||
@property({ type: cc.WebView })
|
||||
public webview: cc.WebView = null;
|
||||
@property({ type: Node })
|
||||
public BG: Node = null;
|
||||
|
||||
@property({ type: cc.Node })
|
||||
public BG: cc.Node = null;
|
||||
//#endregion
|
||||
|
||||
//#endregion
|
||||
//#region private
|
||||
|
||||
//#region private
|
||||
// private _text_to_Speech: Text_to_Speech;
|
||||
|
||||
private _text_to_Speech: Text_to_Speech;
|
||||
private _isSetResize: boolean = false;
|
||||
|
||||
//#endregion
|
||||
//#endregion
|
||||
|
||||
//#region Lifecycle
|
||||
//#region Lifecycle
|
||||
|
||||
protected onLoad(): void {
|
||||
if (CC_DEBUG) {
|
||||
console.log("Debug");
|
||||
}
|
||||
let self: this = this;
|
||||
this._text_to_Speech = new Text_to_Speech();
|
||||
window.addEventListener("message", function (e: MessageEvent<any>): void {
|
||||
let data: any = e.data;
|
||||
let method: string = data.method;
|
||||
let value: any = data.value;
|
||||
self.Birdge(method, ...value);
|
||||
}, false);
|
||||
protected onLoad(): void {
|
||||
if (DEBUG) {
|
||||
console.log("Debug");
|
||||
}
|
||||
let self: this = this;
|
||||
// this._text_to_Speech = new Text_to_Speech();
|
||||
window.addEventListener("message", function (e: MessageEvent<any>): void {
|
||||
let data: any = e.data;
|
||||
let method: string = data.method;
|
||||
let value: any = data.value;
|
||||
self.Birdge(method, ...value);
|
||||
}, false);
|
||||
|
||||
if (!window["Bridge"]) {
|
||||
window["Bridge"] = function (method: string = "", value: string = ""): void {
|
||||
self.Birdge(method, value);
|
||||
};
|
||||
}
|
||||
let href: string = window.location.href;
|
||||
if (!window["Bridge"]) {
|
||||
window["Bridge"] = function (method: string = "", value: string = ""): void {
|
||||
self.Birdge(method, value);
|
||||
};
|
||||
}
|
||||
let href: string = window.location.href;
|
||||
|
||||
// let url: string = `https://karolchang.github.io/jm-expense-vue-ts/?host=${href}&ignore=${Date.now()}`;
|
||||
// let url: string = `http://220.134.195.1/public/bonus_casino/html5/jianmiau/BJ_Casino_Rank/?v=${Date.now()}`;
|
||||
// let url: string = `http://karol.jianmiau.cf/jm-expense-vue-ts/?v=${Date.now()}`;
|
||||
let url: string = `https://jm-expense-2022.firebaseapp.com/login?v=${Date.now()}`;
|
||||
this.webview.url = url;
|
||||
// this.webview.url = `http://localhost:8080/jm-expense-vue-ts/?host=${href}&ignore=${Date.now()}`;
|
||||
this.webview.node.active = true;
|
||||
// let url: string = `https://karolchang.github.io/jm-expense-vue-ts/?host=${href}&ignore=${Date.now()}`;
|
||||
// let url: string = `http://220.134.195.1/public/bonus_casino/html5/jianmiau/BJ_Casino_Rank/?v=${Date.now()}`;
|
||||
// let url: string = `http://karol.jianmiau.cf/jm-expense-vue-ts/?v=${Date.now()}`;
|
||||
let url: string = `https://jm-expense-2022.firebaseapp.com/login?v=${Date.now()}`;
|
||||
this.webview.url = url;
|
||||
// this.webview.url = `http://localhost:8080/jm-expense-vue-ts/?host=${href}&ignore=${Date.now()}`;
|
||||
this.webview.node.active = true;
|
||||
|
||||
cc.view.setResizeCallback(this._resize.bind(this));
|
||||
this._resize();
|
||||
}
|
||||
view.setResizeCallback(this._resize.bind(this));
|
||||
this._resize();
|
||||
}
|
||||
|
||||
/** 跨版本溝通
|
||||
* @example
|
||||
* CallParent('Speak', '我愛豬涵')
|
||||
*/
|
||||
public Birdge(method: string, value: string = ""): void {
|
||||
let self: this = this;
|
||||
if (method && self[method]) {
|
||||
if (value) {
|
||||
self[method](value);
|
||||
return;
|
||||
} else if (self[method]) {
|
||||
self[method]();
|
||||
return;
|
||||
}
|
||||
}
|
||||
console.log(`not function: ${method}, value: ${value}`);
|
||||
}
|
||||
/** 跨版本溝通
|
||||
* @example
|
||||
* CallParent('Speak', '我愛豬涵')
|
||||
*/
|
||||
public Birdge(method: string, value: string = ""): void {
|
||||
let self: this = this;
|
||||
if (method && self[method]) {
|
||||
if (value) {
|
||||
self[method](value);
|
||||
return;
|
||||
} else if (self[method]) {
|
||||
self[method]();
|
||||
return;
|
||||
}
|
||||
}
|
||||
console.log(`not function: ${method}, value: ${value}`);
|
||||
}
|
||||
|
||||
public CloseBG(): void {
|
||||
this.BG.destroy();
|
||||
}
|
||||
public CloseBG(): void {
|
||||
if (this.BG) {
|
||||
this.BG.destroy();
|
||||
}
|
||||
}
|
||||
|
||||
public Log(msg: string): void {
|
||||
console.log(msg);
|
||||
}
|
||||
public Log(msg: string): void {
|
||||
console.log(msg);
|
||||
}
|
||||
|
||||
public Speak(msg: string): void {
|
||||
this._text_to_Speech.speak(msg);
|
||||
}
|
||||
public Speak(msg: string): void {
|
||||
// this._text_to_Speech.speak(msg);
|
||||
}
|
||||
|
||||
public Alert(msg: string): void {
|
||||
alert(msg);
|
||||
}
|
||||
public Alert(msg: string): void {
|
||||
alert(msg);
|
||||
}
|
||||
|
||||
private _resize(): void {
|
||||
let Canvas: cc.Canvas = cc.Canvas.instance;
|
||||
let rect: DOMRect = cc.game.canvas.getBoundingClientRect();
|
||||
/** 判断是否是横屏 */
|
||||
let landscape: boolean = false;
|
||||
if (rect.width > rect.height) {
|
||||
landscape = true;
|
||||
}
|
||||
// 根据横竖屏调整节点的位置适配等
|
||||
let frameSize: cc.Size = cc.view.getFrameSize();
|
||||
if (landscape) {
|
||||
// 横屏
|
||||
cc.view.setOrientation(cc.macro.ORIENTATION_LANDSCAPE);
|
||||
if (frameSize.height > frameSize.width) {
|
||||
cc.view.setFrameSize(frameSize.height, frameSize.width);
|
||||
}
|
||||
Canvas.designResolution = cc.size(1920, 1080);
|
||||
} else {
|
||||
// 竖屏
|
||||
cc.view.setOrientation(cc.macro.ORIENTATION_PORTRAIT);
|
||||
if (frameSize.width > frameSize.height) {
|
||||
cc.view.setFrameSize(frameSize.height, frameSize.width);
|
||||
}
|
||||
Canvas.designResolution = cc.size(1080, 1920);
|
||||
}
|
||||
}
|
||||
private _resize(): void {
|
||||
if (this._isSetResize) {
|
||||
return;
|
||||
}
|
||||
this._isSetResize = true;
|
||||
let rect: DOMRect = game.canvas.getBoundingClientRect();
|
||||
/** 判断是否是横屏 */
|
||||
let landscape: boolean = false;
|
||||
if (rect.width > rect.height) {
|
||||
landscape = true;
|
||||
}
|
||||
// 根据横竖屏调整节点的位置适配等
|
||||
let frameSize: Size = screen.windowSize;
|
||||
if (landscape) {
|
||||
// 横屏
|
||||
view.setOrientation(macro.ORIENTATION_LANDSCAPE);
|
||||
if (frameSize.height > frameSize.width) {
|
||||
view.setFrameSize(frameSize.height, frameSize.width);
|
||||
screen.windowSize = size(frameSize.height, frameSize.width);
|
||||
}
|
||||
view.setDesignResolutionSize(1920, 1080, view.getResolutionPolicy());
|
||||
} else {
|
||||
// 竖屏
|
||||
view.setOrientation(macro.ORIENTATION_PORTRAIT);
|
||||
if (frameSize.width > frameSize.height) {
|
||||
// view.setFrameSize(frameSize.height, frameSize.width);
|
||||
screen.windowSize = size(frameSize.height, frameSize.width);
|
||||
}
|
||||
view.setDesignResolutionSize(1080, 1920, view.getResolutionPolicy());
|
||||
}
|
||||
this._isSetResize = false;
|
||||
}
|
||||
|
||||
//#endregion
|
||||
//#endregion
|
||||
}
|
||||
|
@ -1,9 +1,9 @@
|
||||
{
|
||||
"ver": "1.0.8",
|
||||
"uuid": "e1b90feb-a217-4493-849d-9a611900d683",
|
||||
"isPlugin": false,
|
||||
"loadPluginInWeb": true,
|
||||
"loadPluginInNative": true,
|
||||
"loadPluginInEditor": false,
|
||||
"subMetas": {}
|
||||
"ver": "4.0.23",
|
||||
"importer": "typescript",
|
||||
"imported": true,
|
||||
"uuid": "6deac97e-4a6e-4a3a-bc1c-f5b4ad80c26a",
|
||||
"files": [],
|
||||
"subMetas": {},
|
||||
"userData": {}
|
||||
}
|
@ -1,9 +1,9 @@
|
||||
{
|
||||
"ver": "1.0.8",
|
||||
"uuid": "99fa9c05-c449-4a27-b629-42f77916556a",
|
||||
"isPlugin": false,
|
||||
"loadPluginInWeb": true,
|
||||
"loadPluginInNative": true,
|
||||
"loadPluginInEditor": false,
|
||||
"subMetas": {}
|
||||
"ver": "4.0.23",
|
||||
"importer": "typescript",
|
||||
"imported": true,
|
||||
"uuid": "28a462ab-67b9-43c2-8a68-5fa11e66e17e",
|
||||
"files": [],
|
||||
"subMetas": {},
|
||||
"userData": {}
|
||||
}
|
@ -1,12 +1,12 @@
|
||||
{
|
||||
"ver": "1.1.2",
|
||||
"uuid": "7b81d4e8-ec84-4716-968d-500ac1d78a54",
|
||||
"isBundle": false,
|
||||
"bundleName": "",
|
||||
"priority": 1,
|
||||
"compressionType": {},
|
||||
"optimizeHotUpdate": {},
|
||||
"inlineSpriteFrames": {},
|
||||
"isRemoteBundle": {},
|
||||
"subMetas": {}
|
||||
"ver": "1.1.0",
|
||||
"importer": "directory",
|
||||
"imported": true,
|
||||
"uuid": "3084e9a8-94d8-427b-b08a-975c34ee7c5f",
|
||||
"files": [],
|
||||
"subMetas": {},
|
||||
"userData": {
|
||||
"compressionType": {},
|
||||
"isRemoteBundle": {}
|
||||
}
|
||||
}
|
@ -1,36 +1,134 @@
|
||||
{
|
||||
"ver": "2.3.5",
|
||||
"uuid": "e56254ca-0ee4-42ea-b69e-d2e57804a4f1",
|
||||
"type": "sprite",
|
||||
"wrapMode": "clamp",
|
||||
"filterMode": "bilinear",
|
||||
"premultiplyAlpha": false,
|
||||
"genMipmaps": false,
|
||||
"packable": true,
|
||||
"width": 463,
|
||||
"height": 260,
|
||||
"platformSettings": {},
|
||||
"ver": "1.0.24",
|
||||
"importer": "image",
|
||||
"imported": true,
|
||||
"uuid": "32529222-c618-4fd0-8ee3-2515779c1523",
|
||||
"files": [
|
||||
".jpg",
|
||||
".json"
|
||||
],
|
||||
"subMetas": {
|
||||
"BG": {
|
||||
"ver": "1.0.4",
|
||||
"uuid": "7e492808-7fd3-4b8e-8e0d-4ab06fcee554",
|
||||
"rawTextureUuid": "e56254ca-0ee4-42ea-b69e-d2e57804a4f1",
|
||||
"trimType": "auto",
|
||||
"trimThreshold": 1,
|
||||
"rotated": false,
|
||||
"offsetX": 0,
|
||||
"offsetY": 0,
|
||||
"trimX": 0,
|
||||
"trimY": 0,
|
||||
"width": 463,
|
||||
"height": 260,
|
||||
"rawWidth": 463,
|
||||
"rawHeight": 260,
|
||||
"borderTop": 0,
|
||||
"borderBottom": 0,
|
||||
"borderLeft": 0,
|
||||
"borderRight": 0,
|
||||
"6c48a": {
|
||||
"importer": "texture",
|
||||
"uuid": "32529222-c618-4fd0-8ee3-2515779c1523@6c48a",
|
||||
"displayName": "BG",
|
||||
"id": "6c48a",
|
||||
"name": "texture",
|
||||
"userData": {
|
||||
"wrapModeS": "repeat",
|
||||
"wrapModeT": "repeat",
|
||||
"minfilter": "linear",
|
||||
"magfilter": "linear",
|
||||
"mipfilter": "none",
|
||||
"anisotropy": 0,
|
||||
"isUuid": true,
|
||||
"imageUuidOrDatabaseUri": "32529222-c618-4fd0-8ee3-2515779c1523",
|
||||
"visible": false
|
||||
},
|
||||
"ver": "1.0.22",
|
||||
"imported": true,
|
||||
"files": [
|
||||
".json"
|
||||
],
|
||||
"subMetas": {}
|
||||
},
|
||||
"f9941": {
|
||||
"importer": "sprite-frame",
|
||||
"uuid": "32529222-c618-4fd0-8ee3-2515779c1523@f9941",
|
||||
"displayName": "BG",
|
||||
"id": "f9941",
|
||||
"name": "spriteFrame",
|
||||
"userData": {
|
||||
"trimType": "auto",
|
||||
"trimThreshold": 1,
|
||||
"rotated": false,
|
||||
"offsetX": 0,
|
||||
"offsetY": 0,
|
||||
"trimX": 0,
|
||||
"trimY": 0,
|
||||
"width": 463,
|
||||
"height": 260,
|
||||
"rawWidth": 463,
|
||||
"rawHeight": 260,
|
||||
"borderTop": 0,
|
||||
"borderBottom": 0,
|
||||
"borderLeft": 0,
|
||||
"borderRight": 0,
|
||||
"packable": true,
|
||||
"pixelsToUnit": 100,
|
||||
"pivotX": 0.5,
|
||||
"pivotY": 0.5,
|
||||
"meshType": 0,
|
||||
"vertices": {
|
||||
"rawPosition": [
|
||||
-231.5,
|
||||
-130,
|
||||
0,
|
||||
231.5,
|
||||
-130,
|
||||
0,
|
||||
-231.5,
|
||||
130,
|
||||
0,
|
||||
231.5,
|
||||
130,
|
||||
0
|
||||
],
|
||||
"indexes": [
|
||||
0,
|
||||
1,
|
||||
2,
|
||||
2,
|
||||
1,
|
||||
3
|
||||
],
|
||||
"uv": [
|
||||
0,
|
||||
260,
|
||||
463,
|
||||
260,
|
||||
0,
|
||||
0,
|
||||
463,
|
||||
0
|
||||
],
|
||||
"nuv": [
|
||||
0,
|
||||
0,
|
||||
1,
|
||||
0,
|
||||
0,
|
||||
1,
|
||||
1,
|
||||
1
|
||||
],
|
||||
"minPos": [
|
||||
-231.5,
|
||||
-130,
|
||||
0
|
||||
],
|
||||
"maxPos": [
|
||||
231.5,
|
||||
130,
|
||||
0
|
||||
]
|
||||
},
|
||||
"isUuid": true,
|
||||
"imageUuidOrDatabaseUri": "32529222-c618-4fd0-8ee3-2515779c1523@6c48a",
|
||||
"atlasUuid": ""
|
||||
},
|
||||
"ver": "1.0.11",
|
||||
"imported": true,
|
||||
"files": [
|
||||
".json"
|
||||
],
|
||||
"subMetas": {}
|
||||
}
|
||||
},
|
||||
"userData": {
|
||||
"type": "sprite-frame",
|
||||
"fixAlphaTransparencyArtifacts": true,
|
||||
"hasAlpha": false,
|
||||
"redirect": "32529222-c618-4fd0-8ee3-2515779c1523@f9941"
|
||||
}
|
||||
}
|
@ -1,36 +1,42 @@
|
||||
{
|
||||
"ver": "2.3.5",
|
||||
"uuid": "a8027877-d8d6-4645-97a0-52d4a0123dba",
|
||||
"type": "sprite",
|
||||
"wrapMode": "clamp",
|
||||
"filterMode": "bilinear",
|
||||
"premultiplyAlpha": false,
|
||||
"genMipmaps": false,
|
||||
"packable": true,
|
||||
"width": 2,
|
||||
"height": 2,
|
||||
"platformSettings": {},
|
||||
"ver": "1.0.24",
|
||||
"importer": "image",
|
||||
"imported": true,
|
||||
"uuid": "5e5d6884-81e3-4aff-8262-fc0d62f0bad4",
|
||||
"files": [
|
||||
".json",
|
||||
".png"
|
||||
],
|
||||
"subMetas": {
|
||||
"singleColor": {
|
||||
"ver": "1.0.4",
|
||||
"uuid": "410fb916-8721-4663-bab8-34397391ace7",
|
||||
"rawTextureUuid": "a8027877-d8d6-4645-97a0-52d4a0123dba",
|
||||
"trimType": "auto",
|
||||
"trimThreshold": 1,
|
||||
"rotated": false,
|
||||
"offsetX": 0,
|
||||
"offsetY": 0,
|
||||
"trimX": 0,
|
||||
"trimY": 0,
|
||||
"width": 2,
|
||||
"height": 2,
|
||||
"rawWidth": 2,
|
||||
"rawHeight": 2,
|
||||
"borderTop": 0,
|
||||
"borderBottom": 0,
|
||||
"borderLeft": 0,
|
||||
"borderRight": 0,
|
||||
"6c48a": {
|
||||
"importer": "texture",
|
||||
"uuid": "5e5d6884-81e3-4aff-8262-fc0d62f0bad4@6c48a",
|
||||
"displayName": "singleColor",
|
||||
"id": "6c48a",
|
||||
"name": "texture",
|
||||
"userData": {
|
||||
"wrapModeS": "repeat",
|
||||
"wrapModeT": "repeat",
|
||||
"minfilter": "linear",
|
||||
"magfilter": "linear",
|
||||
"mipfilter": "none",
|
||||
"anisotropy": 0,
|
||||
"isUuid": true,
|
||||
"imageUuidOrDatabaseUri": "5e5d6884-81e3-4aff-8262-fc0d62f0bad4",
|
||||
"visible": true
|
||||
},
|
||||
"ver": "1.0.22",
|
||||
"imported": true,
|
||||
"files": [
|
||||
".json"
|
||||
],
|
||||
"subMetas": {}
|
||||
}
|
||||
},
|
||||
"userData": {
|
||||
"type": "texture",
|
||||
"fixAlphaTransparencyArtifacts": true,
|
||||
"hasAlpha": false,
|
||||
"redirect": "5e5d6884-81e3-4aff-8262-fc0d62f0bad4@6c48a"
|
||||
}
|
||||
}
|
12
assets/material.meta
Normal file
@ -0,0 +1,12 @@
|
||||
{
|
||||
"ver": "1.1.0",
|
||||
"importer": "directory",
|
||||
"imported": true,
|
||||
"uuid": "bcb14f34-8131-435f-a8f5-29612c45af59",
|
||||
"files": [],
|
||||
"subMetas": {},
|
||||
"userData": {
|
||||
"compressionType": {},
|
||||
"isRemoteBundle": {}
|
||||
}
|
||||
}
|
34
assets/material/hdcSky.mtl
Normal file
@ -0,0 +1,34 @@
|
||||
{
|
||||
"__type__": "cc.Material",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"_native": "",
|
||||
"_effectAsset": {
|
||||
"__uuid__": "a3cd009f-0ab0-420d-9278-b9fdab939bbc"
|
||||
},
|
||||
"_techIdx": 0,
|
||||
"_defines": [
|
||||
{
|
||||
"USE_TEXTURE": true
|
||||
}
|
||||
],
|
||||
"_states": [
|
||||
{
|
||||
"blendState": {
|
||||
"targets": [
|
||||
{}
|
||||
]
|
||||
},
|
||||
"depthStencilState": {},
|
||||
"rasterizerState": {}
|
||||
}
|
||||
],
|
||||
"_props": [
|
||||
{
|
||||
"mainTexture": {
|
||||
"__uuid__": "dc4a96c7-321a-48af-81e5-1127ad3ae432@6c48a"
|
||||
},
|
||||
"alphaThreshold": 0
|
||||
}
|
||||
]
|
||||
}
|
11
assets/material/hdcSky.mtl.meta
Normal file
@ -0,0 +1,11 @@
|
||||
{
|
||||
"ver": "1.0.13",
|
||||
"importer": "material",
|
||||
"imported": true,
|
||||
"uuid": "482a5162-dad9-446c-b548-8486c7598ee1",
|
||||
"files": [
|
||||
".json"
|
||||
],
|
||||
"subMetas": {},
|
||||
"userData": {}
|
||||
}
|
34
assets/material/plane.mtl
Normal file
@ -0,0 +1,34 @@
|
||||
{
|
||||
"__type__": "cc.Material",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"_native": "",
|
||||
"_effectAsset": {
|
||||
"__uuid__": "a3cd009f-0ab0-420d-9278-b9fdab939bbc"
|
||||
},
|
||||
"_techIdx": 0,
|
||||
"_defines": [
|
||||
{
|
||||
"USE_TEXTURE": true
|
||||
}
|
||||
],
|
||||
"_states": [
|
||||
{
|
||||
"blendState": {
|
||||
"targets": [
|
||||
{}
|
||||
]
|
||||
},
|
||||
"depthStencilState": {},
|
||||
"rasterizerState": {}
|
||||
}
|
||||
],
|
||||
"_props": [
|
||||
{
|
||||
"mainTexture": {
|
||||
"__uuid__": "4f4c4a34-2d08-4a4d-9169-834d7ce82cee@6c48a"
|
||||
},
|
||||
"alphaThreshold": 0
|
||||
}
|
||||
]
|
||||
}
|
11
assets/material/plane.mtl.meta
Normal file
@ -0,0 +1,11 @@
|
||||
{
|
||||
"ver": "1.0.13",
|
||||
"importer": "material",
|
||||
"imported": true,
|
||||
"uuid": "23e988d0-7168-4fe2-9d46-f29c114e9e33",
|
||||
"files": [
|
||||
".json"
|
||||
],
|
||||
"subMetas": {},
|
||||
"userData": {}
|
||||
}
|
42
assets/material/seafloor.mtl
Normal file
@ -0,0 +1,42 @@
|
||||
{
|
||||
"__type__": "cc.Material",
|
||||
"_name": "seafloor",
|
||||
"_objFlags": 0,
|
||||
"_native": "",
|
||||
"_effectAsset": {
|
||||
"__uuid__": "1baf0fc9-befa-459c-8bdd-af1a450a0319"
|
||||
},
|
||||
"_techIdx": 0,
|
||||
"_defines": [
|
||||
{
|
||||
"USE_ALBEDO_MAP": true
|
||||
}
|
||||
],
|
||||
"_states": [
|
||||
{
|
||||
"rasterizerState": {},
|
||||
"blendState": {
|
||||
"targets": [
|
||||
{}
|
||||
]
|
||||
},
|
||||
"depthStencilState": {}
|
||||
}
|
||||
],
|
||||
"_props": [
|
||||
{
|
||||
"mainTexture": {
|
||||
"__uuid__": "0ab3142a-6968-4073-95af-026bc3b23623@2df3a"
|
||||
},
|
||||
"albedoScale": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": 1,
|
||||
"y": 1,
|
||||
"z": 1
|
||||
},
|
||||
"metallic": 0.400000005960464,
|
||||
"roughness": 0.70710676908493,
|
||||
"alphaThreshold": 0
|
||||
}
|
||||
]
|
||||
}
|
11
assets/material/seafloor.mtl.meta
Normal file
@ -0,0 +1,11 @@
|
||||
{
|
||||
"ver": "1.0.13",
|
||||
"importer": "material",
|
||||
"imported": true,
|
||||
"uuid": "70d33758-1c1e-424d-b0ab-eac7410559bf",
|
||||
"files": [
|
||||
".json"
|
||||
],
|
||||
"subMetas": {},
|
||||
"userData": {}
|
||||
}
|
62
assets/material/shield.mtl
Normal file
@ -0,0 +1,62 @@
|
||||
{
|
||||
"__type__": "cc.Material",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"_native": "",
|
||||
"_effectAsset": {
|
||||
"__uuid__": "1baf0fc9-befa-459c-8bdd-af1a450a0319"
|
||||
},
|
||||
"_techIdx": 0,
|
||||
"_defines": [
|
||||
{
|
||||
"USE_ALBEDO_MAP": true
|
||||
},
|
||||
{
|
||||
"USE_ALBEDO_MAP": true
|
||||
},
|
||||
{
|
||||
"USE_ALBEDO_MAP": true
|
||||
}
|
||||
],
|
||||
"_states": [
|
||||
{
|
||||
"blendState": {
|
||||
"targets": [
|
||||
{}
|
||||
]
|
||||
},
|
||||
"depthStencilState": {},
|
||||
"rasterizerState": {}
|
||||
},
|
||||
{
|
||||
"blendState": {
|
||||
"targets": [
|
||||
{}
|
||||
]
|
||||
},
|
||||
"depthStencilState": {},
|
||||
"rasterizerState": {}
|
||||
},
|
||||
{
|
||||
"blendState": {
|
||||
"targets": [
|
||||
{}
|
||||
]
|
||||
},
|
||||
"depthStencilState": {},
|
||||
"rasterizerState": {}
|
||||
}
|
||||
],
|
||||
"_props": [
|
||||
{
|
||||
"alphaThreshold": 0,
|
||||
"roughness": 0.70710676908493,
|
||||
"metallic": 0.400000005960464,
|
||||
"mainTexture": {
|
||||
"__uuid__": "95e5b02a-e338-423c-bdbb-17486db1d9eb@6c48a"
|
||||
}
|
||||
},
|
||||
{},
|
||||
{}
|
||||
]
|
||||
}
|
11
assets/material/shield.mtl.meta
Normal file
@ -0,0 +1,11 @@
|
||||
{
|
||||
"ver": "1.0.13",
|
||||
"importer": "material",
|
||||
"imported": true,
|
||||
"uuid": "8e047178-f61c-4322-a2f6-d1adb28b6ae2",
|
||||
"files": [
|
||||
".json"
|
||||
],
|
||||
"subMetas": {},
|
||||
"userData": {}
|
||||
}
|
83
assets/material/soldier.mtl
Normal file
@ -0,0 +1,83 @@
|
||||
{
|
||||
"__type__": "cc.Material",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"_native": "",
|
||||
"_effectAsset": {
|
||||
"__uuid__": "a7612b54-35e3-4238-a1a9-4a7b54635839"
|
||||
},
|
||||
"_techIdx": 0,
|
||||
"_defines": [
|
||||
{
|
||||
"USE_OUTLINE_PASS": true
|
||||
},
|
||||
{
|
||||
"USE_BASE_COLOR_MAP": true,
|
||||
"BASE_COLOR_MAP_AS_SHADE_MAP_1": true,
|
||||
"BASE_COLOR_MAP_AS_SHADE_MAP_2": true
|
||||
},
|
||||
{
|
||||
"USE_BASE_COLOR_MAP": true,
|
||||
"BASE_COLOR_MAP_AS_SHADE_MAP_1": true,
|
||||
"BASE_COLOR_MAP_AS_SHADE_MAP_2": true
|
||||
},
|
||||
{
|
||||
"USE_BASE_COLOR_MAP": true
|
||||
}
|
||||
],
|
||||
"_states": [
|
||||
{
|
||||
"blendState": {
|
||||
"targets": [
|
||||
{}
|
||||
]
|
||||
},
|
||||
"depthStencilState": {},
|
||||
"rasterizerState": {}
|
||||
},
|
||||
{
|
||||
"blendState": {
|
||||
"targets": [
|
||||
{}
|
||||
]
|
||||
},
|
||||
"depthStencilState": {},
|
||||
"rasterizerState": {}
|
||||
},
|
||||
{
|
||||
"blendState": {
|
||||
"targets": [
|
||||
{}
|
||||
]
|
||||
},
|
||||
"depthStencilState": {},
|
||||
"rasterizerState": {}
|
||||
},
|
||||
{
|
||||
"blendState": {
|
||||
"targets": [
|
||||
{}
|
||||
]
|
||||
},
|
||||
"depthStencilState": {},
|
||||
"rasterizerState": {}
|
||||
}
|
||||
],
|
||||
"_props": [
|
||||
{},
|
||||
{
|
||||
"specular": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 255,
|
||||
"g": 255,
|
||||
"b": 255,
|
||||
"a": 0
|
||||
},
|
||||
"mainTexture": {
|
||||
"__uuid__": "6f891a7b-5a08-48e6-9841-ddb364ac86b1@6c48a"
|
||||
}
|
||||
},
|
||||
{},
|
||||
{}
|
||||
]
|
||||
}
|
11
assets/material/soldier.mtl.meta
Normal file
@ -0,0 +1,11 @@
|
||||
{
|
||||
"ver": "1.0.13",
|
||||
"importer": "material",
|
||||
"imported": true,
|
||||
"uuid": "8a58ddec-f437-40b9-8ec0-1fc87de97fb5",
|
||||
"files": [
|
||||
".json"
|
||||
],
|
||||
"subMetas": {},
|
||||
"userData": {}
|
||||
}
|
83
assets/material/stone.mtl
Normal file
@ -0,0 +1,83 @@
|
||||
{
|
||||
"__type__": "cc.Material",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"_native": "",
|
||||
"_effectAsset": {
|
||||
"__uuid__": "a7612b54-35e3-4238-a1a9-4a7b54635839"
|
||||
},
|
||||
"_techIdx": 0,
|
||||
"_defines": [
|
||||
{
|
||||
"USE_OUTLINE_PASS": true
|
||||
},
|
||||
{
|
||||
"USE_BASE_COLOR_MAP": true,
|
||||
"BASE_COLOR_MAP_AS_SHADE_MAP_1": true,
|
||||
"BASE_COLOR_MAP_AS_SHADE_MAP_2": true
|
||||
},
|
||||
{
|
||||
"USE_BASE_COLOR_MAP": true,
|
||||
"BASE_COLOR_MAP_AS_SHADE_MAP_1": true,
|
||||
"BASE_COLOR_MAP_AS_SHADE_MAP_2": true
|
||||
},
|
||||
{
|
||||
"USE_BASE_COLOR_MAP": true
|
||||
}
|
||||
],
|
||||
"_states": [
|
||||
{
|
||||
"blendState": {
|
||||
"targets": [
|
||||
{}
|
||||
]
|
||||
},
|
||||
"depthStencilState": {},
|
||||
"rasterizerState": {}
|
||||
},
|
||||
{
|
||||
"blendState": {
|
||||
"targets": [
|
||||
{}
|
||||
]
|
||||
},
|
||||
"depthStencilState": {},
|
||||
"rasterizerState": {}
|
||||
},
|
||||
{
|
||||
"blendState": {
|
||||
"targets": [
|
||||
{}
|
||||
]
|
||||
},
|
||||
"depthStencilState": {},
|
||||
"rasterizerState": {}
|
||||
},
|
||||
{
|
||||
"blendState": {
|
||||
"targets": [
|
||||
{}
|
||||
]
|
||||
},
|
||||
"depthStencilState": {},
|
||||
"rasterizerState": {}
|
||||
}
|
||||
],
|
||||
"_props": [
|
||||
{},
|
||||
{
|
||||
"specular": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 255,
|
||||
"g": 255,
|
||||
"b": 255,
|
||||
"a": 0
|
||||
},
|
||||
"mainTexture": {
|
||||
"__uuid__": "0718d996-39bf-4ab4-bb63-496666fef467@6c48a"
|
||||
}
|
||||
},
|
||||
{},
|
||||
{}
|
||||
]
|
||||
}
|
11
assets/material/stone.mtl.meta
Normal file
@ -0,0 +1,11 @@
|
||||
{
|
||||
"ver": "1.0.13",
|
||||
"importer": "material",
|
||||
"imported": true,
|
||||
"uuid": "a155f93b-7769-4ca4-b75f-b13e52193859",
|
||||
"files": [
|
||||
".json"
|
||||
],
|
||||
"subMetas": {},
|
||||
"userData": {}
|
||||
}
|
83
assets/material/tree.mtl
Normal file
@ -0,0 +1,83 @@
|
||||
{
|
||||
"__type__": "cc.Material",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"_native": "",
|
||||
"_effectAsset": {
|
||||
"__uuid__": "a7612b54-35e3-4238-a1a9-4a7b54635839"
|
||||
},
|
||||
"_techIdx": 0,
|
||||
"_defines": [
|
||||
{
|
||||
"USE_OUTLINE_PASS": true
|
||||
},
|
||||
{
|
||||
"USE_BASE_COLOR_MAP": true,
|
||||
"BASE_COLOR_MAP_AS_SHADE_MAP_1": true,
|
||||
"BASE_COLOR_MAP_AS_SHADE_MAP_2": true
|
||||
},
|
||||
{
|
||||
"USE_BASE_COLOR_MAP": true,
|
||||
"BASE_COLOR_MAP_AS_SHADE_MAP_1": true,
|
||||
"BASE_COLOR_MAP_AS_SHADE_MAP_2": true
|
||||
},
|
||||
{
|
||||
"USE_BASE_COLOR_MAP": true
|
||||
}
|
||||
],
|
||||
"_states": [
|
||||
{
|
||||
"blendState": {
|
||||
"targets": [
|
||||
{}
|
||||
]
|
||||
},
|
||||
"depthStencilState": {},
|
||||
"rasterizerState": {}
|
||||
},
|
||||
{
|
||||
"blendState": {
|
||||
"targets": [
|
||||
{}
|
||||
]
|
||||
},
|
||||
"depthStencilState": {},
|
||||
"rasterizerState": {}
|
||||
},
|
||||
{
|
||||
"blendState": {
|
||||
"targets": [
|
||||
{}
|
||||
]
|
||||
},
|
||||
"depthStencilState": {},
|
||||
"rasterizerState": {}
|
||||
},
|
||||
{
|
||||
"blendState": {
|
||||
"targets": [
|
||||
{}
|
||||
]
|
||||
},
|
||||
"depthStencilState": {},
|
||||
"rasterizerState": {}
|
||||
}
|
||||
],
|
||||
"_props": [
|
||||
{},
|
||||
{
|
||||
"specular": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 255,
|
||||
"g": 255,
|
||||
"b": 255,
|
||||
"a": 0
|
||||
},
|
||||
"mainTexture": {
|
||||
"__uuid__": "c5083e75-ad2e-4ea9-8b33-dee748995b00@6c48a"
|
||||
}
|
||||
},
|
||||
{},
|
||||
{}
|
||||
]
|
||||
}
|
11
assets/material/tree.mtl.meta
Normal file
@ -0,0 +1,11 @@
|
||||
{
|
||||
"ver": "1.0.13",
|
||||
"importer": "material",
|
||||
"imported": true,
|
||||
"uuid": "7bf9df40-4bc9-4e25-8cb0-9a500f949102",
|
||||
"files": [
|
||||
".json"
|
||||
],
|
||||
"subMetas": {},
|
||||
"userData": {}
|
||||
}
|
12
assets/model.meta
Normal file
@ -0,0 +1,12 @@
|
||||
{
|
||||
"ver": "1.1.0",
|
||||
"importer": "directory",
|
||||
"imported": true,
|
||||
"uuid": "1ddc11ba-ecbd-4472-841c-f3777cb248da",
|
||||
"files": [],
|
||||
"subMetas": {},
|
||||
"userData": {
|
||||
"compressionType": {},
|
||||
"isRemoteBundle": {}
|
||||
}
|
||||
}
|
12
assets/model/helloWorld.meta
Normal file
@ -0,0 +1,12 @@
|
||||
{
|
||||
"ver": "1.1.0",
|
||||
"importer": "directory",
|
||||
"imported": true,
|
||||
"uuid": "11a1d348-a622-41b2-89f3-ed24657e5f84",
|
||||
"files": [],
|
||||
"subMetas": {},
|
||||
"userData": {
|
||||
"compressionType": {},
|
||||
"isRemoteBundle": {}
|
||||
}
|
||||
}
|
12
assets/model/helloWorld/grass.meta
Normal file
@ -0,0 +1,12 @@
|
||||
{
|
||||
"ver": "1.1.0",
|
||||
"importer": "directory",
|
||||
"imported": true,
|
||||
"uuid": "e00862a8-c500-427c-b76f-bbe5203f19cc",
|
||||
"files": [],
|
||||
"subMetas": {},
|
||||
"userData": {
|
||||
"compressionType": {},
|
||||
"isRemoteBundle": {}
|
||||
}
|
||||
}
|
BIN
assets/model/helloWorld/grass/grass.FBX
Normal file
174
assets/model/helloWorld/grass/grass.FBX.meta
Normal file
@ -0,0 +1,174 @@
|
||||
{
|
||||
"ver": "2.3.0",
|
||||
"importer": "fbx",
|
||||
"imported": true,
|
||||
"uuid": "aade09ee-8f9d-413c-a9e8-8c686ea5e160",
|
||||
"files": [
|
||||
"__original-animation-0.cconb"
|
||||
],
|
||||
"subMetas": {
|
||||
"ef5e1": {
|
||||
"importer": "gltf-mesh",
|
||||
"uuid": "aade09ee-8f9d-413c-a9e8-8c686ea5e160@ef5e1",
|
||||
"displayName": "",
|
||||
"id": "ef5e1",
|
||||
"name": "grass.mesh",
|
||||
"ver": "1.1.0",
|
||||
"imported": true,
|
||||
"files": [
|
||||
".bin",
|
||||
".json"
|
||||
],
|
||||
"subMetas": {},
|
||||
"userData": {
|
||||
"gltfIndex": 0
|
||||
}
|
||||
},
|
||||
"73b7f": {
|
||||
"importer": "gltf-animation",
|
||||
"uuid": "aade09ee-8f9d-413c-a9e8-8c686ea5e160@73b7f",
|
||||
"displayName": "",
|
||||
"id": "73b7f",
|
||||
"name": "Take 001.animation",
|
||||
"ver": "1.0.16",
|
||||
"imported": true,
|
||||
"files": [
|
||||
".cconb"
|
||||
],
|
||||
"subMetas": {},
|
||||
"userData": {
|
||||
"events": [],
|
||||
"gltfIndex": 0,
|
||||
"sample": 30,
|
||||
"span": {
|
||||
"from": 0,
|
||||
"to": 3.3333332538604736
|
||||
},
|
||||
"wrapMode": 2,
|
||||
"speed": 1
|
||||
}
|
||||
},
|
||||
"438fe": {
|
||||
"importer": "gltf-skeleton",
|
||||
"uuid": "aade09ee-8f9d-413c-a9e8-8c686ea5e160@438fe",
|
||||
"displayName": "",
|
||||
"id": "438fe",
|
||||
"name": "UnnamedSkeleton.skeleton",
|
||||
"ver": "1.0.1",
|
||||
"imported": true,
|
||||
"files": [
|
||||
".json"
|
||||
],
|
||||
"subMetas": {},
|
||||
"userData": {
|
||||
"gltfIndex": 0,
|
||||
"jointsLength": 6
|
||||
}
|
||||
},
|
||||
"80e0c": {
|
||||
"importer": "gltf-embeded-image",
|
||||
"uuid": "aade09ee-8f9d-413c-a9e8-8c686ea5e160@80e0c",
|
||||
"displayName": "",
|
||||
"id": "80e0c",
|
||||
"name": "grass.png.image",
|
||||
"ver": "1.0.3",
|
||||
"imported": true,
|
||||
"files": [
|
||||
".json",
|
||||
".png"
|
||||
],
|
||||
"subMetas": {},
|
||||
"userData": {
|
||||
"gltfIndex": 0
|
||||
}
|
||||
},
|
||||
"9787f": {
|
||||
"importer": "texture",
|
||||
"uuid": "aade09ee-8f9d-413c-a9e8-8c686ea5e160@9787f",
|
||||
"displayName": "",
|
||||
"id": "9787f",
|
||||
"name": "grass.texture",
|
||||
"ver": "1.0.22",
|
||||
"imported": true,
|
||||
"files": [
|
||||
".json"
|
||||
],
|
||||
"subMetas": {},
|
||||
"userData": {
|
||||
"wrapModeS": "repeat",
|
||||
"wrapModeT": "repeat",
|
||||
"minfilter": "linear",
|
||||
"magfilter": "linear",
|
||||
"mipfilter": "none",
|
||||
"premultiplyAlpha": false,
|
||||
"anisotropy": 0,
|
||||
"isUuid": true,
|
||||
"imageUuidOrDatabaseUri": "aade09ee-8f9d-413c-a9e8-8c686ea5e160@80e0c"
|
||||
}
|
||||
},
|
||||
"3022b": {
|
||||
"importer": "gltf-scene",
|
||||
"uuid": "aade09ee-8f9d-413c-a9e8-8c686ea5e160@3022b",
|
||||
"displayName": "",
|
||||
"id": "3022b",
|
||||
"name": "grass.prefab",
|
||||
"ver": "1.0.12",
|
||||
"imported": true,
|
||||
"files": [
|
||||
".json"
|
||||
],
|
||||
"subMetas": {},
|
||||
"userData": {
|
||||
"gltfIndex": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
"userData": {
|
||||
"imageMetas": [
|
||||
{
|
||||
"name": "grass.png",
|
||||
"uri": "aade09ee-8f9d-413c-a9e8-8c686ea5e160@80e0c"
|
||||
}
|
||||
],
|
||||
"animationImportSettings": [
|
||||
{
|
||||
"name": "Take 001",
|
||||
"duration": 3.3333332538604736,
|
||||
"fps": 30,
|
||||
"splits": [
|
||||
{
|
||||
"name": "Take 001",
|
||||
"from": 0,
|
||||
"to": 3.3333332538604736,
|
||||
"wrapMode": 2
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"redirect": "aade09ee-8f9d-413c-a9e8-8c686ea5e160@3022b",
|
||||
"assetFinder": {
|
||||
"meshes": [
|
||||
"aade09ee-8f9d-413c-a9e8-8c686ea5e160@ef5e1"
|
||||
],
|
||||
"skeletons": [
|
||||
"aade09ee-8f9d-413c-a9e8-8c686ea5e160@438fe"
|
||||
],
|
||||
"textures": [
|
||||
"aade09ee-8f9d-413c-a9e8-8c686ea5e160@9787f"
|
||||
],
|
||||
"materials": [
|
||||
"b698e55a-b00b-4987-a8b4-af83cddc59f7"
|
||||
],
|
||||
"scenes": [
|
||||
"aade09ee-8f9d-413c-a9e8-8c686ea5e160@3022b"
|
||||
]
|
||||
},
|
||||
"useVertexColors": true,
|
||||
"dumpMaterials": true,
|
||||
"materialDumpDir": "db://assets/model/helloWorld/grass",
|
||||
"legacyFbxImporter": true,
|
||||
"fbx": {
|
||||
"smartMaterialEnabled": false
|
||||
}
|
||||
}
|
||||
}
|
34
assets/model/helloWorld/grass/grass.mtl
Normal file
@ -0,0 +1,34 @@
|
||||
{
|
||||
"__type__": "cc.Material",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"_native": "",
|
||||
"_effectAsset": {
|
||||
"__uuid__": "a3cd009f-0ab0-420d-9278-b9fdab939bbc"
|
||||
},
|
||||
"_techIdx": 0,
|
||||
"_defines": [
|
||||
{
|
||||
"USE_TEXTURE": true
|
||||
}
|
||||
],
|
||||
"_states": [
|
||||
{
|
||||
"blendState": {
|
||||
"targets": [
|
||||
{}
|
||||
]
|
||||
},
|
||||
"depthStencilState": {},
|
||||
"rasterizerState": {}
|
||||
}
|
||||
],
|
||||
"_props": [
|
||||
{
|
||||
"mainTexture": {
|
||||
"__uuid__": "ae18deea-c6e0-4a3d-bf70-ee5533f9ba87@6c48a"
|
||||
},
|
||||
"alphaThreshold": 0
|
||||
}
|
||||
]
|
||||
}
|
11
assets/model/helloWorld/grass/grass.mtl.meta
Normal file
@ -0,0 +1,11 @@
|
||||
{
|
||||
"ver": "1.0.13",
|
||||
"importer": "material",
|
||||
"imported": true,
|
||||
"uuid": "b698e55a-b00b-4987-a8b4-af83cddc59f7",
|
||||
"files": [
|
||||
".json"
|
||||
],
|
||||
"subMetas": {},
|
||||
"userData": {}
|
||||
}
|
BIN
assets/model/helloWorld/grass/grass.png
Normal file
After Width: | Height: | Size: 13 KiB |
43
assets/model/helloWorld/grass/grass.png.meta
Normal file
@ -0,0 +1,43 @@
|
||||
{
|
||||
"ver": "1.0.24",
|
||||
"importer": "image",
|
||||
"imported": true,
|
||||
"uuid": "ae18deea-c6e0-4a3d-bf70-ee5533f9ba87",
|
||||
"files": [
|
||||
".json",
|
||||
".png"
|
||||
],
|
||||
"subMetas": {
|
||||
"6c48a": {
|
||||
"importer": "texture",
|
||||
"uuid": "ae18deea-c6e0-4a3d-bf70-ee5533f9ba87@6c48a",
|
||||
"displayName": "grass",
|
||||
"id": "6c48a",
|
||||
"name": "texture",
|
||||
"ver": "1.0.22",
|
||||
"imported": true,
|
||||
"files": [
|
||||
".json"
|
||||
],
|
||||
"subMetas": {},
|
||||
"userData": {
|
||||
"wrapModeS": "repeat",
|
||||
"wrapModeT": "repeat",
|
||||
"minfilter": "linear",
|
||||
"magfilter": "linear",
|
||||
"mipfilter": "linear",
|
||||
"premultiplyAlpha": false,
|
||||
"anisotropy": 0,
|
||||
"isUuid": true,
|
||||
"imageUuidOrDatabaseUri": "ae18deea-c6e0-4a3d-bf70-ee5533f9ba87",
|
||||
"visible": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"userData": {
|
||||
"type": "texture",
|
||||
"redirect": "ae18deea-c6e0-4a3d-bf70-ee5533f9ba87@6c48a",
|
||||
"hasAlpha": false,
|
||||
"fixAlphaTransparencyArtifacts": false
|
||||
}
|
||||
}
|
590
assets/model/helloWorld/grass/grass.prefab
Normal file
@ -0,0 +1,590 @@
|
||||
[
|
||||
{
|
||||
"__type__": "cc.Prefab",
|
||||
"_name": "grass",
|
||||
"_objFlags": 0,
|
||||
"_native": "",
|
||||
"data": {
|
||||
"__id__": 1
|
||||
},
|
||||
"optimizationPolicy": 0,
|
||||
"asyncLoadAssets": false,
|
||||
"persistent": false
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Node",
|
||||
"_name": "grass",
|
||||
"_objFlags": 0,
|
||||
"_parent": null,
|
||||
"_children": [
|
||||
{
|
||||
"__id__": 2
|
||||
}
|
||||
],
|
||||
"_active": true,
|
||||
"_components": [
|
||||
{
|
||||
"__id__": 21
|
||||
}
|
||||
],
|
||||
"_prefab": {
|
||||
"__id__": 23
|
||||
},
|
||||
"_lpos": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"z": 0
|
||||
},
|
||||
"_lrot": {
|
||||
"__type__": "cc.Quat",
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"z": 0,
|
||||
"w": 1
|
||||
},
|
||||
"_lscale": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": 1,
|
||||
"y": 1,
|
||||
"z": 1
|
||||
},
|
||||
"_layer": 1073741824,
|
||||
"_euler": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"z": 0
|
||||
},
|
||||
"_id": ""
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Node",
|
||||
"_name": "RootNode",
|
||||
"_objFlags": 0,
|
||||
"_parent": {
|
||||
"__id__": 1
|
||||
},
|
||||
"_children": [
|
||||
{
|
||||
"__id__": 3
|
||||
},
|
||||
{
|
||||
"__id__": 8
|
||||
},
|
||||
{
|
||||
"__id__": 14
|
||||
}
|
||||
],
|
||||
"_active": true,
|
||||
"_components": [],
|
||||
"_prefab": {
|
||||
"__id__": 20
|
||||
},
|
||||
"_lpos": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"z": 0
|
||||
},
|
||||
"_lrot": {
|
||||
"__type__": "cc.Quat",
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"z": 0,
|
||||
"w": 1
|
||||
},
|
||||
"_lscale": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": 1,
|
||||
"y": 1,
|
||||
"z": 1
|
||||
},
|
||||
"_layer": 1073741824,
|
||||
"_euler": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"z": 0
|
||||
},
|
||||
"_id": ""
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Node",
|
||||
"_name": "grass",
|
||||
"_objFlags": 0,
|
||||
"_parent": {
|
||||
"__id__": 2
|
||||
},
|
||||
"_children": [],
|
||||
"_active": true,
|
||||
"_components": [
|
||||
{
|
||||
"__id__": 4
|
||||
}
|
||||
],
|
||||
"_prefab": {
|
||||
"__id__": 7
|
||||
},
|
||||
"_lpos": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"z": 0
|
||||
},
|
||||
"_lrot": {
|
||||
"__type__": "cc.Quat",
|
||||
"x": 0.37992816729770207,
|
||||
"y": 0.5963678291908521,
|
||||
"z": 0.5963678291908521,
|
||||
"w": -0.37992816729770207
|
||||
},
|
||||
"_lscale": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": 0.614784121513367,
|
||||
"y": 0.614784121513367,
|
||||
"z": 0.614784121513367
|
||||
},
|
||||
"_layer": 1073741824,
|
||||
"_euler": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": -90,
|
||||
"y": -115.0000056286655,
|
||||
"z": 0
|
||||
},
|
||||
"_id": ""
|
||||
},
|
||||
{
|
||||
"__type__": "cc.SkinnedMeshRenderer",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 3
|
||||
},
|
||||
"_enabled": true,
|
||||
"_materials": [
|
||||
{
|
||||
"__uuid__": "b698e55a-b00b-4987-a8b4-af83cddc59f7"
|
||||
}
|
||||
],
|
||||
"_visFlags": 0,
|
||||
"lightmapSettings": {
|
||||
"__id__": 5
|
||||
},
|
||||
"_mesh": {
|
||||
"__uuid__": "aade09ee-8f9d-413c-a9e8-8c686ea5e160@ef5e1"
|
||||
},
|
||||
"_shadowCastingMode": 0,
|
||||
"_enableMorph": true,
|
||||
"_skeleton": {
|
||||
"__uuid__": "aade09ee-8f9d-413c-a9e8-8c686ea5e160@438fe"
|
||||
},
|
||||
"_skinningRoot": {
|
||||
"__id__": 1
|
||||
},
|
||||
"_id": "",
|
||||
"__prefab": {
|
||||
"__id__": 6
|
||||
}
|
||||
},
|
||||
{
|
||||
"__type__": "cc.ModelLightmapSettings",
|
||||
"texture": null,
|
||||
"uvParam": {
|
||||
"__type__": "cc.Vec4",
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"z": 0,
|
||||
"w": 0
|
||||
},
|
||||
"_bakeable": false,
|
||||
"_castShadow": false,
|
||||
"_receiveShadow": false,
|
||||
"_recieveShadow": false,
|
||||
"_lightmapSize": 64
|
||||
},
|
||||
{
|
||||
"__type__": "cc.CompPrefabInfo",
|
||||
"fileId": "cdq4wvfd1AkYLKBGkpcnul"
|
||||
},
|
||||
{
|
||||
"__type__": "cc.PrefabInfo",
|
||||
"root": {
|
||||
"__id__": 1
|
||||
},
|
||||
"asset": {
|
||||
"__id__": 0
|
||||
},
|
||||
"fileId": "3aIX8gjK5JFK8ATDBKdax8"
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Node",
|
||||
"_name": "Bone001",
|
||||
"_objFlags": 0,
|
||||
"_parent": {
|
||||
"__id__": 2
|
||||
},
|
||||
"_children": [
|
||||
{
|
||||
"__id__": 9
|
||||
}
|
||||
],
|
||||
"_active": true,
|
||||
"_components": [],
|
||||
"_prefab": {
|
||||
"__id__": 13
|
||||
},
|
||||
"_lpos": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": -0.0461842827498913,
|
||||
"y": 0.0000118009265861474,
|
||||
"z": -0.0284814611077309
|
||||
},
|
||||
"_lrot": {
|
||||
"__type__": "cc.Quat",
|
||||
"x": -0.0000017283479103639154,
|
||||
"y": -0.000001696768662714476,
|
||||
"z": 0.7049074170330618,
|
||||
"w": 0.7092993256770451
|
||||
},
|
||||
"_lscale": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": 2.53999996185303,
|
||||
"y": 2.53999996185303,
|
||||
"z": 2.53999996185303
|
||||
},
|
||||
"_layer": 1073741824,
|
||||
"_euler": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": -0.0005507418826256091,
|
||||
"y": 0.00027320859410338513,
|
||||
"z": 89.64412979694991
|
||||
},
|
||||
"_id": ""
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Node",
|
||||
"_name": "Bone002",
|
||||
"_objFlags": 0,
|
||||
"_parent": {
|
||||
"__id__": 8
|
||||
},
|
||||
"_children": [
|
||||
{
|
||||
"__id__": 10
|
||||
}
|
||||
],
|
||||
"_active": true,
|
||||
"_components": [],
|
||||
"_prefab": {
|
||||
"__id__": 12
|
||||
},
|
||||
"_lpos": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": 0.0404664427042007,
|
||||
"y": -3.57627860658738e-9,
|
||||
"z": 0
|
||||
},
|
||||
"_lrot": {
|
||||
"__type__": "cc.Quat",
|
||||
"x": 0.000002421418716486127,
|
||||
"y": 1.5182564735607207e-8,
|
||||
"z": 0.006269989150778519,
|
||||
"w": 0.9999803434219023
|
||||
},
|
||||
"_lscale": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": 1,
|
||||
"y": 1,
|
||||
"z": 1
|
||||
},
|
||||
"_layer": 1073741824,
|
||||
"_euler": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": 0.000277479600078167,
|
||||
"y": -3.18993241527229e-13,
|
||||
"z": 0.7184925395739944
|
||||
},
|
||||
"_id": ""
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Node",
|
||||
"_name": "Bone003",
|
||||
"_objFlags": 0,
|
||||
"_parent": {
|
||||
"__id__": 9
|
||||
},
|
||||
"_children": [],
|
||||
"_active": true,
|
||||
"_components": [],
|
||||
"_prefab": {
|
||||
"__id__": 11
|
||||
},
|
||||
"_lpos": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": 0.0397140197455883,
|
||||
"y": -1.19209286886246e-9,
|
||||
"z": 7.15255721317476e-9
|
||||
},
|
||||
"_lrot": {
|
||||
"__type__": "cc.Quat",
|
||||
"x": 1.4018830392883508e-10,
|
||||
"y": -1.4662893682703937e-13,
|
||||
"z": -0.0010459420626472054,
|
||||
"w": 0.9999994530024512
|
||||
},
|
||||
"_lscale": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": 1,
|
||||
"y": 1,
|
||||
"z": 1
|
||||
},
|
||||
"_layer": 1073741824,
|
||||
"_euler": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": 1.606440509162768e-8,
|
||||
"y": -1.4726229276075984e-18,
|
||||
"z": -0.11985615346346049
|
||||
},
|
||||
"_id": ""
|
||||
},
|
||||
{
|
||||
"__type__": "cc.PrefabInfo",
|
||||
"root": {
|
||||
"__id__": 1
|
||||
},
|
||||
"asset": {
|
||||
"__id__": 0
|
||||
},
|
||||
"fileId": "1628kgL41EG4kfuuNtniX1"
|
||||
},
|
||||
{
|
||||
"__type__": "cc.PrefabInfo",
|
||||
"root": {
|
||||
"__id__": 1
|
||||
},
|
||||
"asset": {
|
||||
"__id__": 0
|
||||
},
|
||||
"fileId": "d1mgL13wtIwojR/2FqCufO"
|
||||
},
|
||||
{
|
||||
"__type__": "cc.PrefabInfo",
|
||||
"root": {
|
||||
"__id__": 1
|
||||
},
|
||||
"asset": {
|
||||
"__id__": 0
|
||||
},
|
||||
"fileId": "f5o8/2y99IcawmyX5Tnjyv"
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Node",
|
||||
"_name": "Bone004",
|
||||
"_objFlags": 0,
|
||||
"_parent": {
|
||||
"__id__": 2
|
||||
},
|
||||
"_children": [
|
||||
{
|
||||
"__id__": 15
|
||||
}
|
||||
],
|
||||
"_active": true,
|
||||
"_components": [],
|
||||
"_prefab": {
|
||||
"__id__": 19
|
||||
},
|
||||
"_lpos": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": 0.0710692703723907,
|
||||
"y": 0.0000118009265861474,
|
||||
"z": 0.0136896027252078
|
||||
},
|
||||
"_lrot": {
|
||||
"__type__": "cc.Quat",
|
||||
"x": -0.0000017283479103639154,
|
||||
"y": -0.000001696768662714476,
|
||||
"z": 0.7049074170330618,
|
||||
"w": 0.7092993256770451
|
||||
},
|
||||
"_lscale": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": 2.53999996185303,
|
||||
"y": 2.53999996185303,
|
||||
"z": 2.53999996185303
|
||||
},
|
||||
"_layer": 1073741824,
|
||||
"_euler": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": -0.0005507418826256091,
|
||||
"y": 0.00027320859410338513,
|
||||
"z": 89.64412979694991
|
||||
},
|
||||
"_id": ""
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Node",
|
||||
"_name": "Bone005",
|
||||
"_objFlags": 0,
|
||||
"_parent": {
|
||||
"__id__": 14
|
||||
},
|
||||
"_children": [
|
||||
{
|
||||
"__id__": 16
|
||||
}
|
||||
],
|
||||
"_active": true,
|
||||
"_components": [],
|
||||
"_prefab": {
|
||||
"__id__": 18
|
||||
},
|
||||
"_lpos": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": 0.0404664427042007,
|
||||
"y": -4.76837147544984e-9,
|
||||
"z": 5.9604643443123e-10
|
||||
},
|
||||
"_lrot": {
|
||||
"__type__": "cc.Quat",
|
||||
"x": 0.000002421418716486127,
|
||||
"y": 1.5182564735607207e-8,
|
||||
"z": 0.006269989150778519,
|
||||
"w": 0.9999803434219023
|
||||
},
|
||||
"_lscale": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": 1,
|
||||
"y": 1,
|
||||
"z": 1
|
||||
},
|
||||
"_layer": 1073741824,
|
||||
"_euler": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": 0.000277479600078167,
|
||||
"y": -3.18993241527229e-13,
|
||||
"z": 0.7184925395739944
|
||||
},
|
||||
"_id": ""
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Node",
|
||||
"_name": "Bone006",
|
||||
"_objFlags": 0,
|
||||
"_parent": {
|
||||
"__id__": 15
|
||||
},
|
||||
"_children": [],
|
||||
"_active": true,
|
||||
"_components": [],
|
||||
"_prefab": {
|
||||
"__id__": 17
|
||||
},
|
||||
"_lpos": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": 0.039714016020298,
|
||||
"y": 0,
|
||||
"z": 7.74860353658369e-9
|
||||
},
|
||||
"_lrot": {
|
||||
"__type__": "cc.Quat",
|
||||
"x": 1.4018830392883508e-10,
|
||||
"y": -1.4662893682703937e-13,
|
||||
"z": -0.0010459420626472054,
|
||||
"w": 0.9999994530024512
|
||||
},
|
||||
"_lscale": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": 1,
|
||||
"y": 1,
|
||||
"z": 1
|
||||
},
|
||||
"_layer": 1073741824,
|
||||
"_euler": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": 1.606440509162768e-8,
|
||||
"y": -1.4726229276075984e-18,
|
||||
"z": -0.11985615346346049
|
||||
},
|
||||
"_id": ""
|
||||
},
|
||||
{
|
||||
"__type__": "cc.PrefabInfo",
|
||||
"root": {
|
||||
"__id__": 1
|
||||
},
|
||||
"asset": {
|
||||
"__id__": 0
|
||||
},
|
||||
"fileId": "a2tndvTm9M84i3qPpLv8DA"
|
||||
},
|
||||
{
|
||||
"__type__": "cc.PrefabInfo",
|
||||
"root": {
|
||||
"__id__": 1
|
||||
},
|
||||
"asset": {
|
||||
"__id__": 0
|
||||
},
|
||||
"fileId": "c5xVHa1qBClrp5YbutRSaI"
|
||||
},
|
||||
{
|
||||
"__type__": "cc.PrefabInfo",
|
||||
"root": {
|
||||
"__id__": 1
|
||||
},
|
||||
"asset": {
|
||||
"__id__": 0
|
||||
},
|
||||
"fileId": "3fxCLd4O9NUqkwJjBsDQgb"
|
||||
},
|
||||
{
|
||||
"__type__": "cc.PrefabInfo",
|
||||
"root": {
|
||||
"__id__": 1
|
||||
},
|
||||
"asset": {
|
||||
"__id__": 0
|
||||
},
|
||||
"fileId": "b7w6U8zppFX54UJURtAWiT"
|
||||
},
|
||||
{
|
||||
"__type__": "cc.SkeletalAnimation",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 1
|
||||
},
|
||||
"_enabled": true,
|
||||
"playOnLoad": false,
|
||||
"_clips": [
|
||||
{
|
||||
"__uuid__": "aade09ee-8f9d-413c-a9e8-8c686ea5e160@73b7f"
|
||||
}
|
||||
],
|
||||
"_defaultClip": {
|
||||
"__uuid__": "aade09ee-8f9d-413c-a9e8-8c686ea5e160@73b7f"
|
||||
},
|
||||
"_useBakedAnimation": true,
|
||||
"_sockets": [],
|
||||
"_id": "",
|
||||
"__prefab": {
|
||||
"__id__": 22
|
||||
}
|
||||
},
|
||||
{
|
||||
"__type__": "cc.CompPrefabInfo",
|
||||
"fileId": "deki0q/OJHD4jsTyP928BZ"
|
||||
},
|
||||
{
|
||||
"__type__": "cc.PrefabInfo",
|
||||
"root": {
|
||||
"__id__": 1
|
||||
},
|
||||
"asset": {
|
||||
"__id__": 0
|
||||
},
|
||||
"fileId": "fdSk3ayLBOH7saksB95r+y"
|
||||
}
|
||||
]
|
13
assets/model/helloWorld/grass/grass.prefab.meta
Normal file
@ -0,0 +1,13 @@
|
||||
{
|
||||
"ver": "1.1.39",
|
||||
"importer": "prefab",
|
||||
"imported": true,
|
||||
"uuid": "ebe68402-4803-40d3-b0a2-ca696e3f7c60",
|
||||
"files": [
|
||||
".json"
|
||||
],
|
||||
"subMetas": {},
|
||||
"userData": {
|
||||
"syncNodeName": "grass"
|
||||
}
|
||||
}
|
7036
assets/model/helloWorld/grass/grassGoup.prefab
Normal file
13
assets/model/helloWorld/grass/grassGoup.prefab.meta
Normal file
@ -0,0 +1,13 @@
|
||||
{
|
||||
"ver": "1.1.39",
|
||||
"importer": "prefab",
|
||||
"imported": true,
|
||||
"uuid": "5e4d48c4-0e34-45af-a268-89485197e8bc",
|
||||
"files": [
|
||||
".json"
|
||||
],
|
||||
"subMetas": {},
|
||||
"userData": {
|
||||
"syncNodeName": "grassGoup"
|
||||
}
|
||||
}
|
BIN
assets/model/helloWorld/hdcSky.FBX
Normal file
113
assets/model/helloWorld/hdcSky.FBX.meta
Normal file
@ -0,0 +1,113 @@
|
||||
{
|
||||
"ver": "2.3.0",
|
||||
"importer": "fbx",
|
||||
"imported": true,
|
||||
"uuid": "929e58ce-66a4-4e04-9036-4244456a1220",
|
||||
"files": [],
|
||||
"subMetas": {
|
||||
"f6832": {
|
||||
"importer": "gltf-mesh",
|
||||
"uuid": "929e58ce-66a4-4e04-9036-4244456a1220@f6832",
|
||||
"displayName": "",
|
||||
"id": "f6832",
|
||||
"name": "hdcSky.mesh",
|
||||
"ver": "1.1.0",
|
||||
"imported": true,
|
||||
"files": [
|
||||
".bin",
|
||||
".json"
|
||||
],
|
||||
"subMetas": {},
|
||||
"userData": {
|
||||
"gltfIndex": 0
|
||||
}
|
||||
},
|
||||
"7f40d": {
|
||||
"importer": "gltf-embeded-image",
|
||||
"uuid": "929e58ce-66a4-4e04-9036-4244456a1220@7f40d",
|
||||
"displayName": "",
|
||||
"id": "7f40d",
|
||||
"name": "hdcSky.image",
|
||||
"ver": "1.0.3",
|
||||
"imported": true,
|
||||
"files": [
|
||||
".json",
|
||||
".png"
|
||||
],
|
||||
"subMetas": {},
|
||||
"userData": {
|
||||
"gltfIndex": 0
|
||||
}
|
||||
},
|
||||
"d6067": {
|
||||
"importer": "texture",
|
||||
"uuid": "929e58ce-66a4-4e04-9036-4244456a1220@d6067",
|
||||
"displayName": "",
|
||||
"id": "d6067",
|
||||
"name": "hdcSky.texture",
|
||||
"ver": "1.0.22",
|
||||
"imported": true,
|
||||
"files": [
|
||||
".json"
|
||||
],
|
||||
"subMetas": {},
|
||||
"userData": {
|
||||
"wrapModeS": "repeat",
|
||||
"wrapModeT": "repeat",
|
||||
"minfilter": "linear",
|
||||
"magfilter": "linear",
|
||||
"mipfilter": "none",
|
||||
"premultiplyAlpha": false,
|
||||
"anisotropy": 0,
|
||||
"isUuid": true,
|
||||
"imageUuidOrDatabaseUri": "929e58ce-66a4-4e04-9036-4244456a1220@7f40d"
|
||||
}
|
||||
},
|
||||
"bfc57": {
|
||||
"importer": "gltf-scene",
|
||||
"uuid": "929e58ce-66a4-4e04-9036-4244456a1220@bfc57",
|
||||
"displayName": "",
|
||||
"id": "bfc57",
|
||||
"name": "hdcSky.prefab",
|
||||
"ver": "1.0.12",
|
||||
"imported": true,
|
||||
"files": [
|
||||
".json"
|
||||
],
|
||||
"subMetas": {},
|
||||
"userData": {
|
||||
"gltfIndex": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
"userData": {
|
||||
"imageMetas": [
|
||||
{
|
||||
"name": "hdcSky",
|
||||
"uri": "929e58ce-66a4-4e04-9036-4244456a1220@7f40d"
|
||||
}
|
||||
],
|
||||
"redirect": "929e58ce-66a4-4e04-9036-4244456a1220@bfc57",
|
||||
"assetFinder": {
|
||||
"meshes": [
|
||||
"929e58ce-66a4-4e04-9036-4244456a1220@f6832"
|
||||
],
|
||||
"skeletons": [],
|
||||
"textures": [
|
||||
"929e58ce-66a4-4e04-9036-4244456a1220@d6067"
|
||||
],
|
||||
"materials": [
|
||||
"482a5162-dad9-446c-b548-8486c7598ee1"
|
||||
],
|
||||
"scenes": [
|
||||
"929e58ce-66a4-4e04-9036-4244456a1220@bfc57"
|
||||
]
|
||||
},
|
||||
"dumpMaterials": true,
|
||||
"materialDumpDir": "db://assets/material",
|
||||
"legacyFbxImporter": true,
|
||||
"fbx": {
|
||||
"smartMaterialEnabled": false
|
||||
}
|
||||
}
|
||||
}
|
224
assets/model/helloWorld/hdcSky.prefab
Normal file
@ -0,0 +1,224 @@
|
||||
[
|
||||
{
|
||||
"__type__": "cc.Prefab",
|
||||
"_name": "hdcSky",
|
||||
"_objFlags": 0,
|
||||
"_native": "",
|
||||
"data": {
|
||||
"__id__": 1
|
||||
},
|
||||
"optimizationPolicy": 0,
|
||||
"asyncLoadAssets": false,
|
||||
"persistent": false
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Node",
|
||||
"_name": "hdcSky",
|
||||
"_objFlags": 0,
|
||||
"_parent": null,
|
||||
"_children": [
|
||||
{
|
||||
"__id__": 2
|
||||
}
|
||||
],
|
||||
"_active": true,
|
||||
"_components": [],
|
||||
"_prefab": {
|
||||
"__id__": 9
|
||||
},
|
||||
"_lpos": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"z": 0
|
||||
},
|
||||
"_lrot": {
|
||||
"__type__": "cc.Quat",
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"z": 0,
|
||||
"w": 1
|
||||
},
|
||||
"_lscale": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": 1,
|
||||
"y": 1,
|
||||
"z": 1
|
||||
},
|
||||
"_layer": 1073741824,
|
||||
"_euler": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"z": 0
|
||||
},
|
||||
"_id": ""
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Node",
|
||||
"_name": "RootNode",
|
||||
"_objFlags": 0,
|
||||
"_parent": {
|
||||
"__id__": 1
|
||||
},
|
||||
"_children": [
|
||||
{
|
||||
"__id__": 3
|
||||
}
|
||||
],
|
||||
"_active": true,
|
||||
"_components": [],
|
||||
"_prefab": {
|
||||
"__id__": 8
|
||||
},
|
||||
"_lpos": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"z": 0
|
||||
},
|
||||
"_lrot": {
|
||||
"__type__": "cc.Quat",
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"z": 0,
|
||||
"w": 1
|
||||
},
|
||||
"_lscale": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": 1,
|
||||
"y": 1,
|
||||
"z": 1
|
||||
},
|
||||
"_layer": 1073741824,
|
||||
"_euler": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"z": 0
|
||||
},
|
||||
"_id": ""
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Node",
|
||||
"_name": "hdcSky",
|
||||
"_objFlags": 0,
|
||||
"_parent": {
|
||||
"__id__": 2
|
||||
},
|
||||
"_children": [],
|
||||
"_active": true,
|
||||
"_components": [
|
||||
{
|
||||
"__id__": 4
|
||||
}
|
||||
],
|
||||
"_prefab": {
|
||||
"__id__": 7
|
||||
},
|
||||
"_lpos": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"z": 0.00000556361783310422
|
||||
},
|
||||
"_lrot": {
|
||||
"__type__": "cc.Quat",
|
||||
"x": -0.7071067811865476,
|
||||
"y": 0,
|
||||
"z": 0,
|
||||
"w": 0.7071067811865476
|
||||
},
|
||||
"_lscale": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": 2.57702493667603,
|
||||
"y": 2.57702493667603,
|
||||
"z": 2.57702493667603
|
||||
},
|
||||
"_layer": 1073741824,
|
||||
"_euler": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": -90.00000000000003,
|
||||
"y": 0,
|
||||
"z": 0
|
||||
},
|
||||
"_id": ""
|
||||
},
|
||||
{
|
||||
"__type__": "cc.MeshRenderer",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 3
|
||||
},
|
||||
"_enabled": true,
|
||||
"_materials": [
|
||||
{
|
||||
"__uuid__": "482a5162-dad9-446c-b548-8486c7598ee1"
|
||||
}
|
||||
],
|
||||
"_visFlags": 0,
|
||||
"lightmapSettings": {
|
||||
"__id__": 5
|
||||
},
|
||||
"_mesh": {
|
||||
"__uuid__": "929e58ce-66a4-4e04-9036-4244456a1220@f6832"
|
||||
},
|
||||
"_shadowCastingMode": 0,
|
||||
"_enableMorph": true,
|
||||
"_id": "",
|
||||
"__prefab": {
|
||||
"__id__": 6
|
||||
}
|
||||
},
|
||||
{
|
||||
"__type__": "cc.ModelLightmapSettings",
|
||||
"texture": null,
|
||||
"uvParam": {
|
||||
"__type__": "cc.Vec4",
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"z": 0,
|
||||
"w": 0
|
||||
},
|
||||
"_bakeable": false,
|
||||
"_castShadow": false,
|
||||
"_receiveShadow": false,
|
||||
"_recieveShadow": false,
|
||||
"_lightmapSize": 64
|
||||
},
|
||||
{
|
||||
"__type__": "cc.CompPrefabInfo",
|
||||
"fileId": "faUTUMvuxGGLzyygmsEygr"
|
||||
},
|
||||
{
|
||||
"__type__": "cc.PrefabInfo",
|
||||
"root": {
|
||||
"__id__": 1
|
||||
},
|
||||
"asset": {
|
||||
"__id__": 0
|
||||
},
|
||||
"fileId": "537wfATPdERIxNoHyImaal"
|
||||
},
|
||||
{
|
||||
"__type__": "cc.PrefabInfo",
|
||||
"root": {
|
||||
"__id__": 1
|
||||
},
|
||||
"asset": {
|
||||
"__id__": 0
|
||||
},
|
||||
"fileId": "68pBvn4L5LzqzYlxlqIh1Z"
|
||||
},
|
||||
{
|
||||
"__type__": "cc.PrefabInfo",
|
||||
"root": {
|
||||
"__id__": 1
|
||||
},
|
||||
"asset": {
|
||||
"__id__": 0
|
||||
},
|
||||
"fileId": "a0C8RfybZDJbzD2rhAA/j8"
|
||||
}
|
||||
]
|
13
assets/model/helloWorld/hdcSky.prefab.meta
Normal file
@ -0,0 +1,13 @@
|
||||
{
|
||||
"ver": "1.1.39",
|
||||
"importer": "prefab",
|
||||
"imported": true,
|
||||
"uuid": "f0512d7a-e4f6-4209-8dc0-ed1de7149c85",
|
||||
"files": [
|
||||
".json"
|
||||
],
|
||||
"subMetas": {},
|
||||
"userData": {
|
||||
"syncNodeName": "hdcSky"
|
||||
}
|
||||
}
|
BIN
assets/model/helloWorld/islands.FBX
Normal file
369
assets/model/helloWorld/islands.FBX.meta
Normal file
@ -0,0 +1,369 @@
|
||||
{
|
||||
"ver": "2.3.0",
|
||||
"importer": "fbx",
|
||||
"imported": true,
|
||||
"uuid": "0ab3142a-6968-4073-95af-026bc3b23623",
|
||||
"files": [],
|
||||
"subMetas": {
|
||||
"71919": {
|
||||
"importer": "gltf-mesh",
|
||||
"uuid": "0ab3142a-6968-4073-95af-026bc3b23623@71919",
|
||||
"displayName": "",
|
||||
"id": "71919",
|
||||
"name": "tree1-6.mesh",
|
||||
"ver": "1.1.0",
|
||||
"imported": true,
|
||||
"files": [
|
||||
".bin",
|
||||
".json"
|
||||
],
|
||||
"subMetas": {},
|
||||
"userData": {
|
||||
"gltfIndex": 6
|
||||
}
|
||||
},
|
||||
"2b0a8": {
|
||||
"importer": "gltf-mesh",
|
||||
"uuid": "0ab3142a-6968-4073-95af-026bc3b23623@2b0a8",
|
||||
"displayName": "",
|
||||
"id": "2b0a8",
|
||||
"name": "plane01-0.mesh",
|
||||
"ver": "1.1.0",
|
||||
"imported": true,
|
||||
"files": [
|
||||
".bin",
|
||||
".json"
|
||||
],
|
||||
"subMetas": {},
|
||||
"userData": {
|
||||
"gltfIndex": 0
|
||||
}
|
||||
},
|
||||
"4a7d8": {
|
||||
"importer": "gltf-mesh",
|
||||
"uuid": "0ab3142a-6968-4073-95af-026bc3b23623@4a7d8",
|
||||
"displayName": "",
|
||||
"id": "4a7d8",
|
||||
"name": "stone1-1.mesh",
|
||||
"ver": "1.1.0",
|
||||
"imported": true,
|
||||
"files": [
|
||||
".bin",
|
||||
".json"
|
||||
],
|
||||
"subMetas": {},
|
||||
"userData": {
|
||||
"gltfIndex": 1
|
||||
}
|
||||
},
|
||||
"0e750": {
|
||||
"importer": "gltf-mesh",
|
||||
"uuid": "0ab3142a-6968-4073-95af-026bc3b23623@0e750",
|
||||
"displayName": "",
|
||||
"id": "0e750",
|
||||
"name": "tree1-2.mesh",
|
||||
"ver": "1.1.0",
|
||||
"imported": true,
|
||||
"files": [
|
||||
".bin",
|
||||
".json"
|
||||
],
|
||||
"subMetas": {},
|
||||
"userData": {
|
||||
"gltfIndex": 2
|
||||
}
|
||||
},
|
||||
"ef86b": {
|
||||
"importer": "gltf-mesh",
|
||||
"uuid": "0ab3142a-6968-4073-95af-026bc3b23623@ef86b",
|
||||
"displayName": "",
|
||||
"id": "ef86b",
|
||||
"name": "tree1-3.mesh",
|
||||
"ver": "1.1.0",
|
||||
"imported": true,
|
||||
"files": [
|
||||
".bin",
|
||||
".json"
|
||||
],
|
||||
"subMetas": {},
|
||||
"userData": {
|
||||
"gltfIndex": 3
|
||||
}
|
||||
},
|
||||
"426f2": {
|
||||
"importer": "gltf-mesh",
|
||||
"uuid": "0ab3142a-6968-4073-95af-026bc3b23623@426f2",
|
||||
"displayName": "",
|
||||
"id": "426f2",
|
||||
"name": "tree1-4.mesh",
|
||||
"ver": "1.1.0",
|
||||
"imported": true,
|
||||
"files": [
|
||||
".bin",
|
||||
".json"
|
||||
],
|
||||
"subMetas": {},
|
||||
"userData": {
|
||||
"gltfIndex": 4
|
||||
}
|
||||
},
|
||||
"754a2": {
|
||||
"importer": "gltf-mesh",
|
||||
"uuid": "0ab3142a-6968-4073-95af-026bc3b23623@754a2",
|
||||
"displayName": "",
|
||||
"id": "754a2",
|
||||
"name": "tree1-5.mesh",
|
||||
"ver": "1.1.0",
|
||||
"imported": true,
|
||||
"files": [
|
||||
".bin",
|
||||
".json"
|
||||
],
|
||||
"subMetas": {},
|
||||
"userData": {
|
||||
"gltfIndex": 5
|
||||
}
|
||||
},
|
||||
"1332c": {
|
||||
"importer": "gltf-mesh",
|
||||
"uuid": "0ab3142a-6968-4073-95af-026bc3b23623@1332c",
|
||||
"displayName": "",
|
||||
"id": "1332c",
|
||||
"name": "tree1-7.mesh",
|
||||
"ver": "1.1.0",
|
||||
"imported": true,
|
||||
"files": [
|
||||
".bin",
|
||||
".json"
|
||||
],
|
||||
"subMetas": {},
|
||||
"userData": {
|
||||
"gltfIndex": 7
|
||||
}
|
||||
},
|
||||
"4d16f": {
|
||||
"importer": "gltf-mesh",
|
||||
"uuid": "0ab3142a-6968-4073-95af-026bc3b23623@4d16f",
|
||||
"displayName": "",
|
||||
"id": "4d16f",
|
||||
"name": "tree1-8.mesh",
|
||||
"ver": "1.1.0",
|
||||
"imported": true,
|
||||
"files": [
|
||||
".bin",
|
||||
".json"
|
||||
],
|
||||
"subMetas": {},
|
||||
"userData": {
|
||||
"gltfIndex": 8
|
||||
}
|
||||
},
|
||||
"efe84": {
|
||||
"importer": "gltf-mesh",
|
||||
"uuid": "0ab3142a-6968-4073-95af-026bc3b23623@efe84",
|
||||
"displayName": "",
|
||||
"id": "efe84",
|
||||
"name": "tree1-9.mesh",
|
||||
"ver": "1.1.0",
|
||||
"imported": true,
|
||||
"files": [
|
||||
".bin",
|
||||
".json"
|
||||
],
|
||||
"subMetas": {},
|
||||
"userData": {
|
||||
"gltfIndex": 9
|
||||
}
|
||||
},
|
||||
"baeab": {
|
||||
"importer": "gltf-embeded-image",
|
||||
"uuid": "0ab3142a-6968-4073-95af-026bc3b23623@baeab",
|
||||
"displayName": "",
|
||||
"id": "baeab",
|
||||
"name": "seafloor.jpg.image",
|
||||
"ver": "1.0.3",
|
||||
"imported": true,
|
||||
"files": [
|
||||
".jpg",
|
||||
".json"
|
||||
],
|
||||
"subMetas": {},
|
||||
"userData": {
|
||||
"gltfIndex": 0
|
||||
}
|
||||
},
|
||||
"eeccb": {
|
||||
"importer": "gltf-embeded-image",
|
||||
"uuid": "0ab3142a-6968-4073-95af-026bc3b23623@eeccb",
|
||||
"displayName": "",
|
||||
"id": "eeccb",
|
||||
"name": "stone.jpg.image",
|
||||
"userData": {
|
||||
"gltfIndex": 1
|
||||
},
|
||||
"ver": "1.0.3",
|
||||
"imported": true,
|
||||
"files": [
|
||||
".jpg",
|
||||
".json"
|
||||
],
|
||||
"subMetas": {}
|
||||
},
|
||||
"3b6f8": {
|
||||
"importer": "gltf-embeded-image",
|
||||
"uuid": "0ab3142a-6968-4073-95af-026bc3b23623@3b6f8",
|
||||
"displayName": "",
|
||||
"id": "3b6f8",
|
||||
"name": "tree.png.image",
|
||||
"userData": {
|
||||
"gltfIndex": 2
|
||||
},
|
||||
"ver": "1.0.3",
|
||||
"imported": true,
|
||||
"files": [
|
||||
".json",
|
||||
".png"
|
||||
],
|
||||
"subMetas": {}
|
||||
},
|
||||
"2df3a": {
|
||||
"importer": "texture",
|
||||
"uuid": "0ab3142a-6968-4073-95af-026bc3b23623@2df3a",
|
||||
"displayName": "",
|
||||
"id": "2df3a",
|
||||
"name": "seafloor.texture",
|
||||
"userData": {
|
||||
"wrapModeS": "repeat",
|
||||
"wrapModeT": "repeat",
|
||||
"minfilter": "linear",
|
||||
"magfilter": "linear",
|
||||
"mipfilter": "none",
|
||||
"premultiplyAlpha": false,
|
||||
"anisotropy": 0,
|
||||
"isUuid": true,
|
||||
"imageUuidOrDatabaseUri": "0ab3142a-6968-4073-95af-026bc3b23623@baeab"
|
||||
},
|
||||
"ver": "1.0.22",
|
||||
"imported": true,
|
||||
"files": [
|
||||
".json"
|
||||
],
|
||||
"subMetas": {}
|
||||
},
|
||||
"91a84": {
|
||||
"importer": "texture",
|
||||
"uuid": "0ab3142a-6968-4073-95af-026bc3b23623@91a84",
|
||||
"displayName": "",
|
||||
"id": "91a84",
|
||||
"name": "stone.texture",
|
||||
"userData": {
|
||||
"wrapModeS": "repeat",
|
||||
"wrapModeT": "repeat",
|
||||
"minfilter": "linear",
|
||||
"magfilter": "linear",
|
||||
"mipfilter": "none",
|
||||
"premultiplyAlpha": false,
|
||||
"anisotropy": 0,
|
||||
"isUuid": true,
|
||||
"imageUuidOrDatabaseUri": "0ab3142a-6968-4073-95af-026bc3b23623@eeccb"
|
||||
},
|
||||
"ver": "1.0.22",
|
||||
"imported": true,
|
||||
"files": [
|
||||
".json"
|
||||
],
|
||||
"subMetas": {}
|
||||
},
|
||||
"0595c": {
|
||||
"importer": "texture",
|
||||
"uuid": "0ab3142a-6968-4073-95af-026bc3b23623@0595c",
|
||||
"displayName": "",
|
||||
"id": "0595c",
|
||||
"name": "tree.texture",
|
||||
"userData": {
|
||||
"wrapModeS": "repeat",
|
||||
"wrapModeT": "repeat",
|
||||
"minfilter": "linear",
|
||||
"magfilter": "linear",
|
||||
"mipfilter": "none",
|
||||
"premultiplyAlpha": false,
|
||||
"anisotropy": 0,
|
||||
"isUuid": true,
|
||||
"imageUuidOrDatabaseUri": "0ab3142a-6968-4073-95af-026bc3b23623@3b6f8"
|
||||
},
|
||||
"ver": "1.0.22",
|
||||
"imported": true,
|
||||
"files": [
|
||||
".json"
|
||||
],
|
||||
"subMetas": {}
|
||||
},
|
||||
"cc8e5": {
|
||||
"importer": "gltf-scene",
|
||||
"uuid": "0ab3142a-6968-4073-95af-026bc3b23623@cc8e5",
|
||||
"displayName": "",
|
||||
"id": "cc8e5",
|
||||
"name": "islands.prefab",
|
||||
"ver": "1.0.12",
|
||||
"imported": true,
|
||||
"files": [
|
||||
".json"
|
||||
],
|
||||
"subMetas": {},
|
||||
"userData": {
|
||||
"gltfIndex": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
"userData": {
|
||||
"imageMetas": [
|
||||
{
|
||||
"name": "seafloor.jpg",
|
||||
"uri": "0ab3142a-6968-4073-95af-026bc3b23623@baeab"
|
||||
},
|
||||
{
|
||||
"name": "stone.jpg",
|
||||
"uri": "0ab3142a-6968-4073-95af-026bc3b23623@eeccb"
|
||||
},
|
||||
{
|
||||
"name": "tree.png",
|
||||
"uri": "0ab3142a-6968-4073-95af-026bc3b23623@3b6f8"
|
||||
}
|
||||
],
|
||||
"redirect": "0ab3142a-6968-4073-95af-026bc3b23623@cc8e5",
|
||||
"assetFinder": {
|
||||
"meshes": [
|
||||
"0ab3142a-6968-4073-95af-026bc3b23623@2b0a8",
|
||||
"0ab3142a-6968-4073-95af-026bc3b23623@4a7d8",
|
||||
"0ab3142a-6968-4073-95af-026bc3b23623@0e750",
|
||||
"0ab3142a-6968-4073-95af-026bc3b23623@ef86b",
|
||||
"0ab3142a-6968-4073-95af-026bc3b23623@426f2",
|
||||
"0ab3142a-6968-4073-95af-026bc3b23623@754a2",
|
||||
"0ab3142a-6968-4073-95af-026bc3b23623@71919",
|
||||
"0ab3142a-6968-4073-95af-026bc3b23623@1332c",
|
||||
"0ab3142a-6968-4073-95af-026bc3b23623@4d16f",
|
||||
"0ab3142a-6968-4073-95af-026bc3b23623@efe84"
|
||||
],
|
||||
"skeletons": [],
|
||||
"textures": [
|
||||
"0ab3142a-6968-4073-95af-026bc3b23623@2df3a",
|
||||
"0ab3142a-6968-4073-95af-026bc3b23623@91a84",
|
||||
"0ab3142a-6968-4073-95af-026bc3b23623@0595c"
|
||||
],
|
||||
"materials": [
|
||||
"70d33758-1c1e-424d-b0ab-eac7410559bf",
|
||||
"a155f93b-7769-4ca4-b75f-b13e52193859",
|
||||
"7bf9df40-4bc9-4e25-8cb0-9a500f949102"
|
||||
],
|
||||
"scenes": [
|
||||
"0ab3142a-6968-4073-95af-026bc3b23623@cc8e5"
|
||||
]
|
||||
},
|
||||
"dumpMaterials": true,
|
||||
"materialDumpDir": "db://assets/material",
|
||||
"legacyFbxImporter": true,
|
||||
"fbx": {
|
||||
"smartMaterialEnabled": false
|
||||
}
|
||||
}
|
||||
}
|
1179
assets/model/helloWorld/islands.prefab
Normal file
13
assets/model/helloWorld/islands.prefab.meta
Normal file
@ -0,0 +1,13 @@
|
||||
{
|
||||
"ver": "1.1.39",
|
||||
"importer": "prefab",
|
||||
"imported": true,
|
||||
"uuid": "ccc3a755-7d3d-4304-aa3b-ca4792d79d9f",
|
||||
"files": [
|
||||
".json"
|
||||
],
|
||||
"subMetas": {},
|
||||
"userData": {
|
||||
"syncNodeName": "islands"
|
||||
}
|
||||
}
|
BIN
assets/model/helloWorld/seafloor.jpg
Normal file
After Width: | Height: | Size: 476 KiB |
43
assets/model/helloWorld/seafloor.jpg.meta
Normal file
@ -0,0 +1,43 @@
|
||||
{
|
||||
"ver": "1.0.24",
|
||||
"importer": "image",
|
||||
"imported": true,
|
||||
"uuid": "4f4c4a34-2d08-4a4d-9169-834d7ce82cee",
|
||||
"files": [
|
||||
".jpg",
|
||||
".json"
|
||||
],
|
||||
"subMetas": {
|
||||
"6c48a": {
|
||||
"importer": "texture",
|
||||
"uuid": "4f4c4a34-2d08-4a4d-9169-834d7ce82cee@6c48a",
|
||||
"displayName": "seafloor",
|
||||
"id": "6c48a",
|
||||
"name": "texture",
|
||||
"ver": "1.0.22",
|
||||
"imported": true,
|
||||
"files": [
|
||||
".json"
|
||||
],
|
||||
"subMetas": {},
|
||||
"userData": {
|
||||
"wrapModeS": "repeat",
|
||||
"wrapModeT": "repeat",
|
||||
"minfilter": "linear",
|
||||
"magfilter": "linear",
|
||||
"mipfilter": "none",
|
||||
"premultiplyAlpha": false,
|
||||
"anisotropy": 0,
|
||||
"isUuid": true,
|
||||
"imageUuidOrDatabaseUri": "4f4c4a34-2d08-4a4d-9169-834d7ce82cee",
|
||||
"visible": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"userData": {
|
||||
"type": "texture",
|
||||
"redirect": "4f4c4a34-2d08-4a4d-9169-834d7ce82cee@6c48a",
|
||||
"hasAlpha": false,
|
||||
"fixAlphaTransparencyArtifacts": false
|
||||
}
|
||||
}
|
BIN
assets/model/helloWorld/shield.jpg
Normal file
After Width: | Height: | Size: 13 KiB |
43
assets/model/helloWorld/shield.jpg.meta
Normal file
@ -0,0 +1,43 @@
|
||||
{
|
||||
"ver": "1.0.24",
|
||||
"importer": "image",
|
||||
"imported": true,
|
||||
"uuid": "95e5b02a-e338-423c-bdbb-17486db1d9eb",
|
||||
"files": [
|
||||
".jpg",
|
||||
".json"
|
||||
],
|
||||
"subMetas": {
|
||||
"6c48a": {
|
||||
"importer": "texture",
|
||||
"uuid": "95e5b02a-e338-423c-bdbb-17486db1d9eb@6c48a",
|
||||
"displayName": "shield",
|
||||
"id": "6c48a",
|
||||
"name": "texture",
|
||||
"ver": "1.0.22",
|
||||
"imported": true,
|
||||
"files": [
|
||||
".json"
|
||||
],
|
||||
"subMetas": {},
|
||||
"userData": {
|
||||
"wrapModeS": "repeat",
|
||||
"wrapModeT": "repeat",
|
||||
"minfilter": "linear",
|
||||
"magfilter": "linear",
|
||||
"mipfilter": "none",
|
||||
"premultiplyAlpha": false,
|
||||
"anisotropy": 0,
|
||||
"isUuid": true,
|
||||
"imageUuidOrDatabaseUri": "95e5b02a-e338-423c-bdbb-17486db1d9eb",
|
||||
"visible": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"userData": {
|
||||
"type": "texture",
|
||||
"redirect": "95e5b02a-e338-423c-bdbb-17486db1d9eb@6c48a",
|
||||
"hasAlpha": false,
|
||||
"fixAlphaTransparencyArtifacts": false
|
||||
}
|
||||
}
|
BIN
assets/model/helloWorld/sky.png
Normal file
After Width: | Height: | Size: 691 KiB |
43
assets/model/helloWorld/sky.png.meta
Normal file
@ -0,0 +1,43 @@
|
||||
{
|
||||
"ver": "1.0.24",
|
||||
"importer": "image",
|
||||
"imported": true,
|
||||
"uuid": "dc4a96c7-321a-48af-81e5-1127ad3ae432",
|
||||
"files": [
|
||||
".json",
|
||||
".png"
|
||||
],
|
||||
"subMetas": {
|
||||
"6c48a": {
|
||||
"importer": "texture",
|
||||
"uuid": "dc4a96c7-321a-48af-81e5-1127ad3ae432@6c48a",
|
||||
"displayName": "sky",
|
||||
"id": "6c48a",
|
||||
"name": "texture",
|
||||
"ver": "1.0.22",
|
||||
"imported": true,
|
||||
"files": [
|
||||
".json"
|
||||
],
|
||||
"subMetas": {},
|
||||
"userData": {
|
||||
"wrapModeS": "repeat",
|
||||
"wrapModeT": "repeat",
|
||||
"minfilter": "linear",
|
||||
"magfilter": "linear",
|
||||
"mipfilter": "none",
|
||||
"premultiplyAlpha": false,
|
||||
"anisotropy": 0,
|
||||
"isUuid": true,
|
||||
"imageUuidOrDatabaseUri": "dc4a96c7-321a-48af-81e5-1127ad3ae432",
|
||||
"visible": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"userData": {
|
||||
"type": "texture",
|
||||
"redirect": "dc4a96c7-321a-48af-81e5-1127ad3ae432@6c48a",
|
||||
"hasAlpha": false,
|
||||
"fixAlphaTransparencyArtifacts": false
|
||||
}
|
||||
}
|
BIN
assets/model/helloWorld/soldier.FBX
Normal file
311
assets/model/helloWorld/soldier.FBX.meta
Normal file
@ -0,0 +1,311 @@
|
||||
{
|
||||
"ver": "2.3.0",
|
||||
"importer": "fbx",
|
||||
"imported": true,
|
||||
"uuid": "e3553cad-2f15-4293-859a-8f43c780f289",
|
||||
"files": [
|
||||
"__original-animation-0.cconb"
|
||||
],
|
||||
"subMetas": {
|
||||
"18751": {
|
||||
"importer": "gltf-mesh",
|
||||
"uuid": "e3553cad-2f15-4293-859a-8f43c780f289@18751",
|
||||
"displayName": "",
|
||||
"id": "18751",
|
||||
"name": "soldier.mesh",
|
||||
"ver": "1.1.0",
|
||||
"imported": true,
|
||||
"files": [
|
||||
".bin",
|
||||
".json"
|
||||
],
|
||||
"subMetas": {},
|
||||
"userData": {
|
||||
"gltfIndex": 0
|
||||
}
|
||||
},
|
||||
"30732": {
|
||||
"importer": "gltf-skeleton",
|
||||
"uuid": "e3553cad-2f15-4293-859a-8f43c780f289@30732",
|
||||
"displayName": "",
|
||||
"id": "30732",
|
||||
"name": "UnnamedSkeleton-0.skeleton",
|
||||
"ver": "1.0.1",
|
||||
"imported": true,
|
||||
"files": [
|
||||
".json"
|
||||
],
|
||||
"subMetas": {},
|
||||
"userData": {
|
||||
"gltfIndex": 0,
|
||||
"jointsLength": 22
|
||||
}
|
||||
},
|
||||
"da6f3": {
|
||||
"importer": "gltf-mesh",
|
||||
"uuid": "e3553cad-2f15-4293-859a-8f43c780f289@da6f3",
|
||||
"displayName": "",
|
||||
"id": "da6f3",
|
||||
"name": "shield.mesh",
|
||||
"ver": "1.1.0",
|
||||
"imported": true,
|
||||
"files": [
|
||||
".bin",
|
||||
".json"
|
||||
],
|
||||
"subMetas": {},
|
||||
"userData": {
|
||||
"gltfIndex": 1
|
||||
}
|
||||
},
|
||||
"4b929": {
|
||||
"importer": "gltf-mesh",
|
||||
"uuid": "e3553cad-2f15-4293-859a-8f43c780f289@4b929",
|
||||
"displayName": "",
|
||||
"id": "4b929",
|
||||
"name": "sword.mesh",
|
||||
"ver": "1.1.0",
|
||||
"imported": true,
|
||||
"files": [
|
||||
".bin",
|
||||
".json"
|
||||
],
|
||||
"subMetas": {},
|
||||
"userData": {
|
||||
"gltfIndex": 2
|
||||
}
|
||||
},
|
||||
"39f7b": {
|
||||
"importer": "gltf-mesh",
|
||||
"uuid": "e3553cad-2f15-4293-859a-8f43c780f289@39f7b",
|
||||
"displayName": "",
|
||||
"id": "39f7b",
|
||||
"name": "shield01.mesh",
|
||||
"userData": {
|
||||
"gltfIndex": 3
|
||||
},
|
||||
"ver": "1.1.0",
|
||||
"imported": true,
|
||||
"files": [
|
||||
".bin",
|
||||
".json"
|
||||
],
|
||||
"subMetas": {}
|
||||
},
|
||||
"73b7f": {
|
||||
"importer": "gltf-animation",
|
||||
"uuid": "e3553cad-2f15-4293-859a-8f43c780f289@73b7f",
|
||||
"displayName": "",
|
||||
"id": "73b7f",
|
||||
"name": "Take 001.animation",
|
||||
"ver": "1.0.16",
|
||||
"imported": true,
|
||||
"files": [
|
||||
".cconb"
|
||||
],
|
||||
"subMetas": {},
|
||||
"userData": {
|
||||
"events": [],
|
||||
"gltfIndex": 0,
|
||||
"sample": 30,
|
||||
"span": {
|
||||
"from": 0.03333333333333333,
|
||||
"to": 1.3333333730697632
|
||||
},
|
||||
"wrapMode": 2,
|
||||
"speed": 1
|
||||
}
|
||||
},
|
||||
"f1394": {
|
||||
"importer": "gltf-skeleton",
|
||||
"uuid": "e3553cad-2f15-4293-859a-8f43c780f289@f1394",
|
||||
"displayName": "",
|
||||
"id": "f1394",
|
||||
"name": "UnnamedSkeleton-1.skeleton",
|
||||
"ver": "1.0.1",
|
||||
"imported": true,
|
||||
"files": [
|
||||
".json"
|
||||
],
|
||||
"subMetas": {},
|
||||
"userData": {
|
||||
"gltfIndex": 1,
|
||||
"jointsLength": 1
|
||||
}
|
||||
},
|
||||
"75ee4": {
|
||||
"importer": "gltf-skeleton",
|
||||
"uuid": "e3553cad-2f15-4293-859a-8f43c780f289@75ee4",
|
||||
"displayName": "",
|
||||
"id": "75ee4",
|
||||
"name": "UnnamedSkeleton-2.skeleton",
|
||||
"ver": "1.0.1",
|
||||
"imported": true,
|
||||
"files": [
|
||||
".json"
|
||||
],
|
||||
"subMetas": {},
|
||||
"userData": {
|
||||
"gltfIndex": 2,
|
||||
"jointsLength": 1
|
||||
}
|
||||
},
|
||||
"a72ab": {
|
||||
"importer": "gltf-skeleton",
|
||||
"uuid": "e3553cad-2f15-4293-859a-8f43c780f289@a72ab",
|
||||
"displayName": "",
|
||||
"id": "a72ab",
|
||||
"name": "UnnamedSkeleton-3.skeleton",
|
||||
"ver": "1.0.1",
|
||||
"imported": true,
|
||||
"files": [
|
||||
".json"
|
||||
],
|
||||
"subMetas": {},
|
||||
"userData": {
|
||||
"gltfIndex": 3,
|
||||
"jointsLength": 1
|
||||
}
|
||||
},
|
||||
"e94f1": {
|
||||
"importer": "gltf-embeded-image",
|
||||
"uuid": "e3553cad-2f15-4293-859a-8f43c780f289@e94f1",
|
||||
"displayName": "",
|
||||
"id": "e94f1",
|
||||
"name": "shield.jpg.image",
|
||||
"userData": {
|
||||
"gltfIndex": 1
|
||||
},
|
||||
"ver": "1.0.3",
|
||||
"imported": true,
|
||||
"files": [
|
||||
".jpg",
|
||||
".json"
|
||||
],
|
||||
"subMetas": {}
|
||||
},
|
||||
"f3caa": {
|
||||
"importer": "texture",
|
||||
"uuid": "e3553cad-2f15-4293-859a-8f43c780f289@f3caa",
|
||||
"displayName": "",
|
||||
"id": "f3caa",
|
||||
"name": "soldier.texture",
|
||||
"userData": {
|
||||
"wrapModeS": "repeat",
|
||||
"wrapModeT": "repeat",
|
||||
"minfilter": "linear",
|
||||
"magfilter": "linear",
|
||||
"mipfilter": "none",
|
||||
"premultiplyAlpha": false,
|
||||
"anisotropy": 0,
|
||||
"isUuid": false,
|
||||
"imageUuidOrDatabaseUri": "db://assets/model/helloWorld/soldier.png"
|
||||
},
|
||||
"ver": "1.0.22",
|
||||
"imported": true,
|
||||
"files": [
|
||||
".json"
|
||||
],
|
||||
"subMetas": {}
|
||||
},
|
||||
"a2be1": {
|
||||
"importer": "texture",
|
||||
"uuid": "e3553cad-2f15-4293-859a-8f43c780f289@a2be1",
|
||||
"displayName": "",
|
||||
"id": "a2be1",
|
||||
"name": "shield.texture",
|
||||
"userData": {
|
||||
"wrapModeS": "repeat",
|
||||
"wrapModeT": "repeat",
|
||||
"minfilter": "linear",
|
||||
"magfilter": "linear",
|
||||
"mipfilter": "none",
|
||||
"premultiplyAlpha": false,
|
||||
"anisotropy": 0,
|
||||
"isUuid": true,
|
||||
"imageUuidOrDatabaseUri": "e3553cad-2f15-4293-859a-8f43c780f289@e94f1"
|
||||
},
|
||||
"ver": "1.0.22",
|
||||
"imported": true,
|
||||
"files": [
|
||||
".json"
|
||||
],
|
||||
"subMetas": {}
|
||||
},
|
||||
"d252c": {
|
||||
"importer": "gltf-scene",
|
||||
"uuid": "e3553cad-2f15-4293-859a-8f43c780f289@d252c",
|
||||
"displayName": "",
|
||||
"id": "d252c",
|
||||
"name": "soldier.prefab",
|
||||
"ver": "1.0.12",
|
||||
"imported": true,
|
||||
"files": [
|
||||
".json"
|
||||
],
|
||||
"subMetas": {},
|
||||
"userData": {
|
||||
"gltfIndex": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
"userData": {
|
||||
"imageMetas": [
|
||||
{
|
||||
"name": "soldier",
|
||||
"uri": "db://assets/model/helloWorld/soldier.png"
|
||||
},
|
||||
{
|
||||
"name": "shield.jpg",
|
||||
"uri": "e3553cad-2f15-4293-859a-8f43c780f289@e94f1"
|
||||
}
|
||||
],
|
||||
"redirect": "e3553cad-2f15-4293-859a-8f43c780f289@d252c",
|
||||
"assetFinder": {
|
||||
"meshes": [
|
||||
"e3553cad-2f15-4293-859a-8f43c780f289@18751",
|
||||
"e3553cad-2f15-4293-859a-8f43c780f289@da6f3",
|
||||
"e3553cad-2f15-4293-859a-8f43c780f289@4b929",
|
||||
"e3553cad-2f15-4293-859a-8f43c780f289@39f7b"
|
||||
],
|
||||
"skeletons": [
|
||||
"e3553cad-2f15-4293-859a-8f43c780f289@30732",
|
||||
"e3553cad-2f15-4293-859a-8f43c780f289@f1394",
|
||||
"e3553cad-2f15-4293-859a-8f43c780f289@75ee4",
|
||||
"e3553cad-2f15-4293-859a-8f43c780f289@a72ab"
|
||||
],
|
||||
"textures": [
|
||||
"e3553cad-2f15-4293-859a-8f43c780f289@f3caa",
|
||||
"e3553cad-2f15-4293-859a-8f43c780f289@a2be1"
|
||||
],
|
||||
"materials": [
|
||||
"8a58ddec-f437-40b9-8ec0-1fc87de97fb5",
|
||||
"8e047178-f61c-4322-a2f6-d1adb28b6ae2"
|
||||
],
|
||||
"scenes": [
|
||||
"e3553cad-2f15-4293-859a-8f43c780f289@d252c"
|
||||
]
|
||||
},
|
||||
"dumpMaterials": true,
|
||||
"materialDumpDir": "db://assets/material",
|
||||
"animationImportSettings": [
|
||||
{
|
||||
"name": "Take 001",
|
||||
"duration": 1.3333333730697632,
|
||||
"fps": 30,
|
||||
"splits": [
|
||||
{
|
||||
"name": "Take 001",
|
||||
"from": 0.03333333333333333,
|
||||
"to": 1.3333333730697632,
|
||||
"wrapMode": 2
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"legacyFbxImporter": true,
|
||||
"fbx": {
|
||||
"smartMaterialEnabled": false
|
||||
}
|
||||
}
|
||||
}
|
BIN
assets/model/helloWorld/soldier.png
Normal file
After Width: | Height: | Size: 329 KiB |
43
assets/model/helloWorld/soldier.png.meta
Normal file
@ -0,0 +1,43 @@
|
||||
{
|
||||
"ver": "1.0.24",
|
||||
"importer": "image",
|
||||
"imported": true,
|
||||
"uuid": "6f891a7b-5a08-48e6-9841-ddb364ac86b1",
|
||||
"files": [
|
||||
".json",
|
||||
".png"
|
||||
],
|
||||
"subMetas": {
|
||||
"6c48a": {
|
||||
"importer": "texture",
|
||||
"uuid": "6f891a7b-5a08-48e6-9841-ddb364ac86b1@6c48a",
|
||||
"displayName": "soldier",
|
||||
"id": "6c48a",
|
||||
"name": "texture",
|
||||
"ver": "1.0.22",
|
||||
"imported": true,
|
||||
"files": [
|
||||
".json"
|
||||
],
|
||||
"subMetas": {},
|
||||
"userData": {
|
||||
"wrapModeS": "repeat",
|
||||
"wrapModeT": "repeat",
|
||||
"minfilter": "linear",
|
||||
"magfilter": "linear",
|
||||
"mipfilter": "none",
|
||||
"premultiplyAlpha": false,
|
||||
"anisotropy": 0,
|
||||
"isUuid": true,
|
||||
"imageUuidOrDatabaseUri": "6f891a7b-5a08-48e6-9841-ddb364ac86b1",
|
||||
"visible": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"userData": {
|
||||
"type": "texture",
|
||||
"redirect": "6f891a7b-5a08-48e6-9841-ddb364ac86b1@6c48a",
|
||||
"hasAlpha": true,
|
||||
"fixAlphaTransparencyArtifacts": false
|
||||
}
|
||||
}
|
2133
assets/model/helloWorld/soldier.prefab
Normal file
13
assets/model/helloWorld/soldier.prefab.meta
Normal file
@ -0,0 +1,13 @@
|
||||
{
|
||||
"ver": "1.1.39",
|
||||
"importer": "prefab",
|
||||
"imported": true,
|
||||
"uuid": "cfc53c4e-7956-482b-aebc-3fb1dcd36eef",
|
||||
"files": [
|
||||
".json"
|
||||
],
|
||||
"subMetas": {},
|
||||
"userData": {
|
||||
"syncNodeName": "soldier"
|
||||
}
|
||||
}
|
BIN
assets/model/helloWorld/stone.jpg
Normal file
After Width: | Height: | Size: 84 KiB |
43
assets/model/helloWorld/stone.jpg.meta
Normal file
@ -0,0 +1,43 @@
|
||||
{
|
||||
"ver": "1.0.24",
|
||||
"importer": "image",
|
||||
"imported": true,
|
||||
"uuid": "0718d996-39bf-4ab4-bb63-496666fef467",
|
||||
"files": [
|
||||
".jpg",
|
||||
".json"
|
||||
],
|
||||
"subMetas": {
|
||||
"6c48a": {
|
||||
"importer": "texture",
|
||||
"uuid": "0718d996-39bf-4ab4-bb63-496666fef467@6c48a",
|
||||
"displayName": "stone",
|
||||
"id": "6c48a",
|
||||
"name": "texture",
|
||||
"ver": "1.0.22",
|
||||
"imported": true,
|
||||
"files": [
|
||||
".json"
|
||||
],
|
||||
"subMetas": {},
|
||||
"userData": {
|
||||
"wrapModeS": "repeat",
|
||||
"wrapModeT": "repeat",
|
||||
"minfilter": "linear",
|
||||
"magfilter": "linear",
|
||||
"mipfilter": "none",
|
||||
"premultiplyAlpha": false,
|
||||
"anisotropy": 0,
|
||||
"isUuid": true,
|
||||
"imageUuidOrDatabaseUri": "0718d996-39bf-4ab4-bb63-496666fef467",
|
||||
"visible": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"userData": {
|
||||
"type": "texture",
|
||||
"redirect": "0718d996-39bf-4ab4-bb63-496666fef467@6c48a",
|
||||
"hasAlpha": false,
|
||||
"fixAlphaTransparencyArtifacts": false
|
||||
}
|
||||
}
|
BIN
assets/model/helloWorld/tree.png
Normal file
After Width: | Height: | Size: 131 KiB |
43
assets/model/helloWorld/tree.png.meta
Normal file
@ -0,0 +1,43 @@
|
||||
{
|
||||
"ver": "1.0.24",
|
||||
"importer": "image",
|
||||
"imported": true,
|
||||
"uuid": "c5083e75-ad2e-4ea9-8b33-dee748995b00",
|
||||
"files": [
|
||||
".json",
|
||||
".png"
|
||||
],
|
||||
"subMetas": {
|
||||
"6c48a": {
|
||||
"importer": "texture",
|
||||
"uuid": "c5083e75-ad2e-4ea9-8b33-dee748995b00@6c48a",
|
||||
"displayName": "tree",
|
||||
"id": "6c48a",
|
||||
"name": "texture",
|
||||
"ver": "1.0.22",
|
||||
"imported": true,
|
||||
"files": [
|
||||
".json"
|
||||
],
|
||||
"subMetas": {},
|
||||
"userData": {
|
||||
"wrapModeS": "repeat",
|
||||
"wrapModeT": "repeat",
|
||||
"minfilter": "linear",
|
||||
"magfilter": "linear",
|
||||
"mipfilter": "none",
|
||||
"premultiplyAlpha": false,
|
||||
"anisotropy": 0,
|
||||
"isUuid": true,
|
||||
"imageUuidOrDatabaseUri": "c5083e75-ad2e-4ea9-8b33-dee748995b00",
|
||||
"visible": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"userData": {
|
||||
"type": "texture",
|
||||
"redirect": "c5083e75-ad2e-4ea9-8b33-dee748995b00@6c48a",
|
||||
"hasAlpha": false,
|
||||
"fixAlphaTransparencyArtifacts": false
|
||||
}
|
||||
}
|
12
assets/skybox.meta
Normal file
@ -0,0 +1,12 @@
|
||||
{
|
||||
"ver": "1.1.0",
|
||||
"importer": "directory",
|
||||
"imported": true,
|
||||
"uuid": "9e344b1f-8681-4ddf-bcc6-bb014c332bb8",
|
||||
"files": [],
|
||||
"subMetas": {},
|
||||
"userData": {
|
||||
"compressionType": {},
|
||||
"isRemoteBundle": {}
|
||||
}
|
||||
}
|
BIN
assets/skybox/sunnySkyBox.jpg
Normal file
After Width: | Height: | Size: 494 KiB |
132
assets/skybox/sunnySkyBox.jpg.meta
Normal file
@ -0,0 +1,132 @@
|
||||
{
|
||||
"ver": "1.0.24",
|
||||
"importer": "image",
|
||||
"imported": true,
|
||||
"uuid": "5af201b5-5951-4e2c-a81f-ac4aad9132cb",
|
||||
"files": [
|
||||
".jpg",
|
||||
".json"
|
||||
],
|
||||
"subMetas": {
|
||||
"b47c0": {
|
||||
"importer": "erp-texture-cube",
|
||||
"uuid": "5af201b5-5951-4e2c-a81f-ac4aad9132cb@b47c0",
|
||||
"displayName": "sunnySkyBox",
|
||||
"id": "b47c0",
|
||||
"name": "textureCube",
|
||||
"userData": {
|
||||
"wrapModeS": "repeat",
|
||||
"wrapModeT": "repeat",
|
||||
"minfilter": "linear",
|
||||
"magfilter": "linear",
|
||||
"mipfilter": "linear",
|
||||
"anisotropy": 1,
|
||||
"isRGBE": false,
|
||||
"imageDatabaseUri": "db://assets/skybox/sunnySkyBox.jpg"
|
||||
},
|
||||
"ver": "1.0.10",
|
||||
"imported": true,
|
||||
"files": [
|
||||
".json"
|
||||
],
|
||||
"subMetas": {
|
||||
"e9a6d": {
|
||||
"importer": "texture-cube-face",
|
||||
"uuid": "5af201b5-5951-4e2c-a81f-ac4aad9132cb@b47c0@e9a6d",
|
||||
"displayName": "",
|
||||
"id": "e9a6d",
|
||||
"name": "front",
|
||||
"userData": {},
|
||||
"ver": "1.0.0",
|
||||
"imported": true,
|
||||
"files": [
|
||||
".json",
|
||||
".png"
|
||||
],
|
||||
"subMetas": {}
|
||||
},
|
||||
"40c10": {
|
||||
"importer": "texture-cube-face",
|
||||
"uuid": "5af201b5-5951-4e2c-a81f-ac4aad9132cb@b47c0@40c10",
|
||||
"displayName": "",
|
||||
"id": "40c10",
|
||||
"name": "back",
|
||||
"userData": {},
|
||||
"ver": "1.0.0",
|
||||
"imported": true,
|
||||
"files": [
|
||||
".json",
|
||||
".png"
|
||||
],
|
||||
"subMetas": {}
|
||||
},
|
||||
"bb97f": {
|
||||
"importer": "texture-cube-face",
|
||||
"uuid": "5af201b5-5951-4e2c-a81f-ac4aad9132cb@b47c0@bb97f",
|
||||
"displayName": "",
|
||||
"id": "bb97f",
|
||||
"name": "top",
|
||||
"userData": {},
|
||||
"ver": "1.0.0",
|
||||
"imported": true,
|
||||
"files": [
|
||||
".json",
|
||||
".png"
|
||||
],
|
||||
"subMetas": {}
|
||||
},
|
||||
"7d38f": {
|
||||
"importer": "texture-cube-face",
|
||||
"uuid": "5af201b5-5951-4e2c-a81f-ac4aad9132cb@b47c0@7d38f",
|
||||
"displayName": "",
|
||||
"id": "7d38f",
|
||||
"name": "bottom",
|
||||
"userData": {},
|
||||
"ver": "1.0.0",
|
||||
"imported": true,
|
||||
"files": [
|
||||
".json",
|
||||
".png"
|
||||
],
|
||||
"subMetas": {}
|
||||
},
|
||||
"74afd": {
|
||||
"importer": "texture-cube-face",
|
||||
"uuid": "5af201b5-5951-4e2c-a81f-ac4aad9132cb@b47c0@74afd",
|
||||
"displayName": "",
|
||||
"id": "74afd",
|
||||
"name": "right",
|
||||
"userData": {},
|
||||
"ver": "1.0.0",
|
||||
"imported": true,
|
||||
"files": [
|
||||
".json",
|
||||
".png"
|
||||
],
|
||||
"subMetas": {}
|
||||
},
|
||||
"8fd34": {
|
||||
"importer": "texture-cube-face",
|
||||
"uuid": "5af201b5-5951-4e2c-a81f-ac4aad9132cb@b47c0@8fd34",
|
||||
"displayName": "",
|
||||
"id": "8fd34",
|
||||
"name": "left",
|
||||
"userData": {},
|
||||
"ver": "1.0.0",
|
||||
"imported": true,
|
||||
"files": [
|
||||
".json",
|
||||
".png"
|
||||
],
|
||||
"subMetas": {}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"userData": {
|
||||
"hasAlpha": false,
|
||||
"type": "texture cube",
|
||||
"redirect": "5af201b5-5951-4e2c-a81f-ac4aad9132cb@b47c0",
|
||||
"fixAlphaTransparencyArtifacts": false
|
||||
}
|
||||
}
|
32073
creator.d.ts
vendored
1
extensions/cocos-inspector-config.json
Normal file
@ -0,0 +1 @@
|
||||
{"logCount":"3","retinaEnable":true,"autoUpdateTree":true,"displayAsFairyTree":false,"hideFairyComContainer":false,"syncNodeDetail":true,"disableWebSec":false,"showDevToolInTab":true,"size":[720,1280],"extraSizes":[],"isPortrait":true,"show":false,"urlParams":"","customUrl":"","clearLogAfterRefresh":true,"extensionFile":"","enableExtension":true,"statisticing":false,"statistics":null,"sortCompProperties":{"<UITransform>":false,"<Canvas>":false,"<Widget>":true,"<Manager>":false,"<Camera>":false,"<DirectionalLight>":false,"<WebView>":false,"<Graphics>":false},"simpleMode":false,"orderNum":"STORE9e27d7c776bd1"}
|
BIN
extensions/cocos_inspector/.DS_Store
vendored
Normal file
3166
extensions/cocos_inspector/aa.js
Normal file
5006
extensions/cocos_inspector/app.js
Normal file
1
extensions/cocos_inspector/config.json
Normal file
@ -0,0 +1 @@
|
||||
{"logCount":"3","retinaEnable":true,"autoUpdateTree":true,"size":[320,480],"isPortrait":true,"show":true}
|
BIN
extensions/cocos_inspector/icon.png
Normal file
After Width: | Height: | Size: 16 KiB |
135
extensions/cocos_inspector/iconfont.css
Normal file
@ -0,0 +1,135 @@
|
||||
@font-face {
|
||||
font-family: "iconfont"; /* Project id 2598600 */
|
||||
src: url('iconfont.woff2?t=1642433558801') format('woff2'),
|
||||
url('iconfont.woff?t=1642433558801') format('woff'),
|
||||
url('iconfont.ttf?t=1642433558801') format('truetype');
|
||||
}
|
||||
|
||||
.iconfont {
|
||||
font-family: "iconfont" !important;
|
||||
font-size: 16px;
|
||||
font-style: normal;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
}
|
||||
|
||||
.icon-sound-:before {
|
||||
content: "\e6f9";
|
||||
}
|
||||
|
||||
.icon-sound-1:before {
|
||||
content: "\e6fa";
|
||||
}
|
||||
|
||||
.icon-pointer:before {
|
||||
content: "\e934";
|
||||
}
|
||||
|
||||
.icon-drag:before {
|
||||
content: "\e8c8";
|
||||
}
|
||||
|
||||
.icon-aim:before {
|
||||
content: "\e600";
|
||||
}
|
||||
|
||||
.icon-aim1:before {
|
||||
content: "\e7b2";
|
||||
}
|
||||
|
||||
.icon-Plugin:before {
|
||||
content: "\eab7";
|
||||
}
|
||||
|
||||
.icon-terminal-box-line:before {
|
||||
content: "\e787";
|
||||
}
|
||||
|
||||
.icon-help:before {
|
||||
content: "\e616";
|
||||
}
|
||||
|
||||
.icon-wrong2:before {
|
||||
content: "\e694";
|
||||
}
|
||||
|
||||
.icon-menu:before {
|
||||
content: "\e652";
|
||||
}
|
||||
|
||||
.icon-iconset0216:before {
|
||||
content: "\e673";
|
||||
}
|
||||
|
||||
.icon-shanchu:before {
|
||||
content: "\e68a";
|
||||
}
|
||||
|
||||
.icon-bofangsanjiaoxing:before {
|
||||
content: "\e769";
|
||||
}
|
||||
|
||||
.icon-zoushi:before {
|
||||
content: "\e61f";
|
||||
}
|
||||
|
||||
.icon-right:before {
|
||||
content: "\e68b";
|
||||
}
|
||||
|
||||
.icon-jiarehuoyan-xianxing:before {
|
||||
content: "\e7a2";
|
||||
}
|
||||
|
||||
.icon-jiedian:before {
|
||||
content: "\e649";
|
||||
}
|
||||
|
||||
.icon-tools-hardware:before {
|
||||
content: "\e882";
|
||||
}
|
||||
|
||||
.icon-iconfront-:before {
|
||||
content: "\e620";
|
||||
}
|
||||
|
||||
.icon-tree_line:before {
|
||||
content: "\e6f5";
|
||||
}
|
||||
|
||||
.icon-dingwei:before {
|
||||
content: "\e8ae";
|
||||
}
|
||||
|
||||
.icon-mima:before {
|
||||
content: "\e8b2";
|
||||
}
|
||||
|
||||
.icon-shuaxin:before {
|
||||
content: "\e8b9";
|
||||
}
|
||||
|
||||
.icon-sousuo:before {
|
||||
content: "\e8ba";
|
||||
}
|
||||
|
||||
.icon-shangsanjiao:before {
|
||||
content: "\e74b";
|
||||
}
|
||||
|
||||
.icon-shuxingjiegou:before {
|
||||
content: "\e708";
|
||||
}
|
||||
|
||||
.icon-lianjie:before {
|
||||
content: "\e61a";
|
||||
}
|
||||
|
||||
.icon-shezhi:before {
|
||||
content: "\e60b";
|
||||
}
|
||||
|
||||
.icon-xuanzhuan:before {
|
||||
content: "\e603";
|
||||
}
|
||||
|
BIN
extensions/cocos_inspector/iconfont.ttf
Normal file
BIN
extensions/cocos_inspector/iconfont.woff
Normal file
BIN
extensions/cocos_inspector/iconfont.woff2
Normal file
13
extensions/cocos_inspector/imports.js
Normal file
@ -0,0 +1,13 @@
|
||||
System.register(["cc"], function (_export, _context) {
|
||||
"use strict";
|
||||
|
||||
|
||||
return {
|
||||
setters: [function (_cc) {
|
||||
window["__primitives"] = _cc.primitives;
|
||||
}],
|
||||
execute: function () {
|
||||
|
||||
}
|
||||
};
|
||||
});
|
983
extensions/cocos_inspector/index.html
Normal file
@ -0,0 +1,983 @@
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<link rel="stylesheet" href="iconFont.css">
|
||||
<script src="vue.min.js"></script>
|
||||
<meta charset="utf-8">
|
||||
</head>
|
||||
<style type="text/css">
|
||||
body {
|
||||
position: relative;
|
||||
-webkit-font-smoothing: subpixel-antialiased;
|
||||
margin: 0px;
|
||||
padding: 0px;
|
||||
background: #2c2c2c;
|
||||
/* linear-gradient(rgb(45, 45, 45), rgb(25, 25, 25)); */
|
||||
color: rgb(189, 189, 189);
|
||||
/* font-size: 12px; */
|
||||
}
|
||||
|
||||
button {
|
||||
color: rgb(235, 233, 233);
|
||||
/* background-color: rgb(78, 77, 77); */
|
||||
border-radius: 0.3em;
|
||||
border-image: none;
|
||||
border-style: none;
|
||||
background-color: #2c2c2c;
|
||||
border: 0.5px solid rgb(87, 86, 86);
|
||||
}
|
||||
|
||||
button:hover{
|
||||
color: white;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
button:active {
|
||||
background-color: #070707;
|
||||
outline:none;
|
||||
}
|
||||
|
||||
:root {
|
||||
--top-and-bottom: calc(100vh - 54px);
|
||||
--top: calc(100vh - 32px);
|
||||
}
|
||||
|
||||
webview {
|
||||
/* border:solid 1px darkgray;
|
||||
border-left: unset;
|
||||
border-right: unset; */
|
||||
}
|
||||
|
||||
#app {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
height: 100vh;
|
||||
overflow-x: hidden;
|
||||
}
|
||||
|
||||
.gamePanel {
|
||||
position: relative;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
border-right: solid 0.5px rgb(87, 86, 86);
|
||||
height: 100%
|
||||
}
|
||||
|
||||
.nodePanel {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
height: 100%;
|
||||
flex: 1;
|
||||
overflow: auto;
|
||||
/* min-width: calc(15em + 300px); */
|
||||
/* margin-left: -0.5px; */
|
||||
}
|
||||
|
||||
.nodePanel hr {
|
||||
/* width: calc(100% - 0.5px) */
|
||||
margin-left: -0.5px;
|
||||
}
|
||||
|
||||
|
||||
|
||||
.Component input[type="search"] {
|
||||
display: block;
|
||||
width: calc(100% - 8px);
|
||||
margin-top: 2px;
|
||||
margin-left: 4px;
|
||||
margin-right: 4px;
|
||||
color: black;
|
||||
background-color: whitesmoke;
|
||||
border: 1px;
|
||||
border-radius: 0.4em;
|
||||
}
|
||||
|
||||
|
||||
.gameBtns {
|
||||
display: flex;
|
||||
padding: 4px;
|
||||
background-color: #484848;
|
||||
}
|
||||
|
||||
.gameBtnsRight {
|
||||
/* flex:1; */
|
||||
/* align-content: flex-end; */
|
||||
/* border:solid 1px red; */
|
||||
}
|
||||
|
||||
.gameBtnsLeft {
|
||||
flex: 1;
|
||||
padding-top: 1px;
|
||||
}
|
||||
|
||||
.consolePanel {
|
||||
flex: 1 1 0%;
|
||||
display: flex;
|
||||
position: relative;
|
||||
flex-direction: column;
|
||||
max-height: var(--top);
|
||||
}
|
||||
|
||||
.nodePanel webview {
|
||||
flex: 1 1 0%
|
||||
}
|
||||
|
||||
.consolePanel input[type="search"] {
|
||||
color: whitesmoke;
|
||||
background-color: #2c2c2c;
|
||||
border: 1px solid gray;
|
||||
border-radius: 0.3em;
|
||||
}
|
||||
|
||||
.codeTips {
|
||||
position: absolute;
|
||||
bottom: 20;
|
||||
left: 0;
|
||||
right: 0;
|
||||
background-color: rgb(46, 46, 46);
|
||||
padding: 0.3em;
|
||||
border-radius: 0.5em;
|
||||
box-shadow: 0 0 12px 1px black;
|
||||
}
|
||||
|
||||
.helpPanel .helpTitle {
|
||||
font-weight: bold;
|
||||
color: lightblue;
|
||||
}
|
||||
|
||||
.helpPanel a {
|
||||
word-wrap: break-word;
|
||||
word-break: break-all;
|
||||
}
|
||||
|
||||
.codeTips .helpCon {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
.codeTips .help {
|
||||
color: darkkhaki;
|
||||
}
|
||||
|
||||
.tipsCon {
|
||||
max-height: 20em;
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
.tipsCon span {
|
||||
color: rgb(150, 150, 150);
|
||||
}
|
||||
|
||||
.codeTips .selected {
|
||||
background-color: black;
|
||||
}
|
||||
|
||||
.consolePanel a {
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.consolePanel .topMenu {
|
||||
padding-left: 5px;
|
||||
/* text-align: left; */
|
||||
}
|
||||
|
||||
.consolePanel .topMenu>input {
|
||||
margin-right: 0.5em;
|
||||
}
|
||||
|
||||
.consolePanel .topMenu label {
|
||||
margin-right: 0.5em;
|
||||
white-space: pre;
|
||||
}
|
||||
|
||||
.logs {
|
||||
word-wrap: break-word;
|
||||
word-break: break-all;
|
||||
overflow-y: auto;
|
||||
font-size: 0.9em;
|
||||
background: #111111;
|
||||
}
|
||||
|
||||
.gamePanel .logs {
|
||||
background: unset;
|
||||
}
|
||||
|
||||
.logs .logTime {
|
||||
color: rgb(31, 154, 255);
|
||||
}
|
||||
|
||||
.logItem:hover {
|
||||
background-color: black;
|
||||
}
|
||||
|
||||
.logItem {
|
||||
/* content-visibility: auto; */
|
||||
padding-left: 4px;
|
||||
border-bottom: solid 0.5px rgba(196, 194, 194, 0.151);
|
||||
word-break: break-all;
|
||||
word-wrap: break-word;
|
||||
}
|
||||
|
||||
.logItem .filter {
|
||||
/* font-weight: bold; */
|
||||
color: greenyellow;
|
||||
background-color: rgba(210, 105, 30, 0.658);
|
||||
}
|
||||
|
||||
/* .logItem span{
|
||||
line-height: 1em;
|
||||
} */
|
||||
|
||||
.tab {
|
||||
display: flex;
|
||||
padding: 4px;
|
||||
padding-bottom: 0px;
|
||||
align-items: stretch;
|
||||
border-bottom: solid 0.5px rgb(87, 86, 86);
|
||||
white-space: nowrap;
|
||||
background-color: #484848;
|
||||
}
|
||||
|
||||
.tabs {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
align-items: stretch;
|
||||
}
|
||||
|
||||
|
||||
.tabItem {
|
||||
display: inline-block;
|
||||
margin-right: 0.5em;
|
||||
padding-left: 0.5em;
|
||||
padding-right: 0.5em;
|
||||
padding-bottom: 4px;
|
||||
user-select: none;
|
||||
cursor: pointer;
|
||||
background-color: #353535;
|
||||
color: #d4d4d4;
|
||||
/* line-height: 100%; */
|
||||
/* height:100%; */
|
||||
}
|
||||
|
||||
.tabs .selected {
|
||||
background-color: #2c2c2c;
|
||||
border: 0.5px solid rgb(87, 86, 86);
|
||||
border-bottom: 0;
|
||||
margin-bottom: -1px;
|
||||
|
||||
cursor: default;
|
||||
color: whitesmoke;
|
||||
}
|
||||
|
||||
.nodeTree {
|
||||
overflow: auto;
|
||||
min-width: 242px;
|
||||
max-height: var(--top-and-bottom);
|
||||
border-right: solid 0.5px rgb(87, 86, 86);
|
||||
flex: 1;
|
||||
scroll-behavior: smooth;
|
||||
/* position: relative; */
|
||||
}
|
||||
|
||||
.nodearrow {
|
||||
transition: all 0.2s;
|
||||
}
|
||||
|
||||
.nodearrow:hover{
|
||||
/* background-color: #2c2c2c;
|
||||
border-radius: 50%; */
|
||||
/* color: #ffffff; */
|
||||
text-shadow:-0.5px -0.5px 0px #ffffff
|
||||
}
|
||||
|
||||
.node {
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.searchPanel {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
background-color: black;
|
||||
padding: 0.1em;
|
||||
border-radius: 0.5em;
|
||||
}
|
||||
|
||||
.searchBox {
|
||||
display: flex;
|
||||
padding-left: 2px;
|
||||
padding-right: 2px;
|
||||
}
|
||||
|
||||
.searchBox {
|
||||
border: solid 0.5px rgb(98, 100, 100);
|
||||
border-radius: 0.5em;
|
||||
}
|
||||
|
||||
.searchBox input[type="search"] {
|
||||
color: white;
|
||||
flex: 1;
|
||||
background: none;
|
||||
outline: none;
|
||||
border: none;
|
||||
font-size: 0.9em;
|
||||
}
|
||||
|
||||
.searchBox input[type="search"]:focus {
|
||||
outline: none;
|
||||
}
|
||||
|
||||
.searchTitle {
|
||||
padding: 0.3em;
|
||||
padding-bottom: 0;
|
||||
}
|
||||
|
||||
.searchTitle label {
|
||||
white-space: pre;
|
||||
}
|
||||
|
||||
.searchList {
|
||||
padding: 0.3em;
|
||||
padding-bottom: 0;
|
||||
overflow-y: auto;
|
||||
flex: 1;
|
||||
max-height: 15em;
|
||||
}
|
||||
|
||||
.searchList .itemPath {
|
||||
color: gray;
|
||||
font-size: 0.9em;
|
||||
}
|
||||
|
||||
|
||||
.inspectPanel {
|
||||
overflow: auto;
|
||||
overflow-x: hidden;
|
||||
font-size: 13px;
|
||||
min-width: 300px;
|
||||
/* width:auto;
|
||||
max-width: 360px; */
|
||||
height: auto;
|
||||
max-height: var(--top-and-bottom);
|
||||
/* resize:horizontal; */
|
||||
/* padding:2px; */
|
||||
}
|
||||
|
||||
.inspectPanel input[type="number"] {
|
||||
width: 4.5em;
|
||||
}
|
||||
|
||||
.nodeName {
|
||||
position: sticky;
|
||||
top: 0;
|
||||
background-color: #2c2c2c;
|
||||
border-bottom: solid 1px rgb(87, 86, 86);
|
||||
}
|
||||
|
||||
.nodeName {
|
||||
display: flex;
|
||||
/* flex:1; */
|
||||
padding: 2px;
|
||||
padding-left: 4px;
|
||||
padding-right: 4px;
|
||||
}
|
||||
|
||||
/* .nodeName label{
|
||||
flex:1;
|
||||
} */
|
||||
.comProperty,
|
||||
.nodeProperty {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
color: whitesmoke;
|
||||
word-break: keep-all;
|
||||
white-space: nowrap;
|
||||
padding: 2px;
|
||||
margin-top: 3px;
|
||||
margin-bottom: 3px;
|
||||
padding-left: 4px;
|
||||
padding-right: 4px;
|
||||
width: auto;
|
||||
|
||||
/* white-space:pre-wrap; */
|
||||
}
|
||||
|
||||
.comProperty input[type="color"] {
|
||||
background-color: unset;
|
||||
}
|
||||
|
||||
.comProperty select {
|
||||
background-color: unset;
|
||||
color: whitesmoke;
|
||||
}
|
||||
|
||||
.comProperty option {
|
||||
background-color: black;
|
||||
color: whitesmoke;
|
||||
}
|
||||
|
||||
.comProperty:hover {
|
||||
background-color: black;
|
||||
}
|
||||
|
||||
|
||||
|
||||
.nodePropertyTitle {
|
||||
display: inline-block;
|
||||
width: 5em;
|
||||
color: rgb(150, 150, 150);
|
||||
text-align: right;
|
||||
word-wrap: break-word;
|
||||
/* word-break:normal; */
|
||||
white-space: pre-wrap;
|
||||
line-height: 0.95em;
|
||||
margin-right: 1px;
|
||||
}
|
||||
|
||||
.nodePropertyTitle::selection {
|
||||
background-color: #2553c9;
|
||||
}
|
||||
|
||||
.comProperty .nodePropertyTitle {
|
||||
width: 8em;
|
||||
}
|
||||
|
||||
/* .comProperty */
|
||||
a {
|
||||
color: rgb(14, 127, 233);
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
a:hover {
|
||||
color: rgb(52, 146, 235);
|
||||
}
|
||||
|
||||
a:active {
|
||||
color: rgb(104, 170, 233);
|
||||
}
|
||||
|
||||
.nodePropertySubTitle {
|
||||
display: inline-block;
|
||||
width: 1em;
|
||||
text-align: start;
|
||||
line-height: 0.95em;
|
||||
}
|
||||
|
||||
|
||||
.colorRect {
|
||||
width: 1em;
|
||||
height: 1em;
|
||||
display: inline-block;
|
||||
border-width: solid 1px black;
|
||||
}
|
||||
|
||||
.comProperty .nodePropertySubTitle {
|
||||
/* overflow-x: hidden; */
|
||||
width: auto;
|
||||
max-width: 172px;
|
||||
word-wrap: break-word;
|
||||
/* word-break:normal; */
|
||||
/* white-space: wrap; */
|
||||
line-height: 0.95em;
|
||||
}
|
||||
|
||||
.prewrap {
|
||||
white-space: pre-wrap;
|
||||
}
|
||||
|
||||
.nodePropertySubTitle .icon-wrong2 {
|
||||
color: rgb(253, 94, 94);
|
||||
}
|
||||
|
||||
.nodePropertySubTitle .icon-right {
|
||||
color: lightgreen;
|
||||
}
|
||||
|
||||
.nodeTitle {
|
||||
/* content-visibility: auto; */
|
||||
/* pointer-events: none; */
|
||||
display: block;
|
||||
user-select: none;
|
||||
/* word-wrap:; */
|
||||
word-break: keep-all;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.nodeTitle:hover {
|
||||
background-color: rgb(82, 80, 80);
|
||||
}
|
||||
|
||||
.dcDesc {
|
||||
font-weight: bold;
|
||||
color: wheat;
|
||||
}
|
||||
|
||||
hr {
|
||||
width: calc(100% - 0px);
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
border: none;
|
||||
border-bottom: solid 1px rgb(87, 86, 86);
|
||||
/* background-color: red; */
|
||||
/* border-color: rgb(87, 86, 86);
|
||||
border-width: 0.5px; */
|
||||
|
||||
}
|
||||
|
||||
.setting {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
height: 100%;
|
||||
max-height: calc(100%);
|
||||
width: min(calc(100vw - 32px), 20em);
|
||||
box-shadow: -1px 0 4px 0px black;
|
||||
background-color: #2c2c2c;
|
||||
padding: 1em;
|
||||
padding-top: 0;
|
||||
display: flex;
|
||||
/* z-index:200; */
|
||||
flex-direction: column;
|
||||
user-select: none;
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
.setting textarea {
|
||||
width: 100%;
|
||||
resize: vertical;
|
||||
max-height: 5em;
|
||||
}
|
||||
|
||||
|
||||
.about {
|
||||
display: flex;
|
||||
/* z-index:200; */
|
||||
flex-direction: column;
|
||||
user-select: text;
|
||||
}
|
||||
|
||||
.about .nodePropertyTitle {
|
||||
user-select: text;
|
||||
cursor: default;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
.setting span {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.settingHeader {
|
||||
display: flex;
|
||||
padding: 2px;
|
||||
padding-top: 1em;
|
||||
position: sticky;
|
||||
top: 0;
|
||||
background-color: #2c2c2c;
|
||||
border-bottom: 0.5px solid rgb(87, 86, 86);
|
||||
}
|
||||
|
||||
.topSticky{
|
||||
position: sticky;
|
||||
top: -1em;
|
||||
background-color: #2c2c2c;
|
||||
border-bottom: 0.5px solid rgb(87, 86, 86);
|
||||
}
|
||||
|
||||
.settingTitle {
|
||||
flex: 1;
|
||||
text-align: center;
|
||||
font-size: 2em;
|
||||
height: 1.4em;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.settingTitle img{
|
||||
height:1em;
|
||||
width:1em;
|
||||
margin-right: 10px;
|
||||
}
|
||||
|
||||
.setting label {
|
||||
margin-top: 0.5em;
|
||||
}
|
||||
|
||||
.searcItem {
|
||||
content-visibility: auto;
|
||||
height: 43px;
|
||||
/* contain: size; */
|
||||
}
|
||||
|
||||
.slide-fade-enter-active {
|
||||
transition: all .3s ease;
|
||||
}
|
||||
|
||||
.slide-fade-leave-active {
|
||||
transition: all .2s;
|
||||
}
|
||||
|
||||
.slide-fade-enter,
|
||||
.slide-fade-leave-to
|
||||
|
||||
/* .slide-fade-leave-active for below version 2.1.8 */
|
||||
{
|
||||
transform: translateX(20em);
|
||||
/* opacity: 0; */
|
||||
}
|
||||
|
||||
.ResolutionResizer{
|
||||
position: fixed;
|
||||
top: 31px;
|
||||
left: 0px;
|
||||
resize: both;
|
||||
overflow: hidden;
|
||||
/* background-color: rgba(255, 217, 0, 0.555); */
|
||||
pointer-events: none;
|
||||
z-index: 1000;
|
||||
min-width: 280px;
|
||||
min-height: 200px;
|
||||
}
|
||||
|
||||
.ResolutionSelector {
|
||||
position: absolute;
|
||||
top: 31px;
|
||||
right: 0px;
|
||||
background-color: rgb(66, 66, 66);
|
||||
padding: 0.3em;
|
||||
border-radius: 0.5em;
|
||||
box-shadow: 0 0 12px 1px black;
|
||||
}
|
||||
|
||||
.ResolutionSelector hr {
|
||||
margin-bottom: 0.5em;
|
||||
}
|
||||
|
||||
.ResolutionSelector input[type="number"] {
|
||||
/* width: 100%; */
|
||||
/* margin: 0.3em; */
|
||||
}
|
||||
|
||||
.resoItem {
|
||||
cursor: pointer;
|
||||
border-radius: 0.5em;
|
||||
padding: 0.2em;
|
||||
display: flex;
|
||||
/* min-width: 200px; */
|
||||
}
|
||||
|
||||
.flex1 {
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.sizeName {
|
||||
display: flex;
|
||||
min-width: 200px;
|
||||
border-radius: 0.5em;
|
||||
padding-left: 0.5em;
|
||||
padding-right: 0.5em;
|
||||
}
|
||||
|
||||
/* .sizeName .name{
|
||||
width:80px;
|
||||
} */
|
||||
.sizeName:hover {
|
||||
background-color: lightgrey;
|
||||
color: black;
|
||||
}
|
||||
|
||||
|
||||
.cocosPanel {
|
||||
padding: 1em;
|
||||
max-height: var(--top);
|
||||
overflow-y: auto
|
||||
}
|
||||
|
||||
.varsCon {
|
||||
margin-top: 0.5em;
|
||||
display: grid;
|
||||
grid-template-columns: 15em 15em
|
||||
}
|
||||
|
||||
.localStorageCon {
|
||||
margin-top: 0.5em;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.varItem {
|
||||
/* width:10em; */
|
||||
word-break: break-all;
|
||||
}
|
||||
|
||||
.localStorageCon .varItem:hover{
|
||||
background-color: #070707;
|
||||
}
|
||||
|
||||
.varItemValue {
|
||||
color: lightgray;
|
||||
}
|
||||
|
||||
.extensionPanel {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
flex: 1;
|
||||
padding: 1em;
|
||||
}
|
||||
|
||||
.extensionPanel textarea {
|
||||
flex: 1;
|
||||
width: 100%;
|
||||
resize: none;
|
||||
}
|
||||
|
||||
.extensionPanel hr {
|
||||
margin-top: 1em;
|
||||
margin-bottom: 1em;
|
||||
}
|
||||
|
||||
.nanStr{
|
||||
background:black;
|
||||
padding-left:10px;
|
||||
padding-right:10px;
|
||||
z-index:1000;
|
||||
color: white;
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
<body>
|
||||
<div id="app" style="visibility:hidden;" @contextmenu="showAppMenu" @click="showResolutionSelector=false">
|
||||
<validate-panel></validate-panel>
|
||||
<div class="gamePanel" :style="setting.gamePanelStyle">
|
||||
<div class="gamebtns">
|
||||
<div class="gameBtnsLeft">
|
||||
<button @click="refresh" title="Refresh Game">
|
||||
<span class="iconfont icon-shuaxin"></span>
|
||||
</button>
|
||||
</div>
|
||||
<div class="gameBtnsRight">
|
||||
<button @click="playOrPause" title="Play|Pause Game">
|
||||
<span :class="[pauseIcon]"></span>
|
||||
</button>
|
||||
<button @click="toggleFps" title="Show|Hide FPS">
|
||||
<span class="iconfont icon-zoushi"></span>
|
||||
</button>
|
||||
<button @click="toggleSnd" title="Mute|Resume Sound">
|
||||
<span v-if="!isMuted" class="iconfont icon-sound-"></span>
|
||||
<span v-if="isMuted" class="iconfont icon-sound-1"></span>
|
||||
</button>
|
||||
<button @contextmenu.stop="toggle3dHover" @click="toggleHover" :style="hoverBtnStyle" title="find by Hover, left click for 2d | right click for 3d">
|
||||
<span class="iconfont icon-aim1"></span>
|
||||
<label style="position: absolute;top: -0.3em;right: -0.6em;font-size: smaller;">{{hoverMark}}</label>
|
||||
</button>
|
||||
<button @click="toggleDesignMode" :style="designBtnStyle" title="toggle design mode">
|
||||
<span class="iconfont icon-drag"></span>
|
||||
</button>
|
||||
<button @click.stop="showResolutionSelector=!showResolutionSelector" title="adjust resolution and rotation" :style="resolutionBtnStyle">
|
||||
<span class="iconfont icon-xuanzhuan"></span>
|
||||
</button>
|
||||
<button v-if="!showDevToolInTab" @click="openWvDevTool" title="Open DevTool of Game Page">
|
||||
<span class="iconfont icon-tools-hardware"></span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<resolution-resizer></resolution-resizer>
|
||||
<resolution-selector v-if="showResolutionSelector"></resolution-selector>
|
||||
<hr>
|
||||
<!-- http://gameview.creator-star.cn/cocos/cake/index.html -->
|
||||
<!-- http://localhost:7456 -->
|
||||
<webview ref="wv" preload="./preload.js" :src="gameUrl" :style="setting.webviewStyle"
|
||||
:disablewebsecurity="disableWebSec" nodeintegrationinsubframes="true"
|
||||
webpreferences="contextIsolation=no"></webview>
|
||||
<hr>
|
||||
<div class="logs" ref="logs">
|
||||
<div class="logItem" v-for="l in smallLogs" :style="{color:logColor(l.t)}"><span
|
||||
class="logTime">{{l.time}}:</span>{{l.d}}</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="nodePanel" v-show="!setting.simpleMode">
|
||||
<div class="tab">
|
||||
<div class="tabs">
|
||||
<div :class="{tabItem:true,selected:tab==0}" @click="tab=0" @contextmenu.stop="showMenu">
|
||||
<span class="iconfont icon-shuxingjiegou"></span>{{sceneName}}
|
||||
<a v-show="showRefreshTreeBtn" @click="forceUpdateTree" class="iconfont icon-shuaxin"></a>
|
||||
</div>
|
||||
<div :class="{tabItem:true,selected:tab==1}" @click="tab=1">
|
||||
<span class="iconfont icon-terminal-box-line"></span>{{showDevToolInTab?"DevTool":"Console"}}
|
||||
</div>
|
||||
<div :class="{tabItem:true,selected:tab==2}" @click="tab=2">
|
||||
<span class="iconfont icon-jiarehuoyan-xianxing"></span>Cocos
|
||||
</div>
|
||||
<div :class="{tabItem:true,selected:tab==3}" @click="tab=3">
|
||||
<span class="iconfont icon-jiedian"></span>Extension
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<button @click="showHelp" title="Help">
|
||||
<span class="iconfont icon-help"></span>
|
||||
</button>
|
||||
<!-- <button @click="location.reload()" title="Refresh Plugin">
|
||||
<span class="iconfont icon-shuaxin"></span>
|
||||
</button> -->
|
||||
<button @click="showSetting" title="Setting">
|
||||
<span class="iconfont icon-shezhi"></span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<!-- <hr> -->
|
||||
<!-- "n","deep","selected","close" -->
|
||||
<div style="display:flex;flex:1;position:relative;" v-show="tab==0">
|
||||
<div ref="nodeTree" v-if="nodeTree" class="nodeTree">
|
||||
<div style="min-width: max-content;">
|
||||
<node-view v-for="sn in nodeTree.children" :n="sn" :deep="1" :selected="selectedNode==sn.id"
|
||||
:key="sn.id"></node-view>
|
||||
</div>
|
||||
</div>
|
||||
<div v-show="!nodeTree" style="font-size: 50px;text-align: center;margin: 100px auto auto;text-shadow: 3px 3px 4px #0000004a;">
|
||||
<div style="color: rgb(0 0 0 / 0%);background: linear-gradient(60deg, #36d1ff, #fafdff, #23b2ff, #ffff72);background-clip: text;-webkit-background-clip: text;">COCOS</div>
|
||||
<div style="color: rgb(0 0 0 / 0%);background: linear-gradient(60deg, #b3b3b38c, #fafdff, #656565, #b7b7b0);background-clip: text;-webkit-background-clip: text;">INSPECTOR</div>
|
||||
|
||||
<div style="font-size: 20px;margin-top: auto;color: rgb(31, 154, 255);">loading ...</div>
|
||||
<!-- <div style="font-size: 0.5em;">loading...</div> -->
|
||||
</div>
|
||||
<div class="inspectPanel" v-if="nodeDetail">
|
||||
<node-detail-view :detail="nodeDetail"></node-detail-view>
|
||||
<node-component v-for="com in nodeDetail.coms" :com="com" :key="com"></node-component>
|
||||
</div>
|
||||
<search-panel></search-panel>
|
||||
</div>
|
||||
<webview v-show="tab==1 && showDevToolInTab" nodeintegrationinsubframes="true" webpreferences="contextIsolation=no" ref="devtools" src="about:blank"></webview>
|
||||
<console-panel v-if="!showDevToolInTab && tab==1"></console-panel>
|
||||
<cocos-panel v-if="tab==2"></cocos-panel>
|
||||
<extension-panel v-if="tab==3"></extension-panel>
|
||||
</div>
|
||||
<my-help ref="help"></my-help>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="settingBox" id="setting">
|
||||
<transition name="slide-fade">
|
||||
<div class="setting" style="display: none;" v-show="show">
|
||||
|
||||
<div class="settingHeader">
|
||||
<span class="iconfont icon-shanchu" @click="close" style="font-size: 1.5em;"></span>
|
||||
|
||||
<div class="settingTitle"><img src="icon.png"/> Setting</div>
|
||||
|
||||
</div>
|
||||
|
||||
<!-- <hr> -->
|
||||
<label>
|
||||
Log Count Under GameView:
|
||||
<!-- {{logCount}} -->
|
||||
<input type="number" @change="saveToStorage" v-model="logCount" min="0" max="100" step="1" />
|
||||
</label>
|
||||
<label>
|
||||
Url Parameters:
|
||||
<!-- {{logCount}} -->
|
||||
<br>
|
||||
<textarea placeholder="example:?xxx=y&abc=d" @change="saveToStorage" v-model="urlParams"></textarea>
|
||||
</label>
|
||||
<label>
|
||||
Custom Url:
|
||||
<!-- {{logCount}} -->
|
||||
<br>
|
||||
<textarea placeholder="example:http://xxx.com" @change="saveToStorage"
|
||||
v-model="customUrl"></textarea>
|
||||
</label>
|
||||
<label>
|
||||
<input type="checkbox" @change="saveToStorage" v-model="retinaEnable" />
|
||||
Retina Enable
|
||||
</label>
|
||||
<label>
|
||||
<input type="checkbox" @change="saveToStorage" v-model="autoUpdateTree" />
|
||||
Auto Update Node Tree
|
||||
</label>
|
||||
<label>
|
||||
<input type="checkbox" @change="saveToStorage" v-model="syncNodeDetail" />
|
||||
Sync Node Detail
|
||||
</label>
|
||||
<hr>
|
||||
<br>
|
||||
<b>Need Restart Inspector/CocosCreator After Change</b>
|
||||
<label>
|
||||
<input type="checkbox" @change="saveToStorage" v-model="disableWebSec" />
|
||||
Disable Web Security
|
||||
</label>
|
||||
<label>
|
||||
<input type="checkbox" @change="saveToStorage" v-model="showDevToolInTab" />
|
||||
Show DevTool In Tab
|
||||
</label>
|
||||
<hr>
|
||||
<br>
|
||||
<b>FGUI Setting</b>
|
||||
<label>
|
||||
<input type="checkbox" @change="saveToStorage" v-model="displayAsFairyTree" />
|
||||
Display As Fairy Tree
|
||||
</label>
|
||||
<label>
|
||||
<input type="checkbox" :disabled="!displayAsFairyTree" @change="saveToStorage"
|
||||
v-model="hideFairyComContainer" />
|
||||
Hide Fairy Component Container
|
||||
</label>
|
||||
|
||||
<hr>
|
||||
<br>
|
||||
<div v-once>Feedback: <a @click="remote.shell.openExternal('https://forum.cocos.org/t/topic/116855')"
|
||||
target="_blank">https://forum.cocos.org/t/topic/116855</a></div>
|
||||
<br>
|
||||
<div v-once>Check New Version: <a
|
||||
@click="remote.shell.openExternal('https://store.cocos.com/app/detail/2940')"
|
||||
target="_blank">https://store.cocos.com/app/detail/2940</a></div>
|
||||
<hr>
|
||||
<br>
|
||||
<!-- <br> -->
|
||||
<!-- <br> -->
|
||||
<div class="about">
|
||||
<div class="settingHeader">
|
||||
<div class="settingTitle">About </div>
|
||||
</div>
|
||||
<!-- <hr> -->
|
||||
<div>
|
||||
<span class="nodePropertyTitle">Author: </span>
|
||||
chuan.z
|
||||
</div>
|
||||
<div>
|
||||
<span class="nodePropertyTitle">Contact: </span>
|
||||
<a @click="remote.shell.openExternal('mailto:bytetalking@qq.com')">bytetalking@qq.com</a>
|
||||
</div>
|
||||
<div>
|
||||
<span class="nodePropertyTitle">WebSite: </span>
|
||||
<a @click="remote.shell.openExternal('https://bytetalking.com')">https://bytetalking.com</a>
|
||||
</div>
|
||||
<hr>
|
||||
<div>
|
||||
<span class="nodePropertyTitle">WeChat Offical Account: </span>
|
||||
ByteTalking
|
||||
</div>
|
||||
<div>
|
||||
<span class="nodePropertyTitle">QRCode: </span>
|
||||
<img src="wechatOC.jpeg" style="max-width: 150px;max-height: 150px;">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</transition>
|
||||
</div>
|
||||
<!-- <div class="validatePanel">
|
||||
|
||||
</div> -->
|
||||
|
||||
|
||||
<script src="./app.js">
|
||||
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
450
extensions/cocos_inspector/main.js
Normal file
@ -0,0 +1,450 @@
|
||||
'use strict';
|
||||
const _0x310e = [
|
||||
'RbwEt',
|
||||
'jesju',
|
||||
'cESkJ',
|
||||
'node',
|
||||
'loadURL',
|
||||
'oEQbF',
|
||||
'removeAllL',
|
||||
'webContent',
|
||||
'../cocos-i',
|
||||
'select',
|
||||
'size',
|
||||
'version',
|
||||
'join',
|
||||
'aScript',
|
||||
'mLYBN',
|
||||
'unselect',
|
||||
'ent\x20size',
|
||||
'dKKAT',
|
||||
'resize',
|
||||
'TPjnl',
|
||||
'User',
|
||||
'842799JVuQpT',
|
||||
'index.html',
|
||||
'IlBgy',
|
||||
'ApRBL',
|
||||
'lready!',
|
||||
'getData',
|
||||
'dLQyw',
|
||||
'electron.h',
|
||||
'576689NkJJcn',
|
||||
'access_tok',
|
||||
'query-port',
|
||||
'exports',
|
||||
'getSelecte',
|
||||
'asset',
|
||||
'ykNBc',
|
||||
'setImage',
|
||||
'yPCtW',
|
||||
'isPortrait',
|
||||
'click',
|
||||
'rPQkG',
|
||||
'setContent',
|
||||
'gQVMI',
|
||||
'fixed\x20cont',
|
||||
'Size',
|
||||
'DupIz',
|
||||
'split',
|
||||
'setMenu',
|
||||
'NueHt',
|
||||
'openDevToo',
|
||||
'server',
|
||||
'lwDOI',
|
||||
'UbtjH',
|
||||
'mainPreloa',
|
||||
'versions',
|
||||
'de(',
|
||||
'LYYCI',
|
||||
'request',
|
||||
'GzNUa',
|
||||
'1xMlblC',
|
||||
'dvdDp',
|
||||
'how',
|
||||
'#2e2c29',
|
||||
'XoXHt',
|
||||
'v?.refresh',
|
||||
'1201626VaCHvn',
|
||||
'warn',
|
||||
'Path',
|
||||
'name',
|
||||
'append',
|
||||
'Menu',
|
||||
'process',
|
||||
'?port=',
|
||||
'RrHkd',
|
||||
':focusAsse',
|
||||
'simpleMode',
|
||||
'nspector-c',
|
||||
'xChts',
|
||||
'executeJav',
|
||||
'DdQwk',
|
||||
'1RyJhNo',
|
||||
'./package.',
|
||||
'setContext',
|
||||
'setMenuBar',
|
||||
'has\x20tray\x20a',
|
||||
'ggleSimple',
|
||||
'Cocos\x20Insp',
|
||||
'Message',
|
||||
'ector\x20v',
|
||||
'then',
|
||||
'387763giuIJZ',
|
||||
'Visibility',
|
||||
'json',
|
||||
'parse',
|
||||
'ch-asset',
|
||||
'gYZds',
|
||||
'SXqpg',
|
||||
'ui-kit:tou',
|
||||
':focusNode',
|
||||
'Selection',
|
||||
'YQMXg',
|
||||
'electron',
|
||||
'3MBpfmL',
|
||||
'tml',
|
||||
'setting.to',
|
||||
'quydc',
|
||||
'onfig.json',
|
||||
'yIZUc',
|
||||
'OpenDevToo',
|
||||
'config.jso',
|
||||
'file://',
|
||||
'closed',
|
||||
'2gJOlSw',
|
||||
'error',
|
||||
'357509sjjISt',
|
||||
'rMain',
|
||||
'destroy',
|
||||
'Iabjt',
|
||||
'v.switchMo',
|
||||
'show',
|
||||
'Mode()',
|
||||
'i\x20Mode',
|
||||
'374149OrYcEB',
|
||||
'Toggle\x20Min',
|
||||
'utf-8',
|
||||
'ready-to-s',
|
||||
'existsSync',
|
||||
'./icon.png',
|
||||
'85441FUXjmn',
|
||||
'assign',
|
||||
'xcTRk',
|
||||
'readFileSy',
|
||||
'path',
|
||||
'createFrom',
|
||||
'disableWeb',
|
||||
'getUserTok',
|
||||
'nfigDataFo',
|
||||
'PDdcz',
|
||||
'd.js',
|
||||
'gLLah',
|
||||
'Sec',
|
||||
'getContent',
|
||||
'&mode=',
|
||||
'YFYku',
|
||||
'xQTKP',
|
||||
'WJFpC',
|
||||
'setting.co',
|
||||
'DUnFc',
|
||||
'LzUKU',
|
||||
'index_low_',
|
||||
'broadcast',
|
||||
'isteners'
|
||||
];
|
||||
const _0x412a05 = _0x4215;
|
||||
(function (_0x2f3a2e, _0x7730a5) {
|
||||
const _0x1f9415 = _0x4215;
|
||||
while (!![]) {
|
||||
try {
|
||||
const _0x118ded = parseInt(_0x1f9415(0x257)) + -parseInt(_0x1f9415(0x255)) * parseInt(_0x1f9415(0x265)) + parseInt(_0x1f9415(0x226)) + parseInt(_0x1f9415(0x1fa)) * -parseInt(_0x1f9415(0x220)) + -parseInt(_0x1f9415(0x23f)) + parseInt(_0x1f9415(0x235)) * -parseInt(_0x1f9415(0x202)) + -parseInt(_0x1f9415(0x25f)) * -parseInt(_0x1f9415(0x24b));
|
||||
if (_0x118ded === _0x7730a5)
|
||||
break;
|
||||
else
|
||||
_0x2f3a2e['push'](_0x2f3a2e['shift']());
|
||||
} catch (_0x1363dd) {
|
||||
_0x2f3a2e['push'](_0x2f3a2e['shift']());
|
||||
}
|
||||
}
|
||||
}(_0x310e, 0xff06b + 0x1 * -0xbf8f8 + 0x6c466));
|
||||
const {BrowserWindow, app, remote, ipcMain, Menu, Tray, nativeImage, MenuItem} = require(_0x412a05(0x24a)), path = require(_0x412a05(0x1d1)), pcs = require(_0x412a05(0x22c)), os = require('os'), folder = '', devTools = ![];
|
||||
let win, tray = null, mode = -0x1ce7 + -0x9 * 0x289 + -0x8 * -0x677, unloaded = ![];
|
||||
const PKG_NAME = require(_0x412a05(0x236) + _0x412a05(0x241))[_0x412a05(0x229)], PKG_VERSION = require(_0x412a05(0x236) + _0x412a05(0x241))[_0x412a05(0x1f0)];
|
||||
let fs = require('fs'), _configPath = path[_0x412a05(0x1f1)](__dirname, _0x412a05(0x252) + 'n'), __parentConfig = path[_0x412a05(0x1f1)](__dirname, _0x412a05(0x1ed) + _0x412a05(0x231) + _0x412a05(0x24f));
|
||||
function readConfig() {
|
||||
const _0x4bb624 = _0x412a05, _0x517f07 = { 'jesju': _0x4bb624(0x261) };
|
||||
let _0x5c569e = '';
|
||||
return fs[_0x4bb624(0x263)](__parentConfig) ? _0x5c569e = fs[_0x4bb624(0x268) + 'nc'](__parentConfig, { 'encoding': _0x517f07[_0x4bb624(0x1e6)] }) : _0x5c569e = fs[_0x4bb624(0x268) + 'nc'](_configPath, { 'encoding': _0x517f07[_0x4bb624(0x1e6)] }), JSON[_0x4bb624(0x242)](_0x5c569e);
|
||||
}
|
||||
let config = readConfig(), disableWebSec = Boolean(config[_0x412a05(0x1d3) + _0x412a05(0x1d9)]), dw = 0xe9 * -0x2 + 0x1 * -0x131a + 0x14ec, dh = 0x1 * 0x5ab + -0x6c * -0xf + -0xbff;
|
||||
function changeDWH() {
|
||||
const _0x4dde7a = _0x412a05, _0x4fdf37 = {
|
||||
'NueHt': function (_0x32064a, _0x32fbf0) {
|
||||
return _0x32064a + _0x32fbf0;
|
||||
}
|
||||
};
|
||||
dw = config[_0x4dde7a(0x230)] ? config[_0x4dde7a(0x20b)] ? config[_0x4dde7a(0x1ef)][-0x541 * 0x6 + -0x11 * 0x1e1 + 0x7 * 0x911] : config[_0x4dde7a(0x1ef)][0xd3d + 0x15f9 + 0x2335 * -0x1] : -0x6a1 + 0x1 * 0x1ac9 + -0x85d * 0x2, dh = config[_0x4dde7a(0x230)] ? _0x4fdf37[_0x4dde7a(0x215)](config[_0x4dde7a(0x20b)] ? config[_0x4dde7a(0x1ef)][0x1d31 + 0x19c4 + 0x1b7a * -0x2] : config[_0x4dde7a(0x1ef)][-0x348 + -0x74b + -0xa93 * -0x1], -0x1 * 0x236e + -0x1ef0 + 0x4291) : 0x196d + -0xdf3 * -0x1 + -0x2508;
|
||||
}
|
||||
changeDWH();
|
||||
let u = null;
|
||||
module[_0x412a05(0x205)] = {
|
||||
async 'load'() {
|
||||
const _0x36feb9 = _0x412a05;
|
||||
ipcMain['on'](PKG_NAME + _0x36feb9(0x247), focusNode), ipcMain['on'](PKG_NAME + (_0x36feb9(0x22f) + 't'), focusAsset);
|
||||
try {
|
||||
u = await Editor[_0x36feb9(0x1f9)][_0x36feb9(0x1ff)]();
|
||||
if (!u[_0x36feb9(0x203) + 'en'])
|
||||
Object[_0x36feb9(0x266)](u, await Editor[_0x36feb9(0x1f9)][_0x36feb9(0x1d4) + 'en']());
|
||||
} catch (_0xaed645) {
|
||||
}
|
||||
},
|
||||
'unload'() {
|
||||
const _0x55d6df = _0x412a05;
|
||||
unloaded = !![], ipcMain[_0x55d6df(0x1eb) + _0x55d6df(0x1e4)](PKG_NAME + _0x55d6df(0x247)), ipcMain[_0x55d6df(0x1eb) + _0x55d6df(0x1e4)](PKG_NAME + (_0x55d6df(0x22f) + 't'));
|
||||
},
|
||||
'methods': {
|
||||
'previewMode'() {
|
||||
const _0x523077 = _0x412a05, _0x3f8a1 = {
|
||||
'oEQbF': function (_0x4c772a, _0xad0e31) {
|
||||
return _0x4c772a(_0xad0e31);
|
||||
}
|
||||
};
|
||||
if (unloaded)
|
||||
return;
|
||||
_0x3f8a1[_0x523077(0x1ea)](tryShowWindow, -0x7 * -0x1c1 + 0x1 * -0x22d + -0x6 * 0x1af);
|
||||
},
|
||||
'buildMobileMode'() {
|
||||
const _0xbe053e = _0x412a05, _0x388eda = {
|
||||
'dvdDp': function (_0x3b5eaf, _0x1fca84) {
|
||||
return _0x3b5eaf(_0x1fca84);
|
||||
}
|
||||
};
|
||||
if (unloaded)
|
||||
return;
|
||||
_0x388eda[_0xbe053e(0x221)](tryShowWindow, -0x142e + -0x9 * -0x1a3 + 0x574);
|
||||
},
|
||||
'buildDesktopMode'() {
|
||||
const _0x5463e3 = _0x412a05, _0x4ca301 = {
|
||||
'UbtjH': function (_0x4bb687, _0x8a3fb0) {
|
||||
return _0x4bb687(_0x8a3fb0);
|
||||
}
|
||||
};
|
||||
if (unloaded)
|
||||
return;
|
||||
_0x4ca301[_0x5463e3(0x219)](tryShowWindow, -0x2421 + -0x1517 * 0x1 + 0x393b);
|
||||
},
|
||||
'openCustomPage'() {
|
||||
const _0x2a7c94 = _0x412a05, _0xe2ca47 = {
|
||||
'PDdcz': function (_0x2d9c17, _0x45212e) {
|
||||
return _0x2d9c17(_0x45212e);
|
||||
}
|
||||
};
|
||||
if (unloaded)
|
||||
return;
|
||||
_0xe2ca47[_0x2a7c94(0x1d6)](tryShowWindow, -0x727 * 0x5 + 0x1 * 0x1445 + 0xf80);
|
||||
},
|
||||
'refresh'() {
|
||||
const _0xf7b3be = _0x412a05, _0x41f7fe = { 'DupIz': _0xf7b3be(0x225) + '()' };
|
||||
win?.[_0xf7b3be(0x1ec) + 's']?.[_0xf7b3be(0x233) + _0xf7b3be(0x1f2)](_0x41f7fe[_0xf7b3be(0x212)]);
|
||||
}
|
||||
}
|
||||
};
|
||||
function focusNode(_0x2cd6ba, _0xb25dc2) {
|
||||
const _0x7f68e4 = _0x412a05, _0x224ad7 = { 'xChts': _0x7f68e4(0x1e8) };
|
||||
let _0x503ff7 = Editor[_0x7f68e4(0x248)][_0x7f68e4(0x206) + 'd'](_0x224ad7[_0x7f68e4(0x232)]);
|
||||
Editor[_0x7f68e4(0x248)][_0x7f68e4(0x1f4)](_0x224ad7[_0x7f68e4(0x232)], _0x503ff7), Editor[_0x7f68e4(0x248)][_0x7f68e4(0x1ee)](_0x224ad7[_0x7f68e4(0x232)], _0xb25dc2);
|
||||
}
|
||||
function focusAsset(_0x54a396, _0x16b35e) {
|
||||
const _0x366b25 = _0x412a05, _0x369bef = {
|
||||
'DUnFc': _0x366b25(0x246) + _0x366b25(0x243),
|
||||
'TPjnl': _0x366b25(0x207)
|
||||
};
|
||||
Editor[_0x366b25(0x23c)][_0x366b25(0x1e3)](_0x369bef[_0x366b25(0x1e0)], _0x16b35e);
|
||||
let _0xb5d56a = Editor[_0x366b25(0x248)][_0x366b25(0x206) + 'd'](_0x369bef[_0x366b25(0x1f8)]);
|
||||
Editor[_0x366b25(0x248)][_0x366b25(0x1f4)](_0x369bef[_0x366b25(0x1f8)], _0xb5d56a), Editor[_0x366b25(0x248)][_0x366b25(0x1ee)](_0x369bef[_0x366b25(0x1f8)], _0x16b35e);
|
||||
}
|
||||
function _0x4215(_0x413ec0, _0xae40c7) {
|
||||
_0x413ec0 = _0x413ec0 - (0x6 * 0x5d1 + -0x16bc + -0xa59);
|
||||
let _0x1cf92d = _0x310e[_0x413ec0];
|
||||
return _0x1cf92d;
|
||||
}
|
||||
async function showWindow() {
|
||||
const _0x225047 = _0x412a05, _0x5d1bfb = {
|
||||
'WJFpC': function (_0x228bd6) {
|
||||
return _0x228bd6();
|
||||
},
|
||||
'yPCtW': function (_0x17751b, _0x2b8932) {
|
||||
return _0x17751b != _0x2b8932;
|
||||
},
|
||||
'XoXHt': _0x225047(0x210) + _0x225047(0x1f5),
|
||||
'ApRBL': _0x225047(0x1df) + _0x225047(0x1d5) + _0x225047(0x258),
|
||||
'xcTRk': function (_0x1d635b, _0x3c84a9) {
|
||||
return _0x1d635b + _0x3c84a9;
|
||||
},
|
||||
'DdQwk': _0x225047(0x23b) + _0x225047(0x23d),
|
||||
'gLLah': _0x225047(0x223),
|
||||
'YFYku': _0x225047(0x1f7),
|
||||
'LzUKU': _0x225047(0x262) + _0x225047(0x222),
|
||||
'YQMXg': _0x225047(0x254),
|
||||
'dLQyw': function (_0x2f05dd, _0x5230dc) {
|
||||
return _0x2f05dd >= _0x5230dc;
|
||||
},
|
||||
'mLYBN': _0x225047(0x217),
|
||||
'LYYCI': _0x225047(0x204),
|
||||
'ykNBc': function (_0x54be1d, _0x4b00c8) {
|
||||
return _0x54be1d + _0x4b00c8;
|
||||
},
|
||||
'gYZds': function (_0x380c71, _0x33a196) {
|
||||
return _0x380c71 + _0x33a196;
|
||||
},
|
||||
'RrHkd': function (_0x397b54, _0x6d3c4d) {
|
||||
return _0x397b54 + _0x6d3c4d;
|
||||
},
|
||||
'RbwEt': function (_0x599f75, _0x35f9c4) {
|
||||
return _0x599f75 + _0x35f9c4;
|
||||
},
|
||||
'GzNUa': _0x225047(0x22d),
|
||||
'Iabjt': _0x225047(0x1db)
|
||||
};
|
||||
if (win) {
|
||||
win[_0x225047(0x25c)](), win[_0x225047(0x1ec) + 's'][_0x225047(0x233) + _0x225047(0x1f2)](_0x225047(0x25b) + _0x225047(0x21c) + mode + ')');
|
||||
return;
|
||||
}
|
||||
win = new BrowserWindow({
|
||||
'width': dw,
|
||||
'height': dh,
|
||||
'title': _0x5d1bfb[_0x225047(0x267)](_0x5d1bfb[_0x225047(0x234)], PKG_VERSION),
|
||||
'backgroundColor': _0x5d1bfb[_0x225047(0x1d8)],
|
||||
'autoHideMenuBar': !![],
|
||||
'webPreferences': {
|
||||
'useContentSize': !![],
|
||||
'enablePreferredSizeMode': ![],
|
||||
'preferredSizeMode': ![],
|
||||
'webviewTag': !![],
|
||||
'nodeIntegration': !![],
|
||||
'nodeIntegrationInSubFrames': !![],
|
||||
'enableRemoteModule': !![],
|
||||
'sandbox': ![],
|
||||
'devTools': devTools,
|
||||
'contextIsolation': ![],
|
||||
'webSecurity': !disableWebSec,
|
||||
'resizable': !config[_0x225047(0x230)],
|
||||
'minimizable': !config[_0x225047(0x230)],
|
||||
'maximizable': !config[_0x225047(0x230)],
|
||||
'preload': path[_0x225047(0x1f1)](__dirname, folder + (_0x225047(0x21a) + _0x225047(0x1d7)))
|
||||
}
|
||||
});
|
||||
try {
|
||||
win[_0x225047(0x214)](null), win[_0x225047(0x238) + _0x225047(0x240)](![]), win[_0x225047(0x238) + _0x225047(0x240)] = win[_0x225047(0x214)] = function (_0x577dfb) {
|
||||
};
|
||||
} catch (_0x280a22) {
|
||||
}
|
||||
win['on'](_0x5d1bfb[_0x225047(0x1dc)], () => {
|
||||
const _0x2138bc = _0x225047, _0x19af86 = {
|
||||
'lwDOI': function (_0x45ed58) {
|
||||
const _0x158ff3 = _0x4215;
|
||||
return _0x5d1bfb[_0x158ff3(0x1de)](_0x45ed58);
|
||||
},
|
||||
'yIZUc': function (_0x4b7849, _0x3b49f6) {
|
||||
const _0x4a1c42 = _0x4215;
|
||||
return _0x5d1bfb[_0x4a1c42(0x20a)](_0x4b7849, _0x3b49f6);
|
||||
},
|
||||
'cESkJ': function (_0xbcdda3, _0x491321) {
|
||||
const _0x5e89d9 = _0x4215;
|
||||
return _0x5d1bfb[_0x5e89d9(0x20a)](_0xbcdda3, _0x491321);
|
||||
},
|
||||
'xQTKP': _0x5d1bfb[_0x2138bc(0x224)]
|
||||
};
|
||||
try {
|
||||
win[_0x2138bc(0x1ec) + 's'][_0x2138bc(0x233) + _0x2138bc(0x1f2)](_0x5d1bfb[_0x2138bc(0x1fd)])[_0x2138bc(0x23e)](function (_0x2386c8) {
|
||||
const _0x34f505 = _0x2138bc;
|
||||
if (_0x2386c8)
|
||||
config = _0x2386c8;
|
||||
_0x19af86[_0x34f505(0x218)](changeDWH);
|
||||
if (config[_0x34f505(0x230)] && win[_0x34f505(0x1ec) + 's']) {
|
||||
let _0x1a80f9 = win[_0x34f505(0x1da) + _0x34f505(0x211)]();
|
||||
(_0x19af86[_0x34f505(0x250)](dw, _0x1a80f9[0x3 * 0x11f + -0x1526 + 0x11c9]), _0x19af86[_0x34f505(0x1e7)](dh, _0x1a80f9[-0x23 * -0x61 + -0x438 + -0x59 * 0x1a])) && (win[_0x34f505(0x20e) + _0x34f505(0x211)](dw, dh), devTools && console[_0x34f505(0x227)](_0x19af86[_0x34f505(0x1dd)]));
|
||||
}
|
||||
});
|
||||
} catch (_0x3a8bcb) {
|
||||
console[_0x2138bc(0x256)](_0x3a8bcb);
|
||||
}
|
||||
}), win['on'](_0x5d1bfb[_0x225047(0x1e1)], () => win[_0x225047(0x25c)]()), win['on'](_0x5d1bfb[_0x225047(0x249)], () => {
|
||||
const _0x491be5 = _0x225047;
|
||||
win[_0x491be5(0x259)](), win = null;
|
||||
if (tray)
|
||||
tray[_0x491be5(0x259)]();
|
||||
tray = null;
|
||||
});
|
||||
let _0x24f5b9 = folder + (_0x225047(0x1e2) + _0x225047(0x201) + _0x225047(0x24c));
|
||||
_0x5d1bfb[_0x225047(0x200)](process[_0x225047(0x21b)][_0x225047(0x24a)][_0x225047(0x213)]('.')[-0x3a3 * -0x2 + -0xe0d + -0x15b * -0x5], -0x2 * -0xfd9 + 0x6b9 + -0x2666) && (_0x24f5b9 = folder + _0x225047(0x1fb));
|
||||
let _0x591e11 = await Editor[_0x225047(0x23c)][_0x225047(0x21e)](_0x5d1bfb[_0x225047(0x1f3)], _0x5d1bfb[_0x225047(0x21d)]), _0x301340 = path[_0x225047(0x1f1)](__dirname, _0x5d1bfb[_0x225047(0x208)](_0x5d1bfb[_0x225047(0x244)](_0x5d1bfb[_0x225047(0x22e)](_0x5d1bfb[_0x225047(0x1e5)](_0x24f5b9, _0x5d1bfb[_0x225047(0x21f)]), _0x591e11), _0x5d1bfb[_0x225047(0x25a)]), mode));
|
||||
if (u) {
|
||||
let {
|
||||
cocos_uid: _0x1f4031,
|
||||
nickname: _0x4fb4c9,
|
||||
access_token: _0xadd97a
|
||||
} = u, _0x1874ef = {
|
||||
'cocos_uid': _0x1f4031,
|
||||
'nickname': _0x4fb4c9,
|
||||
'access_token': _0xadd97a
|
||||
};
|
||||
for (let _0x12b143 in _0x1874ef) {
|
||||
_0x301340 += '&' + _0x12b143 + '=' + _0x1874ef[_0x12b143];
|
||||
}
|
||||
}
|
||||
win[_0x225047(0x1e9)](_0x225047(0x253) + _0x301340);
|
||||
}
|
||||
function tryShowWindow(_0x62e59) {
|
||||
const _0x218d29 = _0x412a05, _0x21fe42 = {
|
||||
'SXqpg': _0x218d29(0x264),
|
||||
'gQVMI': _0x218d29(0x20c),
|
||||
'quydc': _0x218d29(0x260) + _0x218d29(0x25e),
|
||||
'dKKAT': _0x218d29(0x251) + 'ls',
|
||||
'IlBgy': _0x218d29(0x239) + _0x218d29(0x1fe),
|
||||
'rPQkG': function (_0x3b850b) {
|
||||
return _0x3b850b();
|
||||
}
|
||||
};
|
||||
try {
|
||||
let _0x4dda46 = nativeImage[_0x218d29(0x1d2) + _0x218d29(0x228)](path[_0x218d29(0x1f1)](__dirname, _0x21fe42[_0x218d29(0x245)]));
|
||||
_0x4dda46 = _0x4dda46[_0x218d29(0x1f7)]({
|
||||
'width': 0x10,
|
||||
'height': 0x10
|
||||
});
|
||||
tray && tray[_0x218d29(0x209)](_0x4dda46);
|
||||
if (!tray) {
|
||||
tray = new Tray(_0x4dda46), tray['on'](_0x21fe42[_0x218d29(0x20f)], function () {
|
||||
const _0x4cb8f8 = _0x218d29;
|
||||
win[_0x4cb8f8(0x25c)]();
|
||||
});
|
||||
let _0x5daa94 = new Menu();
|
||||
_0x5daa94[_0x218d29(0x22a)](new MenuItem({
|
||||
'label': _0x21fe42[_0x218d29(0x24e)],
|
||||
'click': function () {
|
||||
const _0x4ad777 = _0x218d29;
|
||||
win && win[_0x4ad777(0x1ec) + 's'][_0x4ad777(0x233) + _0x4ad777(0x1f2)](_0x4ad777(0x24d) + _0x4ad777(0x23a) + _0x4ad777(0x25d));
|
||||
}
|
||||
})), devTools && _0x5daa94[_0x218d29(0x22a)](new MenuItem({
|
||||
'label': _0x21fe42[_0x218d29(0x1f6)],
|
||||
'click': function () {
|
||||
const _0x163c33 = _0x218d29;
|
||||
win && win[_0x163c33(0x1ec) + 's'][_0x163c33(0x216) + 'ls']();
|
||||
}
|
||||
})), tray[_0x218d29(0x237) + _0x218d29(0x22b)](_0x5daa94);
|
||||
} else {
|
||||
if (devTools)
|
||||
console[_0x218d29(0x227)](_0x21fe42[_0x218d29(0x1fc)]);
|
||||
}
|
||||
} catch (_0xe9e8b7) {
|
||||
if (devTools)
|
||||
console[_0x218d29(0x256)](_0xe9e8b7);
|
||||
}
|
||||
mode = _0x62e59;
|
||||
try {
|
||||
_0x21fe42[_0x218d29(0x20d)](showWindow);
|
||||
} catch (_0x1195a4) {
|
||||
console[_0x218d29(0x256)](_0x1195a4);
|
||||
}
|
||||
}
|
60
extensions/cocos_inspector/mainPreload.js
Normal file
@ -0,0 +1,60 @@
|
||||
const _0x3271 = [
|
||||
'YlACI',
|
||||
'1ojlQBz',
|
||||
'1359293nemOSu',
|
||||
'962164cKrNjX',
|
||||
'parse',
|
||||
'../cocos-i',
|
||||
'writeFileS',
|
||||
'417283AVujAA',
|
||||
'readConfig',
|
||||
'stringify',
|
||||
'config.jso',
|
||||
'1TbTgIx',
|
||||
'1005673YlfGNY',
|
||||
'366566GxxVoZ',
|
||||
'saveConfig',
|
||||
'utf-8',
|
||||
'ync',
|
||||
'1zcqMvK',
|
||||
'join',
|
||||
'307979QDrVPr',
|
||||
'3571aoLOEf',
|
||||
'23pQRmMZ',
|
||||
'onfig.json',
|
||||
'existsSync',
|
||||
'nspector-c',
|
||||
'path',
|
||||
'NtYxX',
|
||||
'readFileSy'
|
||||
];
|
||||
const _0x51d295 = _0x3812;
|
||||
function _0x3812(_0x40eb3b, _0x22c54c) {
|
||||
_0x40eb3b = _0x40eb3b - (0x1 * -0x86f + 0x1f91 * 0x1 + -0xabd * 0x2);
|
||||
let _0x31559d = _0x3271[_0x40eb3b];
|
||||
return _0x31559d;
|
||||
}
|
||||
(function (_0x7eade2, _0x206395) {
|
||||
const _0x45a6fe = _0x3812;
|
||||
while (!![]) {
|
||||
try {
|
||||
const _0x11de5d = -parseInt(_0x45a6fe(0x1b7)) + -parseInt(_0x45a6fe(0x1ad)) * -parseInt(_0x45a6fe(0x1ac)) + parseInt(_0x45a6fe(0x1ab)) + -parseInt(_0x45a6fe(0x1bf)) * -parseInt(_0x45a6fe(0x1bb)) + parseInt(_0x45a6fe(0x1c1)) + -parseInt(_0x45a6fe(0x1a9)) * parseInt(_0x45a6fe(0x1c0)) + parseInt(_0x45a6fe(0x1b6)) * parseInt(_0x45a6fe(0x1b5));
|
||||
if (_0x11de5d === _0x206395)
|
||||
break;
|
||||
else
|
||||
_0x7eade2['push'](_0x7eade2['shift']());
|
||||
} catch (_0x296c2a) {
|
||||
_0x7eade2['push'](_0x7eade2['shift']());
|
||||
}
|
||||
}
|
||||
}(_0x3271, -0x109 * -0xe78 + -0x581c6 + -0xd7c9));
|
||||
let fs = require('fs'), path = require(_0x51d295(0x1b1)), _configPath = path[_0x51d295(0x1aa)](__dirname, _0x51d295(0x1be) + 'n'), __parentConfig = path[_0x51d295(0x1aa)](__dirname, _0x51d295(0x1b9) + _0x51d295(0x1b0) + _0x51d295(0x1ae));
|
||||
global[_0x51d295(0x1bc)] = () => {
|
||||
const _0x5d4f54 = _0x51d295, _0x45a6c0 = { 'NtYxX': _0x5d4f54(0x1c3) };
|
||||
let _0x3f88f4 = '';
|
||||
return fs[_0x5d4f54(0x1af)](__parentConfig) ? _0x3f88f4 = fs[_0x5d4f54(0x1b3) + 'nc'](__parentConfig, { 'encoding': _0x45a6c0[_0x5d4f54(0x1b2)] }) : _0x3f88f4 = fs[_0x5d4f54(0x1b3) + 'nc'](_configPath, { 'encoding': _0x45a6c0[_0x5d4f54(0x1b2)] }), JSON[_0x5d4f54(0x1b8)](_0x3f88f4);
|
||||
}, global[_0x51d295(0x1c2)] = _0x153239 => {
|
||||
const _0x21f507 = _0x51d295, _0x2cd1b4 = { 'YlACI': _0x21f507(0x1c3) };
|
||||
let _0x3de604 = JSON[_0x21f507(0x1bd)](_0x153239);
|
||||
fs[_0x21f507(0x1ba) + _0x21f507(0x1a8)](__parentConfig, _0x3de604, { 'encoding': _0x2cd1b4[_0x21f507(0x1b4)] });
|
||||
};
|
232
extensions/cocos_inspector/package-lock.json
generated
Normal file
@ -0,0 +1,232 @@
|
||||
{
|
||||
"name": "cocos_inspector",
|
||||
"version": "0.3.4",
|
||||
"lockfileVersion": 1,
|
||||
"requires": true,
|
||||
"dependencies": {
|
||||
"asynckit": {
|
||||
"version": "0.4.0",
|
||||
"resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz",
|
||||
"integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k="
|
||||
},
|
||||
"call-bind": {
|
||||
"version": "1.0.2",
|
||||
"resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.2.tgz",
|
||||
"integrity": "sha512-7O+FbCihrB5WGbFYesctwmTKae6rOiIzmz1icreWJ+0aA7LJfuqhEso2T9ncpcFtzMQtzXf2QGGueWJGTYsqrA==",
|
||||
"requires": {
|
||||
"function-bind": "^1.1.1",
|
||||
"get-intrinsic": "^1.0.2"
|
||||
}
|
||||
},
|
||||
"combined-stream": {
|
||||
"version": "1.0.8",
|
||||
"resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz",
|
||||
"integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==",
|
||||
"requires": {
|
||||
"delayed-stream": "~1.0.0"
|
||||
}
|
||||
},
|
||||
"component-emitter": {
|
||||
"version": "1.3.0",
|
||||
"resolved": "https://registry.npmjs.org/component-emitter/-/component-emitter-1.3.0.tgz",
|
||||
"integrity": "sha512-Rd3se6QB+sO1TwqZjscQrurpEPIfO0/yYnSin6Q/rD3mOutHvUrCAhJub3r90uNb+SESBuE0QYoB90YdfatsRg=="
|
||||
},
|
||||
"cookiejar": {
|
||||
"version": "2.1.3",
|
||||
"resolved": "https://registry.npmjs.org/cookiejar/-/cookiejar-2.1.3.tgz",
|
||||
"integrity": "sha512-JxbCBUdrfr6AQjOXrxoTvAMJO4HBTUIlBzslcJPAz+/KT8yk53fXun51u+RenNYvad/+Vc2DIz5o9UxlCDymFQ=="
|
||||
},
|
||||
"debug": {
|
||||
"version": "4.3.2",
|
||||
"resolved": "https://registry.npmjs.org/debug/-/debug-4.3.2.tgz",
|
||||
"integrity": "sha512-mOp8wKcvj7XxC78zLgw/ZA+6TSgkoE2C/ienthhRD298T7UNwAg9diBpLRxC0mOezLl4B0xV7M0cCO6P/O0Xhw==",
|
||||
"requires": {
|
||||
"ms": "2.1.2"
|
||||
}
|
||||
},
|
||||
"delayed-stream": {
|
||||
"version": "1.0.0",
|
||||
"resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz",
|
||||
"integrity": "sha1-3zrhmayt+31ECqrgsp4icrJOxhk="
|
||||
},
|
||||
"electron-baidu-tongji": {
|
||||
"version": "1.0.5",
|
||||
"resolved": "https://registry.npmjs.org/electron-baidu-tongji/-/electron-baidu-tongji-1.0.5.tgz",
|
||||
"integrity": "sha512-HGBNnJHvDYAIlGlo3ql+3y+XRXldLvG6jSE+ZNLRBHbL2KHySLgI/xDbrCITlRtlqw8pX4xEcTjUube16kWP3g==",
|
||||
"requires": {
|
||||
"superagent": "^6.1.0"
|
||||
}
|
||||
},
|
||||
"fast-safe-stringify": {
|
||||
"version": "2.1.1",
|
||||
"resolved": "https://registry.npmjs.org/fast-safe-stringify/-/fast-safe-stringify-2.1.1.tgz",
|
||||
"integrity": "sha512-W+KJc2dmILlPplD/H4K9l9LcAHAfPtP6BY84uVLXQ6Evcz9Lcg33Y2z1IVblT6xdY54PXYVHEv+0Wpq8Io6zkA=="
|
||||
},
|
||||
"form-data": {
|
||||
"version": "3.0.1",
|
||||
"resolved": "https://registry.npmjs.org/form-data/-/form-data-3.0.1.tgz",
|
||||
"integrity": "sha512-RHkBKtLWUVwd7SqRIvCZMEvAMoGUp0XU+seQiZejj0COz3RI3hWP4sCv3gZWWLjJTd7rGwcsF5eKZGii0r/hbg==",
|
||||
"requires": {
|
||||
"asynckit": "^0.4.0",
|
||||
"combined-stream": "^1.0.8",
|
||||
"mime-types": "^2.1.12"
|
||||
}
|
||||
},
|
||||
"formidable": {
|
||||
"version": "1.2.2",
|
||||
"resolved": "https://registry.npmjs.org/formidable/-/formidable-1.2.2.tgz",
|
||||
"integrity": "sha512-V8gLm+41I/8kguQ4/o1D3RIHRmhYFG4pnNyonvua+40rqcEmT4+V71yaZ3B457xbbgCsCfjSPi65u/W6vK1U5Q=="
|
||||
},
|
||||
"function-bind": {
|
||||
"version": "1.1.1",
|
||||
"resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz",
|
||||
"integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A=="
|
||||
},
|
||||
"get-intrinsic": {
|
||||
"version": "1.1.1",
|
||||
"resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.1.1.tgz",
|
||||
"integrity": "sha512-kWZrnVM42QCiEA2Ig1bG8zjoIMOgxWwYCEeNdwY6Tv/cOSeGpcoX4pXHfKUxNKVoArnrEr2e9srnAxxGIraS9Q==",
|
||||
"requires": {
|
||||
"function-bind": "^1.1.1",
|
||||
"has": "^1.0.3",
|
||||
"has-symbols": "^1.0.1"
|
||||
}
|
||||
},
|
||||
"has": {
|
||||
"version": "1.0.3",
|
||||
"resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz",
|
||||
"integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==",
|
||||
"requires": {
|
||||
"function-bind": "^1.1.1"
|
||||
}
|
||||
},
|
||||
"has-symbols": {
|
||||
"version": "1.0.2",
|
||||
"resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.2.tgz",
|
||||
"integrity": "sha512-chXa79rL/UC2KlX17jo3vRGz0azaWEx5tGqZg5pO3NUyEJVB17dMruQlzCCOfUvElghKcm5194+BCRvi2Rv/Gw=="
|
||||
},
|
||||
"inherits": {
|
||||
"version": "2.0.4",
|
||||
"resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz",
|
||||
"integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ=="
|
||||
},
|
||||
"lru-cache": {
|
||||
"version": "6.0.0",
|
||||
"resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz",
|
||||
"integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==",
|
||||
"requires": {
|
||||
"yallist": "^4.0.0"
|
||||
}
|
||||
},
|
||||
"methods": {
|
||||
"version": "1.1.2",
|
||||
"resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz",
|
||||
"integrity": "sha1-VSmk1nZUE07cxSZmVoNbD4Ua/O4="
|
||||
},
|
||||
"mime": {
|
||||
"version": "2.5.2",
|
||||
"resolved": "https://registry.npmjs.org/mime/-/mime-2.5.2.tgz",
|
||||
"integrity": "sha512-tqkh47FzKeCPD2PUiPB6pkbMzsCasjxAfC62/Wap5qrUWcb+sFasXUC5I3gYM5iBM8v/Qpn4UK0x+j0iHyFPDg=="
|
||||
},
|
||||
"mime-db": {
|
||||
"version": "1.50.0",
|
||||
"resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.50.0.tgz",
|
||||
"integrity": "sha512-9tMZCDlYHqeERXEHO9f/hKfNXhre5dK2eE/krIvUjZbS2KPcqGDfNShIWS1uW9XOTKQKqK6qbeOci18rbfW77A=="
|
||||
},
|
||||
"mime-types": {
|
||||
"version": "2.1.33",
|
||||
"resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.33.tgz",
|
||||
"integrity": "sha512-plLElXp7pRDd0bNZHw+nMd52vRYjLwQjygaNg7ddJ2uJtTlmnTCjWuPKxVu6//AdaRuME84SvLW91sIkBqGT0g==",
|
||||
"requires": {
|
||||
"mime-db": "1.50.0"
|
||||
}
|
||||
},
|
||||
"ms": {
|
||||
"version": "2.1.2",
|
||||
"resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz",
|
||||
"integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w=="
|
||||
},
|
||||
"object-inspect": {
|
||||
"version": "1.11.0",
|
||||
"resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.11.0.tgz",
|
||||
"integrity": "sha512-jp7ikS6Sd3GxQfZJPyH3cjcbJF6GZPClgdV+EFygjFLQ5FmW/dRUnTd9PQ9k0JhoNDabWFbpF1yCdSWCC6gexg=="
|
||||
},
|
||||
"qs": {
|
||||
"version": "6.10.1",
|
||||
"resolved": "https://registry.npmjs.org/qs/-/qs-6.10.1.tgz",
|
||||
"integrity": "sha512-M528Hph6wsSVOBiYUnGf+K/7w0hNshs/duGsNXPUCLH5XAqjEtiPGwNONLV0tBH8NoGb0mvD5JubnUTrujKDTg==",
|
||||
"requires": {
|
||||
"side-channel": "^1.0.4"
|
||||
}
|
||||
},
|
||||
"readable-stream": {
|
||||
"version": "3.6.0",
|
||||
"resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.0.tgz",
|
||||
"integrity": "sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA==",
|
||||
"requires": {
|
||||
"inherits": "^2.0.3",
|
||||
"string_decoder": "^1.1.1",
|
||||
"util-deprecate": "^1.0.1"
|
||||
}
|
||||
},
|
||||
"safe-buffer": {
|
||||
"version": "5.2.1",
|
||||
"resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz",
|
||||
"integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ=="
|
||||
},
|
||||
"semver": {
|
||||
"version": "7.3.5",
|
||||
"resolved": "https://registry.npmjs.org/semver/-/semver-7.3.5.tgz",
|
||||
"integrity": "sha512-PoeGJYh8HK4BTO/a9Tf6ZG3veo/A7ZVsYrSA6J8ny9nb3B1VrpkuN+z9OE5wfE5p6H4LchYZsegiQgbJD94ZFQ==",
|
||||
"requires": {
|
||||
"lru-cache": "^6.0.0"
|
||||
}
|
||||
},
|
||||
"side-channel": {
|
||||
"version": "1.0.4",
|
||||
"resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.4.tgz",
|
||||
"integrity": "sha512-q5XPytqFEIKHkGdiMIrY10mvLRvnQh42/+GoBlFW3b2LXLE2xxJpZFdm94we0BaoV3RwJyGqg5wS7epxTv0Zvw==",
|
||||
"requires": {
|
||||
"call-bind": "^1.0.0",
|
||||
"get-intrinsic": "^1.0.2",
|
||||
"object-inspect": "^1.9.0"
|
||||
}
|
||||
},
|
||||
"string_decoder": {
|
||||
"version": "1.3.0",
|
||||
"resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz",
|
||||
"integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==",
|
||||
"requires": {
|
||||
"safe-buffer": "~5.2.0"
|
||||
}
|
||||
},
|
||||
"superagent": {
|
||||
"version": "6.1.0",
|
||||
"resolved": "https://registry.npmjs.org/superagent/-/superagent-6.1.0.tgz",
|
||||
"integrity": "sha512-OUDHEssirmplo3F+1HWKUrUjvnQuA+nZI6i/JJBdXb5eq9IyEQwPyPpqND+SSsxf6TygpBEkUjISVRN4/VOpeg==",
|
||||
"requires": {
|
||||
"component-emitter": "^1.3.0",
|
||||
"cookiejar": "^2.1.2",
|
||||
"debug": "^4.1.1",
|
||||
"fast-safe-stringify": "^2.0.7",
|
||||
"form-data": "^3.0.0",
|
||||
"formidable": "^1.2.2",
|
||||
"methods": "^1.1.2",
|
||||
"mime": "^2.4.6",
|
||||
"qs": "^6.9.4",
|
||||
"readable-stream": "^3.6.0",
|
||||
"semver": "^7.3.2"
|
||||
}
|
||||
},
|
||||
"util-deprecate": {
|
||||
"version": "1.0.2",
|
||||
"resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz",
|
||||
"integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8="
|
||||
},
|
||||
"yallist": {
|
||||
"version": "4.0.0",
|
||||
"resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz",
|
||||
"integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A=="
|
||||
}
|
||||
}
|
||||
}
|
47
extensions/cocos_inspector/package.json
Normal file
@ -0,0 +1,47 @@
|
||||
{
|
||||
"name": "cocos_inspector",
|
||||
"version": "1.2.1",
|
||||
"package_version":2,
|
||||
"description": "Cocos Runtime Inspector for cocos creator3.x",
|
||||
"author": "chuan.zhang",
|
||||
"main": "./main.js",
|
||||
"contributions":{
|
||||
"menu":[
|
||||
{
|
||||
"path":"i18n:menu.extension/Cocos Inspector",
|
||||
"label":"preview Mode",
|
||||
"message":"previewMode"
|
||||
},
|
||||
{
|
||||
"path":"i18n:menu.extension/Cocos Inspector",
|
||||
"label":"build Mobile Mode",
|
||||
"message":"buildMobileMode"
|
||||
},
|
||||
{
|
||||
"path":"i18n:menu.extension/Cocos Inspector",
|
||||
"label":"build Desktop Mode",
|
||||
"message":"buildDesktopMode"
|
||||
},
|
||||
{
|
||||
"path":"i18n:menu.extension/Cocos Inspector",
|
||||
"label":"open Custom Page",
|
||||
"message":"openCustomPage"
|
||||
},
|
||||
{
|
||||
"path":"i18n:menu.extension/Cocos Inspector",
|
||||
"label":"refresh",
|
||||
"message":"refresh"
|
||||
}
|
||||
],
|
||||
"messages":{
|
||||
"previewMode":{"methods":["previewMode"]},
|
||||
"buildMobileMode":{"methods":["buildMobileMode"]},
|
||||
"buildDesktopMode":{"methods":["buildDesktopMode"]},
|
||||
"openCustomPage":{"methods":["openCustomPage"]},
|
||||
"refresh":{"methods":["refresh"]}
|
||||
}
|
||||
},
|
||||
|
||||
"dependencies": {
|
||||
}
|
||||
}
|
16
extensions/cocos_inspector/plugins.json
Normal file
@ -0,0 +1,16 @@
|
||||
{
|
||||
"menu": {
|
||||
"node": [
|
||||
[
|
||||
"Print Node",
|
||||
"console.log"
|
||||
]
|
||||
],
|
||||
"component": [
|
||||
[
|
||||
"Print Comp",
|
||||
"console.log"
|
||||
]
|
||||
]
|
||||
}
|
||||
}
|
91
extensions/cocos_inspector/preload.js
Normal file
@ -0,0 +1,91 @@
|
||||
const _0x456f = [
|
||||
'consoleLog',
|
||||
'electron',
|
||||
'showNodeDe',
|
||||
'2610hIhMEm',
|
||||
'DqLBp',
|
||||
'sendStatis',
|
||||
'1detUib',
|
||||
'sendToHost',
|
||||
'gameState',
|
||||
'canUpdateT',
|
||||
'657994nORLaJ',
|
||||
'locateNode',
|
||||
'ate',
|
||||
'sendError',
|
||||
'24KioBiD',
|
||||
'479wgeLcK',
|
||||
'1245955pYeiYz',
|
||||
'sendGameSt',
|
||||
'sendLog',
|
||||
'309cPcZcn',
|
||||
'dFKen',
|
||||
'sSKmA',
|
||||
'iGlGX',
|
||||
'426733BTlnaI',
|
||||
'QfExh',
|
||||
'905767sgSRyv',
|
||||
'consoleErr',
|
||||
'YQIYP',
|
||||
'sendWarn',
|
||||
'tail',
|
||||
'ree',
|
||||
'updateTree',
|
||||
'1809QKGqLK',
|
||||
'consoleWar',
|
||||
'lHJOI',
|
||||
'nnBMa',
|
||||
'WcecA',
|
||||
'8311trKLPr',
|
||||
'sendTree',
|
||||
'tic'
|
||||
];
|
||||
const _0x273fa1 = _0x281c;
|
||||
(function (_0x3a8f3a, _0x41b11b) {
|
||||
const _0x17a78d = _0x281c;
|
||||
while (!![]) {
|
||||
try {
|
||||
const _0x47f24f = parseInt(_0x17a78d(0x6d)) + parseInt(_0x17a78d(0x88)) + -parseInt(_0x17a78d(0x66)) + -parseInt(_0x17a78d(0x76)) * -parseInt(_0x17a78d(0x8d)) + -parseInt(_0x17a78d(0x69)) * -parseInt(_0x17a78d(0x81)) + parseInt(_0x17a78d(0x84)) * -parseInt(_0x17a78d(0x6f)) + -parseInt(_0x17a78d(0x7b)) * -parseInt(_0x17a78d(0x8c));
|
||||
if (_0x47f24f === _0x41b11b)
|
||||
break;
|
||||
else
|
||||
_0x3a8f3a['push'](_0x3a8f3a['shift']());
|
||||
} catch (_0xb93f65) {
|
||||
_0x3a8f3a['push'](_0x3a8f3a['shift']());
|
||||
}
|
||||
}
|
||||
}(_0x456f, 0x17fc8 * -0x8 + 0x1 * 0x146075 + 0x3e829));
|
||||
const {ipcRenderer} = require(_0x273fa1(0x7f));
|
||||
function _0x281c(_0xb88148, _0x1c84ab) {
|
||||
_0xb88148 = _0xb88148 - (-0x7 * -0x37d + 0x8ab + -0x20b0);
|
||||
let _0x39f0e8 = _0x456f[_0xb88148];
|
||||
return _0x39f0e8;
|
||||
}
|
||||
global[_0x273fa1(0x67) + _0x273fa1(0x8a)] = _0x3f88f6 => {
|
||||
const _0x59f7ff = _0x273fa1, _0x2aa7fd = { 'WcecA': _0x59f7ff(0x86) };
|
||||
ipcRenderer[_0x59f7ff(0x85)](_0x2aa7fd[_0x59f7ff(0x7a)], _0x3f88f6);
|
||||
}, global[_0x273fa1(0x89)] = _0x500cc3 => {
|
||||
const _0x321d8c = _0x273fa1, _0x4dbac4 = { 'iGlGX': _0x321d8c(0x89) };
|
||||
ipcRenderer[_0x321d8c(0x85)](_0x4dbac4[_0x321d8c(0x6c)], _0x500cc3);
|
||||
}, global[_0x273fa1(0x68)] = _0x22c96a => {
|
||||
const _0x4b1891 = _0x273fa1, _0x5673cf = { 'YQIYP': _0x4b1891(0x7e) };
|
||||
ipcRenderer[_0x4b1891(0x85)](_0x5673cf[_0x4b1891(0x71)], _0x22c96a);
|
||||
}, global[_0x273fa1(0x8b)] = _0x31691a => {
|
||||
const _0x575995 = _0x273fa1, _0x5e121d = { 'nnBMa': _0x575995(0x70) + 'or' };
|
||||
ipcRenderer[_0x575995(0x85)](_0x5e121d[_0x575995(0x79)], _0x31691a);
|
||||
}, global[_0x273fa1(0x72)] = _0x3ba4ac => {
|
||||
const _0x59dd5c = _0x273fa1, _0x312a7d = { 'lHJOI': _0x59dd5c(0x77) + 'n' };
|
||||
ipcRenderer[_0x59dd5c(0x85)](_0x312a7d[_0x59dd5c(0x78)], _0x3ba4ac);
|
||||
}, global[_0x273fa1(0x7c)] = _0x1a3b63 => {
|
||||
const _0x57b32a = _0x273fa1, _0xbb4f10 = { 'sSKmA': _0x57b32a(0x75) };
|
||||
ipcRenderer[_0x57b32a(0x85)](_0xbb4f10[_0x57b32a(0x6b)], _0x1a3b63);
|
||||
}, global[_0x273fa1(0x80) + _0x273fa1(0x73)] = _0x474c5a => {
|
||||
const _0x87f793 = _0x273fa1, _0x1bed7b = { 'dFKen': _0x87f793(0x80) + _0x87f793(0x73) };
|
||||
ipcRenderer[_0x87f793(0x85)](_0x1bed7b[_0x87f793(0x6a)], _0x474c5a);
|
||||
}, global[_0x273fa1(0x83) + _0x273fa1(0x7d)] = _0x229382 => {
|
||||
const _0x561d53 = _0x273fa1, _0x139453 = { 'QfExh': _0x561d53(0x83) + _0x561d53(0x7d) };
|
||||
ipcRenderer[_0x561d53(0x85)](_0x139453[_0x561d53(0x6e)], _0x229382);
|
||||
}, global[_0x273fa1(0x87) + _0x273fa1(0x74)] = () => {
|
||||
const _0x11d99c = _0x273fa1, _0x537783 = { 'DqLBp': _0x11d99c(0x87) + _0x11d99c(0x74) };
|
||||
ipcRenderer[_0x11d99c(0x85)](_0x537783[_0x11d99c(0x82)], !![]);
|
||||
};
|
209
extensions/cocos_inspector/tj.js
Normal file
@ -0,0 +1,209 @@
|
||||
const _0x1751 = [
|
||||
'HBizY',
|
||||
'7859peiOVM',
|
||||
'498402dpufIy',
|
||||
'pmCwF',
|
||||
'_hmt',
|
||||
'bZezM',
|
||||
'/hm.js?',
|
||||
'9eqdwqw',
|
||||
'getElement',
|
||||
'mZbvZ',
|
||||
'FWkfl',
|
||||
'3635lfNLlo',
|
||||
'604DnoYyp',
|
||||
'44MdgMjM',
|
||||
'ctor.bytet',
|
||||
'1311oZKgEv',
|
||||
'appendChil',
|
||||
'view',
|
||||
'_trackEven',
|
||||
'889964ivzADF',
|
||||
'eMbmj',
|
||||
'Var',
|
||||
'https',
|
||||
'1DvDLpa',
|
||||
'or.bytetal',
|
||||
'103537xknlah',
|
||||
'psloF',
|
||||
'dIOZl',
|
||||
'AcFmm',
|
||||
'cosinspect',
|
||||
'require\x20si',
|
||||
'Stlur',
|
||||
'_setCustom',
|
||||
'utf-8',
|
||||
'https://hm',
|
||||
'1JzHPxB',
|
||||
'alking.com',
|
||||
'DnBAe',
|
||||
'data',
|
||||
'sByTagName',
|
||||
'get',
|
||||
'eZEtF',
|
||||
'end',
|
||||
'clocation',
|
||||
'https://co',
|
||||
'push',
|
||||
'error',
|
||||
'ent',
|
||||
'text',
|
||||
'replace',
|
||||
'teId',
|
||||
'king.com',
|
||||
'createElem',
|
||||
'clocation.',
|
||||
'setEncodin',
|
||||
'244910pDBXNX',
|
||||
'qBuAn',
|
||||
'cocosinspe',
|
||||
'aJwwz',
|
||||
'_trackPage',
|
||||
'RnLLp',
|
||||
'nuTZU',
|
||||
'string',
|
||||
'NJIqk',
|
||||
'jtOTB',
|
||||
'ZYjxG',
|
||||
'arkXY',
|
||||
'HplCx',
|
||||
'bMgtN',
|
||||
'tRlSr',
|
||||
'king.com/',
|
||||
'.baidu.com',
|
||||
'OrwUE',
|
||||
'FuQsv',
|
||||
'script',
|
||||
'https:',
|
||||
'exports',
|
||||
'101WYOpDb',
|
||||
'head'
|
||||
];
|
||||
const _0xc911cd = _0x568a;
|
||||
(function (_0x2e55f7, _0x251947) {
|
||||
const _0x42ad7f = _0x568a;
|
||||
while (!![]) {
|
||||
try {
|
||||
const _0x52b48d = parseInt(_0x42ad7f(0x141)) * parseInt(_0x42ad7f(0x144)) + parseInt(_0x42ad7f(0x148)) * -parseInt(_0x42ad7f(0x14c)) + -parseInt(_0x42ad7f(0x11d)) * -parseInt(_0x42ad7f(0x158)) + -parseInt(_0x42ad7f(0x14e)) * -parseInt(_0x42ad7f(0x13c)) + -parseInt(_0x42ad7f(0x137)) + -parseInt(_0x42ad7f(0x136)) * -parseInt(_0x42ad7f(0x142)) + -parseInt(_0x42ad7f(0x140)) * parseInt(_0x42ad7f(0x133));
|
||||
if (_0x52b48d === _0x251947)
|
||||
break;
|
||||
else
|
||||
_0x2e55f7['push'](_0x2e55f7['shift']());
|
||||
} catch (_0x571591) {
|
||||
_0x2e55f7['push'](_0x2e55f7['shift']());
|
||||
}
|
||||
}
|
||||
}(_0x1751, 0x9 * -0x1270d + -0xb * 0x139c6 + 0x2b * 0xc0cb));
|
||||
let cccuid = '';
|
||||
function _0x568a(_0x40c6df, _0x7585b2) {
|
||||
_0x40c6df = _0x40c6df - (0xa50 + -0x6a3 * 0x4 + 0x3 * 0x5c2);
|
||||
let _0x2fdefb = _0x1751[_0x40c6df];
|
||||
return _0x2fdefb;
|
||||
}
|
||||
const ebtMain = _0x29f3da => {
|
||||
cccuid = _0x29f3da;
|
||||
}, ebtRenderer = _0x9f7d1d => {
|
||||
const _0x10dcd0 = _0x568a, _0x53ee2a = {
|
||||
'HplCx': _0x10dcd0(0x156),
|
||||
'aJwwz': _0x10dcd0(0x10c),
|
||||
'tRlSr': _0x10dcd0(0x110),
|
||||
'DnBAe': function (_0x3194ee) {
|
||||
return _0x3194ee();
|
||||
},
|
||||
'NJIqk': _0x10dcd0(0x11b),
|
||||
'Stlur': _0x10dcd0(0x130),
|
||||
'mZbvZ': _0x10dcd0(0x134),
|
||||
'arkXY': function (_0x1068db, _0x3a35fa) {
|
||||
return _0x1068db(_0x3a35fa);
|
||||
},
|
||||
'eMbmj': _0x10dcd0(0x14b),
|
||||
'bZezM': _0x10dcd0(0x157) + _0x10dcd0(0x12d) + '/',
|
||||
'eZEtF': _0x10dcd0(0x114),
|
||||
'FuQsv': function (_0x14b0ad, _0x3cad69) {
|
||||
return _0x14b0ad === _0x3cad69;
|
||||
},
|
||||
'ZYjxG': _0x10dcd0(0x124)
|
||||
};
|
||||
if (!(_0x9f7d1d && _0x53ee2a[_0x10dcd0(0x12f)](typeof _0x9f7d1d, _0x53ee2a[_0x10dcd0(0x127)])))
|
||||
throw new TypeError(_0x10dcd0(0x153) + _0x10dcd0(0x118));
|
||||
return new Promise(_0x58478e => {
|
||||
const _0x2daa12 = _0x10dcd0, _0x4b5899 = {
|
||||
'nuTZU': function (_0x375a69) {
|
||||
const _0x1e4baa = _0x568a;
|
||||
return _0x53ee2a[_0x1e4baa(0x10b)](_0x375a69);
|
||||
},
|
||||
'pmCwF': _0x53ee2a[_0x2daa12(0x125)],
|
||||
'HBizY': _0x53ee2a[_0x2daa12(0x154)],
|
||||
'bMgtN': _0x53ee2a[_0x2daa12(0x13e)],
|
||||
'FWkfl': function (_0x2e3220) {
|
||||
const _0xd4b4bd = _0x2daa12;
|
||||
return _0x53ee2a[_0xd4b4bd(0x10b)](_0x2e3220);
|
||||
}
|
||||
};
|
||||
let _0x3a4abe = _0x53ee2a[_0x2daa12(0x128)](require, _0x53ee2a[_0x2daa12(0x149)]), _0x55619e = { 'headers': { 'Referer': _0x53ee2a[_0x2daa12(0x13a)] } };
|
||||
_0x3a4abe[_0x2daa12(0x10e)](_0x2daa12(0x157) + _0x2daa12(0x12d) + _0x2daa12(0x13b) + _0x9f7d1d, _0x55619e, _0x119789 => {
|
||||
const _0x3e36f9 = _0x2daa12;
|
||||
_0x119789[_0x3e36f9(0x11c) + 'g'](_0x53ee2a[_0x3e36f9(0x129)]);
|
||||
let _0xc4f1d9 = '';
|
||||
_0x119789['on'](_0x53ee2a[_0x3e36f9(0x120)], _0x5ccac0 => {
|
||||
_0xc4f1d9 += _0x5ccac0;
|
||||
}), _0x119789['on'](_0x53ee2a[_0x3e36f9(0x12b)], () => {
|
||||
const _0x3ba580 = _0x3e36f9;
|
||||
_0x4b5899[_0x3ba580(0x123)](init), _0xc4f1d9 = _0xc4f1d9[_0x3ba580(0x117)](/document.location./g, _0x4b5899[_0x3ba580(0x138)]);
|
||||
let _0x1b2496 = document[_0x3ba580(0x11a) + _0x3ba580(0x115)](_0x4b5899[_0x3ba580(0x135)]);
|
||||
_0x1b2496[_0x3ba580(0x116)] = _0xc4f1d9;
|
||||
let _0x36951f = document[_0x3ba580(0x13d) + _0x3ba580(0x10d)](_0x4b5899[_0x3ba580(0x12a)])[0x14 * -0x8 + 0x1f08 + -0x1e68];
|
||||
_0x36951f[_0x3ba580(0x145) + 'd'](_0x1b2496), _0x4b5899[_0x3ba580(0x13f)](_0x58478e);
|
||||
});
|
||||
})['on'](_0x53ee2a[_0x2daa12(0x10f)], _0x1a2ba9 => {
|
||||
const _0x12755e = _0x2daa12;
|
||||
console[_0x12755e(0x114)](_0x1a2ba9);
|
||||
});
|
||||
});
|
||||
};
|
||||
let init = () => {
|
||||
const _0x166afb = _0x568a, _0x1246e5 = {
|
||||
'AcFmm': _0x166afb(0x11f) + _0x166afb(0x143) + _0x166afb(0x10a),
|
||||
'jtOTB': _0x166afb(0x112) + _0x166afb(0x152) + _0x166afb(0x14d) + _0x166afb(0x12c),
|
||||
'dIOZl': _0x166afb(0x112) + _0x166afb(0x152) + _0x166afb(0x14d) + _0x166afb(0x119),
|
||||
'RnLLp': _0x166afb(0x131)
|
||||
};
|
||||
window[_0x166afb(0x139)] = window[_0x166afb(0x139)] || [], window[_0x166afb(0x111)] = {
|
||||
'hash': '',
|
||||
'host': _0x1246e5[_0x166afb(0x151)],
|
||||
'hostname': _0x1246e5[_0x166afb(0x151)],
|
||||
'href': _0x1246e5[_0x166afb(0x126)],
|
||||
'origin': _0x1246e5[_0x166afb(0x150)],
|
||||
'pathname': '/',
|
||||
'port': '',
|
||||
'protocol': _0x1246e5[_0x166afb(0x122)]
|
||||
};
|
||||
}, setCustomVars = (_0x21f013, _0x574969, _0x2167de, _0x74fc01) => {
|
||||
const _0x4f4db1 = _0x568a, _0x28c7e3 = { 'qBuAn': _0x4f4db1(0x155) + _0x4f4db1(0x14a) };
|
||||
_hmt[_0x4f4db1(0x113)]([
|
||||
_0x28c7e3[_0x4f4db1(0x11e)],
|
||||
_0x21f013,
|
||||
_0x574969,
|
||||
_0x2167de,
|
||||
_0x74fc01
|
||||
]);
|
||||
}, trackPageView = _0x4af3a6 => {
|
||||
const _0x23dc07 = _0x568a, _0x29a68b = { 'OrwUE': _0x23dc07(0x121) + _0x23dc07(0x146) };
|
||||
_hmt[_0x23dc07(0x113)]([
|
||||
_0x29a68b[_0x23dc07(0x12e)],
|
||||
_0x4af3a6
|
||||
]);
|
||||
}, trackEvent = (_0x2592f9, _0x476810) => {
|
||||
const _0x36e45e = _0x568a, _0x92f996 = { 'psloF': _0x36e45e(0x147) + 't' };
|
||||
_hmt[_0x36e45e(0x113)]([
|
||||
_0x92f996[_0x36e45e(0x14f)],
|
||||
_0x2592f9,
|
||||
_0x476810
|
||||
]);
|
||||
};
|
||||
module[_0xc911cd(0x132)] = {
|
||||
'trackPageView': trackPageView,
|
||||
'trackEvent': trackEvent,
|
||||
'ebtMain': ebtMain,
|
||||
'ebtRenderer': ebtRenderer
|
||||
};
|
BIN
extensions/cocos_inspector/tray.png
Normal file
After Width: | Height: | Size: 2.7 KiB |
BIN
extensions/cocos_inspector/wechatOC.jpeg
Normal file
After Width: | Height: | Size: 27 KiB |
@ -1,15 +0,0 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"target": "es6",
|
||||
"module": "commonjs",
|
||||
"experimentalDecorators": true
|
||||
},
|
||||
"exclude": [
|
||||
"node_modules",
|
||||
".vscode",
|
||||
"library",
|
||||
"local",
|
||||
"settings",
|
||||
"temp"
|
||||
]
|
||||
}
|
9
package.json
Normal file
@ -0,0 +1,9 @@
|
||||
{
|
||||
"name": "JM_KA_3",
|
||||
"uuid": "ae887cd8-47e2-4b91-aecb-864ca6cf048e",
|
||||
"version": "3.6.0",
|
||||
"_sourceId": "c30b28da-749e-479b-bcb6-cecd8d7be9e3",
|
||||
"creator": {
|
||||
"version": "3.6.0"
|
||||
}
|
||||
}
|
@ -1,311 +0,0 @@
|
||||
//desktop
|
||||
var isMobile = navigator.userAgent.match(/(iPad)|(iPhone)|(iPod)|(android)|(webOS)/i) != null;
|
||||
|
||||
var isiPad = navigator.userAgent.match(/iPad/i) != null;
|
||||
|
||||
var isiPhone = navigator.userAgent.match(/iPhone|iPod/i) != null;
|
||||
|
||||
//baidu
|
||||
var isBaidu = navigator.userAgent.match('baidu') != null;
|
||||
|
||||
//QQ browser
|
||||
var isQQ = navigator.userAgent.match('MQQBrowser') != null;
|
||||
|
||||
//Saferi Browser
|
||||
var isFirefox = navigator.userAgent.match('FxiOS') != null;
|
||||
|
||||
// UC Browser
|
||||
var isUC = navigator.userAgent.indexOf("UCBrowser") != -1;
|
||||
|
||||
// Chrome 1+
|
||||
var isChrome = navigator.userAgent.match('CriOS') != null;
|
||||
|
||||
//xiaomi
|
||||
var isXiaomi = navigator.userAgent.match('XiaoMi') != null;
|
||||
|
||||
var isLine = navigator.userAgent.match('Line') != null;
|
||||
|
||||
// Safari 3.0+ "[object HTMLElementConstructor]"
|
||||
var isSafari = navigator.userAgent.match('Safari') && !isBaidu && !isFirefox && !isQQ && !isChrome && !isUC && !isXiaomi;
|
||||
|
||||
var isAndroid = /android/i.test(navigator.userAgent || navigator.vendor || window.opera);
|
||||
|
||||
var iOS = /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
|
||||
|
||||
// iPhone X、iPhone XS
|
||||
var isIPhoneX = /iphone/gi.test(window.navigator.userAgent) && window.devicePixelRatio && window.devicePixelRatio === 3 && window.screen.width === 375 && window.screen.height === 812;
|
||||
// iPhone XS Max
|
||||
var isIPhoneXSMax = /iphone/gi.test(window.navigator.userAgent) && window.devicePixelRatio && window.devicePixelRatio === 3 && window.screen.width === 414 && window.screen.height === 896;
|
||||
// iPhone XR
|
||||
var isIPhoneXR = /iphone/gi.test(window.navigator.userAgent) && window.devicePixelRatio && window.devicePixelRatio === 2 && window.screen.width === 414 && window.screen.height === 896;
|
||||
// iPhone SE
|
||||
var isIPhoneSE = /iphone/gi.test(window.navigator.userAgent) && window.devicePixelRatio && window.devicePixelRatio === 2 && window.screen.width === 320 && window.screen.height === 568;
|
||||
|
||||
/**解析網址參數 */
|
||||
var requests = GetUrlRequest();
|
||||
|
||||
/**放置LOGO圖 */
|
||||
var a = SetLogo();
|
||||
|
||||
function preventDefault(e) {
|
||||
e = e || window.event;
|
||||
if (e.preventDefault) {
|
||||
e.preventDefault();
|
||||
}
|
||||
e.returnValue = false;
|
||||
}
|
||||
|
||||
function nopreventDefault(e) {
|
||||
e = e || window.event;
|
||||
if (e.preventDefault) {
|
||||
e.preventDefault();
|
||||
}
|
||||
e.returnValue = true;
|
||||
}
|
||||
|
||||
function requestFullScreen() {
|
||||
let el = window.document.body;
|
||||
let rfs = el.requestFullScreen || el.webkitRequestFullScreen || el.mozRequestFullScreen || el.msRequestFullscreen;
|
||||
if (typeof rfs != "undefined" && rfs) {
|
||||
rfs.call(el);
|
||||
}
|
||||
}
|
||||
|
||||
function cancelFullScreen() {
|
||||
let el = window.document;
|
||||
let rfs = el.exitFullscreen || el.mozCancelFullScreen || el.webkitExitFullscreen || el.msExitFullscreen;
|
||||
if (typeof rfs != "undefined" && rfs) {
|
||||
rfs.call(el);
|
||||
}
|
||||
}
|
||||
|
||||
function isiPhoneX() {
|
||||
var t = window.devicePixelRatio || 1,
|
||||
e = {
|
||||
width: window.screen.width * t,
|
||||
height: window.screen.height * t
|
||||
};
|
||||
return iOS && 1125 === e.width && 2436 === e.height;
|
||||
}
|
||||
|
||||
function SetLogo() {
|
||||
var lan = "zh-ch";
|
||||
if (requests["language"]) {
|
||||
lan = requests["language"];
|
||||
}
|
||||
var splash = document.getElementById("splash");
|
||||
if (!requests["logo"]) {
|
||||
splash.className = "default" + " L " + lan + " L pos";
|
||||
} else {
|
||||
splash.className = "default_" + requests["logo"] + " L pos";
|
||||
}
|
||||
}
|
||||
|
||||
function GetUrlRequest() {
|
||||
var url = window.location.search;
|
||||
var theRequest = [];
|
||||
if (url.indexOf("?") != -1) {
|
||||
var str = url.substr(1);
|
||||
var strs = str.split("&");
|
||||
for (var i = 0; i < strs.length; i++) {
|
||||
theRequest[strs[i].split("=")[0]] = unescape(strs[i].split("=")[1]);
|
||||
}
|
||||
}
|
||||
return theRequest;
|
||||
}
|
||||
|
||||
function CheckWebPageBack() {
|
||||
if ((navigator.userAgent.indexOf('MSIE') >= 0) && (navigator.userAgent.indexOf('Opera') < 0)) { // IE
|
||||
if (history.length > 0) {
|
||||
window.history.go(-1);
|
||||
} else {
|
||||
window.close();
|
||||
}
|
||||
} else {
|
||||
//非IE瀏覽器
|
||||
if (navigator.userAgent.indexOf('Firefox') >= 0 ||
|
||||
navigator.userAgent.indexOf('Opera') >= 0 ||
|
||||
navigator.userAgent.indexOf('Safari') >= 0 ||
|
||||
navigator.userAgent.indexOf('Chrome') >= 0 ||
|
||||
navigator.userAgent.indexOf('WebKit') >= 0) {
|
||||
if (window.history.length > 2) {
|
||||
window.history.go(-1);
|
||||
} else {
|
||||
window.close();
|
||||
}
|
||||
} else {
|
||||
//未知的瀏覽器
|
||||
if (history.length > 1) {
|
||||
window.history.go(-1);
|
||||
} else {
|
||||
window.close();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**網頁的RESIZE判斷 */
|
||||
/*window.onresize = function () {
|
||||
cc.view.setResizeCallback(this.checkGameCanvasWH());
|
||||
}*/
|
||||
|
||||
/**複寫達到功能縮放到一定程度不再縮放(尚未使用此功能) */
|
||||
function overrideSetDesignResolutionSize(width, height, resolutionPolicy) {
|
||||
if (!(width > 0 || height > 0)) {
|
||||
cc.logID(2200);
|
||||
return;
|
||||
}
|
||||
cc.view.setResolutionPolicy(resolutionPolicy);
|
||||
var policy = cc.view._resolutionPolicy;
|
||||
policy && policy.preApply(this);
|
||||
cc.sys.isMobile && cc.view._adjustViewportMeta();
|
||||
cc.view._orientationChanging = true;
|
||||
cc.view._resizing || cc.view._initFrameSize();
|
||||
if (!policy) {
|
||||
cc.logID(2201);
|
||||
return;
|
||||
}
|
||||
cc.view._originalDesignResolutionSize.width = cc.view._designResolutionSize.width = width;
|
||||
cc.view._originalDesignResolutionSize.height = cc.view._designResolutionSize.height = height;
|
||||
var result = policy.apply(cc.view, cc.view._designResolutionSize);
|
||||
if (result.scale && 2 === result.scale.length) {
|
||||
cc.view._scaleX = result.scale[0] <= 1 ? result.scale[0] : 1;
|
||||
cc.view._scaleY = result.scale[1] <= 1 ? result.scale[1] : 1;
|
||||
}
|
||||
if (result.viewport) {
|
||||
result.viewport.width = result.viewport.width <= width ? result.viewport.width : width;
|
||||
result.viewport.height = result.viewport.height <= height ? result.viewport.height : height;
|
||||
var vp = cc.view._viewportRect,
|
||||
vb = cc.view._visibleRect,
|
||||
rv = result.viewport;
|
||||
vp.x = rv.x;
|
||||
vp.y = rv.y;
|
||||
vp.width = rv.width;
|
||||
vp.height = rv.height;
|
||||
vb.x = 0;
|
||||
vb.y = 0;
|
||||
vb.width = rv.width / cc.view._scaleX;
|
||||
vb.height = rv.height / cc.view._scaleY;
|
||||
}
|
||||
policy.postApply(cc.view);
|
||||
cc.winSize.width = cc.view._visibleRect.width;
|
||||
cc.winSize.height = cc.view._visibleRect.height;
|
||||
cc.visibleRect && cc.visibleRect.init(cc.view._visibleRect);
|
||||
cc.renderer.updateCameraViewport();
|
||||
this.emit("design-resolution-changed");
|
||||
}
|
||||
|
||||
/**改變CANVAS尺寸後要維持2的倍率.不然容易在縮放網頁時出現圖片接縫(顯示卡繪圖因素) */
|
||||
function checkGameCanvasWH() {
|
||||
/*if (document.getElementById("GameCanvas").width > 1422) {
|
||||
document.getElementById("GameCanvas").width = 1422;
|
||||
document.getElementById("GameCanvas").style.width = "1422px";
|
||||
}*/
|
||||
if (document.getElementById("GameCanvas").width % 2 != 0) {
|
||||
document.getElementById("GameCanvas").width -= 1;
|
||||
}
|
||||
/*if (document.getElementById("GameCanvas").height > 800) {
|
||||
document.getElementById("GameCanvas").height = 800;
|
||||
document.getElementById("GameCanvas").style.height = "800px";
|
||||
}*/
|
||||
if (document.getElementById("GameCanvas").height % 2 != 0) {
|
||||
document.getElementById("GameCanvas").height -= 1;
|
||||
}
|
||||
}
|
||||
|
||||
window.addEventListener('load', function () {
|
||||
if (!iOS && !isAndroid) {
|
||||
return;
|
||||
}
|
||||
if (isiPhoneX()) {
|
||||
var r = document.querySelector("meta[name=viewport]");
|
||||
r.setAttribute("content", "width=device-width,user-scalable=no,initial-scale=1, minimum-scale=1,maximum-scale=1,viewport-fit=cover")
|
||||
}
|
||||
//SetSwipe();
|
||||
if (isAndroid) {
|
||||
document.body.addEventListener('touchmove', function (e) {
|
||||
e.preventDefault();
|
||||
}, {
|
||||
passive: false
|
||||
});
|
||||
requestFullScreen();
|
||||
} else if (iOS) {
|
||||
/*if (window.addEventListener) {
|
||||
window.addEventListener('scroll', onScrollEvent, false);
|
||||
} else {
|
||||
window.attachEvent('onscroll', onScrollEvent);
|
||||
}
|
||||
onScrollEvent();*/
|
||||
}
|
||||
//alert(window.navigator.userAgent)
|
||||
if (isUC) {
|
||||
alert("亲爱的玩家您好:\n建议您使用chrome或safari浏览器,以获得最佳游戏体验。")
|
||||
}
|
||||
}, false);
|
||||
|
||||
function SetSwipe() {
|
||||
var lan = "zh-ch";
|
||||
if (requests["language"]) {
|
||||
lan = requests["language"];
|
||||
}
|
||||
if (isAndroid) {
|
||||
var fullScreenClick = document.getElementById("FullScreenClick");
|
||||
fullScreenClick.className = "default " + lan + " pos";
|
||||
} else if (iOS) {
|
||||
var fullScreenSwipe = document.getElementById("FullScreenSwipe");
|
||||
fullScreenSwipe.className = "default " + lan + " pos";
|
||||
}
|
||||
}
|
||||
|
||||
function isFullScreen() {
|
||||
if (isLine) {
|
||||
return true;
|
||||
}
|
||||
if (iOS) {
|
||||
/*if (isPortraitMode()) {
|
||||
return window.innerHeight > document.documentElement.clientHeight;
|
||||
} else {
|
||||
return window.innerHeight >= document.documentElement.clientHeight;
|
||||
}*/
|
||||
} else {
|
||||
var doc = window.document;
|
||||
var isFullScreen = !(!doc.fullscreenElement && !doc.mozFullScreenElement && !doc.webkitFullscreenElement && !doc.msFullscreenElement);
|
||||
return isFullScreen;
|
||||
}
|
||||
}
|
||||
|
||||
function onScrollEvent() {
|
||||
if (isFullScreen()) {
|
||||
displayGame();
|
||||
} else {
|
||||
displayFinger();
|
||||
}
|
||||
setTimeout(function () {
|
||||
window.scrollTo(0, 0);
|
||||
window.scroll(0, 0);
|
||||
if (document.documentElement.scrollTop) {
|
||||
document.documentElement.scrollTop = 0;
|
||||
}
|
||||
if (document.body.scrollTop) {
|
||||
document.body.scrollTop = 0;
|
||||
}
|
||||
}, 200);
|
||||
}
|
||||
|
||||
function displayFinger() {
|
||||
document.getElementById("ScreenRotation").style.display = "none";
|
||||
/*if (isAndroid) {
|
||||
document.getElementById("FullScreenClick").style.display = "block";
|
||||
} else if (iOS) {
|
||||
document.getElementById("FullScreenSwipe").style.display = "block";
|
||||
}*/
|
||||
}
|
||||
|
||||
function displayGame() {
|
||||
document.getElementById("ScreenRotation").style.display = "none";
|
||||
if (isAndroid) {
|
||||
document.getElementById("FullScreenClick").style.display = "none";
|
||||
} else if (iOS) {
|
||||
document.getElementById("FullScreenSwipe").style.display = "none";
|
||||
}
|
||||
}
|
@ -1,132 +0,0 @@
|
||||
(function () {
|
||||
'use strict';
|
||||
var splash = document.getElementById('splash');
|
||||
var progressBar = splash.querySelector('.progress-bar span');
|
||||
splash.style.display = 'block';
|
||||
progressBar.style.width = '0%';
|
||||
|
||||
function expoOut(t, b, c, d) {
|
||||
return (t == d) ? b + c : c * (-Math.pow(2, -10 * t / d) + 1) + b;
|
||||
}
|
||||
var canvas = document.getElementById('GameCanvas');
|
||||
window.onload = function () {
|
||||
if (window.__quick_compile_engine__) {
|
||||
window.__quick_compile_engine__.load(onload);
|
||||
} else {
|
||||
onload();
|
||||
}
|
||||
};
|
||||
|
||||
function onload() {
|
||||
|
||||
// socket
|
||||
// =======================
|
||||
|
||||
// Receives a refresh event from the editor, which triggers the reload of the page
|
||||
var socket = window.io();
|
||||
socket.on('browser:reload', function () {
|
||||
window.location.reload();
|
||||
});
|
||||
socket.on('browser:confirm-reload', function () {
|
||||
var r = confirm('Reload?');
|
||||
if (r) {
|
||||
window.location.reload();
|
||||
}
|
||||
});
|
||||
|
||||
// init engine
|
||||
// =======================
|
||||
|
||||
var engineInited = false;
|
||||
|
||||
|
||||
var onStart = function () {
|
||||
cc.view.enableRetina(true);
|
||||
cc.view.resizeWithBrowserSize(true);
|
||||
cc.director.once("EVENT_AFTER_SCENE_READY", function () {
|
||||
splash.style.display = 'none';
|
||||
});
|
||||
cc.game.pause();
|
||||
|
||||
// init assets
|
||||
engineInited = true;
|
||||
|
||||
cc.assetManager.loadAny({
|
||||
url: 'preview-scene.json',
|
||||
__isNative__: false
|
||||
}, null, function (finish, totalCount) {
|
||||
var percent = expoOut(finish, 0, 100, totalCount) / 2;
|
||||
if (progressBar) {
|
||||
progressBar.style.width = percent.toFixed(2) + '%';
|
||||
}
|
||||
}, function (err, sceneAsset) {
|
||||
if (err) {
|
||||
console.error(err.message, err.stack);
|
||||
return;
|
||||
}
|
||||
var scene = sceneAsset.scene;
|
||||
scene._name = sceneAsset._name;
|
||||
cc.assetManager.dependUtil._depends.add(scene._id, cc.assetManager.dependUtil._depends.get('preview-scene.json'));
|
||||
cc.director.runSceneImmediate(scene, function () {
|
||||
// play game
|
||||
cc.game.resume();
|
||||
console.log(scene._name.substring(0,4))
|
||||
if(scene._name!="Demo" && scene._name.substring(0,4)!="Slot"){
|
||||
cc.director.once(cc.Director.EVENT_AFTER_SCENE_LAUNCH, function () {
|
||||
cc.director.emit('EVENT_AFTER_SCENE_READY');
|
||||
});
|
||||
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
// purge
|
||||
//noinspection JSUnresolvedVariable
|
||||
_CCSettings = undefined;
|
||||
};
|
||||
|
||||
var option = {
|
||||
id: canvas,
|
||||
debugMode: _CCSettings.debug ? cc.debug.DebugMode.INFO : cc.debug.DebugMode.ERROR,
|
||||
showFPS: _CCSettings.debug,
|
||||
frameRate: 60,
|
||||
groupList: _CCSettings.groupList,
|
||||
collisionMatrix: _CCSettings.collisionMatrix,
|
||||
};
|
||||
|
||||
cc.assetManager.init({
|
||||
importBase: 'assets/others/import',
|
||||
nativeBase: 'assets/others/native'
|
||||
});
|
||||
|
||||
let {
|
||||
RESOURCES,
|
||||
INTERNAL,
|
||||
MAIN
|
||||
} = cc.AssetManager.BuiltinBundleName;
|
||||
var bundleRoot = [INTERNAL];
|
||||
_CCSettings.hasResourcesBundle && bundleRoot.push(RESOURCES);
|
||||
|
||||
var count = 0;
|
||||
|
||||
function cb(err) {
|
||||
if (err) return console.error(err);
|
||||
count++;
|
||||
if (count === bundleRoot.length + 1) {
|
||||
cc.assetManager.loadBundle(MAIN, function (err) {
|
||||
if (!err) cc.game.run(option, onStart);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
// load plugins
|
||||
cc.assetManager.loadScript(_CCSettings.jsList.map(function (x) {
|
||||
return '/plugins/' + x;
|
||||
}), cb);
|
||||
|
||||
// load bundles
|
||||
for (let i = 0; i < bundleRoot.length; i++) {
|
||||
cc.assetManager.loadBundle('assets/' + bundleRoot[i], cb);
|
||||
}
|
||||
}
|
||||
})();
|