From 977d5f7c7d842f85ef3cb4c8678155e668c0869c Mon Sep 17 00:00:00 2001 From: libccy Date: Thu, 9 Feb 2017 15:24:03 +0800 Subject: [PATCH] l --- game/game.js | 22 +++++++++------------- 1 file changed, 9 insertions(+), 13 deletions(-) diff --git a/game/game.js b/game/game.js index 279b84bdd..78d880d90 100644 --- a/game/game.js +++ b/game/game.js @@ -1231,7 +1231,7 @@ linked=true; } game.saveConfig('cardshape',item); - if(item=='oblong'&&(game.layout=='long'||game.layout=='mobile')){ + if(item=='oblong'&&(game.layout=='long'||game.layout=='mobile'||game.layout=='long2')){ ui.arena.classList.add('oblongcard'); } else{ @@ -1374,12 +1374,13 @@ } else{ map.textequip.hide(); - map.cardshape.hide(); if(lib.config.layout=='long2'){ map.phonelayout.show(); + map.cardshape.show(); } else{ map.phonelayout.hide(); + map.cardshape.hide(); } } if(config.show_log!='off'){ @@ -5387,7 +5388,7 @@ else{ ui.arena.classList.remove('hpimage'); } - if(lib.config.cardshape=='oblong'&&(game.layout=='long'||game.layout=='mobile')){ + if(lib.config.cardshape=='oblong'&&(game.layout=='long'||game.layout=='mobile'||game.layout=='long2')){ ui.arena.classList.add('oblongcard'); } else{ @@ -12118,10 +12119,8 @@ info.content=get.skillintro(name,learn,learn2) } node.info=info; - if(lib.config.touchscreen){ - lib.setLongPress(node,ui.click.intro); - } - else{ + node.addEventListener(lib.config.touchscreen?'touchend':'click',ui.click.card); + if(!lib.config.touchscreen){ if(lib.config.hover_all){ lib.setHover(node,ui.click.hoverplayer); } @@ -12171,11 +12170,8 @@ else if(typeof info=='string'){ node.markidentifer=info; } - - if(lib.config.touchscreen){ - lib.setLongPress(node,ui.click.intro); - } - else{ + node.addEventListener(lib.config.touchscreen?'touchend':'click',ui.click.card); + if(!lib.config.touchscreen){ if(lib.config.hover_all){ lib.setHover(node,ui.click.hoverplayer); } @@ -29134,7 +29130,7 @@ if(game.layout=='default'&&lib.config.hp_style=='official'){ ui.arena.classList.add('hpimage'); } - if(game.layout=='long'||game.layout=='mobile'){ + if(game.layout=='long'||game.layout=='long2'||game.layout=='mobile'){ if(lib.config.textequip=='text') ui.arena.classList.add('textequip'); if(lib.config.cardshape=='oblong') ui.arena.classList.add('oblongcard'); }