refactor(map): 重构小气泡提示逻辑,统一组件管理

1. 新增SmallTipComp组件封装气泡提示动画逻辑
2. 移除TalentsComp中切换阶位的解锁提示弹窗
3. 重构HerosListComp的小提示逻辑,复用通用组件
4. 修改顶部UI的资源监听路径为钻石数据
This commit is contained in:
pan
2026-09-01 16:26:41 +08:00
parent 2d13427d7d
commit 8e1c81adb0
5 changed files with 735 additions and 302 deletions

View File

@@ -123,16 +123,10 @@ export class TalentsComp extends CCComp {
this.btn_reset?.targetOff(this);
}
/** 切换阶位页签:锁定阶允许查看(卡片呈锁定态),并提示解锁条件 */
/** 切换阶位页签:锁定阶允许查看(卡片呈锁定态),不弹解锁提示 */
private selectTier(tier: TalentTier): void {
if (tier === this.curTier) return;
this.curTier = tier;
const levels = smc.getTalentLevels();
if (!isTalentTierUnlocked(levels, tier)) {
const prev = tier - 1;
const invested = getTalentTierInvestedPoints(levels, prev);
oops.gui.toast(`${TIER_TAB_TEXT[tier].lockName}投入 ${invested}/${TALENT_TIER_UNLOCK_THRESHOLD} 点解锁本阶`);
}
this.refreshUI();
}