feat(heroList): 升级按钮交互与提示优化

1.  新增升级按钮点击回弹动画与自动绑定逻辑
2.  替换按钮禁用逻辑为气泡提示反馈
3.  重构smalltip预制体并集成到升级按钮
4.  添加完整的调试日志与异常处理
This commit is contained in:
pan
2026-08-24 15:13:13 +08:00
parent bb098d690b
commit f4c5f0daae
4 changed files with 1174 additions and 16622 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -22,14 +22,14 @@
"__id__": 2
}
],
"_active": false,
"_active": true,
"_components": [
{
"__id__": 22
"__id__": 30
}
],
"_prefab": {
"__id__": 24
"__id__": 32
},
"_lpos": {
"__type__": "cc.Vec3",
@@ -74,24 +74,27 @@
},
{
"__id__": 11
}
],
"_active": true,
"_components": [
{
"__id__": 17
},
{
"__id__": 19
}
],
"_active": true,
"_components": [
{
"__id__": 25
},
{
"__id__": 27
}
],
"_prefab": {
"__id__": 21
"__id__": 29
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": 63.35300000000001,
"y": 0,
"z": 0
},
"_lrot": {
@@ -119,7 +122,7 @@
},
{
"__type__": "cc.Node",
"_name": "Arrow",
"_name": "BubbleFrame04_White_Bg",
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
@@ -144,7 +147,7 @@
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": -35.679,
"y": 0,
"z": 0
},
"_lrot": {
@@ -156,8 +159,8 @@
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"x": 0.5,
"y": 0.5,
"z": 1
},
"_mobility": 0,
@@ -182,6 +185,181 @@
"__prefab": {
"__id__": 5
},
"_contentSize": {
"__type__": "cc.Size",
"width": 300,
"height": 140
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "5aIVIWevtJH5l+s9IbfCVa"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 3
},
"_enabled": true,
"__prefab": {
"__id__": 7
},
"_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@d552a",
"__expectedType__": "cc.SpriteFrame"
},
"_type": 1,
"_fillType": 0,
"_sizeMode": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_useGrayscale": false,
"_atlas": null,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "e3Rmjr7aNLlZ2fsbmMjUHG"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 3
},
"_enabled": true,
"__prefab": {
"__id__": 9
},
"_alignFlags": 45,
"_target": null,
"_left": 0,
"_right": 0,
"_top": 0,
"_bottom": 0,
"_horizontalCenter": 0,
"_verticalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 64,
"_originalHeight": 72,
"_alignMode": 2,
"_lockFlags": 0,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "d6yD+nfRxBOKOOi1Pr4ztO"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "57iKiUyRJMJ56cQDIrFssC",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
},
{
"__type__": "cc.Node",
"_name": "Arrow",
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 2
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 12
},
{
"__id__": 14
},
{
"__id__": 16
}
],
"_prefab": {
"__id__": 18
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": -35.2,
"z": 0
},
"_lrot": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 0.5,
"y": 0.5,
"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__": 11
},
"_enabled": true,
"__prefab": {
"__id__": 13
},
"_contentSize": {
"__type__": "cc.Size",
"width": 38,
@@ -204,11 +382,11 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 3
"__id__": 11
},
"_enabled": true,
"__prefab": {
"__id__": 7
"__id__": 15
},
"_customMaterial": null,
"_srcBlendFactor": 2,
@@ -249,18 +427,18 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 3
"__id__": 11
},
"_enabled": true,
"__prefab": {
"__id__": 9
"__id__": 17
},
"_alignFlags": 20,
"_target": null,
"_left": 0,
"_right": 0,
"_top": 0,
"_bottom": -18.179000000000002,
"_bottom": -8.950000000000003,
"_horizontalCenter": 0,
"_verticalCenter": 0,
"_isAbsLeft": true,
@@ -304,14 +482,14 @@
"_active": true,
"_components": [
{
"__id__": 12
"__id__": 20
},
{
"__id__": 14
"__id__": 22
}
],
"_prefab": {
"__id__": 16
"__id__": 24
},
"_lpos": {
"__type__": "cc.Vec3",
@@ -348,11 +526,11 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 11
"__id__": 19
},
"_enabled": true,
"__prefab": {
"__id__": 13
"__id__": 21
},
"_contentSize": {
"__type__": "cc.Size",
@@ -376,11 +554,11 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 11
"__id__": 19
},
"_enabled": true,
"__prefab": {
"__id__": 15
"__id__": 23
},
"_customMaterial": null,
"_srcBlendFactor": 2,
@@ -461,7 +639,7 @@
},
"_enabled": true,
"__prefab": {
"__id__": 18
"__id__": 26
},
"_contentSize": {
"__type__": "cc.Size",
@@ -489,7 +667,7 @@
},
"_enabled": true,
"__prefab": {
"__id__": 20
"__id__": 28
},
"_customMaterial": null,
"_srcBlendFactor": 2,
@@ -501,10 +679,7 @@
"b": 255,
"a": 255
},
"_spriteFrame": {
"__uuid__": "cb93c900-b440-4571-91d1-7da1636e3d73@d552a",
"__expectedType__": "cc.SpriteFrame"
},
"_spriteFrame": null,
"_type": 1,
"_fillType": 0,
"_sizeMode": 0,
@@ -550,7 +725,7 @@
},
"_enabled": true,
"__prefab": {
"__id__": 23
"__id__": 31
},
"_contentSize": {
"__type__": "cc.Size",