From 3960e270a1c17861358884ac8a45e0f89680f40f Mon Sep 17 00:00:00 2001 From: libccy Date: Tue, 7 Feb 2017 19:14:07 +0800 Subject: [PATCH] v --- game/game.js | 26 +++++------ layout/default/menu.css | 8 ++++ mode/versus.js | 95 +---------------------------------------- 3 files changed, 22 insertions(+), 107 deletions(-) diff --git a/game/game.js b/game/game.js index 469c08338..6b3822880 100644 --- a/game/game.js +++ b/game/game.js @@ -2792,7 +2792,6 @@ map.enable_all.show(); map.four_assign.show(); map.expand_dialog.show(); - // map.four_cross.show(); } else{ map.change_choice.show(); @@ -2801,8 +2800,7 @@ map.ladder_reset.hide(); map.enable_all.hide(); map.four_assign.hide(); - map.expand_dialog.show(); - // map.four_cross.hide(); + map.expand_dialog.hide(); } if(config.versus_mode=='jiange'||config.versus_mode=='two'){ map.free_choose.show(); @@ -2831,7 +2829,8 @@ name:'游戏模式', init:'standard', item:{ - standard:'标准', + standard:'自由', + three:'统率', jiange:'剑阁', two:'2v2', four:'4v4' @@ -2862,12 +2861,6 @@ frequent:true, restart:true, }, - // four_cross:{ - // name:'交叉座位', - // init:false, - // frequent:true, - // restart:true, - // }, free_choose:{ name:'自由选将', init:true, @@ -27944,7 +27937,8 @@ var clickCaptNode=function(e){ delete _status.filterCharacter; ui.window.classList.remove('shortcutpaused'); - filternode.remove(); + filternode.delete(); + filternode.classList.remove('shown'); clickCapt.call(this.link,e); }; if(get.is.phoneLayout()){ @@ -27953,9 +27947,11 @@ filternode=ui.create.div('.popup-container.filter-character'); ui.create.div(filternode); filternode.listen(function(e){ + if(this.classList.contains('removing')) return; delete _status.filterCharacter; ui.window.classList.remove('shortcutpaused'); - this.remove(); + this.delete(); + this.classList.remove('shown'); e.stopPropagation(); }); for(var i=0;i0){ filternode.firstChild.style.top=(dh/2)+'px'; } + else{ + filternode.firstChild.style.top=''; + } } else{ if(newlined2.style.display=='none'){ diff --git a/layout/default/menu.css b/layout/default/menu.css index a9dcfe2e4..b47145195 100644 --- a/layout/default/menu.css +++ b/layout/default/menu.css @@ -16,6 +16,14 @@ .popup-container.filter-character{ text-align: center; overflow: scroll; + opacity: 0; + transition: all 0.3s; +} +.popup-container.filter-character.shown{ + opacity: 1; +} +.popup-container.filter-character.removing>div{ + pointer-events: none; } .popup-container.filter-character>div{ left: 0; diff --git a/mode/versus.js b/mode/versus.js index d50103cf2..bda129bb6 100644 --- a/mode/versus.js +++ b/mode/versus.js @@ -314,16 +314,7 @@ mode.versus={ _status.round=0; if(lib.storage.single_control){ game.addGlobalSkill('versus_swap'); - ui.autoreplace=ui.create.div('.caption.normal'); - ui.autoreplace.innerHTML='
自动换人
'; - ui.autoreplace.style.textAlign='center'; - if(lib.storage.autoreplaceinnerhtml){ - ui.autoreplace.classList.add('on') - } - ui.autoreplace.listen(game.switchAutoreplace); - // ui.versusreplace=ui.create.system('换人',null,true); - // lib.setPopped(ui.versusreplace,game.versusHoverReplace); if(game.players.length>2&&lib.config.show_handcardbutton){ ui.versushs=ui.create.system('手牌',null,true); lib.setPopped(ui.versushs,game.versusHoverHandcards,220); @@ -2216,48 +2207,6 @@ mode.versus={ game.modeSwapPlayer(this.link); } }, - versusCheckHandcards:function(){ - _status.clicked=true; - if(ui.intro){ - ui.intro.close(); - if(ui.intro.source=='versusCheckHandcards'){ - delete ui.intro; - ui.control.show(); - game.resume2(); - return; - } - } - game.pause2(); - ui.control.hide(); - ui.intro=ui.create.dialog(); - ui.intro.source='versusCheckHandcards'; - - ui.intro.add(ui.autoreplace); - var players=[]; - for(var i=0;i