feat: 新增技能图标组件与UI优化

1. 新增SSkillBoxComp技能小图标组件,支持技能展示与状态控制
2. 优化CardLiteComp选中态动画,改为缩放高亮效果
3. 为英雄列表、任务主页添加顶部栏显示控制逻辑
4. 调整部分预制件布局与节点配置
This commit is contained in:
pan
2026-08-25 10:50:28 +08:00
parent 8ce83dc5e2
commit a8aa876a74
10 changed files with 5604 additions and 824 deletions

View File

@@ -54,6 +54,9 @@ export class MissionHomeComp extends CCComp {
/** 天赋按钮节点 */
@property(Node)
tals_btn = null!
/** 顶部栏节点(仅主页显示) */
@property(Node)
top_bar_node = null!
@property(Node)
@@ -197,6 +200,9 @@ export class MissionHomeComp extends CCComp {
}
private showPage(page: Node) {
// 进入分页时隐藏顶部栏,仅主页显示
this.top_bar_node.active = false
this.heros_page.active = (page === this.heros_page)
this.talents_page.active = (page === this.talents_page)
this.ranks_page.active = (page === this.ranks_page)
@@ -208,6 +214,9 @@ export class MissionHomeComp extends CCComp {
}
private hideAllPages() {
// 回到主页时恢复顶部栏显示
this.top_bar_node.active = true
this.heros_page.active = false
this.talents_page.active = false
this.ranks_page.active = false