This commit is contained in:
libccy 2016-04-22 15:37:06 +08:00
parent d64662dea3
commit 2f15643b6d
2 changed files with 20 additions and 16 deletions

View File

@ -22013,23 +22013,28 @@
} }
if(!lib.config.asset_version){ if(!lib.config.asset_version){
setTimeout(function(){ setTimeout(function(){
var func=function(){ if(!game.download){
if(confirm('是否下载图片和音频素材约100MB')){ game.saveConfig('asset_version','无');
if(!ui.arena.classList.contains('menupaused')){
ui.click.configMenu();
ui.click.menuTab('帮助');
}
setTimeout(game.checkForAssetUpdate,500);
}
else{
game.saveConfig('asset_version','无');
}
}
if(_status.new_tutorial){
_status.new_tutorial=func;
} }
else{ else{
func(); var func=function(){
if(confirm('是否下载图片和音频素材约100MB')){
if(!ui.arena.classList.contains('menupaused')){
ui.click.configMenu();
ui.click.menuTab('帮助');
}
setTimeout(game.checkForAssetUpdate,500);
}
else{
game.saveConfig('asset_version','无');
}
}
if(_status.new_tutorial){
_status.new_tutorial=func;
}
else{
func();
}
} }
},4000); },4000);
} }

View File

@ -49,7 +49,6 @@ mode.chess={
game.finishCards(); game.finishCards();
ui.chessContainer=ui.create.div('#chess-container',ui.arena); ui.chessContainer=ui.create.div('#chess-container',ui.arena);
lib.setScroll(ui.chessContainer); lib.setScroll(ui.chessContainer);
ui.chessContainer.style.WebkitOverflowScrolling='touch';
ui.chess=ui.create.div('#chess',ui.chessContainer); ui.chess=ui.create.div('#chess',ui.chessContainer);
ui.canvas2=document.createElement('canvas'); ui.canvas2=document.createElement('canvas');
ui.canvas2.id='canvas2'; ui.canvas2.id='canvas2';