卡牌样式修改
This commit is contained in:
@@ -32,7 +32,7 @@ export class CardsCompComp extends CCComp {
|
||||
this.on(GameEvent.HeroSkillSelect, this.addToQueue, this);
|
||||
this.on(GameEvent.HeroSelect, this.addToQueue, this);
|
||||
this.on(GameEvent.CardRefresh, this.addToQueue, this);
|
||||
|
||||
this.on(GameEvent.MissionEnd, this.clear_cards, this);
|
||||
this.on(GameEvent.HeroSkillSelectEnd, this.close_cards, this);
|
||||
this.on(GameEvent.CardsClose, this.close_cards, this);
|
||||
|
||||
@@ -144,6 +144,8 @@ export class CardsCompComp extends CCComp {
|
||||
show(){
|
||||
// 设置初始状态
|
||||
smc.mission.pause=true
|
||||
this.node.getChildByName("Button").setPosition(v3(0, this.node.getChildByName("Button").getPosition().y, 0))
|
||||
this.node.getChildByName("top").setPosition(v3(0, this.node.getChildByName("top").getPosition().y, 0))
|
||||
this.node.setPosition(v3(0, 0, 0));
|
||||
this.node.setScale(v3(0, 0, 1));
|
||||
|
||||
@@ -170,7 +172,9 @@ export class CardsCompComp extends CCComp {
|
||||
})
|
||||
.start();
|
||||
}
|
||||
|
||||
clear_cards(){
|
||||
this.cardQueue = [];
|
||||
}
|
||||
//放弃选择
|
||||
give_up_select(){
|
||||
this.hide()
|
||||
|
||||
Reference in New Issue
Block a user