2 Commits

Author SHA1 Message Date
walkpan
faae9627a6 feat(gui): 调整天赋项预制体的布局和样式
- 调整整体高度为80,优化视觉层次
- 重新定位标签和进度条位置,改善对齐
- 将等级标签替换为进度条组件,增强信息展示
- 更新按钮文本为“升级”并添加描边效果
- 优化组件引用和嵌套预制体结构
2026-04-27 13:02:09 +08:00
walkpan
8178749c03 feat(ui): 添加天赋系统界面及主页入口
- 在 MissionHomeComp 中添加打开天赋界面的方法 openTalents
- 更新 ranks.prefab 界面布局,为天赋按钮预留位置
- 新增 talents.prefab 天赋系统完整界面,包含等级、经验、天赋点显示
- 天赋界面支持天赋项展示、重置功能及关闭操作
2026-04-26 23:00:42 +08:00
8 changed files with 6086 additions and 2140 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -32,22 +32,25 @@
}, },
{ {
"__id__": 166 "__id__": 166
},
{
"__id__": 172
} }
], ],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 177 "__id__": 183
}, },
{ {
"__id__": 179 "__id__": 185
}, },
{ {
"__id__": 181 "__id__": 187
} }
], ],
"_prefab": { "_prefab": {
"__id__": 183 "__id__": 189
}, },
"_lpos": { "_lpos": {
"__type__": "cc.Vec3", "__type__": "cc.Vec3",
@@ -3829,8 +3832,140 @@
"__id__": 0 "__id__": 0
}, },
"fileId": "60zyAJG75FD4lr3BUqk8h+", "fileId": "60zyAJG75FD4lr3BUqk8h+",
"instance": null, "nestedPrefabInstanceRoots": null
"targetOverrides": null, },
{
"__type__": "cc.Node",
"_name": "Rounded Rectangle 2402",
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 1
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 167
},
{
"__id__": 169
}
],
"_prefab": {
"__id__": 171
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": -595.258,
"z": 0
},
"_lrot": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_mobility": 0,
"_layer": 1073741824,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": ""
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 166
},
"_enabled": true,
"__prefab": {
"__id__": 168
},
"_contentSize": {
"__type__": "cc.Size",
"width": 1080,
"height": 280
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "31OByBx2BFlb2nfAV8gZrL"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 166
},
"_enabled": true,
"__prefab": {
"__id__": 170
},
"_customMaterial": null,
"_srcBlendFactor": 2,
"_dstBlendFactor": 4,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_spriteFrame": {
"__uuid__": "cb93c900-b440-4571-91d1-7da1636e3d73@bc0ca",
"__expectedType__": "cc.SpriteFrame"
},
"_type": 1,
"_fillType": 0,
"_sizeMode": 1,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_useGrayscale": false,
"_atlas": null,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "b9RHGAtT9Mwb6jyZJdm/Iy"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "5baCaOgaJJj5xGYYZRPLag",
"nestedPrefabInstanceRoots": null "nestedPrefabInstanceRoots": null
}, },
{ {
@@ -3845,20 +3980,20 @@
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 167 "__id__": 173
}, },
{ {
"__id__": 169 "__id__": 175
}, },
{ {
"__id__": 171 "__id__": 177
}, },
{ {
"__id__": 174 "__id__": 180
} }
], ],
"_prefab": { "_prefab": {
"__id__": 176 "__id__": 182
}, },
"_lpos": { "_lpos": {
"__type__": "cc.Vec3", "__type__": "cc.Vec3",
@@ -3895,11 +4030,11 @@
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {}, "__editorExtras__": {},
"node": { "node": {
"__id__": 166 "__id__": 172
}, },
"_enabled": true, "_enabled": true,
"__prefab": { "__prefab": {
"__id__": 168 "__id__": 174
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
@@ -3923,11 +4058,11 @@
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {}, "__editorExtras__": {},
"node": { "node": {
"__id__": 166 "__id__": 172
}, },
"_enabled": true, "_enabled": true,
"__prefab": { "__prefab": {
"__id__": 170 "__id__": 176
}, },
"_customMaterial": null, "_customMaterial": null,
"_srcBlendFactor": 2, "_srcBlendFactor": 2,
@@ -3968,15 +4103,15 @@
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {}, "__editorExtras__": {},
"node": { "node": {
"__id__": 166 "__id__": 172
}, },
"_enabled": true, "_enabled": true,
"__prefab": { "__prefab": {
"__id__": 172 "__id__": 178
}, },
"clickEvents": [ "clickEvents": [
{ {
"__id__": 173 "__id__": 179
} }
], ],
"_interactable": true, "_interactable": true,
@@ -4016,7 +4151,7 @@
"_duration": 0.1, "_duration": 0.1,
"_zoomScale": 1.2, "_zoomScale": 1.2,
"_target": { "_target": {
"__id__": 166 "__id__": 172
}, },
"_id": "" "_id": ""
}, },
@@ -4040,11 +4175,11 @@
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {}, "__editorExtras__": {},
"node": { "node": {
"__id__": 166 "__id__": 172
}, },
"_enabled": true, "_enabled": true,
"__prefab": { "__prefab": {
"__id__": 175 "__id__": 181
}, },
"_alignFlags": 12, "_alignFlags": 12,
"_target": null, "_target": null,
@@ -4093,7 +4228,7 @@
}, },
"_enabled": true, "_enabled": true,
"__prefab": { "__prefab": {
"__id__": 178 "__id__": 184
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
@@ -4121,7 +4256,7 @@
}, },
"_enabled": true, "_enabled": true,
"__prefab": { "__prefab": {
"__id__": 180 "__id__": 186
}, },
"_alignFlags": 45, "_alignFlags": 45,
"_target": null, "_target": null,
@@ -4157,7 +4292,7 @@
}, },
"_enabled": true, "_enabled": true,
"__prefab": { "__prefab": {
"__id__": 182 "__id__": 188
}, },
"top1_node": { "top1_node": {
"__id__": 47 "__id__": 47
@@ -4195,7 +4330,6 @@
}, },
"fileId": "84hrfbDo1AOq3VROGZvWWt", "fileId": "84hrfbDo1AOq3VROGZvWWt",
"instance": null, "instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": [ "nestedPrefabInstanceRoots": [
{ {
"__id__": 151 "__id__": 151

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

Binary file not shown.

Before

Width:  |  Height:  |  Size: 270 KiB

After

Width:  |  Height:  |  Size: 273 KiB

View File

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