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,6 +22013,10 @@
} }
if(!lib.config.asset_version){ if(!lib.config.asset_version){
setTimeout(function(){ setTimeout(function(){
if(!game.download){
game.saveConfig('asset_version','无');
}
else{
var func=function(){ var func=function(){
if(confirm('是否下载图片和音频素材约100MB')){ if(confirm('是否下载图片和音频素材约100MB')){
if(!ui.arena.classList.contains('menupaused')){ if(!ui.arena.classList.contains('menupaused')){
@ -22031,6 +22035,7 @@
else{ else{
func(); func();
} }
}
},4000); },4000);
} }
clearTimeout(window.resetGameTimeout); clearTimeout(window.resetGameTimeout);

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';