Skip to content

Commit

Permalink
提交
Browse files Browse the repository at this point in the history
  • Loading branch information
yanglinbo committed Jun 29, 2016
1 parent 0f94552 commit 535a129
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions assets/Script/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -778,7 +778,15 @@ cc.Class({
};
}
this.table_tips=[];
};
}
//清理dealer
var dealer_node = cc.find("Canvas/table_bg/dealer_"+this.hand_data['start']['d_chair']);
if(dealer_node.getComponent(cc.Sprite) != null){
dealer_node.getComponent(cc.Sprite).destroy();
cc.log("清理dealer位成功");
}



this.table_chips_inpot=0;

Expand All @@ -788,33 +796,27 @@ cc.Class({
},
//站起
quit:function(sit,duration){

var me=this;

me.countdown_over_task=null;

var finished = function(){
var table_bg=me.node.parent.getChildByName("table_bg");
var table_bg = cc.find("Canvas/table_bg");
var seat=table_bg.getChildByName("seat_"+sit);
//seat.enabled=false;
//隐藏图像
seat.getChildByName("avatar").setOpacity(0);
seat.getChildByName("nick").setOpacity(0);
seat.getChildByName("chips").setOpacity(0);
seat.getChildByName("hand_card").setOpacity(0);
if(cc.isValid(seat.getChildByName("game_tip").getComponent(cc.Sprite))){
if(seat.getChildByName("game_tip").getComponent(cc.Sprite)!=null){
seat.getChildByName("game_tip").getComponent(cc.Sprite).destroy();
}
//当前动作结束
me.actionend();
};

if(duration>0){
me.add_countdown(sit,duration);
}else{
finished();
}
this.countdown_over_task=finished;
me.add_countdown(sit,duration);
this.countdown_over_task = finished;
},

//底池的筹码分给赢的人 pos赢钱的人的座位位置
Expand Down

0 comments on commit 535a129

Please sign in to comment.