This commit is contained in:
libccy 2017-03-28 18:51:28 +08:00
parent 26cfdf3b41
commit 1f21096b73
3 changed files with 9 additions and 2 deletions

View File

@ -17342,6 +17342,7 @@
if(_status.event.player!=game.me) return; if(_status.event.player!=game.me) return;
if(this._transform&&this.parentNode&&this.parentNode.parentNode&& if(this._transform&&this.parentNode&&this.parentNode.parentNode&&
this.parentNode.parentNode.parentNode==ui.me&& this.parentNode.parentNode.parentNode==ui.me&&
(!_status.mousedown||_status.mouseleft)&&
(!this.parentNode.parentNode.classList.contains('scrollh')||game.layout=='long2')){ (!this.parentNode.parentNode.classList.contains('scrollh')||game.layout=='long2')){
if(bool){ if(bool){
this.style.transform=this._transform+' translateY(-20px)'; this.style.transform=this._transform+' translateY(-20px)';
@ -35799,6 +35800,9 @@
if(!_status.mouseleft){ if(!_status.mouseleft){
_status.mouseleft=true; _status.mouseleft=true;
game.check(); game.check();
for(var i=0;i<ui.selected.cards.length;i++){
ui.selected.cards[i].updateTransform(true);
}
} }
_status.dragstatuschanged=null; _status.dragstatuschanged=null;
} }
@ -36010,6 +36014,9 @@
else{ else{
var tmpflag=false; var tmpflag=false;
_status.mousedown=false; _status.mousedown=false;
for(var i=0;i<ui.selected.cards.length;i++){
ui.selected.cards[i].updateTransform(true);
}
if(_status.mousedragging&&_status.mouseleft){ if(_status.mousedragging&&_status.mouseleft){
if(game.check()){ if(game.check()){
if(ui.confirm){ if(ui.confirm){

View File

@ -20,7 +20,7 @@ window.noname_update={
// 'mode/identity.js', // 'mode/identity.js',
// 'mode/chess.js', // 'mode/chess.js',
// 'mode/tafang.js', // 'mode/tafang.js',
// 'mode/stone.js', 'mode/stone.js',
// 'theme/music/style.css', // 'theme/music/style.css',
// 'theme/woodden/style.css', // 'theme/woodden/style.css',
// 'layout/default/layout.css', // 'layout/default/layout.css',

View File

@ -362,7 +362,7 @@ mode.stone={
deckitem.name=i; deckitem.name=i;
} }
var deckContainer=ui.create.div('.list-container.deck',deckList); var deckContainer=ui.create.div('.list-container.deck',deckList);
ui.deckcontrol.show(); if(ui.deckcontrol) ui.deckcontrol.show();
}; };
ui.deckcontrol=ui.create.system('卡组管理',function(){ ui.deckcontrol=ui.create.system('卡组管理',function(){