fix
This commit is contained in:
parent
03b88e85a3
commit
1eea54de7d
27
game/game.js
27
game/game.js
|
@ -3538,7 +3538,7 @@
|
||||||
var fileTransfer = new FileTransfer();
|
var fileTransfer = new FileTransfer();
|
||||||
url=lib.updateURL+url;
|
url=lib.updateURL+url;
|
||||||
folder=lib.assetURL+folder;
|
folder=lib.assetURL+folder;
|
||||||
fileTransfer.download(encodeURI(url),folder,onsuccess,onerror);
|
fileTransfer.download(encodeURI(url),encodeURI(folder),onsuccess,onerror);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -20732,7 +20732,13 @@
|
||||||
throw('err');
|
throw('err');
|
||||||
}
|
}
|
||||||
_status.importingExtension=true;
|
_status.importingExtension=true;
|
||||||
lib.init.js('extension/'+extname,'extension',function(){
|
var deletegame=false;
|
||||||
|
if(!window.game){
|
||||||
|
window.game=game;
|
||||||
|
deletegame=true;
|
||||||
|
}
|
||||||
|
lib.init.js(lib.assetURL+'extension/'+extname,'extension',function(){
|
||||||
|
if(deletegame) delete window.game;
|
||||||
_status.importingExtension=false;
|
_status.importingExtension=false;
|
||||||
if(!game.importedPack) throw('err');
|
if(!game.importedPack) throw('err');
|
||||||
if(lib.config.extensions.contains(extname)){
|
if(lib.config.extensions.contains(extname)){
|
||||||
|
@ -20749,6 +20755,7 @@
|
||||||
delete game.importedPack;
|
delete game.importedPack;
|
||||||
onsuccess();
|
onsuccess();
|
||||||
},function(){
|
},function(){
|
||||||
|
if(deletegame) delete window.game;
|
||||||
_status.importingExtension=false;
|
_status.importingExtension=false;
|
||||||
onerror();
|
onerror();
|
||||||
});
|
});
|
||||||
|
@ -20786,6 +20793,12 @@
|
||||||
|
|
||||||
node.update=function(){
|
node.update=function(){
|
||||||
if(!game.download) return;
|
if(!game.download) return;
|
||||||
|
var buttons=page.querySelectorAll('.menubutton.text.active');
|
||||||
|
for(var i=0;i<buttons.length;i++){
|
||||||
|
if(buttons[i].innerHTML=='正在下载'){
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
if(!window.JSZip){
|
if(!window.JSZip){
|
||||||
lib.init.js(lib.assetURL+'game','jszip');
|
lib.init.js(lib.assetURL+'game','jszip');
|
||||||
}
|
}
|
||||||
|
@ -20989,7 +21002,14 @@
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
game.saveConfig('check_version',update.version);
|
game.saveConfig('check_version',update.version);
|
||||||
if(update.version!=lib.version){
|
var bool;
|
||||||
|
if(update.version.indexOf('beta')!=-1){
|
||||||
|
bool=lib.config.debug;
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
bool=(update.version!=lib.version);
|
||||||
|
}
|
||||||
|
if(bool){
|
||||||
var str='有新版本'+update.version+'可用,是否下载?';
|
var str='有新版本'+update.version+'可用,是否下载?';
|
||||||
if(navigator.notification&&navigator.notification.confirm){
|
if(navigator.notification&&navigator.notification.confirm){
|
||||||
var str2=update.changeLog[0];
|
var str2=update.changeLog[0];
|
||||||
|
@ -21415,6 +21435,7 @@
|
||||||
text.style.left='30px';
|
text.style.left='30px';
|
||||||
text.style.top='50px';
|
text.style.top='50px';
|
||||||
text.style.wordBreak='break-all';
|
text.style.wordBreak='break-all';
|
||||||
|
lib.setScroll(text);
|
||||||
page.appendChild(text);
|
page.appendChild(text);
|
||||||
|
|
||||||
// var caption=ui.create.div('','输入命令',page);
|
// var caption=ui.create.div('','输入命令',page);
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
window.noname_update={
|
window.noname_update={
|
||||||
version:'1.8.10',
|
version:'1.8.10.1',
|
||||||
changeLog:[
|
changeLog:[
|
||||||
'扩展改进'
|
'扩展改进'
|
||||||
]
|
]
|
||||||
|
|
|
@ -180,6 +180,7 @@
|
||||||
height: 23px;
|
height: 23px;
|
||||||
font-size: 26px;
|
font-size: 26px;
|
||||||
line-height: 26px;
|
line-height: 26px;
|
||||||
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
.menu.main>.menu-content>div>.left.pane>.menubutton.off{
|
.menu.main>.menu-content>div>.left.pane>.menubutton.off{
|
||||||
opacity: 0.5;
|
opacity: 0.5;
|
||||||
|
|
Loading…
Reference in New Issue