去掉大部分 调试信息

This commit is contained in:
2025-08-21 14:33:42 +08:00
parent 92faa0fe09
commit 213149881c
27 changed files with 164 additions and 164 deletions

View File

@@ -73,36 +73,36 @@ export class CardsCompComp extends CCComp {
this.cancel_btn.active=false
switch(e){
case GameEvent.HeroSelect:
console.log("[CardsComp]:显示英雄选择卡牌",data)
// console.log("[CardsComp]:显示英雄选择卡牌",data)
let title="选择英雄"
this.node.getChildByName("top").getChildByName("title").getChildByName("Label").getComponent(Label).string=title
this.hero_select(data)
break
case GameEvent.HeroSkillSelect:
console.log("[CardsComp]:显示技能选择卡牌")
// console.log("[CardsComp]:显示技能选择卡牌")
this.node.getChildByName("top").getChildByName("title").getChildByName("Label").getComponent(Label).string="选择技能"
this.hero_skill_select(data)
break
case GameEvent.FuncSelect:
console.log("[CardsComp]:显示功能卡牌")
// console.log("[CardsComp]:显示功能卡牌")
this.cancel_btn.active=true
this.node.getChildByName("top").getChildByName("title").getChildByName("Label").getComponent(Label).string="选择卡牌"
this.func_select()
break
case GameEvent.EquipSelect:
console.log("[CardsComp]:显示装备选择卡牌")
// console.log("[CardsComp]:显示装备选择卡牌")
this.cancel_btn.active=true
this.node.getChildByName("top").getChildByName("title").getChildByName("Label").getComponent(Label).string="选择装备"
this.equip_select(data)
break
case GameEvent.EnhancementSelect:
console.log("[CardsComp]:显示强化选择卡牌")
// console.log("[CardsComp]:显示强化选择卡牌")
this.cancel_btn.active=true
this.node.getChildByName("top").getChildByName("title").getChildByName("Label").getComponent(Label).string="选择强化"
this.enhancement_select()
break
case GameEvent.TalentSelect:
console.log("[CardsComp]:显示天赋选择卡牌")
// console.log("[CardsComp]:显示天赋选择卡牌")
this.cancel_btn.active=true
this.node.getChildByName("top").getChildByName("title").getChildByName("Label").getComponent(Label).string="选择天赋"
this.talent_select(data)
@@ -114,14 +114,14 @@ export class CardsCompComp extends CCComp {
}
talent_select(data:any){
let list=getRandomCardsByType(cardType.TALENT,3,QualitySet.GREEN)
console.log("[CardsComp]:天赋选择卡牌列表",list)
// console.log("[CardsComp]:天赋选择卡牌列表",list)
this.card1c.talent_select(list[0],data)
this.card2c.talent_select(list[1],data)
this.card3c.talent_select(list[2],data)
}
enhancement_select(){
let list=getEnhancement(smc.enhancements,3)
console.log("[CardsComp]:强化选择卡牌列表",smc.enhancements,list)
// console.log("[CardsComp]:强化选择卡牌列表",smc.enhancements,list)
this.card1c.enhancement_select(list[0])
this.card2c.enhancement_select(list[1])
this.card3c.enhancement_select(list[2])
@@ -129,7 +129,7 @@ export class CardsCompComp extends CCComp {
hero_select(data:any){
let list=getHeroList(data.called)
console.log("[CardsComp]:英雄选择卡牌列表",list)
// console.log("[CardsComp]:英雄选择卡牌列表",list)
this.card1c.hero_select(list[0])
this.card2c.hero_select(list[1])
this.card3c.hero_select(list[2])
@@ -145,7 +145,7 @@ export class CardsCompComp extends CCComp {
}else if(data.slot=="skill3"){
list=getRandomCardsByType(cardType.SKILL,3,QualitySet.PURPLE)
}
console.log("[CardsComp]:技能选择卡牌列表",list)
// console.log("[CardsComp]:技能选择卡牌列表",list)
this.card1c.hero_skill_select(list[0],data)
this.card2c.hero_skill_select(list[1],data)
this.card3c.hero_skill_select(list[2],data)
@@ -164,7 +164,7 @@ export class CardsCompComp extends CCComp {
list=getRandomCardsByType(cardType.EQUIP,3,EquipType.ACCESSORY,data.lv)
break
}
console.log("[CardsComp]:装备选择卡牌列表",list)
// console.log("[CardsComp]:装备选择卡牌列表",list)
this.card1c.equip_select(list[0],data)
this.card2c.equip_select(list[1],data)
this.card3c.equip_select(list[2],data)
@@ -172,7 +172,7 @@ export class CardsCompComp extends CCComp {
}
func_select(){
let list=getRandomCardsByType(cardType.SPECIAL,3)
console.log("[CardsComp]:功能选择卡牌列表",list)
// console.log("[CardsComp]:功能选择卡牌列表",list)
this.card1c.func_select(list[0])
this.card2c.func_select(list[1])
this.card3c.func_select(list[2])
@@ -187,7 +187,7 @@ export class CardsCompComp extends CCComp {
/** 添加卡牌展示到队列 */
private addToQueue(e: GameEvent, data?: any) {
console.log("[CardsComp]:添加卡牌到队列", e,data);
// console.log("[CardsComp]:添加卡牌到队列", e,data);
this.cardQueue.push({type: e, data: data});
this.processQueue();
}
@@ -208,16 +208,16 @@ export class CardsCompComp extends CCComp {
close_cards(e:GameEvent,data:any){
switch(e){
case GameEvent.HeroSelect:
console.log("[CardsComp]:关闭英雄选择卡牌")
// console.log("[CardsComp]:关闭英雄选择卡牌")
break
case GameEvent.HeroSkillSelect:
console.log("[CardsComp]:关闭技能选择卡牌")
// console.log("[CardsComp]:关闭技能选择卡牌")
break
case GameEvent.CardRefresh:
console.log("[CardsComp]:关闭随机刷新卡牌")
// console.log("[CardsComp]:关闭随机刷新卡牌")
break
case GameEvent.CardsClose:
console.log("[CardsComp]:关闭所有卡牌")
// console.log("[CardsComp]:关闭所有卡牌")
break
}
this.hide()