This commit is contained in:
parent
0495584910
commit
d452df71a8
|
@ -17764,6 +17764,7 @@
|
||||||
|
|
||||||
if(lib.config.button_press){
|
if(lib.config.button_press){
|
||||||
node.addEventListener(lib.config.touchscreen?'touchstart':'mousedown',function(){
|
node.addEventListener(lib.config.touchscreen?'touchstart':'mousedown',function(){
|
||||||
|
if(node.parentNode.classList.contains('disabled')) return;
|
||||||
// node.classList.add('controlthundertext');
|
// node.classList.add('controlthundertext');
|
||||||
node.parentNode.classList.add('controlpressdown');
|
node.parentNode.classList.add('controlpressdown');
|
||||||
node.parentNode.classList.add('controlpressdownx');
|
node.parentNode.classList.add('controlpressdownx');
|
||||||
|
|
|
@ -1630,6 +1630,7 @@ div:not(.handcards)>.card>.info>span,
|
||||||
}
|
}
|
||||||
.control.disabled{
|
.control.disabled{
|
||||||
opacity: 0.6 !important;
|
opacity: 0.6 !important;
|
||||||
|
cursor: default !important;
|
||||||
}
|
}
|
||||||
#control>div {
|
#control>div {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
|
|
@ -3727,7 +3727,7 @@ mode.chess={
|
||||||
game.uncheck();
|
game.uncheck();
|
||||||
game.check();
|
game.check();
|
||||||
if(ui.cheat){
|
if(ui.cheat){
|
||||||
ui.cheat.style.opacity=1;
|
ui.cheat.classList.remove('disabled');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
|
@ -3742,7 +3742,7 @@ mode.chess={
|
||||||
game.uncheck();
|
game.uncheck();
|
||||||
game.check();
|
game.check();
|
||||||
if(ui.cheat){
|
if(ui.cheat){
|
||||||
ui.cheat.style.opacity=0.6;
|
ui.cheat.classList.add('disabled');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
@ -1509,7 +1509,7 @@ mode.stone={
|
||||||
game.uncheck();
|
game.uncheck();
|
||||||
game.check();
|
game.check();
|
||||||
if(ui.cheat){
|
if(ui.cheat){
|
||||||
ui.cheat.style.opacity=1;
|
ui.cheat.classList.remove('disabled');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
|
@ -1524,7 +1524,7 @@ mode.stone={
|
||||||
game.uncheck();
|
game.uncheck();
|
||||||
game.check();
|
game.check();
|
||||||
if(ui.cheat){
|
if(ui.cheat){
|
||||||
ui.cheat.style.opacity=0.6;
|
ui.cheat.classList.add('disabled');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue