From 6acccc0fdc5d28ccabfffdb5d60248ea284ca2c4 Mon Sep 17 00:00:00 2001 From: libccy Date: Fri, 8 Apr 2016 15:06:56 +0800 Subject: [PATCH] 1.8.4 --- game/game.js | 160 +++++++++++++++++++++++++------------- game/update.js | 6 +- layout/default/blur.css | 2 +- layout/default/layout.css | 43 +++++++--- layout/default/menu.css | 5 +- layout/phone/layout.css | 10 ++- mode/identity.js | 12 ++- theme/music/style.css | 3 +- theme/woodden/style.css | 3 +- 9 files changed, 167 insertions(+), 77 deletions(-) diff --git a/game/game.js b/game/game.js index 7b13b1efd..be9d86a45 100755 --- a/game/game.js +++ b/game/game.js @@ -237,13 +237,12 @@ pause:'切换暂停', auto:'切换托管', chat:'显示聊天', - shortcut:'快捷操作', off:'关闭', } }, swipe_left:{ name:'左划操作', - init:'shortcut', + init:'chat', unfrequent:true, item:{ system:'显示按钮', @@ -251,7 +250,6 @@ pause:'切换暂停', auto:'切换托管', chat:'显示聊天', - shortcut:'快捷操作', off:'关闭', } }, @@ -265,7 +263,6 @@ pause:'切换暂停', auto:'切换托管', chat:'显示聊天', - shortcut:'快捷操作', off:'关闭', } }, @@ -11063,7 +11060,7 @@ id:game.onlineID, avatar:lib.config.connect_avatar, nickname:lib.config.connect_nickname - }); + },lib.config.banned_info); }, onmessage:function(messageevent){ var message; @@ -11636,8 +11633,11 @@ cardPile:{}, message:{ server:{ - init:function(version,config){ - if(config.id&&lib.playerOL&&lib.playerOL[config.id]&&lib.playerOL[config.id].isOffline()){ + init:function(version,config,banned_info){ + if(lib.node.banned.contains(banned_info)){ + this.send('denied','banned'); + } + else if(config.id&&lib.playerOL&&lib.playerOL[config.id]&&lib.playerOL[config.id].isOffline()){ var player=lib.playerOL[config.id]; player.setNickname(); player.ws=this; @@ -11684,9 +11684,11 @@ this.nickname=config.nickname; } for(var i=0;i重来',ui.shortcut,game.reload).dataset.position=1; + ui.create.div('.menubutton.round','退出',ui.shortcut,game.exit).dataset.position=3; + ui.create.div('.menubutton.round','记录',ui.shortcut,ui.click.pause).dataset.position=4; + ui.shortcut.autobutton=ui.create.div('.menubutton.round','托管',ui.shortcut,ui.click.auto); + ui.shortcut.autobutton.dataset.position=2; + // ui.create.div('.menubutton.round','菜单',ui.shortcut,ui.click.config).dataset.position=5; if(_status.connectMode){ ui.playerids.remove(); - ui.pause.innerHTML='历史'; + ui.pause.innerHTML='记录'; } setTimerPosition.call(ui.timer); ui.arena.appendChild(ui.timer); @@ -17764,13 +17797,7 @@ if(menuContainer.classList.contains('hidden')){ ui.config2.classList.add('pressdown2'); ui.arena.classList.add('menupaused'); - // menu.classList.remove('zoomout'); - // menu.classList.add('zoomin'); menuContainer.classList.remove('hidden'); - // menuContainer.animating=true; - // setTimeout(function(){ - // menuContainer.animating=false; - // },300); for(var i=0;idiv:not(#shortcut){ +#arena.menupaused,#window.shortcutpaused>div:not(#shortcut):not(#system){ filter:blur(3px); -webkit-filter:blur(3px); } diff --git a/layout/default/layout.css b/layout/default/layout.css index 97e3dcdef..a1e0d9ecd 100755 --- a/layout/default/layout.css +++ b/layout/default/layout.css @@ -39,7 +39,8 @@ table{table-layout: fixed;} position: absolute; transition: all 1s; } -#window.shortcutpaused>div:not(.background):not(#shortcut){opacity: 0.3 !important} +#window.shortcutpaused>div:not(.background):not(#shortcut):not(#system):not(#arena):not(.hidden):not(.removing){opacity: 0.3 !important} +#window.shortcutpaused>#arena>div:not(#timer):not(.removing):not(.hidden){opacity: 0.3 !important} #window.noclick_important *{pointer-events: none !important;} #window.noclick_important .noclick_click_important div{pointer-events: auto !important} #shortcut{ @@ -49,30 +50,46 @@ table{table-layout: fixed;} left:0; top:0; z-index: 30; - background-color: rgba(0, 0, 0, 0.6); + /*background-color: rgba(0, 0, 0, 0.6);*/ } #shortcut>div{ - width: 130px; - height: 30px; + width: 80px; + height: 80px; padding: 10px; - font-size: 32px; margin: 0; + + overflow: hidden; + line-height: 80px; + font-size: 50px; + white-space: nowrap; + text-align: center; + letter-spacing: -6px; +} +#shortcut>div>span{ + width: 200px; + left: -63px; + position: relative; + display: inline-block; } #shortcut>div[data-position="1"]{ - left:calc(50% - 75px); - top: calc(50% - 200px); + left:calc(50% - 50px); + top: calc(50% - 250px); } #shortcut>div[data-position="2"]{ left:calc(50% + 150px); - top: calc(50% - 25px); + top: calc(50% - 50px); } #shortcut>div[data-position="3"]{ - left:calc(50% - 75px); + left:calc(50% - 50px); top: calc(50% + 150px); } #shortcut>div[data-position="4"]{ - left:calc(50% - 300px); - top: calc(50% - 25px); + left:calc(50% - 250px); + top: calc(50% - 50px); +} +#shortcut>div[data-position="5"]{ + left:calc(50% - 50px); + top: calc(50% - 50px); } #shortcut.hidden{ pointer-events: none; @@ -1152,10 +1169,12 @@ div:hover>.intro{opacity: 1;} box-shadow: rgba(0, 0, 0, 0.3) 0 0 0 1px; border-radius:4px; } -.shadowed{ +.shadowed, +.menubutton.large.shadowed{ background: rgba(0,0,0,0.2); box-shadow: rgba(0, 0, 0, 0.3) 0 0 0 1px; border-radius:8px; + color: white !important; } #window.reduce_radius .shadowed{ border-radius: 4px; diff --git a/layout/default/menu.css b/layout/default/menu.css index 2e63ccd14..79eb4af88 100644 --- a/layout/default/menu.css +++ b/layout/default/menu.css @@ -552,9 +552,10 @@ border-radius:4px; background-image: linear-gradient(rgba(75,75,75,1), rgba(70,70,70,1)); } -.menubutton.blue, -.menubutton.red{ +.menubutton.large.blue, +.menubutton.large.red{ color:white !important; + box-shadow: rgba(0, 0, 0, 0.2) 0 0 0 1px, rgba(0, 0, 0, 0.3) 0 3px 10px !important; } .menubutton.active, .menubutton.blue{ diff --git a/layout/phone/layout.css b/layout/phone/layout.css index 754467a4b..104801546 100644 --- a/layout/phone/layout.css +++ b/layout/phone/layout.css @@ -17,6 +17,9 @@ font-size: 30px; line-height: 34px; } +#system{ + z-index: 31 !important; +} #system>div{ position: absolute; width: 100%; @@ -44,12 +47,17 @@ transform: translateY(-80px); */ } #system>div.shown{ - min-width: 50%; width: auto; } #system>div:not(.shown)>div{ pointer-events: none; } +#shortcut>div{ + transform: scale(1.3); +} +#pausebutton,#autobutton{ + display: none !important; +} /*#system1>div:first-child{ display: none !important; } diff --git a/mode/identity.js b/mode/identity.js index 74cac3321..0e31d9348 100755 --- a/mode/identity.js +++ b/mode/identity.js @@ -168,6 +168,7 @@ mode.identity={ } "step 4" if(_status.connectMode){ + _status.mode=lib.configOL.identity_mode; game.prepareArena(); var list=[]; for(var i=0;i游戏模式:'+(lib.configOL.identity_mode=='zhong'?'明忠':'普通')); + uiintro.add('
双将模式:'+(lib.configOL.double_character?'开启':'关闭')); + uiintro.add('
双内奸:'+(lib.configOL.double_nei?'开启':'关闭')); + uiintro.add('
出牌时限:'+lib.configOL.choose_timeout+'秒').style.paddingBottom='8px'; + }, getIdentityList:function(player){ if(player.identityShown) return; if(player==game.me) return; diff --git a/theme/music/style.css b/theme/music/style.css index b20ca5f9a..458b70c16 100755 --- a/theme/music/style.css +++ b/theme/music/style.css @@ -36,7 +36,8 @@ body[data-background_color_music='blue'] .avatar2, body[data-background_color_music='blue'] .button, body[data-background_color_music='blue'] #window>.dialog.popped, body[data-background_color_music='blue'] .player.unseen .equips:not(*:empty), -body[data-background_color_music='blue'] .menu,#splash>div, +body[data-background_color_music='blue'] .menu, +body[data-background_color_music='blue'] #splash>div, body[data-background_color_music='blue'] #arena.mobile:not(.chess) .player[data-position='0'] .equips{ background-image: linear-gradient(#6c7989, #434b55); } diff --git a/theme/woodden/style.css b/theme/woodden/style.css index b5bf92bce..905a2da4c 100755 --- a/theme/woodden/style.css +++ b/theme/woodden/style.css @@ -86,7 +86,8 @@ html{ .menubutton.large{ box-shadow: rgba(0, 0, 0, 0.3) 0 0 0 1px, rgba(0, 0, 0, 0.3) 0 0 5px !important; } -.menubutton.large.active{ +.menubutton.large.active, +.menubutton.round.active{ box-shadow: rgba(0, 0, 0, 0.3) 0 0 0 1px, rgba(0, 133, 255, 0.4) 0 0 0 2px, rgba(0, 133, 255, 1) 0 0 5px !important; } .config.toggle>div>div{