feat: 添加英雄界面并移除英雄卡等级概率机制

- 新增英雄界面 UI 配置、预制体和动画资源
- 在 MissionHomeComp 中添加打开英雄界面的方法
- 移除 CardSet 中英雄卡从1级升级到2级的概率逻辑,简化抽卡规则
- 在 HlistComp 中添加关闭英雄界面的方法
This commit is contained in:
walkpan
2026-04-09 09:16:55 +08:00
parent 43c5cace94
commit 36d65ac3cc
13 changed files with 20206 additions and 10239 deletions

View File

@@ -25,6 +25,7 @@ import { HeroInfo, HeroList } from "../common/config/heroSet";
import { IType, SkillSet } from "../common/config/SkillSet";
import { oops } from "db://oops-framework/core/Oops";
import { mLogger } from "../common/Logger";
import { UIID } from "../common/config/GameUIConfig";
const {property, ccclass } = _decorator;
@@ -96,7 +97,14 @@ export class HListComp extends CCComp {
this.pre_btn?.on(NodeEventType.TOUCH_END, this.onPreClick, this);
this.next_btn?.on(NodeEventType.TOUCH_END, this.onNextClick, this);
}
/** 预留:弹窗打开时接收参数 */
onAdded(args: any) {
}
/** 关闭排行榜弹窗 */
closeHeros(){
oops.gui.remove(UIID.Ranks)
}
start() {
// 初始化轮播节点数组和固定位置
if (this.phero1_icon && this.phero_icon && this.hero_icon && this.nhero_icon && this.nhero1_icon) {

View File

@@ -83,7 +83,9 @@ export class MissionHomeComp extends CCComp {
openRanks(){
oops.gui.open(UIID.Ranks)
}
openHero(){
oops.gui.open(UIID.Heros)
}
/** 任务结束回调:重新显示主页 */
mission_end(){
mLogger.log(this.debugMode, 'MissionHomeComp', "[MissionHomeComp]=>mission_end")