This commit is contained in:
libccy 2017-02-15 15:17:53 +08:00
parent 280ccb6d30
commit a911fcd40a
2 changed files with 10 additions and 8 deletions

View File

@ -4205,7 +4205,7 @@
dialogs[i].delete();
}
if(e.keyCode==32){
var node=ui.window.querySelector('#paused');
var node=ui.window.querySelector('pausedbg');
if(node){
node.click();
}
@ -30807,8 +30807,7 @@
if(lib.config.test_game){
ui.arena.style.display='none';
ui.historybar.style.display='none';
ui.window.classList.add('testing');
lib.storage.test=true;
setTimeout(function(){
var node=ui.create.pause().animate('start');
@ -30843,7 +30842,7 @@
pause:function(){
if(_status.pausing) return;
ui.click.shortcut(false);
var node=ui.create.div("#paused",ui.window);
var node=ui.create.div(".pausedbg",ui.window);
_status.pausing=true;
setTimeout(function(){
_status.pausing=false;
@ -30860,7 +30859,7 @@
node.oncontextmenu=ui.click.resume;
}
var node2=ui.create.div('#paused2',node);
var node2=ui.create.div(node);
if(_status.connectMode){
node2.innerHTML='';
}

View File

@ -57,6 +57,9 @@ table {
position: absolute;
transition: all 1s;
}
#window.testing>div:not(.pausedbg){
display: none !important;
}
#window.modepaused>div:not(.modenopause):not(#arena):not(.popped) {
opacity: 0.3;
}
@ -842,14 +845,14 @@ table {
transition: all 0.1s
}
#paused,#click {
.pausedbg,#click {
left: 0;
top: 0;
width: 100%;
height: 100%;
z-index: 5;
}
#paused2 {
.pausedbg>div:first-child {
font-size: 30px;
top: calc(50% - 17px);
left: calc(50% - 45px);
@ -867,7 +870,7 @@ table {
#sidebar3 {
text-align: right
}
#paused>#sidebar.right,#sidebar2.right,#sidebar3 {
.pausedbg>#sidebar.right,#sidebar2.right,#sidebar3 {
left: calc(100% - 240px);
}
#sidebar3.left {