From 6c4bddd2e0d0b71604cdf849b7025c5bf5ce7b00 Mon Sep 17 00:00:00 2001 From: libccy Date: Mon, 13 Feb 2017 23:29:37 +0800 Subject: [PATCH] 2 --- game/game.js | 21 +++++++++++++++------ layout/default/layout.css | 4 ++++ 2 files changed, 19 insertions(+), 6 deletions(-) diff --git a/game/game.js b/game/game.js index c4f9a2124..1f7dff08c 100644 --- a/game/game.js +++ b/game/game.js @@ -24205,15 +24205,15 @@ str+=',导入时间可能较长'; } var assetLoaded=function(){ - promptnode.firstChild.innerHTML='导入成功。重新启动×'; - promptnode.querySelectorAll('span')[0].onclick=game.reload; - promptnode.querySelectorAll('span')[1].onclick=function(){ + promptnode.firstChild.innerHTML='导入成功。重新启动×'; + promptnode.firstChild.querySelectorAll('span')[0].onclick=game.reload; + promptnode.firstChild.querySelectorAll('span')[1].onclick=function(){ promptnode.style.display='none'; } }; if(confirm('本次将导入'+str+',是否继续?')){ - promptnode.firstChild.innerHTML='正在导入... 详细信息×'; - promptnode.querySelectorAll('span').onclick=ui.click.consoleMenu; + promptnode.firstChild.innerHTML='正在导入... 详细信息'; + promptnode.firstChild.querySelector('span.hrefnode').onclick=ui.click.consoleMenu; if(lib.node&&lib.node.fs){ var access=function(str,dir,callback){ if(!dir.length){ @@ -24242,6 +24242,7 @@ var writeFile=function(){ if(filelist.length){ var str=filelist.shift(); + game.print(str.slice(str.lastIndexOf('/')+1)); lib.node.fs.writeFile(__dirname+'/'+str,zip.files[str].asNodeBuffer(),null,writeFile); } else{ @@ -24331,6 +24332,11 @@ ui.create.div('',str1,dash); ui.create.div('',str2,dash); }; + var getFileList=function(dir,callback){ + if(lib.node&&lib.node.fs){ + + } + }; var dash1=(function(){ var page=ui.create.div('.hidden.menu-buttons'); ui.create.div('.config.more.margin-bottom','
返回',page,function(){ @@ -24338,6 +24344,9 @@ page.hide(); pageboard.show(); }); + page.init=function(){ + console.log(1); + }; return page; }()); var dash2=(function(){ @@ -25504,7 +25513,7 @@ exportExtLine.style.width='calc(100% - 40px)'; exportExtLine.style.textAlign='left'; exportExtLine.style.marginBottom='5px'; - exportExtLine.innerHTML='重启后生效。立即重启×'; + exportExtLine.innerHTML='重启后生效。立即重启×'; exportExtLine.querySelectorAll('span')[0].onclick=game.reload; exportExtLine.querySelectorAll('span')[1].onclick=function(){ exportExtLine.style.display='none'; diff --git a/layout/default/layout.css b/layout/default/layout.css index b6704261b..f476014ba 100644 --- a/layout/default/layout.css +++ b/layout/default/layout.css @@ -2705,6 +2705,7 @@ div:not(.handcards)>.card>.info>span, #window:not(.nopointer) .choosedouble.character, #window:not(.nopointer) .config.more, #window:not(.nopointer) .dashboard, +#window:not(.nopointer) .hrefnode, #window:not(.nopointer) .pointerdiv, #window:not(.nopointer) .pointernode div, #window:not(.nopointer) .pointerspan span, @@ -2921,6 +2922,9 @@ div:hover>.intro { top: 8%; } +.hrefnode{ + text-decoration: underline; +} .underline,.underlinenode { padding: 3px; width: auto;