feat: 添加英雄界面并移除英雄卡等级概率机制
- 新增英雄界面 UI 配置、预制体和动画资源 - 在 MissionHomeComp 中添加打开英雄界面的方法 - 移除 CardSet 中英雄卡从1级升级到2级的概率逻辑,简化抽卡规则 - 在 HlistComp 中添加关闭英雄界面的方法
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user