From 27eaadcf94bb285f41d6addcde8e9c1148ecaafc Mon Sep 17 00:00:00 2001 From: libccy Date: Mon, 13 Feb 2017 16:51:00 +0800 Subject: [PATCH] t --- game/game.js | 61 ++++++++++++++++++++++++++++++++++++++- layout/default/layout.css | 6 ++-- layout/mobile/layout.css | 3 ++ 3 files changed, 66 insertions(+), 4 deletions(-) diff --git a/game/game.js b/game/game.js index f0211a490..c2224d014 100644 --- a/game/game.js +++ b/game/game.js @@ -24103,8 +24103,67 @@ }; for(var i in lib.configMenu){ - createModeConfig(i,start.firstChild); + if(i!='others') createModeConfig(i,start.firstChild); } + (function(){ + if(!lib.device&&!lib.node) return; + var page=ui.create.div('#create-extension'); + var node=ui.create.div('.menubutton.large','文件',start.firstChild,clickMode); + node.link=page; + node.mode='create'; + var pageboard=ui.create.div(page); + var inputExtLine=ui.create.div(pageboard); + inputExtLine.style.padding='10px'; + inputExtLine.style.height='22px'; + inputExtLine.style.lineHeight='22px'; + inputExtLine.style.whiteSpace='nowrap'; + inputExtLine.style.overflow='visible'; + var inputExtSpan=document.createElement('span'); + inputExtSpan.innerHTML='扩展名:'; + inputExtLine.appendChild(inputExtSpan); + + var dashboard=ui.create.div(pageboard); + var clickDash=function(){ + ui.create.templayer(); + pageboard.hide(); + this.link.show(); + if(this.link.init){ + this.link.init(); + } + }; + var createDash=function(str1,str2,node){ + var dash=ui.create.div('.menubutton.large.dashboard'); + dashboard.appendChild(dash); + page.appendChild(node); + dash.link=node; + node.link=dash; + dash.listen(clickDash); + lib.setScroll(node); + ui.create.div('',str1,dash); + ui.create.div('',str2,dash); + }; + var dash1=(function(){ + var page=ui.create.div('.hidden.menu-buttons'); + return page; + }()); + var dash2=(function(){ + var page=ui.create.div('.hidden.menu-buttons'); + return page; + }()); + var dash3=(function(){ + var page=ui.create.div('.hidden.menu-buttons'); + return page; + }()); + var dash4=(function(){ + var page=ui.create.div('.hidden.menu-buttons'); + return page; + }()); + createDash('将','编辑武将',dash1); + createDash('卡','编辑卡牌',dash2); + createDash('技','编辑技能',dash3); + createDash('码','编辑代码',dash4); + }); + createModeConfig('others',start.firstChild); var active=start.firstChild.querySelector('.active'); if(!active){ diff --git a/layout/default/layout.css b/layout/default/layout.css index 12d229ab0..f643edf45 100644 --- a/layout/default/layout.css +++ b/layout/default/layout.css @@ -1741,12 +1741,12 @@ div:not(.handcards)>.card>.info>span, font-family: 'xinwei'; width: 100%; height: 100%; - line-height: 68px; + line-height: 50px; left: 0; margin: 0; padding: 0; text-align: center; - font-size: 70px; + font-size: 50px; opacity: 0; pointer-events: none; text-shadow: none; @@ -1757,7 +1757,7 @@ div:not(.handcards)>.card>.info>span, text-shadow: none; } .player>.turned>div{ - top:calc(50% - 68px); + top:calc(50% - 50px); width: 100%; left: 0; } diff --git a/layout/mobile/layout.css b/layout/mobile/layout.css index 6b12d0343..ca9c7ae78 100644 --- a/layout/mobile/layout.css +++ b/layout/mobile/layout.css @@ -135,6 +135,9 @@ border-radius: 0 !important; pointer-events: none; } +#arena:not(.chess) .player[data-position='0']>.turned{ + width: 120px; +} #arena:not(.chess) .player[data-position='0']>.chain{ width: 120px }