This commit is contained in:
libccy 2017-02-13 16:51:00 +08:00
parent 9f306f67cc
commit 27eaadcf94
3 changed files with 66 additions and 4 deletions

View File

@ -24103,8 +24103,67 @@
}; };
for(var i in lib.configMenu){ 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'); var active=start.firstChild.querySelector('.active');
if(!active){ if(!active){

View File

@ -1741,12 +1741,12 @@ div:not(.handcards)>.card>.info>span,
font-family: 'xinwei'; font-family: 'xinwei';
width: 100%; width: 100%;
height: 100%; height: 100%;
line-height: 68px; line-height: 50px;
left: 0; left: 0;
margin: 0; margin: 0;
padding: 0; padding: 0;
text-align: center; text-align: center;
font-size: 70px; font-size: 50px;
opacity: 0; opacity: 0;
pointer-events: none; pointer-events: none;
text-shadow: none; text-shadow: none;
@ -1757,7 +1757,7 @@ div:not(.handcards)>.card>.info>span,
text-shadow: none; text-shadow: none;
} }
.player>.turned>div{ .player>.turned>div{
top:calc(50% - 68px); top:calc(50% - 50px);
width: 100%; width: 100%;
left: 0; left: 0;
} }

View File

@ -135,6 +135,9 @@
border-radius: 0 !important; border-radius: 0 !important;
pointer-events: none; pointer-events: none;
} }
#arena:not(.chess) .player[data-position='0']>.turned{
width: 120px;
}
#arena:not(.chess) .player[data-position='0']>.chain{ #arena:not(.chess) .player[data-position='0']>.chain{
width: 120px width: 120px
} }