feat(游戏配置): 调整英雄数量上限并优化抽卡池等级显示

- 将英雄最大数量从3提升至5,增加游戏策略深度
- 移除未使用的金币相关配置项(升级和抽卡金币)
- 重构抽卡池等级显示逻辑:使用预设图片替代文本标签,提升视觉效果
- 添加Widget组件对齐更新,确保UI元素正确显示
- 更新相关资源文件
This commit is contained in:
walkpan
2026-04-24 13:44:50 +08:00
parent 13618ba307
commit cc06adeda1
6 changed files with 8615 additions and 4408 deletions

View File

@@ -33,7 +33,7 @@
* - smc.vmdata.mission_data —— 局内数据coin / hero_num / hero_max_num
*/
import { mLogger } from "../common/Logger";
import { _decorator, instantiate, Label, Node, NodeEventType, Prefab, SpriteAtlas, Tween, tween, Vec3 } from "cc";
import { _decorator, instantiate, Label, Node, NodeEventType, Prefab, SpriteAtlas, Tween, tween, Vec3, Widget } from "cc";
import { ecs } from "../../../../extensions/oops-plugin-framework/assets/libs/ecs/ECS";
import { CCComp } from "../../../../extensions/oops-plugin-framework/assets/module/common/CCComp";
import { GameEvent } from "../common/config/GameEvent";
@@ -772,7 +772,22 @@ export class MissionCardComp extends CCComp {
if (this.pool_lv_node) {
this.pool_lv_node.active = true;
const lv = Math.max(CARD_POOL_INIT_LEVEL, Math.min(CARD_POOL_MAX_LEVEL, Math.floor(this.poolLv)));
this.pool_lv_node.getComponent(Label).string = `${lv}`;
const poolLvStr = `lv${lv}`;
this.pool_lv_node.children.forEach(child => {
if (child.name === "light") {
child.active = false;
} else if (child.name === "bg") {
child.active = true;
} else {
child.active = (child.name === poolLvStr);
}
});
const widget = this.pool_lv_node.getComponent(Widget);
if (widget) widget.updateAlignment();
this.pool_lv_node.children.forEach(child => {
const childWidget = child.getComponent(Widget);
if (childWidget) childWidget.updateAlignment();
});
const peak = 1.2
this.playHeroNumNodePop( this.pool_lv_node, peak);
}