From 8099f0d5cca810fc18b7ccb06a43493583e451f7 Mon Sep 17 00:00:00 2001 From: libccy Date: Fri, 12 Aug 2016 10:54:16 +0800 Subject: [PATCH] l --- game/game.js | 57 +++++++++++++++++++-------------------- layout/default/layout.css | 1 + 2 files changed, 28 insertions(+), 30 deletions(-) diff --git a/game/game.js b/game/game.js index 93294ed47..1fd5d3c37 100755 --- a/game/game.js +++ b/game/game.js @@ -3220,7 +3220,7 @@ else if(ua.indexOf('iphone')!=-1||ua.indexOf('ipad')!=-1){ lib.device='ios'; if(ua.indexOf('ipad')!=-1){ - window.isIpad=true; + lib.ipad=true; } } lib.assetURL=noname_inited; @@ -3367,10 +3367,11 @@ game.saveConfig('confirmtouch',true); game.saveConfig('low_performance',true); game.saveConfig('confirm_exit',true); - if(!window.isIpad){ + if(lib.ipad){ game.saveConfig('layout','phone'); } } + delete lib.ipad; if(lib.config.extensions.length){ window.resetExtension=function(){ for(var i=0;inum){ event.drawDeck=num; @@ -6649,14 +6650,14 @@ }, discard:function(){ "step 0" - if(lib.config.background_audio){ - game.playAudio('effect','discard'); - } - game.broadcast(function(){ - if(lib.config.background_audio){ - game.playAudio('effect','discard'); - } - }); + // if(lib.config.background_audio){ + // game.playAudio('effect','discard'); + // } + // game.broadcast(function(){ + // if(lib.config.background_audio){ + // game.playAudio('effect','discard'); + // } + // }); game.log(player,'弃置了',cards); player.lose(cards); if(event.animate!=false){ @@ -7326,14 +7327,14 @@ "step 0" if(cards&&get.owner(cards[0])) get.owner(cards[0]).lose(cards); "step 1" - if(lib.config.background_audio){ - game.playAudio('effect','judge'); - } - game.broadcast(function(){ - if(lib.config.background_audio){ - game.playAudio('effect','judge'); - } - }); + // if(lib.config.background_audio){ + // game.playAudio('effect','judge'); + // } + // game.broadcast(function(){ + // if(lib.config.background_audio){ + // game.playAudio('effect','judge'); + // } + // }); cards[0].fix(); cards[0].style.transform=''; cards[0].classList.remove('drawinghidden'); @@ -26128,10 +26129,6 @@ arena:function(){ var i,j; ui.window=ui.create.div('#window.hidden',document.body); - if(window.isIpad){ - ui.window.classList.add('ipad'); - delete window.isIpad; - } ui.refresh(ui.window); if(!localStorage.getItem(lib.configprefix+'playback')){ ui.window.show(); diff --git a/layout/default/layout.css b/layout/default/layout.css index 48ea53dcc..f442d2e3a 100755 --- a/layout/default/layout.css +++ b/layout/default/layout.css @@ -1312,6 +1312,7 @@ div:hover>.intro{opacity: 1;} /*.player.target{-webkit-filter:brightness(1.2)}*/ .target{box-shadow: rgba(0, 0, 0, 0.2) 0 0 0 1px,rgba(255, 0, 0, 0.4) 0 0 5px, rgba(255, 0, 0, 0.5) 0 0 12px, rgba(255, 0, 0, 0.8) 0 0 15px !important} +#mebg.target{transform: none !important;} #arena[data-target_shake='shake'] .target{transform: rotate(-3deg);} #arena[data-target_shake='shake'] .target2{transform: rotate(3deg);}