强化选项 完成

This commit is contained in:
2025-07-16 10:38:47 +08:00
parent 6f2af2f395
commit 82127a81ba
9 changed files with 204 additions and 176 deletions

View File

@@ -46,6 +46,7 @@ export class CardsCompComp extends CCComp {
this.on(GameEvent.HeroSkillSelectEnd, this.close_cards, this);
this.on(GameEvent.CardsClose, this.close_cards, this);
this.on(GameEvent.EquipSelect, this.addToQueue, this);
this.on(GameEvent.EnhancementSelect, 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")
@@ -89,19 +90,19 @@ export class CardsCompComp extends CCComp {
console.log("[CardsComp]:显示强化选择卡牌")
this.node.getChildByName("btns").getChildByName("cancel").active=true
this.node.getChildByName("top").getChildByName("title").getChildByName("Label").getComponent(Label).string="选择强化"
this.enhancement_select(data)
this.enhancement_select()
break
}
if(!is_refresh) this.show()
}
enhancement_select(data:any){
let list=getEnhancement([0,0,0,0],3)
enhancement_select(){
let list=getEnhancement(smc.enhancements,3)
console.log("[CardsComp]:强化选择卡牌列表",list)
this.card1c.enhancement_select(data[0])
this.card2c.enhancement_select(data[1])
this.card3c.enhancement_select(data[2])
this.card1c.enhancement_select(list[0])
this.card2c.enhancement_select(list[1])
this.card3c.enhancement_select(list[2])
}
hero_select(data:any){
let list=[]