改了 好多
This commit is contained in:
@@ -32,13 +32,14 @@ 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.FuncSelect, 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);
|
||||
|
||||
this.card1=this.node.getChildByName("card1")
|
||||
this.card2=this.node.getChildByName("card2")
|
||||
this.card3=this.node.getChildByName("card3")
|
||||
this.on(GameEvent.EquipSelect, this.addToQueue, this);
|
||||
this.card1=this.node.getChildByName("cards").getChildByName("card1")
|
||||
this.card2=this.node.getChildByName("cards").getChildByName("card2")
|
||||
this.card3=this.node.getChildByName("cards").getChildByName("card3")
|
||||
// this.card4=this.node.getChildByName("card4")
|
||||
this.card1c=this.card1.getComponent(CardComp)
|
||||
this.card2c=this.card2.getComponent(CardComp)
|
||||
@@ -116,11 +117,15 @@ export class CardsCompComp extends CCComp {
|
||||
console.log("[CardsComp]:显示技能选择卡牌")
|
||||
this.hero_skill_select()
|
||||
break
|
||||
case GameEvent.CardRefresh:
|
||||
console.log("[CardsComp]:显示随机刷新卡牌")
|
||||
case GameEvent.FuncSelect:
|
||||
console.log("[CardsComp]:显示功能卡牌")
|
||||
this.node.getChildByName("Button").active=true
|
||||
this.func_select()
|
||||
break
|
||||
case GameEvent.EquipSelect:
|
||||
console.log("[CardsComp]:显示装备选择卡牌")
|
||||
this.equip_select()
|
||||
break
|
||||
}
|
||||
this.show()
|
||||
}
|
||||
@@ -144,8 +149,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.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));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user