This commit is contained in:
libccy 2017-03-27 12:31:10 +08:00
parent 0495584910
commit d452df71a8
4 changed files with 6 additions and 4 deletions

View File

@ -17764,6 +17764,7 @@
if(lib.config.button_press){
node.addEventListener(lib.config.touchscreen?'touchstart':'mousedown',function(){
if(node.parentNode.classList.contains('disabled')) return;
// node.classList.add('controlthundertext');
node.parentNode.classList.add('controlpressdown');
node.parentNode.classList.add('controlpressdownx');

View File

@ -1630,6 +1630,7 @@ div:not(.handcards)>.card>.info>span,
}
.control.disabled{
opacity: 0.6 !important;
cursor: default !important;
}
#control>div {
position: absolute;

View File

@ -3727,7 +3727,7 @@ mode.chess={
game.uncheck();
game.check();
if(ui.cheat){
ui.cheat.style.opacity=1;
ui.cheat.classList.remove('disabled');
}
}
else{
@ -3742,7 +3742,7 @@ mode.chess={
game.uncheck();
game.check();
if(ui.cheat){
ui.cheat.style.opacity=0.6;
ui.cheat.classList.add('disabled');
}
}
});

View File

@ -1509,7 +1509,7 @@ mode.stone={
game.uncheck();
game.check();
if(ui.cheat){
ui.cheat.style.opacity=1;
ui.cheat.classList.remove('disabled');
}
}
else{
@ -1524,7 +1524,7 @@ mode.stone={
game.uncheck();
game.check();
if(ui.cheat){
ui.cheat.style.opacity=0.6;
ui.cheat.classList.add('disabled');
}
}
});